From ef50cd0037ea5604fe191b07bc0fddac52d704b2 Mon Sep 17 00:00:00 2001 From: Google Cloud SDK Librarian Date: Wed, 22 Apr 2026 07:07:32 +0000 Subject: [PATCH 1/2] regen: Regenerate Google.Cloud.AIPlatform.V1Beta1 at API commit 939ba3b feat: Support VeoLoraTuningSpec in the tuning jobs PiperOrigin-RevId: 903331273 Source-Link: https://github.com/googleapis/googleapis/commit/939ba3bf8408af83f0f73ae35c76c4b11a8c8c8d --- .../TuningJob.g.cs | 919 ++++++++++++++---- generator-input/pipeline-state.json | 2 +- 2 files changed, 746 insertions(+), 175 deletions(-) diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/TuningJob.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/TuningJob.g.cs index 03eec7ac2059..66b8519236ea 100644 --- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/TuningJob.g.cs +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/TuningJob.g.cs @@ -33,7 +33,7 @@ static TuningJobReflection() { "L3YxYmV0YTEvZXZhbHVhdGlvbl9zZXJ2aWNlLnByb3RvGi9nb29nbGUvY2xv", "dWQvYWlwbGF0Zm9ybS92MWJldGExL2pvYl9zdGF0ZS5wcm90bxocZ29vZ2xl", "L3Byb3RvYnVmL3N0cnVjdC5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVz", - "dGFtcC5wcm90bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8igA0KCVR1bmlu", + "dGFtcC5wcm90bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8i1A0KCVR1bmlu", "Z0pvYhIUCgpiYXNlX21vZGVsGAQgASgJSAASSQoPcHJlX3R1bmVkX21vZGVs", "GB8gASgLMi4uZ29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMS5QcmVU", "dW5lZE1vZGVsSAASVwoWc3VwZXJ2aXNlZF90dW5pbmdfc3BlYxgFIAEoCzI1", @@ -43,177 +43,194 @@ static TuningJobReflection() { "ElwKGXBhcnRuZXJfbW9kZWxfdHVuaW5nX3NwZWMYFSABKAsyNy5nb29nbGUu", "Y2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLlBhcnRuZXJNb2RlbFR1bmluZ1Nw", "ZWNIARJJCg92ZW9fdHVuaW5nX3NwZWMYISABKAsyLi5nb29nbGUuY2xvdWQu", - "YWlwbGF0Zm9ybS52MWJldGExLlZlb1R1bmluZ1NwZWNIARIUCgRuYW1lGAEg", - "ASgJQgbgQQjgQQMSJQoYdHVuZWRfbW9kZWxfZGlzcGxheV9uYW1lGAIgASgJ", - "QgPgQQESGAoLZGVzY3JpcHRpb24YAyABKAlCA+BBARIeChFjdXN0b21fYmFz", - "ZV9tb2RlbBgaIAEoCUID4EEBEj0KBXN0YXRlGAYgASgOMikuZ29vZ2xlLmNs", - "b3VkLmFpcGxhdGZvcm0udjFiZXRhMS5Kb2JTdGF0ZUID4EEDEjQKC2NyZWF0", - "ZV90aW1lGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EED", - "EjMKCnN0YXJ0X3RpbWUYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0", - "YW1wQgPgQQMSMQoIZW5kX3RpbWUYCSABKAsyGi5nb29nbGUucHJvdG9idWYu", - "VGltZXN0YW1wQgPgQQMSNAoLdXBkYXRlX3RpbWUYCiABKAsyGi5nb29nbGUu", - "cHJvdG9idWYuVGltZXN0YW1wQgPgQQMSJgoFZXJyb3IYCyABKAsyEi5nb29n", - "bGUucnBjLlN0YXR1c0ID4EEDEksKBmxhYmVscxgMIAMoCzI2Lmdvb2dsZS5j", - "bG91ZC5haXBsYXRmb3JtLnYxYmV0YTEuVHVuaW5nSm9iLkxhYmVsc0VudHJ5", - "QgPgQQESPQoKZXhwZXJpbWVudBgNIAEoCUIp4EED+kEjCiFhaXBsYXRmb3Jt", - "Lmdvb2dsZWFwaXMuY29tL0NvbnRleHQSRQoLdHVuZWRfbW9kZWwYDiABKAsy", - "Ky5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLlR1bmVkTW9kZWxC", - "A+BBAxJQChF0dW5pbmdfZGF0YV9zdGF0cxgPIAEoCzIwLmdvb2dsZS5jbG91", - "ZC5haXBsYXRmb3JtLnYxYmV0YTEuVHVuaW5nRGF0YVN0YXRzQgPgQQMSQwoM", - "cGlwZWxpbmVfam9iGBIgASgJQi3gQQP6QScKJWFpcGxhdGZvcm0uZ29vZ2xl", - "YXBpcy5jb20vUGlwZWxpbmVKb2ISSAoPZW5jcnlwdGlvbl9zcGVjGBAgASgL", - "Mi8uZ29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMS5FbmNyeXB0aW9u", - "U3BlYxIXCg9zZXJ2aWNlX2FjY291bnQYFiABKAkSFwoKb3V0cHV0X3VyaRgZ", - "IAEoCUID4EEBElcKFWV2YWx1YXRlX2RhdGFzZXRfcnVucxggIAMoCzIzLmdv", - "b2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxYmV0YTEuRXZhbHVhdGVEYXRhc2V0", - "UnVuQgPgQQMaLQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVl", - "GAIgASgJOgI4ATqAAepBfQojYWlwbGF0Zm9ybS5nb29nbGVhcGlzLmNvbS9U", - "dW5pbmdKb2ISP3Byb2plY3RzL3twcm9qZWN0fS9sb2NhdGlvbnMve2xvY2F0", - "aW9ufS90dW5pbmdKb2JzL3t0dW5pbmdfam9ifSoKdHVuaW5nSm9iczIJdHVu", - "aW5nSm9iQg4KDHNvdXJjZV9tb2RlbEINCgt0dW5pbmdfc3BlYyLTAQoKVHVu", - "ZWRNb2RlbBI2CgVtb2RlbBgBIAEoCUIn4EED+kEhCh9haXBsYXRmb3JtLmdv", - "b2dsZWFwaXMuY29tL01vZGVsEjwKCGVuZHBvaW50GAIgASgJQirgQQP6QSQK", - "ImFpcGxhdGZvcm0uZ29vZ2xlYXBpcy5jb20vRW5kcG9pbnQSTwoLY2hlY2tw", - "b2ludHMYAyADKAsyNS5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGEx", - "LlR1bmVkTW9kZWxDaGVja3BvaW50QgPgQQMi9wIKI1N1cGVydmlzZWRUdW5p", - "bmdEYXRhc2V0RGlzdHJpYnV0aW9uEhAKA3N1bRgBIAEoA0ID4EEDEhkKDGJp", - "bGxhYmxlX3N1bRgJIAEoA0ID4EEDEhAKA21pbhgCIAEoAUID4EEDEhAKA21h", - "eBgDIAEoAUID4EEDEhEKBG1lYW4YBCABKAFCA+BBAxITCgZtZWRpYW4YBSAB", - "KAFCA+BBAxIPCgJwNRgGIAEoAUID4EEDEhAKA3A5NRgHIAEoAUID4EEDEmgK", - "B2J1Y2tldHMYCCADKAsyUi5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJl", - "dGExLlN1cGVydmlzZWRUdW5pbmdEYXRhc2V0RGlzdHJpYnV0aW9uLkRhdGFz", - "ZXRCdWNrZXRCA+BBAxpKCg1EYXRhc2V0QnVja2V0EhIKBWNvdW50GAEgASgB", - "QgPgQQMSEQoEbGVmdBgCIAEoAUID4EEDEhIKBXJpZ2h0GAMgASgBQgPgQQMi", - "kAYKGVN1cGVydmlzZWRUdW5pbmdEYXRhU3RhdHMSKQocdHVuaW5nX2RhdGFz", - "ZXRfZXhhbXBsZV9jb3VudBgBIAEoA0ID4EEDEikKHHRvdGFsX3R1bmluZ19j", - "aGFyYWN0ZXJfY291bnQYAiABKANCA+BBAxItCh50b3RhbF9iaWxsYWJsZV9j", - "aGFyYWN0ZXJfY291bnQYAyABKANCBRgB4EEDEicKGnRvdGFsX2JpbGxhYmxl", - "X3Rva2VuX2NvdW50GAkgASgDQgPgQQMSHgoRdHVuaW5nX3N0ZXBfY291bnQY", - "BCABKANCA+BBAxJwCh11c2VyX2lucHV0X3Rva2VuX2Rpc3RyaWJ1dGlvbhgF", - "IAEoCzJELmdvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxYmV0YTEuU3VwZXJ2", - "aXNlZFR1bmluZ0RhdGFzZXREaXN0cmlidXRpb25CA+BBAxJxCh51c2VyX291", - "dHB1dF90b2tlbl9kaXN0cmlidXRpb24YBiABKAsyRC5nb29nbGUuY2xvdWQu", - "YWlwbGF0Zm9ybS52MWJldGExLlN1cGVydmlzZWRUdW5pbmdEYXRhc2V0RGlz", - "dHJpYnV0aW9uQgPgQQMSeAoldXNlcl9tZXNzYWdlX3Blcl9leGFtcGxlX2Rp", - "c3RyaWJ1dGlvbhgHIAEoCzJELmdvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYx", - "YmV0YTEuU3VwZXJ2aXNlZFR1bmluZ0RhdGFzZXREaXN0cmlidXRpb25CA+BB", - "AxJMChV1c2VyX2RhdGFzZXRfZXhhbXBsZXMYCCADKAsyKC5nb29nbGUuY2xv", - "dWQuYWlwbGF0Zm9ybS52MWJldGExLkNvbnRlbnRCA+BBAxIqCh10b3RhbF90", - "cnVuY2F0ZWRfZXhhbXBsZV9jb3VudBgKIAEoA0ID4EEDEiYKGXRydW5jYXRl", - "ZF9leGFtcGxlX2luZGljZXMYCyADKANCA+BBAxIkChdkcm9wcGVkX2V4YW1w", - "bGVfcmVhc29ucxgMIAMoCUID4EEDIsYCChNEYXRhc2V0RGlzdHJpYnV0aW9u", - "EhAKA3N1bRgBIAEoAUID4EEDEhAKA21pbhgCIAEoAUID4EEDEhAKA21heBgD", - "IAEoAUID4EEDEhEKBG1lYW4YBCABKAFCA+BBAxITCgZtZWRpYW4YBSABKAFC", - "A+BBAxIPCgJwNRgGIAEoAUID4EEDEhAKA3A5NRgHIAEoAUID4EEDEl0KB2J1", - "Y2tldHMYCCADKAsyRy5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGEx", - "LkRhdGFzZXREaXN0cmlidXRpb24uRGlzdHJpYnV0aW9uQnVja2V0QgPgQQMa", - "TwoSRGlzdHJpYnV0aW9uQnVja2V0EhIKBWNvdW50GAEgASgDQgPgQQMSEQoE", - "bGVmdBgCIAEoAUID4EEDEhIKBXJpZ2h0GAMgASgBQgPgQQMi1gQKDERhdGFz", - "ZXRTdGF0cxIpChx0dW5pbmdfZGF0YXNldF9leGFtcGxlX2NvdW50GAEgASgD", - "QgPgQQMSKQocdG90YWxfdHVuaW5nX2NoYXJhY3Rlcl9jb3VudBgCIAEoA0ID", - "4EEDEisKHnRvdGFsX2JpbGxhYmxlX2NoYXJhY3Rlcl9jb3VudBgDIAEoA0ID", - "4EEDEh4KEXR1bmluZ19zdGVwX2NvdW50GAQgASgDQgPgQQMSYAoddXNlcl9p", - "bnB1dF90b2tlbl9kaXN0cmlidXRpb24YBSABKAsyNC5nb29nbGUuY2xvdWQu", - "YWlwbGF0Zm9ybS52MWJldGExLkRhdGFzZXREaXN0cmlidXRpb25CA+BBAxJm", - "Ch51c2VyX291dHB1dF90b2tlbl9kaXN0cmlidXRpb24YBiABKAsyNC5nb29n", - "bGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLkRhdGFzZXREaXN0cmlidXRp", - "b25CA+BBA0gAiAEBEmgKJXVzZXJfbWVzc2FnZV9wZXJfZXhhbXBsZV9kaXN0", - "cmlidXRpb24YByABKAsyNC5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJl", - "dGExLkRhdGFzZXREaXN0cmlidXRpb25CA+BBAxJMChV1c2VyX2RhdGFzZXRf", - "ZXhhbXBsZXMYCCADKAsyKC5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJl", - "dGExLkNvbnRlbnRCA+BBA0IhCh9fdXNlcl9vdXRwdXRfdG9rZW5fZGlzdHJp", - "YnV0aW9uImsKFURpc3RpbGxhdGlvbkRhdGFTdGF0cxJSChZ0cmFpbmluZ19k", - "YXRhc2V0X3N0YXRzGAEgASgLMi0uZ29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0u", - "djFiZXRhMS5EYXRhc2V0U3RhdHNCA+BBAyLqAQoPVHVuaW5nRGF0YVN0YXRz", - "EmIKHHN1cGVydmlzZWRfdHVuaW5nX2RhdGFfc3RhdHMYASABKAsyOi5nb29n", - "bGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLlN1cGVydmlzZWRUdW5pbmdE", - "YXRhU3RhdHNIABJeChdkaXN0aWxsYXRpb25fZGF0YV9zdGF0cxgDIAEoCzI2", - "Lmdvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxYmV0YTEuRGlzdGlsbGF0aW9u", - "RGF0YVN0YXRzQgPgQQNIAEITChF0dW5pbmdfZGF0YV9zdGF0cyK0AwoZU3Vw", - "ZXJ2aXNlZEh5cGVyUGFyYW1ldGVycxIYCgtlcG9jaF9jb3VudBgBIAEoA0ID", - "4EEBEiUKGGxlYXJuaW5nX3JhdGVfbXVsdGlwbGllchgCIAEoAUID4EEBEhoK", - "DWxlYXJuaW5nX3JhdGUYBiABKAFCA+BBARJhCgxhZGFwdGVyX3NpemUYAyAB", - "KA4yRi5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLlN1cGVydmlz", - "ZWRIeXBlclBhcmFtZXRlcnMuQWRhcHRlclNpemVCA+BBARIXCgpiYXRjaF9z", - "aXplGAUgASgDQgPgQQEivQEKC0FkYXB0ZXJTaXplEhwKGEFEQVBURVJfU0la", - "RV9VTlNQRUNJRklFRBAAEhQKEEFEQVBURVJfU0laRV9PTkUQARIUChBBREFQ", - "VEVSX1NJWkVfVFdPEAYSFQoRQURBUFRFUl9TSVpFX0ZPVVIQAhIWChJBREFQ", - "VEVSX1NJWkVfRUlHSFQQAxIYChRBREFQVEVSX1NJWkVfU0lYVEVFThAEEhsK", - "F0FEQVBURVJfU0laRV9USElSVFlfVFdPEAUi7AMKFFN1cGVydmlzZWRUdW5p", - "bmdTcGVjEiEKFHRyYWluaW5nX2RhdGFzZXRfdXJpGAEgASgJQgPgQQISIwoW", - "dmFsaWRhdGlvbl9kYXRhc2V0X3VyaRgCIAEoCUID4EEBElkKEGh5cGVyX3Bh", - "cmFtZXRlcnMYAyABKAsyOi5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJl", - "dGExLlN1cGVydmlzZWRIeXBlclBhcmFtZXRlcnNCA+BBARIoChtleHBvcnRf", - "bGFzdF9jaGVja3BvaW50X29ubHkYBiABKAhCA+BBARJRChFldmFsdWF0aW9u", - "X2NvbmZpZxgFIAEoCzIxLmdvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxYmV0", - "YTEuRXZhbHVhdGlvbkNvbmZpZ0ID4EEBElUKC3R1bmluZ19tb2RlGAcgASgO", - "MkAuZ29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMS5TdXBlcnZpc2Vk", - "VHVuaW5nU3BlYy5UdW5pbmdNb2RlIl0KClR1bmluZ01vZGUSGwoXVFVOSU5H", - "X01PREVfVU5TUEVDSUZJRUQQABIUChBUVU5JTkdfTU9ERV9GVUxMEAESHAoY", - "VFVOSU5HX01PREVfUEVGVF9BREFQVEVSEAIijwMKEERpc3RpbGxhdGlvblNw", - "ZWMSHAoSYmFzZV90ZWFjaGVyX21vZGVsGAUgASgJSAASSgoadHVuZWRfdGVh", - "Y2hlcl9tb2RlbF9zb3VyY2UYBiABKAlCJPpBIQofYWlwbGF0Zm9ybS5nb29n", - "bGVhcGlzLmNvbS9Nb2RlbEgAEiEKFHRyYWluaW5nX2RhdGFzZXRfdXJpGAEg", - "ASgJQgPgQQISKAoWdmFsaWRhdGlvbl9kYXRhc2V0X3VyaRgCIAEoCUID4EEB", - "SAGIAQESWwoQaHlwZXJfcGFyYW1ldGVycxgDIAEoCzI8Lmdvb2dsZS5jbG91", - "ZC5haXBsYXRmb3JtLnYxYmV0YTEuRGlzdGlsbGF0aW9uSHlwZXJQYXJhbWV0", - "ZXJzQgPgQQESFQoNc3R1ZGVudF9tb2RlbBgEIAEoCRIkChdwaXBlbGluZV9y", - "b290X2RpcmVjdG9yeRgHIAEoCUID4EECQg8KDXRlYWNoZXJfbW9kZWxCGQoX", - "X3ZhbGlkYXRpb25fZGF0YXNldF91cmki+AEKG0Rpc3RpbGxhdGlvbkh5cGVy", - "UGFyYW1ldGVycxIdCgtlcG9jaF9jb3VudBgBIAEoA0ID4EEBSACIAQESKgoY", - "bGVhcm5pbmdfcmF0ZV9tdWx0aXBsaWVyGAIgASgBQgPgQQFIAYgBARJhCgxh", - "ZGFwdGVyX3NpemUYAyABKA4yRi5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52", - "MWJldGExLlN1cGVydmlzZWRIeXBlclBhcmFtZXRlcnMuQWRhcHRlclNpemVC", - "A+BBAUIOCgxfZXBvY2hfY291bnRCGwoZX2xlYXJuaW5nX3JhdGVfbXVsdGlw", - "bGllciKYAgoWUGFydG5lck1vZGVsVHVuaW5nU3BlYxIhChR0cmFpbmluZ19k", - "YXRhc2V0X3VyaRgBIAEoCUID4EECEiMKFnZhbGlkYXRpb25fZGF0YXNldF91", - "cmkYAiABKAlCA+BBARJmChBoeXBlcl9wYXJhbWV0ZXJzGAMgAygLMkwuZ29v", - "Z2xlLmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMS5QYXJ0bmVyTW9kZWxUdW5p", - "bmdTcGVjLkh5cGVyUGFyYW1ldGVyc0VudHJ5Gk4KFEh5cGVyUGFyYW1ldGVy", - "c0VudHJ5EgsKA2tleRgBIAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5w", - "cm90b2J1Zi5WYWx1ZToCOAEi4wEKDVR1bmVkTW9kZWxSZWYSOwoLdHVuZWRf", - "bW9kZWwYASABKAlCJPpBIQofYWlwbGF0Zm9ybS5nb29nbGVhcGlzLmNvbS9N", - "b2RlbEgAEj4KCnR1bmluZ19qb2IYAiABKAlCKPpBJQojYWlwbGF0Zm9ybS5n", - "b29nbGVhcGlzLmNvbS9UdW5pbmdKb2JIABJCCgxwaXBlbGluZV9qb2IYAyAB", - "KAlCKvpBJwolYWlwbGF0Zm9ybS5nb29nbGVhcGlzLmNvbS9QaXBlbGluZUpv", - "YkgAQhEKD3R1bmVkX21vZGVsX3JlZiKEAgoSVmVvSHlwZXJQYXJhbWV0ZXJz", - "EhgKC2Vwb2NoX2NvdW50GAEgASgDQgPgQQESJQoYbGVhcm5pbmdfcmF0ZV9t", - "dWx0aXBsaWVyGAIgASgBQgPgQQESWAoLdHVuaW5nX3Rhc2sYAyABKA4yPi5n", - "b29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLlZlb0h5cGVyUGFyYW1l", - "dGVycy5UdW5pbmdUYXNrQgPgQQEiUwoKVHVuaW5nVGFzaxIbChdUVU5JTkdf", - "VEFTS19VTlNQRUNJRklFRBAAEhMKD1RVTklOR19UQVNLX0kyVhABEhMKD1RV", - "TklOR19UQVNLX1QyVhACIqsBCg1WZW9UdW5pbmdTcGVjEiEKFHRyYWluaW5n", - "X2RhdGFzZXRfdXJpGAEgASgJQgPgQQISIwoWdmFsaWRhdGlvbl9kYXRhc2V0", - "X3VyaRgCIAEoCUID4EEBElIKEGh5cGVyX3BhcmFtZXRlcnMYAyABKAsyMy5n", - "b29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLlZlb0h5cGVyUGFyYW1l", - "dGVyc0ID4EEBIsoCChBFdmFsdWF0aW9uQ29uZmlnEj0KB21ldHJpY3MYASAD", - "KAsyJy5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLk1ldHJpY0ID", - "4EECEkkKDW91dHB1dF9jb25maWcYAiABKAsyLS5nb29nbGUuY2xvdWQuYWlw", - "bGF0Zm9ybS52MWJldGExLk91dHB1dENvbmZpZ0ID4EECEk8KEGF1dG9yYXRl", - "cl9jb25maWcYAyABKAsyMC5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJl", - "dGExLkF1dG9yYXRlckNvbmZpZ0ID4EEBElsKG2luZmVyZW5jZV9nZW5lcmF0", - "aW9uX2NvbmZpZxgFIAEoCzIxLmdvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYx", - "YmV0YTEuR2VuZXJhdGlvbkNvbmZpZ0ID4EEBIvQBChJFdmFsdWF0ZURhdGFz", - "ZXRSdW4SGwoOb3BlcmF0aW9uX25hbWUYASABKAlCA+BBAxIbCg5ldmFsdWF0", - "aW9uX3J1bhgFIAEoCUID4EEDEhoKDWNoZWNrcG9pbnRfaWQYAiABKAlCA+BB", - "AxJgChlldmFsdWF0ZV9kYXRhc2V0X3Jlc3BvbnNlGAMgASgLMjguZ29vZ2xl", - "LmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMS5FdmFsdWF0ZURhdGFzZXRSZXNw", - "b25zZUID4EEDEiYKBWVycm9yGAQgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXNC", - "A+BBAyJcChRUdW5lZE1vZGVsQ2hlY2twb2ludBIVCg1jaGVja3BvaW50X2lk", - "GAEgASgJEg0KBWVwb2NoGAIgASgDEgwKBHN0ZXAYAyABKAMSEAoIZW5kcG9p", - "bnQYBCABKAkihAEKDVByZVR1bmVkTW9kZWwSPgoQdHVuZWRfbW9kZWxfbmFt", - "ZRgBIAEoCUIk+kEhCh9haXBsYXRmb3JtLmdvb2dsZWFwaXMuY29tL01vZGVs", - "EhoKDWNoZWNrcG9pbnRfaWQYAiABKAlCA+BBARIXCgpiYXNlX21vZGVsGAMg", - "ASgJQgPgQQNC5QEKI2NvbS5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJl", - "dGExQg5UdW5pbmdKb2JQcm90b1ABWkNjbG91ZC5nb29nbGUuY29tL2dvL2Fp", - "cGxhdGZvcm0vYXBpdjFiZXRhMS9haXBsYXRmb3JtcGI7YWlwbGF0Zm9ybXBi", - "qgIfR29vZ2xlLkNsb3VkLkFJUGxhdGZvcm0uVjFCZXRhMcoCH0dvb2dsZVxD", - "bG91ZFxBSVBsYXRmb3JtXFYxYmV0YTHqAiJHb29nbGU6OkNsb3VkOjpBSVBs", - "YXRmb3JtOjpWMWJldGExYgZwcm90bzM=")); + "YWlwbGF0Zm9ybS52MWJldGExLlZlb1R1bmluZ1NwZWNIARJSChR2ZW9fbG9y", + "YV90dW5pbmdfc3BlYxgmIAEoCzIyLmdvb2dsZS5jbG91ZC5haXBsYXRmb3Jt", + "LnYxYmV0YTEuVmVvTG9yYVR1bmluZ1NwZWNIARIUCgRuYW1lGAEgASgJQgbg", + "QQjgQQMSJQoYdHVuZWRfbW9kZWxfZGlzcGxheV9uYW1lGAIgASgJQgPgQQES", + "GAoLZGVzY3JpcHRpb24YAyABKAlCA+BBARIeChFjdXN0b21fYmFzZV9tb2Rl", + "bBgaIAEoCUID4EEBEj0KBXN0YXRlGAYgASgOMikuZ29vZ2xlLmNsb3VkLmFp", + "cGxhdGZvcm0udjFiZXRhMS5Kb2JTdGF0ZUID4EEDEjQKC2NyZWF0ZV90aW1l", + "GAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEjMKCnN0", + "YXJ0X3RpbWUYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPg", + "QQMSMQoIZW5kX3RpbWUYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0", + "YW1wQgPgQQMSNAoLdXBkYXRlX3RpbWUYCiABKAsyGi5nb29nbGUucHJvdG9i", + "dWYuVGltZXN0YW1wQgPgQQMSJgoFZXJyb3IYCyABKAsyEi5nb29nbGUucnBj", + "LlN0YXR1c0ID4EEDEksKBmxhYmVscxgMIAMoCzI2Lmdvb2dsZS5jbG91ZC5h", + "aXBsYXRmb3JtLnYxYmV0YTEuVHVuaW5nSm9iLkxhYmVsc0VudHJ5QgPgQQES", + "PQoKZXhwZXJpbWVudBgNIAEoCUIp4EED+kEjCiFhaXBsYXRmb3JtLmdvb2ds", + "ZWFwaXMuY29tL0NvbnRleHQSRQoLdHVuZWRfbW9kZWwYDiABKAsyKy5nb29n", + "bGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLlR1bmVkTW9kZWxCA+BBAxJQ", + "ChF0dW5pbmdfZGF0YV9zdGF0cxgPIAEoCzIwLmdvb2dsZS5jbG91ZC5haXBs", + "YXRmb3JtLnYxYmV0YTEuVHVuaW5nRGF0YVN0YXRzQgPgQQMSQwoMcGlwZWxp", + "bmVfam9iGBIgASgJQi3gQQP6QScKJWFpcGxhdGZvcm0uZ29vZ2xlYXBpcy5j", + "b20vUGlwZWxpbmVKb2ISSAoPZW5jcnlwdGlvbl9zcGVjGBAgASgLMi8uZ29v", + "Z2xlLmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMS5FbmNyeXB0aW9uU3BlYxIX", + "Cg9zZXJ2aWNlX2FjY291bnQYFiABKAkSFwoKb3V0cHV0X3VyaRgZIAEoCUID", + "4EEBElcKFWV2YWx1YXRlX2RhdGFzZXRfcnVucxggIAMoCzIzLmdvb2dsZS5j", + "bG91ZC5haXBsYXRmb3JtLnYxYmV0YTEuRXZhbHVhdGVEYXRhc2V0UnVuQgPg", + "QQMaLQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJ", + "OgI4ATqAAepBfQojYWlwbGF0Zm9ybS5nb29nbGVhcGlzLmNvbS9UdW5pbmdK", + "b2ISP3Byb2plY3RzL3twcm9qZWN0fS9sb2NhdGlvbnMve2xvY2F0aW9ufS90", + "dW5pbmdKb2JzL3t0dW5pbmdfam9ifSoKdHVuaW5nSm9iczIJdHVuaW5nSm9i", + "Qg4KDHNvdXJjZV9tb2RlbEINCgt0dW5pbmdfc3BlYyLTAQoKVHVuZWRNb2Rl", + "bBI2CgVtb2RlbBgBIAEoCUIn4EED+kEhCh9haXBsYXRmb3JtLmdvb2dsZWFw", + "aXMuY29tL01vZGVsEjwKCGVuZHBvaW50GAIgASgJQirgQQP6QSQKImFpcGxh", + "dGZvcm0uZ29vZ2xlYXBpcy5jb20vRW5kcG9pbnQSTwoLY2hlY2twb2ludHMY", + "AyADKAsyNS5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLlR1bmVk", + "TW9kZWxDaGVja3BvaW50QgPgQQMi9wIKI1N1cGVydmlzZWRUdW5pbmdEYXRh", + "c2V0RGlzdHJpYnV0aW9uEhAKA3N1bRgBIAEoA0ID4EEDEhkKDGJpbGxhYmxl", + "X3N1bRgJIAEoA0ID4EEDEhAKA21pbhgCIAEoAUID4EEDEhAKA21heBgDIAEo", + "AUID4EEDEhEKBG1lYW4YBCABKAFCA+BBAxITCgZtZWRpYW4YBSABKAFCA+BB", + "AxIPCgJwNRgGIAEoAUID4EEDEhAKA3A5NRgHIAEoAUID4EEDEmgKB2J1Y2tl", + "dHMYCCADKAsyUi5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLlN1", + "cGVydmlzZWRUdW5pbmdEYXRhc2V0RGlzdHJpYnV0aW9uLkRhdGFzZXRCdWNr", + "ZXRCA+BBAxpKCg1EYXRhc2V0QnVja2V0EhIKBWNvdW50GAEgASgBQgPgQQMS", + "EQoEbGVmdBgCIAEoAUID4EEDEhIKBXJpZ2h0GAMgASgBQgPgQQMikAYKGVN1", + "cGVydmlzZWRUdW5pbmdEYXRhU3RhdHMSKQocdHVuaW5nX2RhdGFzZXRfZXhh", + "bXBsZV9jb3VudBgBIAEoA0ID4EEDEikKHHRvdGFsX3R1bmluZ19jaGFyYWN0", + "ZXJfY291bnQYAiABKANCA+BBAxItCh50b3RhbF9iaWxsYWJsZV9jaGFyYWN0", + "ZXJfY291bnQYAyABKANCBRgB4EEDEicKGnRvdGFsX2JpbGxhYmxlX3Rva2Vu", + "X2NvdW50GAkgASgDQgPgQQMSHgoRdHVuaW5nX3N0ZXBfY291bnQYBCABKANC", + "A+BBAxJwCh11c2VyX2lucHV0X3Rva2VuX2Rpc3RyaWJ1dGlvbhgFIAEoCzJE", + "Lmdvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxYmV0YTEuU3VwZXJ2aXNlZFR1", + "bmluZ0RhdGFzZXREaXN0cmlidXRpb25CA+BBAxJxCh51c2VyX291dHB1dF90", + "b2tlbl9kaXN0cmlidXRpb24YBiABKAsyRC5nb29nbGUuY2xvdWQuYWlwbGF0", + "Zm9ybS52MWJldGExLlN1cGVydmlzZWRUdW5pbmdEYXRhc2V0RGlzdHJpYnV0", + "aW9uQgPgQQMSeAoldXNlcl9tZXNzYWdlX3Blcl9leGFtcGxlX2Rpc3RyaWJ1", + "dGlvbhgHIAEoCzJELmdvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxYmV0YTEu", + "U3VwZXJ2aXNlZFR1bmluZ0RhdGFzZXREaXN0cmlidXRpb25CA+BBAxJMChV1", + "c2VyX2RhdGFzZXRfZXhhbXBsZXMYCCADKAsyKC5nb29nbGUuY2xvdWQuYWlw", + "bGF0Zm9ybS52MWJldGExLkNvbnRlbnRCA+BBAxIqCh10b3RhbF90cnVuY2F0", + "ZWRfZXhhbXBsZV9jb3VudBgKIAEoA0ID4EEDEiYKGXRydW5jYXRlZF9leGFt", + "cGxlX2luZGljZXMYCyADKANCA+BBAxIkChdkcm9wcGVkX2V4YW1wbGVfcmVh", + "c29ucxgMIAMoCUID4EEDIsYCChNEYXRhc2V0RGlzdHJpYnV0aW9uEhAKA3N1", + "bRgBIAEoAUID4EEDEhAKA21pbhgCIAEoAUID4EEDEhAKA21heBgDIAEoAUID", + "4EEDEhEKBG1lYW4YBCABKAFCA+BBAxITCgZtZWRpYW4YBSABKAFCA+BBAxIP", + "CgJwNRgGIAEoAUID4EEDEhAKA3A5NRgHIAEoAUID4EEDEl0KB2J1Y2tldHMY", + "CCADKAsyRy5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLkRhdGFz", + "ZXREaXN0cmlidXRpb24uRGlzdHJpYnV0aW9uQnVja2V0QgPgQQMaTwoSRGlz", + "dHJpYnV0aW9uQnVja2V0EhIKBWNvdW50GAEgASgDQgPgQQMSEQoEbGVmdBgC", + "IAEoAUID4EEDEhIKBXJpZ2h0GAMgASgBQgPgQQMi1gQKDERhdGFzZXRTdGF0", + "cxIpChx0dW5pbmdfZGF0YXNldF9leGFtcGxlX2NvdW50GAEgASgDQgPgQQMS", + "KQocdG90YWxfdHVuaW5nX2NoYXJhY3Rlcl9jb3VudBgCIAEoA0ID4EEDEisK", + "HnRvdGFsX2JpbGxhYmxlX2NoYXJhY3Rlcl9jb3VudBgDIAEoA0ID4EEDEh4K", + "EXR1bmluZ19zdGVwX2NvdW50GAQgASgDQgPgQQMSYAoddXNlcl9pbnB1dF90", + "b2tlbl9kaXN0cmlidXRpb24YBSABKAsyNC5nb29nbGUuY2xvdWQuYWlwbGF0", + "Zm9ybS52MWJldGExLkRhdGFzZXREaXN0cmlidXRpb25CA+BBAxJmCh51c2Vy", + "X291dHB1dF90b2tlbl9kaXN0cmlidXRpb24YBiABKAsyNC5nb29nbGUuY2xv", + "dWQuYWlwbGF0Zm9ybS52MWJldGExLkRhdGFzZXREaXN0cmlidXRpb25CA+BB", + "A0gAiAEBEmgKJXVzZXJfbWVzc2FnZV9wZXJfZXhhbXBsZV9kaXN0cmlidXRp", + "b24YByABKAsyNC5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLkRh", + "dGFzZXREaXN0cmlidXRpb25CA+BBAxJMChV1c2VyX2RhdGFzZXRfZXhhbXBs", + "ZXMYCCADKAsyKC5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLkNv", + "bnRlbnRCA+BBA0IhCh9fdXNlcl9vdXRwdXRfdG9rZW5fZGlzdHJpYnV0aW9u", + "ImsKFURpc3RpbGxhdGlvbkRhdGFTdGF0cxJSChZ0cmFpbmluZ19kYXRhc2V0", + "X3N0YXRzGAEgASgLMi0uZ29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0udjFiZXRh", + "MS5EYXRhc2V0U3RhdHNCA+BBAyLqAQoPVHVuaW5nRGF0YVN0YXRzEmIKHHN1", + "cGVydmlzZWRfdHVuaW5nX2RhdGFfc3RhdHMYASABKAsyOi5nb29nbGUuY2xv", + "dWQuYWlwbGF0Zm9ybS52MWJldGExLlN1cGVydmlzZWRUdW5pbmdEYXRhU3Rh", + "dHNIABJeChdkaXN0aWxsYXRpb25fZGF0YV9zdGF0cxgDIAEoCzI2Lmdvb2ds", + "ZS5jbG91ZC5haXBsYXRmb3JtLnYxYmV0YTEuRGlzdGlsbGF0aW9uRGF0YVN0", + "YXRzQgPgQQNIAEITChF0dW5pbmdfZGF0YV9zdGF0cyK0AwoZU3VwZXJ2aXNl", + "ZEh5cGVyUGFyYW1ldGVycxIYCgtlcG9jaF9jb3VudBgBIAEoA0ID4EEBEiUK", + "GGxlYXJuaW5nX3JhdGVfbXVsdGlwbGllchgCIAEoAUID4EEBEhoKDWxlYXJu", + "aW5nX3JhdGUYBiABKAFCA+BBARJhCgxhZGFwdGVyX3NpemUYAyABKA4yRi5n", + "b29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLlN1cGVydmlzZWRIeXBl", + "clBhcmFtZXRlcnMuQWRhcHRlclNpemVCA+BBARIXCgpiYXRjaF9zaXplGAUg", + "ASgDQgPgQQEivQEKC0FkYXB0ZXJTaXplEhwKGEFEQVBURVJfU0laRV9VTlNQ", + "RUNJRklFRBAAEhQKEEFEQVBURVJfU0laRV9PTkUQARIUChBBREFQVEVSX1NJ", + "WkVfVFdPEAYSFQoRQURBUFRFUl9TSVpFX0ZPVVIQAhIWChJBREFQVEVSX1NJ", + "WkVfRUlHSFQQAxIYChRBREFQVEVSX1NJWkVfU0lYVEVFThAEEhsKF0FEQVBU", + "RVJfU0laRV9USElSVFlfVFdPEAUi7AMKFFN1cGVydmlzZWRUdW5pbmdTcGVj", + "EiEKFHRyYWluaW5nX2RhdGFzZXRfdXJpGAEgASgJQgPgQQISIwoWdmFsaWRh", + "dGlvbl9kYXRhc2V0X3VyaRgCIAEoCUID4EEBElkKEGh5cGVyX3BhcmFtZXRl", + "cnMYAyABKAsyOi5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLlN1", + "cGVydmlzZWRIeXBlclBhcmFtZXRlcnNCA+BBARIoChtleHBvcnRfbGFzdF9j", + "aGVja3BvaW50X29ubHkYBiABKAhCA+BBARJRChFldmFsdWF0aW9uX2NvbmZp", + "ZxgFIAEoCzIxLmdvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxYmV0YTEuRXZh", + "bHVhdGlvbkNvbmZpZ0ID4EEBElUKC3R1bmluZ19tb2RlGAcgASgOMkAuZ29v", + "Z2xlLmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMS5TdXBlcnZpc2VkVHVuaW5n", + "U3BlYy5UdW5pbmdNb2RlIl0KClR1bmluZ01vZGUSGwoXVFVOSU5HX01PREVf", + "VU5TUEVDSUZJRUQQABIUChBUVU5JTkdfTU9ERV9GVUxMEAESHAoYVFVOSU5H", + "X01PREVfUEVGVF9BREFQVEVSEAIijwMKEERpc3RpbGxhdGlvblNwZWMSHAoS", + "YmFzZV90ZWFjaGVyX21vZGVsGAUgASgJSAASSgoadHVuZWRfdGVhY2hlcl9t", + "b2RlbF9zb3VyY2UYBiABKAlCJPpBIQofYWlwbGF0Zm9ybS5nb29nbGVhcGlz", + "LmNvbS9Nb2RlbEgAEiEKFHRyYWluaW5nX2RhdGFzZXRfdXJpGAEgASgJQgPg", + "QQISKAoWdmFsaWRhdGlvbl9kYXRhc2V0X3VyaRgCIAEoCUID4EEBSAGIAQES", + "WwoQaHlwZXJfcGFyYW1ldGVycxgDIAEoCzI8Lmdvb2dsZS5jbG91ZC5haXBs", + "YXRmb3JtLnYxYmV0YTEuRGlzdGlsbGF0aW9uSHlwZXJQYXJhbWV0ZXJzQgPg", + "QQESFQoNc3R1ZGVudF9tb2RlbBgEIAEoCRIkChdwaXBlbGluZV9yb290X2Rp", + "cmVjdG9yeRgHIAEoCUID4EECQg8KDXRlYWNoZXJfbW9kZWxCGQoXX3ZhbGlk", + "YXRpb25fZGF0YXNldF91cmki+AEKG0Rpc3RpbGxhdGlvbkh5cGVyUGFyYW1l", + "dGVycxIdCgtlcG9jaF9jb3VudBgBIAEoA0ID4EEBSACIAQESKgoYbGVhcm5p", + "bmdfcmF0ZV9tdWx0aXBsaWVyGAIgASgBQgPgQQFIAYgBARJhCgxhZGFwdGVy", + "X3NpemUYAyABKA4yRi5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGEx", + "LlN1cGVydmlzZWRIeXBlclBhcmFtZXRlcnMuQWRhcHRlclNpemVCA+BBAUIO", + "CgxfZXBvY2hfY291bnRCGwoZX2xlYXJuaW5nX3JhdGVfbXVsdGlwbGllciKY", + "AgoWUGFydG5lck1vZGVsVHVuaW5nU3BlYxIhChR0cmFpbmluZ19kYXRhc2V0", + "X3VyaRgBIAEoCUID4EECEiMKFnZhbGlkYXRpb25fZGF0YXNldF91cmkYAiAB", + "KAlCA+BBARJmChBoeXBlcl9wYXJhbWV0ZXJzGAMgAygLMkwuZ29vZ2xlLmNs", + "b3VkLmFpcGxhdGZvcm0udjFiZXRhMS5QYXJ0bmVyTW9kZWxUdW5pbmdTcGVj", + "Lkh5cGVyUGFyYW1ldGVyc0VudHJ5Gk4KFEh5cGVyUGFyYW1ldGVyc0VudHJ5", + "EgsKA2tleRgBIAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1", + "Zi5WYWx1ZToCOAEi4wEKDVR1bmVkTW9kZWxSZWYSOwoLdHVuZWRfbW9kZWwY", + "ASABKAlCJPpBIQofYWlwbGF0Zm9ybS5nb29nbGVhcGlzLmNvbS9Nb2RlbEgA", + "Ej4KCnR1bmluZ19qb2IYAiABKAlCKPpBJQojYWlwbGF0Zm9ybS5nb29nbGVh", + "cGlzLmNvbS9UdW5pbmdKb2JIABJCCgxwaXBlbGluZV9qb2IYAyABKAlCKvpB", + "JwolYWlwbGF0Zm9ybS5nb29nbGVhcGlzLmNvbS9QaXBlbGluZUpvYkgAQhEK", + "D3R1bmVkX21vZGVsX3JlZiLnBQoSVmVvSHlwZXJQYXJhbWV0ZXJzEhgKC2Vw", + "b2NoX2NvdW50GAEgASgDQgPgQQESJQoYbGVhcm5pbmdfcmF0ZV9tdWx0aXBs", + "aWVyGAIgASgBQgPgQQESWAoLdHVuaW5nX3Rhc2sYAyABKA4yPi5nb29nbGUu", + "Y2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLlZlb0h5cGVyUGFyYW1ldGVycy5U", + "dW5pbmdUYXNrQgPgQQESKAoWdmVvX2RhdGFfbWl4dHVyZV9yYXRpbxgEIAEo", + "AUID4EEBSACIAQESWgoMdHVuaW5nX3NwZWVkGAUgASgOMj8uZ29vZ2xlLmNs", + "b3VkLmFpcGxhdGZvcm0udjFiZXRhMS5WZW9IeXBlclBhcmFtZXRlcnMuVHVu", + "aW5nU3BlZWRIAYgBARJaCgxhZGFwdGVyX3NpemUYBiABKA4yPy5nb29nbGUu", + "Y2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLlZlb0h5cGVyUGFyYW1ldGVycy5B", + "ZGFwdGVyU2l6ZUID4EEBImgKClR1bmluZ1Rhc2sSGwoXVFVOSU5HX1RBU0tf", + "VU5TUEVDSUZJRUQQABITCg9UVU5JTkdfVEFTS19JMlYQARITCg9UVU5JTkdf", + "VEFTS19UMlYQAhITCg9UVU5JTkdfVEFTS19SMlYQAyJCCgtUdW5pbmdTcGVl", + "ZBIcChhUVU5JTkdfU1BFRURfVU5TUEVDSUZJRUQQABILCgdSRUdVTEFSEAES", + "CAoERkFTVBACInoKC0FkYXB0ZXJTaXplEhwKGEFEQVBURVJfU0laRV9VTlNQ", + "RUNJRklFRBAAEhYKEkFEQVBURVJfU0laRV9FSUdIVBAIEhgKFEFEQVBURVJf", + "U0laRV9TSVhURUVOEBASGwoXQURBUFRFUl9TSVpFX1RISVJUWV9UV08QIEIZ", + "ChdfdmVvX2RhdGFfbWl4dHVyZV9yYXRpb0IPCg1fdHVuaW5nX3NwZWVkIqsB", + "Cg1WZW9UdW5pbmdTcGVjEiEKFHRyYWluaW5nX2RhdGFzZXRfdXJpGAEgASgJ", + "QgPgQQISIwoWdmFsaWRhdGlvbl9kYXRhc2V0X3VyaRgCIAEoCUID4EEBElIK", + "EGh5cGVyX3BhcmFtZXRlcnMYAyABKAsyMy5nb29nbGUuY2xvdWQuYWlwbGF0", + "Zm9ybS52MWJldGExLlZlb0h5cGVyUGFyYW1ldGVyc0ID4EEBIq8BChFWZW9M", + "b3JhVHVuaW5nU3BlYxIhChR0cmFpbmluZ19kYXRhc2V0X3VyaRgBIAEoCUID", + "4EECEiMKFnZhbGlkYXRpb25fZGF0YXNldF91cmkYAiABKAlCA+BBARJSChBo", + "eXBlcl9wYXJhbWV0ZXJzGAMgASgLMjMuZ29vZ2xlLmNsb3VkLmFpcGxhdGZv", + "cm0udjFiZXRhMS5WZW9IeXBlclBhcmFtZXRlcnNCA+BBASLKAgoQRXZhbHVh", + "dGlvbkNvbmZpZxI9CgdtZXRyaWNzGAEgAygLMicuZ29vZ2xlLmNsb3VkLmFp", + "cGxhdGZvcm0udjFiZXRhMS5NZXRyaWNCA+BBAhJJCg1vdXRwdXRfY29uZmln", + "GAIgASgLMi0uZ29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMS5PdXRw", + "dXRDb25maWdCA+BBAhJPChBhdXRvcmF0ZXJfY29uZmlnGAMgASgLMjAuZ29v", + "Z2xlLmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMS5BdXRvcmF0ZXJDb25maWdC", + "A+BBARJbChtpbmZlcmVuY2VfZ2VuZXJhdGlvbl9jb25maWcYBSABKAsyMS5n", + "b29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLkdlbmVyYXRpb25Db25m", + "aWdCA+BBASL0AQoSRXZhbHVhdGVEYXRhc2V0UnVuEhsKDm9wZXJhdGlvbl9u", + "YW1lGAEgASgJQgPgQQMSGwoOZXZhbHVhdGlvbl9ydW4YBSABKAlCA+BBAxIa", + "Cg1jaGVja3BvaW50X2lkGAIgASgJQgPgQQMSYAoZZXZhbHVhdGVfZGF0YXNl", + "dF9yZXNwb25zZRgDIAEoCzI4Lmdvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYx", + "YmV0YTEuRXZhbHVhdGVEYXRhc2V0UmVzcG9uc2VCA+BBAxImCgVlcnJvchgE", + "IAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzQgPgQQMiXAoUVHVuZWRNb2RlbENo", + "ZWNrcG9pbnQSFQoNY2hlY2twb2ludF9pZBgBIAEoCRINCgVlcG9jaBgCIAEo", + "AxIMCgRzdGVwGAMgASgDEhAKCGVuZHBvaW50GAQgASgJIoQBCg1QcmVUdW5l", + "ZE1vZGVsEj4KEHR1bmVkX21vZGVsX25hbWUYASABKAlCJPpBIQofYWlwbGF0", + "Zm9ybS5nb29nbGVhcGlzLmNvbS9Nb2RlbBIaCg1jaGVja3BvaW50X2lkGAIg", + "ASgJQgPgQQESFwoKYmFzZV9tb2RlbBgDIAEoCUID4EEDQuUBCiNjb20uZ29v", + "Z2xlLmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMUIOVHVuaW5nSm9iUHJvdG9Q", + "AVpDY2xvdWQuZ29vZ2xlLmNvbS9nby9haXBsYXRmb3JtL2FwaXYxYmV0YTEv", + "YWlwbGF0Zm9ybXBiO2FpcGxhdGZvcm1wYqoCH0dvb2dsZS5DbG91ZC5BSVBs", + "YXRmb3JtLlYxQmV0YTHKAh9Hb29nbGVcQ2xvdWRcQUlQbGF0Zm9ybVxWMWJl", + "dGEx6gIiR29vZ2xlOjpDbG91ZDo6QUlQbGF0Zm9ybTo6VjFiZXRhMWIGcHJv", + "dG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.ContentReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.EncryptionSpecReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.EvaluationServiceReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.JobStateReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.TuningJob), global::Google.Cloud.AIPlatform.V1Beta1.TuningJob.Parser, new[]{ "BaseModel", "PreTunedModel", "SupervisedTuningSpec", "DistillationSpec", "PartnerModelTuningSpec", "VeoTuningSpec", "Name", "TunedModelDisplayName", "Description", "CustomBaseModel", "State", "CreateTime", "StartTime", "EndTime", "UpdateTime", "Error", "Labels", "Experiment", "TunedModel", "TuningDataStats", "PipelineJob", "EncryptionSpec", "ServiceAccount", "OutputUri", "EvaluateDatasetRuns" }, new[]{ "SourceModel", "TuningSpec" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.TuningJob), global::Google.Cloud.AIPlatform.V1Beta1.TuningJob.Parser, new[]{ "BaseModel", "PreTunedModel", "SupervisedTuningSpec", "DistillationSpec", "PartnerModelTuningSpec", "VeoTuningSpec", "VeoLoraTuningSpec", "Name", "TunedModelDisplayName", "Description", "CustomBaseModel", "State", "CreateTime", "StartTime", "EndTime", "UpdateTime", "Error", "Labels", "Experiment", "TunedModel", "TuningDataStats", "PipelineJob", "EncryptionSpec", "ServiceAccount", "OutputUri", "EvaluateDatasetRuns" }, new[]{ "SourceModel", "TuningSpec" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.TunedModel), global::Google.Cloud.AIPlatform.V1Beta1.TunedModel.Parser, new[]{ "Model", "Endpoint", "Checkpoints" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.SupervisedTuningDatasetDistribution), global::Google.Cloud.AIPlatform.V1Beta1.SupervisedTuningDatasetDistribution.Parser, new[]{ "Sum", "BillableSum", "Min", "Max", "Mean", "Median", "P5", "P95", "Buckets" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.SupervisedTuningDatasetDistribution.Types.DatasetBucket), global::Google.Cloud.AIPlatform.V1Beta1.SupervisedTuningDatasetDistribution.Types.DatasetBucket.Parser, new[]{ "Count", "Left", "Right" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.SupervisedTuningDataStats), global::Google.Cloud.AIPlatform.V1Beta1.SupervisedTuningDataStats.Parser, new[]{ "TuningDatasetExampleCount", "TotalTuningCharacterCount", "TotalBillableCharacterCount", "TotalBillableTokenCount", "TuningStepCount", "UserInputTokenDistribution", "UserOutputTokenDistribution", "UserMessagePerExampleDistribution", "UserDatasetExamples", "TotalTruncatedExampleCount", "TruncatedExampleIndices", "DroppedExampleReasons" }, null, null, null, null), @@ -227,8 +244,9 @@ static TuningJobReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.DistillationHyperParameters), global::Google.Cloud.AIPlatform.V1Beta1.DistillationHyperParameters.Parser, new[]{ "EpochCount", "LearningRateMultiplier", "AdapterSize" }, new[]{ "EpochCount", "LearningRateMultiplier" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.PartnerModelTuningSpec), global::Google.Cloud.AIPlatform.V1Beta1.PartnerModelTuningSpec.Parser, new[]{ "TrainingDatasetUri", "ValidationDatasetUri", "HyperParameters" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.TunedModelRef), global::Google.Cloud.AIPlatform.V1Beta1.TunedModelRef.Parser, new[]{ "TunedModel", "TuningJob", "PipelineJob" }, new[]{ "TunedModelRef" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters), global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Parser, new[]{ "EpochCount", "LearningRateMultiplier", "TuningTask" }, null, new[]{ typeof(global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.TuningTask) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters), global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Parser, new[]{ "EpochCount", "LearningRateMultiplier", "TuningTask", "VeoDataMixtureRatio", "TuningSpeed", "AdapterSize" }, new[]{ "VeoDataMixtureRatio", "TuningSpeed" }, new[]{ typeof(global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.TuningTask), typeof(global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.TuningSpeed), typeof(global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.AdapterSize) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.VeoTuningSpec), global::Google.Cloud.AIPlatform.V1Beta1.VeoTuningSpec.Parser, new[]{ "TrainingDatasetUri", "ValidationDatasetUri", "HyperParameters" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.VeoLoraTuningSpec), global::Google.Cloud.AIPlatform.V1Beta1.VeoLoraTuningSpec.Parser, new[]{ "TrainingDatasetUri", "ValidationDatasetUri", "HyperParameters" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.EvaluationConfig), global::Google.Cloud.AIPlatform.V1Beta1.EvaluationConfig.Parser, new[]{ "Metrics", "OutputConfig", "AutoraterConfig", "InferenceGenerationConfig" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.EvaluateDatasetRun), global::Google.Cloud.AIPlatform.V1Beta1.EvaluateDatasetRun.Parser, new[]{ "OperationName", "EvaluationRun", "CheckpointId", "EvaluateDatasetResponse", "Error" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.TunedModelCheckpoint), global::Google.Cloud.AIPlatform.V1Beta1.TunedModelCheckpoint.Parser, new[]{ "CheckpointId", "Epoch", "Step", "Endpoint" }, null, null, null, null), @@ -318,6 +336,9 @@ public TuningJob(TuningJob other) : this() { case TuningSpecOneofCase.VeoTuningSpec: VeoTuningSpec = other.VeoTuningSpec.Clone(); break; + case TuningSpecOneofCase.VeoLoraTuningSpec: + VeoLoraTuningSpec = other.VeoLoraTuningSpec.Clone(); + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -434,6 +455,21 @@ public void ClearBaseModel() { } } + /// Field number for the "veo_lora_tuning_spec" field. + public const int VeoLoraTuningSpecFieldNumber = 38; + /// + /// Tuning Spec for Veo LoRA Tuning. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.AIPlatform.V1Beta1.VeoLoraTuningSpec VeoLoraTuningSpec { + get { return tuningSpecCase_ == TuningSpecOneofCase.VeoLoraTuningSpec ? (global::Google.Cloud.AIPlatform.V1Beta1.VeoLoraTuningSpec) tuningSpec_ : null; } + set { + tuningSpec_ = value; + tuningSpecCase_ = value == null ? TuningSpecOneofCase.None : TuningSpecOneofCase.VeoLoraTuningSpec; + } + } + /// Field number for the "name" field. public const int NameFieldNumber = 1; private string name_ = ""; @@ -787,6 +823,7 @@ public enum TuningSpecOneofCase { DistillationSpec = 17, PartnerModelTuningSpec = 21, VeoTuningSpec = 33, + VeoLoraTuningSpec = 38, } private TuningSpecOneofCase tuningSpecCase_ = TuningSpecOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -823,6 +860,7 @@ public bool Equals(TuningJob other) { if (!object.Equals(DistillationSpec, other.DistillationSpec)) return false; if (!object.Equals(PartnerModelTuningSpec, other.PartnerModelTuningSpec)) return false; if (!object.Equals(VeoTuningSpec, other.VeoTuningSpec)) return false; + if (!object.Equals(VeoLoraTuningSpec, other.VeoLoraTuningSpec)) return false; if (Name != other.Name) return false; if (TunedModelDisplayName != other.TunedModelDisplayName) return false; if (Description != other.Description) return false; @@ -857,6 +895,7 @@ public override int GetHashCode() { if (tuningSpecCase_ == TuningSpecOneofCase.DistillationSpec) hash ^= DistillationSpec.GetHashCode(); if (tuningSpecCase_ == TuningSpecOneofCase.PartnerModelTuningSpec) hash ^= PartnerModelTuningSpec.GetHashCode(); if (tuningSpecCase_ == TuningSpecOneofCase.VeoTuningSpec) hash ^= VeoTuningSpec.GetHashCode(); + if (tuningSpecCase_ == TuningSpecOneofCase.VeoLoraTuningSpec) hash ^= VeoLoraTuningSpec.GetHashCode(); if (Name.Length != 0) hash ^= Name.GetHashCode(); if (TunedModelDisplayName.Length != 0) hash ^= TunedModelDisplayName.GetHashCode(); if (Description.Length != 0) hash ^= Description.GetHashCode(); @@ -990,6 +1029,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(138, 2); output.WriteMessage(VeoTuningSpec); } + if (tuningSpecCase_ == TuningSpecOneofCase.VeoLoraTuningSpec) { + output.WriteRawTag(178, 2); + output.WriteMessage(VeoLoraTuningSpec); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1094,6 +1137,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(138, 2); output.WriteMessage(VeoTuningSpec); } + if (tuningSpecCase_ == TuningSpecOneofCase.VeoLoraTuningSpec) { + output.WriteRawTag(178, 2); + output.WriteMessage(VeoLoraTuningSpec); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1122,6 +1169,9 @@ public int CalculateSize() { if (tuningSpecCase_ == TuningSpecOneofCase.VeoTuningSpec) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(VeoTuningSpec); } + if (tuningSpecCase_ == TuningSpecOneofCase.VeoLoraTuningSpec) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(VeoLoraTuningSpec); + } if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } @@ -1301,6 +1351,12 @@ public void MergeFrom(TuningJob other) { } VeoTuningSpec.MergeFrom(other.VeoTuningSpec); break; + case TuningSpecOneofCase.VeoLoraTuningSpec: + if (VeoLoraTuningSpec == null) { + VeoLoraTuningSpec = new global::Google.Cloud.AIPlatform.V1Beta1.VeoLoraTuningSpec(); + } + VeoLoraTuningSpec.MergeFrom(other.VeoLoraTuningSpec); + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1471,6 +1527,15 @@ public void MergeFrom(pb::CodedInputStream input) { VeoTuningSpec = subBuilder; break; } + case 306: { + global::Google.Cloud.AIPlatform.V1Beta1.VeoLoraTuningSpec subBuilder = new global::Google.Cloud.AIPlatform.V1Beta1.VeoLoraTuningSpec(); + if (tuningSpecCase_ == TuningSpecOneofCase.VeoLoraTuningSpec) { + subBuilder.MergeFrom(VeoLoraTuningSpec); + } + input.ReadMessage(subBuilder); + VeoLoraTuningSpec = subBuilder; + break; + } } } #endif @@ -1639,6 +1704,15 @@ public void MergeFrom(pb::CodedInputStream input) { VeoTuningSpec = subBuilder; break; } + case 306: { + global::Google.Cloud.AIPlatform.V1Beta1.VeoLoraTuningSpec subBuilder = new global::Google.Cloud.AIPlatform.V1Beta1.VeoLoraTuningSpec(); + if (tuningSpecCase_ == TuningSpecOneofCase.VeoLoraTuningSpec) { + subBuilder.MergeFrom(VeoLoraTuningSpec); + } + input.ReadMessage(subBuilder); + VeoLoraTuningSpec = subBuilder; + break; + } } } } @@ -7533,6 +7607,7 @@ public sealed partial class VeoHyperParameters : pb::IMessage _parser = new pb::MessageParser(() => new VeoHyperParameters()); private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } @@ -7560,9 +7635,13 @@ public VeoHyperParameters() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VeoHyperParameters(VeoHyperParameters other) : this() { + _hasBits0 = other._hasBits0; epochCount_ = other.epochCount_; learningRateMultiplier_ = other.learningRateMultiplier_; tuningTask_ = other.tuningTask_; + veoDataMixtureRatio_ = other.veoDataMixtureRatio_; + tuningSpeed_ = other.tuningSpeed_; + adapterSize_ = other.adapterSize_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -7618,6 +7697,84 @@ public double LearningRateMultiplier { } } + /// Field number for the "veo_data_mixture_ratio" field. + public const int VeoDataMixtureRatioFieldNumber = 4; + private readonly static double VeoDataMixtureRatioDefaultValue = 0D; + + private double veoDataMixtureRatio_; + /// + /// Optional. The ratio of Google internal dataset to use in the training + /// mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal + /// dataset and 80% of user dataset will be used for training. If not set, the + /// default value is 0.1. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double VeoDataMixtureRatio { + get { if ((_hasBits0 & 1) != 0) { return veoDataMixtureRatio_; } else { return VeoDataMixtureRatioDefaultValue; } } + set { + _hasBits0 |= 1; + veoDataMixtureRatio_ = value; + } + } + /// Gets whether the "veo_data_mixture_ratio" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasVeoDataMixtureRatio { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "veo_data_mixture_ratio" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearVeoDataMixtureRatio() { + _hasBits0 &= ~1; + } + + /// Field number for the "tuning_speed" field. + public const int TuningSpeedFieldNumber = 5; + private readonly static global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.TuningSpeed TuningSpeedDefaultValue = global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.TuningSpeed.Unspecified; + + private global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.TuningSpeed tuningSpeed_; + /// + /// The speed of the tuning job. Only supported for Veo 3.0 models. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.TuningSpeed TuningSpeed { + get { if ((_hasBits0 & 2) != 0) { return tuningSpeed_; } else { return TuningSpeedDefaultValue; } } + set { + _hasBits0 |= 2; + tuningSpeed_ = value; + } + } + /// Gets whether the "tuning_speed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTuningSpeed { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "tuning_speed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTuningSpeed() { + _hasBits0 &= ~2; + } + + /// Field number for the "adapter_size" field. + public const int AdapterSizeFieldNumber = 6; + private global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.AdapterSize adapterSize_ = global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.AdapterSize.Unspecified; + /// + /// Optional. The adapter size for LoRA tuning. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.AdapterSize AdapterSize { + get { return adapterSize_; } + set { + adapterSize_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -7636,6 +7793,9 @@ public bool Equals(VeoHyperParameters other) { if (EpochCount != other.EpochCount) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LearningRateMultiplier, other.LearningRateMultiplier)) return false; if (TuningTask != other.TuningTask) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(VeoDataMixtureRatio, other.VeoDataMixtureRatio)) return false; + if (TuningSpeed != other.TuningSpeed) return false; + if (AdapterSize != other.AdapterSize) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7646,6 +7806,9 @@ public override int GetHashCode() { if (EpochCount != 0L) hash ^= EpochCount.GetHashCode(); if (LearningRateMultiplier != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LearningRateMultiplier); if (TuningTask != global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.TuningTask.Unspecified) hash ^= TuningTask.GetHashCode(); + if (HasVeoDataMixtureRatio) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(VeoDataMixtureRatio); + if (HasTuningSpeed) hash ^= TuningSpeed.GetHashCode(); + if (AdapterSize != global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.AdapterSize.Unspecified) hash ^= AdapterSize.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7676,6 +7839,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteEnum((int) TuningTask); } + if (HasVeoDataMixtureRatio) { + output.WriteRawTag(33); + output.WriteDouble(VeoDataMixtureRatio); + } + if (HasTuningSpeed) { + output.WriteRawTag(40); + output.WriteEnum((int) TuningSpeed); + } + if (AdapterSize != global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.AdapterSize.Unspecified) { + output.WriteRawTag(48); + output.WriteEnum((int) AdapterSize); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7698,6 +7873,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteEnum((int) TuningTask); } + if (HasVeoDataMixtureRatio) { + output.WriteRawTag(33); + output.WriteDouble(VeoDataMixtureRatio); + } + if (HasTuningSpeed) { + output.WriteRawTag(40); + output.WriteEnum((int) TuningSpeed); + } + if (AdapterSize != global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.AdapterSize.Unspecified) { + output.WriteRawTag(48); + output.WriteEnum((int) AdapterSize); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7717,6 +7904,15 @@ public int CalculateSize() { if (TuningTask != global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.TuningTask.Unspecified) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TuningTask); } + if (HasVeoDataMixtureRatio) { + size += 1 + 8; + } + if (HasTuningSpeed) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TuningSpeed); + } + if (AdapterSize != global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.AdapterSize.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AdapterSize); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7738,6 +7934,15 @@ public void MergeFrom(VeoHyperParameters other) { if (other.TuningTask != global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.TuningTask.Unspecified) { TuningTask = other.TuningTask; } + if (other.HasVeoDataMixtureRatio) { + VeoDataMixtureRatio = other.VeoDataMixtureRatio; + } + if (other.HasTuningSpeed) { + TuningSpeed = other.TuningSpeed; + } + if (other.AdapterSize != global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.AdapterSize.Unspecified) { + AdapterSize = other.AdapterSize; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7769,6 +7974,18 @@ public void MergeFrom(pb::CodedInputStream input) { TuningTask = (global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.TuningTask) input.ReadEnum(); break; } + case 33: { + VeoDataMixtureRatio = input.ReadDouble(); + break; + } + case 40: { + TuningSpeed = (global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.TuningSpeed) input.ReadEnum(); + break; + } + case 48: { + AdapterSize = (global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.AdapterSize) input.ReadEnum(); + break; + } } } #endif @@ -7800,6 +8017,18 @@ public void MergeFrom(pb::CodedInputStream input) { TuningTask = (global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.TuningTask) input.ReadEnum(); break; } + case 33: { + VeoDataMixtureRatio = input.ReadDouble(); + break; + } + case 40: { + TuningSpeed = (global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.TuningSpeed) input.ReadEnum(); + break; + } + case 48: { + AdapterSize = (global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters.Types.AdapterSize) input.ReadEnum(); + break; + } } } } @@ -7826,6 +8055,51 @@ public enum TuningTask { /// Tuning task for text to video. /// [pbr::OriginalName("TUNING_TASK_T2V")] T2V = 2, + /// + /// Tuning task for reference to video. + /// + [pbr::OriginalName("TUNING_TASK_R2V")] R2V = 3, + } + + /// + /// The speed of the tuning job. Only supported for Veo 3.0 models. + /// + public enum TuningSpeed { + /// + /// The default / unset value. For Veo 3.0 models, this defaults to FAST. + /// + [pbr::OriginalName("TUNING_SPEED_UNSPECIFIED")] Unspecified = 0, + /// + /// Regular tuning speed. + /// + [pbr::OriginalName("REGULAR")] Regular = 1, + /// + /// Fast tuning speed. + /// + [pbr::OriginalName("FAST")] Fast = 2, + } + + /// + /// Adapter size for LoRA tuning. + /// + public enum AdapterSize { + /// + /// Adapter size is unspecified. + /// + [pbr::OriginalName("ADAPTER_SIZE_UNSPECIFIED")] Unspecified = 0, + /// + /// Adapter size 8. + /// This is the default adapter size for Veo LoRA tuning. + /// + [pbr::OriginalName("ADAPTER_SIZE_EIGHT")] Eight = 8, + /// + /// Adapter size 16. + /// + [pbr::OriginalName("ADAPTER_SIZE_SIXTEEN")] Sixteen = 16, + /// + /// Adapter size 32. + /// + [pbr::OriginalName("ADAPTER_SIZE_THIRTY_TWO")] ThirtyTwo = 32, } } @@ -8130,6 +8404,303 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Tuning Spec for Veo LoRA Model Tuning. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VeoLoraTuningSpec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VeoLoraTuningSpec()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.AIPlatform.V1Beta1.TuningJobReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VeoLoraTuningSpec() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VeoLoraTuningSpec(VeoLoraTuningSpec other) : this() { + trainingDatasetUri_ = other.trainingDatasetUri_; + validationDatasetUri_ = other.validationDatasetUri_; + hyperParameters_ = other.hyperParameters_ != null ? other.hyperParameters_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VeoLoraTuningSpec Clone() { + return new VeoLoraTuningSpec(this); + } + + /// Field number for the "training_dataset_uri" field. + public const int TrainingDatasetUriFieldNumber = 1; + private string trainingDatasetUri_ = ""; + /// + /// Required. Training dataset used for tuning. The dataset can be specified as + /// either a Cloud Storage path to a JSONL file or as the resource name of a + /// Vertex Multimodal Dataset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TrainingDatasetUri { + get { return trainingDatasetUri_; } + set { + trainingDatasetUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "validation_dataset_uri" field. + public const int ValidationDatasetUriFieldNumber = 2; + private string validationDatasetUri_ = ""; + /// + /// Optional. Validation dataset used for tuning. The dataset can be specified + /// as either a Cloud Storage path to a JSONL file or as the resource name of a + /// Vertex Multimodal Dataset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ValidationDatasetUri { + get { return validationDatasetUri_; } + set { + validationDatasetUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "hyper_parameters" field. + public const int HyperParametersFieldNumber = 3; + private global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters hyperParameters_; + /// + /// Optional. Hyperparameters for Veo LoRA. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters HyperParameters { + get { return hyperParameters_; } + set { + hyperParameters_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VeoLoraTuningSpec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VeoLoraTuningSpec other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TrainingDatasetUri != other.TrainingDatasetUri) return false; + if (ValidationDatasetUri != other.ValidationDatasetUri) return false; + if (!object.Equals(HyperParameters, other.HyperParameters)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TrainingDatasetUri.Length != 0) hash ^= TrainingDatasetUri.GetHashCode(); + if (ValidationDatasetUri.Length != 0) hash ^= ValidationDatasetUri.GetHashCode(); + if (hyperParameters_ != null) hash ^= HyperParameters.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TrainingDatasetUri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TrainingDatasetUri); + } + if (ValidationDatasetUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ValidationDatasetUri); + } + if (hyperParameters_ != null) { + output.WriteRawTag(26); + output.WriteMessage(HyperParameters); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TrainingDatasetUri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TrainingDatasetUri); + } + if (ValidationDatasetUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ValidationDatasetUri); + } + if (hyperParameters_ != null) { + output.WriteRawTag(26); + output.WriteMessage(HyperParameters); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TrainingDatasetUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrainingDatasetUri); + } + if (ValidationDatasetUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ValidationDatasetUri); + } + if (hyperParameters_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HyperParameters); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VeoLoraTuningSpec other) { + if (other == null) { + return; + } + if (other.TrainingDatasetUri.Length != 0) { + TrainingDatasetUri = other.TrainingDatasetUri; + } + if (other.ValidationDatasetUri.Length != 0) { + ValidationDatasetUri = other.ValidationDatasetUri; + } + if (other.hyperParameters_ != null) { + if (hyperParameters_ == null) { + HyperParameters = new global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters(); + } + HyperParameters.MergeFrom(other.HyperParameters); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + TrainingDatasetUri = input.ReadString(); + break; + } + case 18: { + ValidationDatasetUri = input.ReadString(); + break; + } + case 26: { + if (hyperParameters_ == null) { + HyperParameters = new global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters(); + } + input.ReadMessage(HyperParameters); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + TrainingDatasetUri = input.ReadString(); + break; + } + case 18: { + ValidationDatasetUri = input.ReadString(); + break; + } + case 26: { + if (hyperParameters_ == null) { + HyperParameters = new global::Google.Cloud.AIPlatform.V1Beta1.VeoHyperParameters(); + } + input.ReadMessage(HyperParameters); + break; + } + } + } + } + #endif + + } + /// /// Evaluation Config for Tuning Job. /// @@ -8148,7 +8719,7 @@ public sealed partial class EvaluationConfig : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.AIPlatform.V1Beta1.TuningJobReflection.Descriptor.MessageTypes[16]; } + get { return global::Google.Cloud.AIPlatform.V1Beta1.TuningJobReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8489,7 +9060,7 @@ public sealed partial class EvaluateDatasetRun : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.AIPlatform.V1Beta1.TuningJobReflection.Descriptor.MessageTypes[19]; } + get { return global::Google.Cloud.AIPlatform.V1Beta1.TuningJobReflection.Descriptor.MessageTypes[20]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] diff --git a/generator-input/pipeline-state.json b/generator-input/pipeline-state.json index 278d01578324..312a19b875c0 100644 --- a/generator-input/pipeline-state.json +++ b/generator-input/pipeline-state.json @@ -277,7 +277,7 @@ "generationAutomationLevel": "AUTOMATION_LEVEL_AUTOMATIC", "releaseAutomationLevel": "AUTOMATION_LEVEL_AUTOMATIC", "releaseTimestamp": "2026-04-06T14:06:48.871341990Z", - "lastGeneratedCommit": "a78b5838b801428bfe5b85758727a46d830b7f39", + "lastGeneratedCommit": "939ba3bf8408af83f0f73ae35c76c4b11a8c8c8d", "lastReleasedCommit": "2fff02315f91f5063d3266adfa32c6bed19a080c", "apiPaths": [ "google/cloud/aiplatform/v1beta1" From ce182f37008091f076d8d891b46be52e06d149be Mon Sep 17 00:00:00 2001 From: Google Cloud SDK Librarian Date: Wed, 22 Apr 2026 07:09:15 +0000 Subject: [PATCH 2/2] feat: Initial generation for Google.DevicesAndServices.Health.V4 --- .github/renovate.json | 1 + .../.repo-metadata.json | 8 + ...teDataPointsRequestObjectAsyncSnippet.g.cs | 68 + ...hDeleteDataPointsRequestObjectSnippet.g.cs | 67 + ...iceClient.CreateDataPointAsyncSnippet.g.cs | 62 + ...ateDataPointRequestObjectAsyncSnippet.g.cs | 65 + ...t.CreateDataPointRequestObjectSnippet.g.cs | 64 + ...ateDataPointResourceNamesAsyncSnippet.g.cs | 62 + ...t.CreateDataPointResourceNamesSnippet.g.cs | 61 + ...sServiceClient.CreateDataPointSnippet.g.cs | 61 + ...UpDataPointsRequestObjectAsyncSnippet.g.cs | 52 + ...yRollUpDataPointsRequestObjectSnippet.g.cs | 51 + ...eClient.ExportExerciseTcxAsyncSnippet.g.cs | 44 + ...tExerciseTcxRequestObjectAsyncSnippet.g.cs | 48 + ...ExportExerciseTcxRequestObjectSnippet.g.cs | 47 + ...tExerciseTcxResourceNamesAsyncSnippet.g.cs | 44 + ...ExportExerciseTcxResourceNamesSnippet.g.cs | 43 + ...erviceClient.ExportExerciseTcxSnippet.g.cs | 43 + ...viceClient.ListDataPointsAsyncSnippet.g.cs | 78 + ...stDataPointsRequestObjectAsyncSnippet.g.cs | 82 + ...nt.ListDataPointsRequestObjectSnippet.g.cs | 81 + ...stDataPointsResourceNamesAsyncSnippet.g.cs | 78 + ...nt.ListDataPointsResourceNamesSnippet.g.cs | 77 + ...tsServiceClient.ListDataPointsSnippet.g.cs | 77 + ...leDataPointsRequestObjectAsyncSnippet.g.cs | 83 + ...concileDataPointsRequestObjectSnippet.g.cs | 82 + ...UpDataPointsRequestObjectAsyncSnippet.g.cs | 86 + ....RollUpDataPointsRequestObjectSnippet.g.cs | 85 + ...iceClient.UpdateDataPointAsyncSnippet.g.cs | 61 + ...ateDataPointRequestObjectAsyncSnippet.g.cs | 64 + ...t.UpdateDataPointRequestObjectSnippet.g.cs | 63 + ...sServiceClient.UpdateDataPointSnippet.g.cs | 60 + ...ervices.Health.V4.GeneratedSnippets.csproj | 20 + ...ServiceClient.GetIdentityAsyncSnippet.g.cs | 44 + ....GetIdentityRequestObjectAsyncSnippet.g.cs | 47 + ...lient.GetIdentityRequestObjectSnippet.g.cs | 46 + ....GetIdentityResourceNamesAsyncSnippet.g.cs | 44 + ...lient.GetIdentityResourceNamesSnippet.g.cs | 43 + ...ofileServiceClient.GetIdentitySnippet.g.cs | 43 + ...eServiceClient.GetProfileAsyncSnippet.g.cs | 44 + ...t.GetProfileRequestObjectAsyncSnippet.g.cs | 47 + ...Client.GetProfileRequestObjectSnippet.g.cs | 46 + ...t.GetProfileResourceNamesAsyncSnippet.g.cs | 44 + ...Client.GetProfileResourceNamesSnippet.g.cs | 43 + ...rofileServiceClient.GetProfileSnippet.g.cs | 43 + ...ServiceClient.GetSettingsAsyncSnippet.g.cs | 44 + ....GetSettingsRequestObjectAsyncSnippet.g.cs | 47 + ...lient.GetSettingsRequestObjectSnippet.g.cs | 46 + ....GetSettingsResourceNamesAsyncSnippet.g.cs | 44 + ...lient.GetSettingsResourceNamesSnippet.g.cs | 43 + ...ofileServiceClient.GetSettingsSnippet.g.cs | 43 + ...rviceClient.UpdateProfileAsyncSnippet.g.cs | 46 + ...pdateProfileRequestObjectAsyncSnippet.g.cs | 49 + ...ent.UpdateProfileRequestObjectSnippet.g.cs | 48 + ...ileServiceClient.UpdateProfileSnippet.g.cs | 45 + ...viceClient.UpdateSettingsAsyncSnippet.g.cs | 46 + ...dateSettingsRequestObjectAsyncSnippet.g.cs | 49 + ...nt.UpdateSettingsRequestObjectSnippet.g.cs | 48 + ...leServiceClient.UpdateSettingsSnippet.g.cs | 45 + ...a_google.devicesandservices.health.v4.json | 2764 ++ .../DataPointsServiceClientSnippets.g.cs | 1028 + ...vicesAndServices.Health.V4.Snippets.csproj | 20 + .../HealthProfileServiceClientSnippets.g.cs | 415 + .../Google.DevicesAndServices.Health.V4.sln | 40 + .../DataCoordinates.g.cs | 1853 ++ .../DataModel.g.cs | 21087 ++++++++++++++++ .../DataPoints.g.cs | 11227 ++++++++ .../DataPointsGrpc.g.cs | 757 + .../DataPointsResourceNames.g.cs | 597 + .../DataPointsServiceClient.g.cs | 1545 ++ .../DataSource.g.cs | 1148 + ...Google.DevicesAndServices.Health.V4.csproj | 16 + .../HealthProfile.g.cs | 3071 +++ .../HealthProfileGrpc.g.cs | 514 + .../HealthProfileResourceNames.g.cs | 712 + .../HealthProfileServiceClient.g.cs | 984 + .../PackageApiMetadata.g.cs | 42 + .../ServiceCollectionExtensions.g.cs | 102 + .../gapic_metadata.json | 105 + generator-input/pipeline-state.json | 1 + 80 files changed, 51173 insertions(+) create mode 100644 apis/Google.DevicesAndServices.Health.V4/.repo-metadata.json create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.BatchDeleteDataPointsRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.BatchDeleteDataPointsRequestObjectSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointRequestObjectSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointResourceNamesSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.DailyRollUpDataPointsRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.DailyRollUpDataPointsRequestObjectSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxRequestObjectSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxResourceNamesSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsRequestObjectSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsResourceNamesSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ReconcileDataPointsRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ReconcileDataPointsRequestObjectSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.RollUpDataPointsRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.RollUpDataPointsRequestObjectSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointRequestObjectSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/Google.DevicesAndServices.Health.V4.GeneratedSnippets.csproj create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityRequestObjectSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityResourceNamesSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentitySnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileRequestObjectSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileResourceNamesSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsRequestObjectSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsResourceNamesSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileRequestObjectSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsRequestObjectSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsSnippet.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/snippet_metadata_google.devicesandservices.health.v4.json create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.Snippets/DataPointsServiceClientSnippets.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.Snippets/Google.DevicesAndServices.Health.V4.Snippets.csproj create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.Snippets/HealthProfileServiceClientSnippets.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.sln create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataCoordinates.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataModel.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPoints.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPointsGrpc.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPointsResourceNames.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPointsServiceClient.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataSource.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.csproj create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfile.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfileGrpc.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfileResourceNames.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfileServiceClient.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/PackageApiMetadata.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/ServiceCollectionExtensions.g.cs create mode 100644 apis/Google.DevicesAndServices.Health.V4/gapic_metadata.json diff --git a/.github/renovate.json b/.github/renovate.json index aa94b4e720e1..c9fa1f17d3cc 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -306,6 +306,7 @@ "apis/Google.Cloud.WorkloadManager.V1/Google.Cloud.WorkloadManager.V1/**", "apis/Google.Cloud.Workstations.V1/Google.Cloud.Workstations.V1/**", "apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/**", + "apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/**", "apis/Google.Geo.Type/Google.Geo.Type/**", "apis/Google.Identity.AccessContextManager.Type/Google.Identity.AccessContextManager.Type/**", "apis/Google.Identity.AccessContextManager.V1/Google.Identity.AccessContextManager.V1/**", diff --git a/apis/Google.DevicesAndServices.Health.V4/.repo-metadata.json b/apis/Google.DevicesAndServices.Health.V4/.repo-metadata.json new file mode 100644 index 000000000000..6988403d5cdd --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/.repo-metadata.json @@ -0,0 +1,8 @@ +{ + "distribution_name": "Google.DevicesAndServices.Health.V4", + "release_level": "unreleased", + "client_documentation": "https://googleapis.dev/dotnet/Google.DevicesAndServices.Health.V4/latest", + "library_type": "GAPIC_AUTO", + "language": "dotnet", + "api_shortname": "health" +} \ No newline at end of file diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.BatchDeleteDataPointsRequestObjectAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.BatchDeleteDataPointsRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..88f01573c2c5 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.BatchDeleteDataPointsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,68 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_BatchDeleteDataPoints_async] + using Google.DevicesAndServices.Health.V4; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for BatchDeleteDataPointsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task BatchDeleteDataPointsRequestObjectAsync() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + BatchDeleteDataPointsRequest request = new BatchDeleteDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + DataPointNames = + { + DataPointName.FromUserDataTypeDataPoint("[USER]", "[DATA_TYPE]", "[DATA_POINT]"), + }, + }; + // Make the request + Operation response = await dataPointsServiceClient.BatchDeleteDataPointsAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BatchDeleteDataPointsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataPointsServiceClient.PollOnceBatchDeleteDataPointsAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BatchDeleteDataPointsResponse retrievedResult = retrievedResponse.Result; + } + } + } + // [END health_v4_generated_DataPointsService_BatchDeleteDataPoints_async] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.BatchDeleteDataPointsRequestObjectSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.BatchDeleteDataPointsRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..7402d06f1c23 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.BatchDeleteDataPointsRequestObjectSnippet.g.cs @@ -0,0 +1,67 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_BatchDeleteDataPoints_sync] + using Google.DevicesAndServices.Health.V4; + using Google.LongRunning; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for BatchDeleteDataPoints + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void BatchDeleteDataPointsRequestObject() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + BatchDeleteDataPointsRequest request = new BatchDeleteDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + DataPointNames = + { + DataPointName.FromUserDataTypeDataPoint("[USER]", "[DATA_TYPE]", "[DATA_POINT]"), + }, + }; + // Make the request + Operation response = dataPointsServiceClient.BatchDeleteDataPoints(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BatchDeleteDataPointsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataPointsServiceClient.PollOnceBatchDeleteDataPoints(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BatchDeleteDataPointsResponse retrievedResult = retrievedResponse.Result; + } + } + } + // [END health_v4_generated_DataPointsService_BatchDeleteDataPoints_sync] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointAsyncSnippet.g.cs new file mode 100644 index 000000000000..e609a16c780d --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_CreateDataPoint_async_flattened] + using Google.DevicesAndServices.Health.V4; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for CreateDataPointAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateDataPointAsync() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "users/[USER]/dataTypes/[DATA_TYPE]"; + DataPoint dataPoint = new DataPoint(); + // Make the request + Operation response = await dataPointsServiceClient.CreateDataPointAsync(parent, dataPoint); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataPointsServiceClient.PollOnceCreateDataPointAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + } + } + // [END health_v4_generated_DataPointsService_CreateDataPoint_async_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointRequestObjectAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..c8a7329cb2bd --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,65 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_CreateDataPoint_async] + using Google.DevicesAndServices.Health.V4; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for CreateDataPointAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateDataPointRequestObjectAsync() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateDataPointRequest request = new CreateDataPointRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + DataPoint = new DataPoint(), + }; + // Make the request + Operation response = await dataPointsServiceClient.CreateDataPointAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataPointsServiceClient.PollOnceCreateDataPointAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + } + } + // [END health_v4_generated_DataPointsService_CreateDataPoint_async] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointRequestObjectSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..6610cd90702e --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointRequestObjectSnippet.g.cs @@ -0,0 +1,64 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_CreateDataPoint_sync] + using Google.DevicesAndServices.Health.V4; + using Google.LongRunning; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for CreateDataPoint + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateDataPointRequestObject() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + CreateDataPointRequest request = new CreateDataPointRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + DataPoint = new DataPoint(), + }; + // Make the request + Operation response = dataPointsServiceClient.CreateDataPoint(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataPointsServiceClient.PollOnceCreateDataPoint(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + } + } + // [END health_v4_generated_DataPointsService_CreateDataPoint_sync] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointResourceNamesAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..2483f67c1241 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_CreateDataPoint_async_flattened_resourceNames] + using Google.DevicesAndServices.Health.V4; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for CreateDataPointAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateDataPointResourceNamesAsync() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + DataTypeName parent = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"); + DataPoint dataPoint = new DataPoint(); + // Make the request + Operation response = await dataPointsServiceClient.CreateDataPointAsync(parent, dataPoint); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataPointsServiceClient.PollOnceCreateDataPointAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + } + } + // [END health_v4_generated_DataPointsService_CreateDataPoint_async_flattened_resourceNames] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointResourceNamesSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..038cce1edd3a --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointResourceNamesSnippet.g.cs @@ -0,0 +1,61 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_CreateDataPoint_sync_flattened_resourceNames] + using Google.DevicesAndServices.Health.V4; + using Google.LongRunning; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for CreateDataPoint + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateDataPointResourceNames() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + DataTypeName parent = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"); + DataPoint dataPoint = new DataPoint(); + // Make the request + Operation response = dataPointsServiceClient.CreateDataPoint(parent, dataPoint); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataPointsServiceClient.PollOnceCreateDataPoint(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + } + } + // [END health_v4_generated_DataPointsService_CreateDataPoint_sync_flattened_resourceNames] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointSnippet.g.cs new file mode 100644 index 000000000000..618f26af7523 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.CreateDataPointSnippet.g.cs @@ -0,0 +1,61 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_CreateDataPoint_sync_flattened] + using Google.DevicesAndServices.Health.V4; + using Google.LongRunning; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for CreateDataPoint + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateDataPoint() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + string parent = "users/[USER]/dataTypes/[DATA_TYPE]"; + DataPoint dataPoint = new DataPoint(); + // Make the request + Operation response = dataPointsServiceClient.CreateDataPoint(parent, dataPoint); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataPointsServiceClient.PollOnceCreateDataPoint(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + } + } + // [END health_v4_generated_DataPointsService_CreateDataPoint_sync_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.DailyRollUpDataPointsRequestObjectAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.DailyRollUpDataPointsRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..f368716d8ce1 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.DailyRollUpDataPointsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,52 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_DailyRollUpDataPoints_async] + using Google.DevicesAndServices.Health.V4; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for DailyRollUpDataPointsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DailyRollUpDataPointsRequestObjectAsync() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + DailyRollUpDataPointsRequest request = new DailyRollUpDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + Range = new CivilTimeInterval(), + WindowSizeDays = 0, + PageSize = 0, + PageToken = "", + DataSourceFamily = "", + }; + // Make the request + DailyRollUpDataPointsResponse response = await dataPointsServiceClient.DailyRollUpDataPointsAsync(request); + } + } + // [END health_v4_generated_DataPointsService_DailyRollUpDataPoints_async] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.DailyRollUpDataPointsRequestObjectSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.DailyRollUpDataPointsRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..7d41119fb0c7 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.DailyRollUpDataPointsRequestObjectSnippet.g.cs @@ -0,0 +1,51 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_DailyRollUpDataPoints_sync] + using Google.DevicesAndServices.Health.V4; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for DailyRollUpDataPoints + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DailyRollUpDataPointsRequestObject() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + DailyRollUpDataPointsRequest request = new DailyRollUpDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + Range = new CivilTimeInterval(), + WindowSizeDays = 0, + PageSize = 0, + PageToken = "", + DataSourceFamily = "", + }; + // Make the request + DailyRollUpDataPointsResponse response = dataPointsServiceClient.DailyRollUpDataPoints(request); + } + } + // [END health_v4_generated_DataPointsService_DailyRollUpDataPoints_sync] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxAsyncSnippet.g.cs new file mode 100644 index 000000000000..59be19c3b153 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_ExportExerciseTcx_async_flattened] + using Google.DevicesAndServices.Health.V4; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for ExportExerciseTcxAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ExportExerciseTcxAsync() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "users/[USER]/dataTypes/[DATA_TYPE]/dataPoints/[DATA_POINT]"; + // Make the request + ExportExerciseTcxResponse response = await dataPointsServiceClient.ExportExerciseTcxAsync(name); + } + } + // [END health_v4_generated_DataPointsService_ExportExerciseTcx_async_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxRequestObjectAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..9adb8a3f2562 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_ExportExerciseTcx_async] + using Google.DevicesAndServices.Health.V4; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for ExportExerciseTcxAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ExportExerciseTcxRequestObjectAsync() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + ExportExerciseTcxRequest request = new ExportExerciseTcxRequest + { + DataPointName = DataPointName.FromUserDataTypeDataPoint("[USER]", "[DATA_TYPE]", "[DATA_POINT]"), + PartialData = false, + }; + // Make the request + ExportExerciseTcxResponse response = await dataPointsServiceClient.ExportExerciseTcxAsync(request); + } + } + // [END health_v4_generated_DataPointsService_ExportExerciseTcx_async] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxRequestObjectSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..b89778e84cc6 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxRequestObjectSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_ExportExerciseTcx_sync] + using Google.DevicesAndServices.Health.V4; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for ExportExerciseTcx + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ExportExerciseTcxRequestObject() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + ExportExerciseTcxRequest request = new ExportExerciseTcxRequest + { + DataPointName = DataPointName.FromUserDataTypeDataPoint("[USER]", "[DATA_TYPE]", "[DATA_POINT]"), + PartialData = false, + }; + // Make the request + ExportExerciseTcxResponse response = dataPointsServiceClient.ExportExerciseTcx(request); + } + } + // [END health_v4_generated_DataPointsService_ExportExerciseTcx_sync] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxResourceNamesAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..1720fe41bb8d --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_ExportExerciseTcx_async_flattened_resourceNames] + using Google.DevicesAndServices.Health.V4; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for ExportExerciseTcxAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ExportExerciseTcxResourceNamesAsync() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + DataPointName name = DataPointName.FromUserDataTypeDataPoint("[USER]", "[DATA_TYPE]", "[DATA_POINT]"); + // Make the request + ExportExerciseTcxResponse response = await dataPointsServiceClient.ExportExerciseTcxAsync(name); + } + } + // [END health_v4_generated_DataPointsService_ExportExerciseTcx_async_flattened_resourceNames] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxResourceNamesSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..038c55a1e066 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_ExportExerciseTcx_sync_flattened_resourceNames] + using Google.DevicesAndServices.Health.V4; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for ExportExerciseTcx + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ExportExerciseTcxResourceNames() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + DataPointName name = DataPointName.FromUserDataTypeDataPoint("[USER]", "[DATA_TYPE]", "[DATA_POINT]"); + // Make the request + ExportExerciseTcxResponse response = dataPointsServiceClient.ExportExerciseTcx(name); + } + } + // [END health_v4_generated_DataPointsService_ExportExerciseTcx_sync_flattened_resourceNames] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxSnippet.g.cs new file mode 100644 index 000000000000..312e957be5e0 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ExportExerciseTcxSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_ExportExerciseTcx_sync_flattened] + using Google.DevicesAndServices.Health.V4; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for ExportExerciseTcx + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ExportExerciseTcx() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + string name = "users/[USER]/dataTypes/[DATA_TYPE]/dataPoints/[DATA_POINT]"; + // Make the request + ExportExerciseTcxResponse response = dataPointsServiceClient.ExportExerciseTcx(name); + } + } + // [END health_v4_generated_DataPointsService_ExportExerciseTcx_sync_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsAsyncSnippet.g.cs new file mode 100644 index 000000000000..ae483241e4a3 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsAsyncSnippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_ListDataPoints_async_flattened] + using Google.Api.Gax; + using Google.DevicesAndServices.Health.V4; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for ListDataPointsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListDataPointsAsync() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "users/[USER]/dataTypes/[DATA_TYPE]"; + // Make the request + PagedAsyncEnumerable response = dataPointsServiceClient.ListDataPointsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (DataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (DataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END health_v4_generated_DataPointsService_ListDataPoints_async_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsRequestObjectAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..a9e5e1c734d9 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,82 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_ListDataPoints_async] + using Google.Api.Gax; + using Google.DevicesAndServices.Health.V4; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for ListDataPointsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListDataPointsRequestObjectAsync() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + ListDataPointsRequest request = new ListDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + Filter = "", + }; + // Make the request + PagedAsyncEnumerable response = dataPointsServiceClient.ListDataPointsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (DataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (DataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END health_v4_generated_DataPointsService_ListDataPoints_async] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsRequestObjectSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..8138dd0e1de2 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsRequestObjectSnippet.g.cs @@ -0,0 +1,81 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_ListDataPoints_sync] + using Google.Api.Gax; + using Google.DevicesAndServices.Health.V4; + using System; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for ListDataPoints + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListDataPointsRequestObject() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + ListDataPointsRequest request = new ListDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + Filter = "", + }; + // Make the request + PagedEnumerable response = dataPointsServiceClient.ListDataPoints(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (DataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (DataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END health_v4_generated_DataPointsService_ListDataPoints_sync] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsResourceNamesAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..631de78f29ff --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_ListDataPoints_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.DevicesAndServices.Health.V4; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for ListDataPointsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListDataPointsResourceNamesAsync() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + DataTypeName parent = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"); + // Make the request + PagedAsyncEnumerable response = dataPointsServiceClient.ListDataPointsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (DataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (DataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END health_v4_generated_DataPointsService_ListDataPoints_async_flattened_resourceNames] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsResourceNamesSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..173f3abeaebe --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsResourceNamesSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_ListDataPoints_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.DevicesAndServices.Health.V4; + using System; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for ListDataPoints + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListDataPointsResourceNames() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + DataTypeName parent = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"); + // Make the request + PagedEnumerable response = dataPointsServiceClient.ListDataPoints(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (DataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (DataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END health_v4_generated_DataPointsService_ListDataPoints_sync_flattened_resourceNames] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsSnippet.g.cs new file mode 100644 index 000000000000..7faa8c06d972 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ListDataPointsSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_ListDataPoints_sync_flattened] + using Google.Api.Gax; + using Google.DevicesAndServices.Health.V4; + using System; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for ListDataPoints + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListDataPoints() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + string parent = "users/[USER]/dataTypes/[DATA_TYPE]"; + // Make the request + PagedEnumerable response = dataPointsServiceClient.ListDataPoints(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (DataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (DataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END health_v4_generated_DataPointsService_ListDataPoints_sync_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ReconcileDataPointsRequestObjectAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ReconcileDataPointsRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..6a61686c8dd5 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ReconcileDataPointsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,83 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_ReconcileDataPoints_async] + using Google.Api.Gax; + using Google.DevicesAndServices.Health.V4; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for ReconcileDataPointsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ReconcileDataPointsRequestObjectAsync() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + ReconcileDataPointsRequest request = new ReconcileDataPointsRequest + { + Parent = "", + Filter = "", + DataSourceFamily = "", + }; + // Make the request + PagedAsyncEnumerable response = dataPointsServiceClient.ReconcileDataPointsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (ReconciledDataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ReconcileDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ReconciledDataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (ReconciledDataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END health_v4_generated_DataPointsService_ReconcileDataPoints_async] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ReconcileDataPointsRequestObjectSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ReconcileDataPointsRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..dbcdb6cf8474 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.ReconcileDataPointsRequestObjectSnippet.g.cs @@ -0,0 +1,82 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_ReconcileDataPoints_sync] + using Google.Api.Gax; + using Google.DevicesAndServices.Health.V4; + using System; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for ReconcileDataPoints + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ReconcileDataPointsRequestObject() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + ReconcileDataPointsRequest request = new ReconcileDataPointsRequest + { + Parent = "", + Filter = "", + DataSourceFamily = "", + }; + // Make the request + PagedEnumerable response = dataPointsServiceClient.ReconcileDataPoints(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ReconciledDataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ReconcileDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ReconciledDataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (ReconciledDataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END health_v4_generated_DataPointsService_ReconcileDataPoints_sync] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.RollUpDataPointsRequestObjectAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.RollUpDataPointsRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..61955eec68ff --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.RollUpDataPointsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,86 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_RollUpDataPoints_async] + using Google.Api.Gax; + using Google.DevicesAndServices.Health.V4; + using Google.Protobuf.WellKnownTypes; + using Google.Type; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for RollUpDataPointsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task RollUpDataPointsRequestObjectAsync() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + RollUpDataPointsRequest request = new RollUpDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + Range = new Interval(), + WindowSize = new Duration(), + DataSourceFamily = "", + }; + // Make the request + PagedAsyncEnumerable response = dataPointsServiceClient.RollUpDataPointsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (RollupDataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (RollUpDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (RollupDataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (RollupDataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END health_v4_generated_DataPointsService_RollUpDataPoints_async] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.RollUpDataPointsRequestObjectSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.RollUpDataPointsRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..a5df3533c922 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.RollUpDataPointsRequestObjectSnippet.g.cs @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_RollUpDataPoints_sync] + using Google.Api.Gax; + using Google.DevicesAndServices.Health.V4; + using Google.Protobuf.WellKnownTypes; + using Google.Type; + using System; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for RollUpDataPoints + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void RollUpDataPointsRequestObject() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + RollUpDataPointsRequest request = new RollUpDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + Range = new Interval(), + WindowSize = new Duration(), + DataSourceFamily = "", + }; + // Make the request + PagedEnumerable response = dataPointsServiceClient.RollUpDataPoints(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (RollupDataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (RollUpDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (RollupDataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (RollupDataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END health_v4_generated_DataPointsService_RollUpDataPoints_sync] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointAsyncSnippet.g.cs new file mode 100644 index 000000000000..591beb42ad87 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointAsyncSnippet.g.cs @@ -0,0 +1,61 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_UpdateDataPoint_async_flattened] + using Google.DevicesAndServices.Health.V4; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for UpdateDataPointAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateDataPointAsync() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + DataPoint dataPoint = new DataPoint(); + // Make the request + Operation response = await dataPointsServiceClient.UpdateDataPointAsync(dataPoint); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataPointsServiceClient.PollOnceUpdateDataPointAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + } + } + // [END health_v4_generated_DataPointsService_UpdateDataPoint_async_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointRequestObjectAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..f6cf8cadb3db --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,64 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_UpdateDataPoint_async] + using Google.DevicesAndServices.Health.V4; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for UpdateDataPointAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateDataPointRequestObjectAsync() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateDataPointRequest request = new UpdateDataPointRequest + { + DataPoint = new DataPoint(), + }; + // Make the request + Operation response = await dataPointsServiceClient.UpdateDataPointAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataPointsServiceClient.PollOnceUpdateDataPointAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + } + } + // [END health_v4_generated_DataPointsService_UpdateDataPoint_async] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointRequestObjectSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..3ac62a21fffc --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointRequestObjectSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_UpdateDataPoint_sync] + using Google.DevicesAndServices.Health.V4; + using Google.LongRunning; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for UpdateDataPoint + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateDataPointRequestObject() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + UpdateDataPointRequest request = new UpdateDataPointRequest + { + DataPoint = new DataPoint(), + }; + // Make the request + Operation response = dataPointsServiceClient.UpdateDataPoint(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataPointsServiceClient.PollOnceUpdateDataPoint(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + } + } + // [END health_v4_generated_DataPointsService_UpdateDataPoint_sync] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointSnippet.g.cs new file mode 100644 index 000000000000..bb7df993e9c9 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/DataPointsServiceClient.UpdateDataPointSnippet.g.cs @@ -0,0 +1,60 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_DataPointsService_UpdateDataPoint_sync_flattened] + using Google.DevicesAndServices.Health.V4; + using Google.LongRunning; + + public sealed partial class GeneratedDataPointsServiceClientSnippets + { + /// Snippet for UpdateDataPoint + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateDataPoint() + { + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + DataPoint dataPoint = new DataPoint(); + // Make the request + Operation response = dataPointsServiceClient.UpdateDataPoint(dataPoint); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataPointsServiceClient.PollOnceUpdateDataPoint(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + } + } + // [END health_v4_generated_DataPointsService_UpdateDataPoint_sync_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/Google.DevicesAndServices.Health.V4.GeneratedSnippets.csproj b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/Google.DevicesAndServices.Health.V4.GeneratedSnippets.csproj new file mode 100644 index 000000000000..873848e051a8 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/Google.DevicesAndServices.Health.V4.GeneratedSnippets.csproj @@ -0,0 +1,20 @@ + + + + net8.0;net462 + net8.0 + false + $(NoWarn);1701;1702;1705;xUnit2004;xUnit2013 + + + + + + + + + + + + + \ No newline at end of file diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityAsyncSnippet.g.cs new file mode 100644 index 000000000000..95a7470bb3b1 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetIdentity_async_flattened] + using Google.DevicesAndServices.Health.V4; + using System.Threading.Tasks; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetIdentityAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetIdentityAsync() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "users/[USER]/identity"; + // Make the request + Identity response = await healthProfileServiceClient.GetIdentityAsync(name); + } + } + // [END health_v4_generated_HealthProfileService_GetIdentity_async_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityRequestObjectAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..d8c0bb4603a4 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetIdentity_async] + using Google.DevicesAndServices.Health.V4; + using System.Threading.Tasks; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetIdentityAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetIdentityRequestObjectAsync() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + GetIdentityRequest request = new GetIdentityRequest + { + IdentityName = IdentityName.FromUser("[USER]"), + }; + // Make the request + Identity response = await healthProfileServiceClient.GetIdentityAsync(request); + } + } + // [END health_v4_generated_HealthProfileService_GetIdentity_async] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityRequestObjectSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..b1e5c87ca779 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetIdentity_sync] + using Google.DevicesAndServices.Health.V4; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetIdentity + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetIdentityRequestObject() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + GetIdentityRequest request = new GetIdentityRequest + { + IdentityName = IdentityName.FromUser("[USER]"), + }; + // Make the request + Identity response = healthProfileServiceClient.GetIdentity(request); + } + } + // [END health_v4_generated_HealthProfileService_GetIdentity_sync] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityResourceNamesAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..87e58dcd7711 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetIdentity_async_flattened_resourceNames] + using Google.DevicesAndServices.Health.V4; + using System.Threading.Tasks; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetIdentityAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetIdentityResourceNamesAsync() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + IdentityName name = IdentityName.FromUser("[USER]"); + // Make the request + Identity response = await healthProfileServiceClient.GetIdentityAsync(name); + } + } + // [END health_v4_generated_HealthProfileService_GetIdentity_async_flattened_resourceNames] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityResourceNamesSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..d4642f3ee458 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentityResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetIdentity_sync_flattened_resourceNames] + using Google.DevicesAndServices.Health.V4; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetIdentity + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetIdentityResourceNames() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + IdentityName name = IdentityName.FromUser("[USER]"); + // Make the request + Identity response = healthProfileServiceClient.GetIdentity(name); + } + } + // [END health_v4_generated_HealthProfileService_GetIdentity_sync_flattened_resourceNames] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentitySnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentitySnippet.g.cs new file mode 100644 index 000000000000..b4cd54530995 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetIdentitySnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetIdentity_sync_flattened] + using Google.DevicesAndServices.Health.V4; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetIdentity + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetIdentity() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + string name = "users/[USER]/identity"; + // Make the request + Identity response = healthProfileServiceClient.GetIdentity(name); + } + } + // [END health_v4_generated_HealthProfileService_GetIdentity_sync_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileAsyncSnippet.g.cs new file mode 100644 index 000000000000..ae7c8c72718a --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetProfile_async_flattened] + using Google.DevicesAndServices.Health.V4; + using System.Threading.Tasks; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetProfileAsync() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "users/[USER]/profile"; + // Make the request + Profile response = await healthProfileServiceClient.GetProfileAsync(name); + } + } + // [END health_v4_generated_HealthProfileService_GetProfile_async_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileRequestObjectAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..7428d0682439 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetProfile_async] + using Google.DevicesAndServices.Health.V4; + using System.Threading.Tasks; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetProfileRequestObjectAsync() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + GetProfileRequest request = new GetProfileRequest + { + ProfileName = ProfileName.FromUser("[USER]"), + }; + // Make the request + Profile response = await healthProfileServiceClient.GetProfileAsync(request); + } + } + // [END health_v4_generated_HealthProfileService_GetProfile_async] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileRequestObjectSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..71810c476d59 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetProfile_sync] + using Google.DevicesAndServices.Health.V4; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetProfileRequestObject() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + GetProfileRequest request = new GetProfileRequest + { + ProfileName = ProfileName.FromUser("[USER]"), + }; + // Make the request + Profile response = healthProfileServiceClient.GetProfile(request); + } + } + // [END health_v4_generated_HealthProfileService_GetProfile_sync] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileResourceNamesAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..d60ec7d042cc --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetProfile_async_flattened_resourceNames] + using Google.DevicesAndServices.Health.V4; + using System.Threading.Tasks; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetProfileResourceNamesAsync() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + ProfileName name = ProfileName.FromUser("[USER]"); + // Make the request + Profile response = await healthProfileServiceClient.GetProfileAsync(name); + } + } + // [END health_v4_generated_HealthProfileService_GetProfile_async_flattened_resourceNames] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileResourceNamesSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..28ae2abed3fb --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetProfile_sync_flattened_resourceNames] + using Google.DevicesAndServices.Health.V4; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetProfileResourceNames() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + ProfileName name = ProfileName.FromUser("[USER]"); + // Make the request + Profile response = healthProfileServiceClient.GetProfile(name); + } + } + // [END health_v4_generated_HealthProfileService_GetProfile_sync_flattened_resourceNames] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileSnippet.g.cs new file mode 100644 index 000000000000..236651bd7db2 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetProfileSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetProfile_sync_flattened] + using Google.DevicesAndServices.Health.V4; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetProfile() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + string name = "users/[USER]/profile"; + // Make the request + Profile response = healthProfileServiceClient.GetProfile(name); + } + } + // [END health_v4_generated_HealthProfileService_GetProfile_sync_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsAsyncSnippet.g.cs new file mode 100644 index 000000000000..5f5a9946e334 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetSettings_async_flattened] + using Google.DevicesAndServices.Health.V4; + using System.Threading.Tasks; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetSettingsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetSettingsAsync() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "users/[USER]/settings"; + // Make the request + Settings response = await healthProfileServiceClient.GetSettingsAsync(name); + } + } + // [END health_v4_generated_HealthProfileService_GetSettings_async_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsRequestObjectAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..5535bc31a0ed --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetSettings_async] + using Google.DevicesAndServices.Health.V4; + using System.Threading.Tasks; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetSettingsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetSettingsRequestObjectAsync() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + GetSettingsRequest request = new GetSettingsRequest + { + SettingsName = SettingsName.FromUser("[USER]"), + }; + // Make the request + Settings response = await healthProfileServiceClient.GetSettingsAsync(request); + } + } + // [END health_v4_generated_HealthProfileService_GetSettings_async] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsRequestObjectSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..a4a4abde76f6 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetSettings_sync] + using Google.DevicesAndServices.Health.V4; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetSettings + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetSettingsRequestObject() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + GetSettingsRequest request = new GetSettingsRequest + { + SettingsName = SettingsName.FromUser("[USER]"), + }; + // Make the request + Settings response = healthProfileServiceClient.GetSettings(request); + } + } + // [END health_v4_generated_HealthProfileService_GetSettings_sync] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsResourceNamesAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..6107abb01deb --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetSettings_async_flattened_resourceNames] + using Google.DevicesAndServices.Health.V4; + using System.Threading.Tasks; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetSettingsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetSettingsResourceNamesAsync() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + SettingsName name = SettingsName.FromUser("[USER]"); + // Make the request + Settings response = await healthProfileServiceClient.GetSettingsAsync(name); + } + } + // [END health_v4_generated_HealthProfileService_GetSettings_async_flattened_resourceNames] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsResourceNamesSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..d212f9056474 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetSettings_sync_flattened_resourceNames] + using Google.DevicesAndServices.Health.V4; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetSettings + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetSettingsResourceNames() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + SettingsName name = SettingsName.FromUser("[USER]"); + // Make the request + Settings response = healthProfileServiceClient.GetSettings(name); + } + } + // [END health_v4_generated_HealthProfileService_GetSettings_sync_flattened_resourceNames] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsSnippet.g.cs new file mode 100644 index 000000000000..f35e3995ca61 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.GetSettingsSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_GetSettings_sync_flattened] + using Google.DevicesAndServices.Health.V4; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetSettings + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetSettings() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + string name = "users/[USER]/settings"; + // Make the request + Settings response = healthProfileServiceClient.GetSettings(name); + } + } + // [END health_v4_generated_HealthProfileService_GetSettings_sync_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileAsyncSnippet.g.cs new file mode 100644 index 000000000000..177d6cf17dd1 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_UpdateProfile_async_flattened] + using Google.DevicesAndServices.Health.V4; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for UpdateProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateProfileAsync() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + Profile profile = new Profile(); + FieldMask updateMask = new FieldMask(); + // Make the request + Profile response = await healthProfileServiceClient.UpdateProfileAsync(profile, updateMask); + } + } + // [END health_v4_generated_HealthProfileService_UpdateProfile_async_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileRequestObjectAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..0f5d21856cf1 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_UpdateProfile_async] + using Google.DevicesAndServices.Health.V4; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for UpdateProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateProfileRequestObjectAsync() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateProfileRequest request = new UpdateProfileRequest + { + Profile = new Profile(), + UpdateMask = new FieldMask(), + }; + // Make the request + Profile response = await healthProfileServiceClient.UpdateProfileAsync(request); + } + } + // [END health_v4_generated_HealthProfileService_UpdateProfile_async] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileRequestObjectSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..2f38cc46f1b3 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_UpdateProfile_sync] + using Google.DevicesAndServices.Health.V4; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for UpdateProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateProfileRequestObject() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + UpdateProfileRequest request = new UpdateProfileRequest + { + Profile = new Profile(), + UpdateMask = new FieldMask(), + }; + // Make the request + Profile response = healthProfileServiceClient.UpdateProfile(request); + } + } + // [END health_v4_generated_HealthProfileService_UpdateProfile_sync] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileSnippet.g.cs new file mode 100644 index 000000000000..9bb8604315e5 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateProfileSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_UpdateProfile_sync_flattened] + using Google.DevicesAndServices.Health.V4; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for UpdateProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateProfile() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + Profile profile = new Profile(); + FieldMask updateMask = new FieldMask(); + // Make the request + Profile response = healthProfileServiceClient.UpdateProfile(profile, updateMask); + } + } + // [END health_v4_generated_HealthProfileService_UpdateProfile_sync_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsAsyncSnippet.g.cs new file mode 100644 index 000000000000..27a3db35a82b --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_UpdateSettings_async_flattened] + using Google.DevicesAndServices.Health.V4; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for UpdateSettingsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateSettingsAsync() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + Settings settings = new Settings(); + FieldMask updateMask = new FieldMask(); + // Make the request + Settings response = await healthProfileServiceClient.UpdateSettingsAsync(settings, updateMask); + } + } + // [END health_v4_generated_HealthProfileService_UpdateSettings_async_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsRequestObjectAsyncSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..6f0428c1b7d1 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_UpdateSettings_async] + using Google.DevicesAndServices.Health.V4; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for UpdateSettingsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateSettingsRequestObjectAsync() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateSettingsRequest request = new UpdateSettingsRequest + { + Settings = new Settings(), + UpdateMask = new FieldMask(), + }; + // Make the request + Settings response = await healthProfileServiceClient.UpdateSettingsAsync(request); + } + } + // [END health_v4_generated_HealthProfileService_UpdateSettings_async] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsRequestObjectSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..ed642fcd9b5d --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_UpdateSettings_sync] + using Google.DevicesAndServices.Health.V4; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for UpdateSettings + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateSettingsRequestObject() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + UpdateSettingsRequest request = new UpdateSettingsRequest + { + Settings = new Settings(), + UpdateMask = new FieldMask(), + }; + // Make the request + Settings response = healthProfileServiceClient.UpdateSettings(request); + } + } + // [END health_v4_generated_HealthProfileService_UpdateSettings_sync] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsSnippet.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsSnippet.g.cs new file mode 100644 index 000000000000..88688b7da336 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/HealthProfileServiceClient.UpdateSettingsSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START health_v4_generated_HealthProfileService_UpdateSettings_sync_flattened] + using Google.DevicesAndServices.Health.V4; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedHealthProfileServiceClientSnippets + { + /// Snippet for UpdateSettings + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateSettings() + { + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + Settings settings = new Settings(); + FieldMask updateMask = new FieldMask(); + // Make the request + Settings response = healthProfileServiceClient.UpdateSettings(settings, updateMask); + } + } + // [END health_v4_generated_HealthProfileService_UpdateSettings_sync_flattened] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/snippet_metadata_google.devicesandservices.health.v4.json b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/snippet_metadata_google.devicesandservices.health.v4.json new file mode 100644 index 000000000000..67c434a41931 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.GeneratedSnippets/snippet_metadata_google.devicesandservices.health.v4.json @@ -0,0 +1,2764 @@ +{ + "clientLibrary": { + "name": "Google.DevicesAndServices.Health.V4", + "language": "C_SHARP", + "apis": [ + { + "id": "google.devicesandservices.health.v4", + "version": "v4" + } + ] + }, + "snippets": [ + { + "regionTag": "health_v4_generated_DataPointsService_ListDataPoints_sync", + "title": "ListDataPointsRequestObject", + "description": "Snippet for ListDataPoints", + "file": "DataPointsServiceClient.ListDataPointsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDataPoints", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.ListDataPoints", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.ListDataPointsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "ListDataPoints", + "fullName": "google.devicesandservices.health.v4.DataPointsService.ListDataPoints", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 36, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_ListDataPoints_async", + "title": "ListDataPointsRequestObjectAsync", + "description": "Snippet for ListDataPointsAsync", + "file": "DataPointsServiceClient.ListDataPointsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDataPointsAsync", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.ListDataPointsAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.ListDataPointsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "ListDataPoints", + "fullName": "google.devicesandservices.health.v4.DataPointsService.ListDataPoints", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 37, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_ListDataPoints_sync_flattened", + "title": "ListDataPoints", + "description": "Snippet for ListDataPoints", + "file": "DataPointsServiceClient.ListDataPointsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDataPoints", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.ListDataPoints", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "ListDataPoints", + "fullName": "google.devicesandservices.health.v4.DataPointsService.ListDataPoints", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_ListDataPoints_async_flattened", + "title": "ListDataPointsAsync", + "description": "Snippet for ListDataPointsAsync", + "file": "DataPointsServiceClient.ListDataPointsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDataPointsAsync", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.ListDataPointsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "ListDataPoints", + "fullName": "google.devicesandservices.health.v4.DataPointsService.ListDataPoints", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_ListDataPoints_sync_flattened_resourceNames", + "title": "ListDataPointsResourceNames", + "description": "Snippet for ListDataPoints", + "file": "DataPointsServiceClient.ListDataPointsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDataPoints", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.ListDataPoints", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.DataTypeName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "ListDataPoints", + "fullName": "google.devicesandservices.health.v4.DataPointsService.ListDataPoints", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_ListDataPoints_async_flattened_resourceNames", + "title": "ListDataPointsResourceNamesAsync", + "description": "Snippet for ListDataPointsAsync", + "file": "DataPointsServiceClient.ListDataPointsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDataPointsAsync", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.ListDataPointsAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.DataTypeName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "ListDataPoints", + "fullName": "google.devicesandservices.health.v4.DataPointsService.ListDataPoints", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_CreateDataPoint_sync", + "title": "CreateDataPointRequestObject", + "description": "Snippet for CreateDataPoint", + "file": "DataPointsServiceClient.CreateDataPointRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateDataPoint", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.CreateDataPoint", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.CreateDataPointRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "CreateDataPoint", + "fullName": "google.devicesandservices.health.v4.DataPointsService.CreateDataPoint", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 35, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_CreateDataPoint_async", + "title": "CreateDataPointRequestObjectAsync", + "description": "Snippet for CreateDataPointAsync", + "file": "DataPointsServiceClient.CreateDataPointRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateDataPointAsync", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.CreateDataPointAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.CreateDataPointRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "CreateDataPoint", + "fullName": "google.devicesandservices.health.v4.DataPointsService.CreateDataPoint", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 36, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_CreateDataPoint_sync_flattened", + "title": "CreateDataPoint", + "description": "Snippet for CreateDataPoint", + "file": "DataPointsServiceClient.CreateDataPointSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateDataPoint", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.CreateDataPoint", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.DevicesAndServices.Health.V4.DataPoint", + "name": "dataPoint" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "CreateDataPoint", + "fullName": "google.devicesandservices.health.v4.DataPointsService.CreateDataPoint", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 35, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_CreateDataPoint_async_flattened", + "title": "CreateDataPointAsync", + "description": "Snippet for CreateDataPointAsync", + "file": "DataPointsServiceClient.CreateDataPointAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateDataPointAsync", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.CreateDataPointAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.DevicesAndServices.Health.V4.DataPoint", + "name": "dataPoint" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "CreateDataPoint", + "fullName": "google.devicesandservices.health.v4.DataPointsService.CreateDataPoint", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_CreateDataPoint_sync_flattened_resourceNames", + "title": "CreateDataPointResourceNames", + "description": "Snippet for CreateDataPoint", + "file": "DataPointsServiceClient.CreateDataPointResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateDataPoint", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.CreateDataPoint", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.DataTypeName", + "name": "parent" + }, + { + "type": "Google.DevicesAndServices.Health.V4.DataPoint", + "name": "dataPoint" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "CreateDataPoint", + "fullName": "google.devicesandservices.health.v4.DataPointsService.CreateDataPoint", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 35, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_CreateDataPoint_async_flattened_resourceNames", + "title": "CreateDataPointResourceNamesAsync", + "description": "Snippet for CreateDataPointAsync", + "file": "DataPointsServiceClient.CreateDataPointResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateDataPointAsync", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.CreateDataPointAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.DataTypeName", + "name": "parent" + }, + { + "type": "Google.DevicesAndServices.Health.V4.DataPoint", + "name": "dataPoint" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "CreateDataPoint", + "fullName": "google.devicesandservices.health.v4.DataPointsService.CreateDataPoint", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_UpdateDataPoint_sync", + "title": "UpdateDataPointRequestObject", + "description": "Snippet for UpdateDataPoint", + "file": "DataPointsServiceClient.UpdateDataPointRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateDataPoint", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.UpdateDataPoint", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.UpdateDataPointRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "UpdateDataPoint", + "fullName": "google.devicesandservices.health.v4.DataPointsService.UpdateDataPoint", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 35, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_UpdateDataPoint_async", + "title": "UpdateDataPointRequestObjectAsync", + "description": "Snippet for UpdateDataPointAsync", + "file": "DataPointsServiceClient.UpdateDataPointRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateDataPointAsync", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.UpdateDataPointAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.UpdateDataPointRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "UpdateDataPoint", + "fullName": "google.devicesandservices.health.v4.DataPointsService.UpdateDataPoint", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 36, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_UpdateDataPoint_sync_flattened", + "title": "UpdateDataPoint", + "description": "Snippet for UpdateDataPoint", + "file": "DataPointsServiceClient.UpdateDataPointSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateDataPoint", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.UpdateDataPoint", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.DataPoint", + "name": "dataPoint" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "UpdateDataPoint", + "fullName": "google.devicesandservices.health.v4.DataPointsService.UpdateDataPoint", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 58, + "type": "FULL" + }, + { + "start": 35, + "end": 56, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_UpdateDataPoint_async_flattened", + "title": "UpdateDataPointAsync", + "description": "Snippet for UpdateDataPointAsync", + "file": "DataPointsServiceClient.UpdateDataPointAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateDataPointAsync", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.UpdateDataPointAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.DataPoint", + "name": "dataPoint" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "UpdateDataPoint", + "fullName": "google.devicesandservices.health.v4.DataPointsService.UpdateDataPoint", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_BatchDeleteDataPoints_sync", + "title": "BatchDeleteDataPointsRequestObject", + "description": "Snippet for BatchDeleteDataPoints", + "file": "DataPointsServiceClient.BatchDeleteDataPointsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BatchDeleteDataPoints", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.BatchDeleteDataPoints", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.BatchDeleteDataPointsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "BatchDeleteDataPoints", + "fullName": "google.devicesandservices.health.v4.DataPointsService.BatchDeleteDataPoints", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 35, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_BatchDeleteDataPoints_async", + "title": "BatchDeleteDataPointsRequestObjectAsync", + "description": "Snippet for BatchDeleteDataPointsAsync", + "file": "DataPointsServiceClient.BatchDeleteDataPointsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BatchDeleteDataPointsAsync", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.BatchDeleteDataPointsAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.BatchDeleteDataPointsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "BatchDeleteDataPoints", + "fullName": "google.devicesandservices.health.v4.DataPointsService.BatchDeleteDataPoints", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 66, + "type": "FULL" + }, + { + "start": 36, + "end": 64, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_ReconcileDataPoints_sync", + "title": "ReconcileDataPointsRequestObject", + "description": "Snippet for ReconcileDataPoints", + "file": "DataPointsServiceClient.ReconcileDataPointsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ReconcileDataPoints", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.ReconcileDataPoints", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.ReconcileDataPointsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "ReconcileDataPoints", + "fullName": "google.devicesandservices.health.v4.DataPointsService.ReconcileDataPoints", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 36, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_ReconcileDataPoints_async", + "title": "ReconcileDataPointsRequestObjectAsync", + "description": "Snippet for ReconcileDataPointsAsync", + "file": "DataPointsServiceClient.ReconcileDataPointsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ReconcileDataPointsAsync", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.ReconcileDataPointsAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.ReconcileDataPointsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "ReconcileDataPoints", + "fullName": "google.devicesandservices.health.v4.DataPointsService.ReconcileDataPoints", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 37, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_RollUpDataPoints_sync", + "title": "RollUpDataPointsRequestObject", + "description": "Snippet for RollUpDataPoints", + "file": "DataPointsServiceClient.RollUpDataPointsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RollUpDataPoints", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.RollUpDataPoints", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.RollUpDataPointsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "RollUpDataPoints", + "fullName": "google.devicesandservices.health.v4.DataPointsService.RollUpDataPoints", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 83, + "type": "FULL" + }, + { + "start": 38, + "end": 81, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_RollUpDataPoints_async", + "title": "RollUpDataPointsRequestObjectAsync", + "description": "Snippet for RollUpDataPointsAsync", + "file": "DataPointsServiceClient.RollUpDataPointsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RollUpDataPointsAsync", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.RollUpDataPointsAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.RollUpDataPointsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "RollUpDataPoints", + "fullName": "google.devicesandservices.health.v4.DataPointsService.RollUpDataPoints", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 84, + "type": "FULL" + }, + { + "start": 39, + "end": 82, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_DailyRollUpDataPoints_sync", + "title": "DailyRollUpDataPointsRequestObject", + "description": "Snippet for DailyRollUpDataPoints", + "file": "DataPointsServiceClient.DailyRollUpDataPointsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DailyRollUpDataPoints", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.DailyRollUpDataPoints", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsResponse", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "DailyRollUpDataPoints", + "fullName": "google.devicesandservices.health.v4.DataPointsService.DailyRollUpDataPoints", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 49, + "type": "FULL" + }, + { + "start": 34, + "end": 47, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_DailyRollUpDataPoints_async", + "title": "DailyRollUpDataPointsRequestObjectAsync", + "description": "Snippet for DailyRollUpDataPointsAsync", + "file": "DataPointsServiceClient.DailyRollUpDataPointsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DailyRollUpDataPointsAsync", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.DailyRollUpDataPointsAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "DailyRollUpDataPoints", + "fullName": "google.devicesandservices.health.v4.DataPointsService.DailyRollUpDataPoints", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + }, + { + "start": 35, + "end": 48, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_ExportExerciseTcx_sync", + "title": "ExportExerciseTcxRequestObject", + "description": "Snippet for ExportExerciseTcx", + "file": "DataPointsServiceClient.ExportExerciseTcxRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ExportExerciseTcx", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.ExportExerciseTcx", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.ExportExerciseTcxRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.ExportExerciseTcxResponse", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "ExportExerciseTcx", + "fullName": "google.devicesandservices.health.v4.DataPointsService.ExportExerciseTcx", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_ExportExerciseTcx_async", + "title": "ExportExerciseTcxRequestObjectAsync", + "description": "Snippet for ExportExerciseTcxAsync", + "file": "DataPointsServiceClient.ExportExerciseTcxRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ExportExerciseTcxAsync", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.ExportExerciseTcxAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.ExportExerciseTcxRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "ExportExerciseTcx", + "fullName": "google.devicesandservices.health.v4.DataPointsService.ExportExerciseTcx", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_ExportExerciseTcx_sync_flattened", + "title": "ExportExerciseTcx", + "description": "Snippet for ExportExerciseTcx", + "file": "DataPointsServiceClient.ExportExerciseTcxSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ExportExerciseTcx", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.ExportExerciseTcx", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.ExportExerciseTcxResponse", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "ExportExerciseTcx", + "fullName": "google.devicesandservices.health.v4.DataPointsService.ExportExerciseTcx", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_ExportExerciseTcx_async_flattened", + "title": "ExportExerciseTcxAsync", + "description": "Snippet for ExportExerciseTcxAsync", + "file": "DataPointsServiceClient.ExportExerciseTcxAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ExportExerciseTcxAsync", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.ExportExerciseTcxAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "ExportExerciseTcx", + "fullName": "google.devicesandservices.health.v4.DataPointsService.ExportExerciseTcx", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_ExportExerciseTcx_sync_flattened_resourceNames", + "title": "ExportExerciseTcxResourceNames", + "description": "Snippet for ExportExerciseTcx", + "file": "DataPointsServiceClient.ExportExerciseTcxResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ExportExerciseTcx", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.ExportExerciseTcx", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.DataPointName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.ExportExerciseTcxResponse", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "ExportExerciseTcx", + "fullName": "google.devicesandservices.health.v4.DataPointsService.ExportExerciseTcx", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_DataPointsService_ExportExerciseTcx_async_flattened_resourceNames", + "title": "ExportExerciseTcxResourceNamesAsync", + "description": "Snippet for ExportExerciseTcxAsync", + "file": "DataPointsServiceClient.ExportExerciseTcxResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ExportExerciseTcxAsync", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient.ExportExerciseTcxAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.DataPointName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "DataPointsServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.DataPointsServiceClient" + }, + "method": { + "shortName": "ExportExerciseTcx", + "fullName": "google.devicesandservices.health.v4.DataPointsService.ExportExerciseTcx", + "service": { + "shortName": "DataPointsService", + "fullName": "google.devicesandservices.health.v4.DataPointsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetProfile_sync", + "title": "GetProfileRequestObject", + "description": "Snippet for GetProfile", + "file": "HealthProfileServiceClient.GetProfileRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetProfile", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetProfile", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.GetProfileRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.Profile", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetProfile", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetProfile", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetProfile_async", + "title": "GetProfileRequestObjectAsync", + "description": "Snippet for GetProfileAsync", + "file": "HealthProfileServiceClient.GetProfileRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetProfileAsync", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetProfileAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.GetProfileRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetProfile", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetProfile", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetProfile_sync_flattened", + "title": "GetProfile", + "description": "Snippet for GetProfile", + "file": "HealthProfileServiceClient.GetProfileSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetProfile", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetProfile", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.Profile", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetProfile", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetProfile", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetProfile_async_flattened", + "title": "GetProfileAsync", + "description": "Snippet for GetProfileAsync", + "file": "HealthProfileServiceClient.GetProfileAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetProfileAsync", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetProfileAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetProfile", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetProfile", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetProfile_sync_flattened_resourceNames", + "title": "GetProfileResourceNames", + "description": "Snippet for GetProfile", + "file": "HealthProfileServiceClient.GetProfileResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetProfile", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetProfile", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.ProfileName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.Profile", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetProfile", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetProfile", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetProfile_async_flattened_resourceNames", + "title": "GetProfileResourceNamesAsync", + "description": "Snippet for GetProfileAsync", + "file": "HealthProfileServiceClient.GetProfileResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetProfileAsync", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetProfileAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.ProfileName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetProfile", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetProfile", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_UpdateProfile_sync", + "title": "UpdateProfileRequestObject", + "description": "Snippet for UpdateProfile", + "file": "HealthProfileServiceClient.UpdateProfileRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateProfile", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.UpdateProfile", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.UpdateProfileRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.Profile", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "UpdateProfile", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.UpdateProfile", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_UpdateProfile_async", + "title": "UpdateProfileRequestObjectAsync", + "description": "Snippet for UpdateProfileAsync", + "file": "HealthProfileServiceClient.UpdateProfileRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateProfileAsync", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.UpdateProfileAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.UpdateProfileRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "UpdateProfile", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.UpdateProfile", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_UpdateProfile_sync_flattened", + "title": "UpdateProfile", + "description": "Snippet for UpdateProfile", + "file": "HealthProfileServiceClient.UpdateProfileSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateProfile", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.UpdateProfile", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.Profile", + "name": "profile" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.Profile", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "UpdateProfile", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.UpdateProfile", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_UpdateProfile_async_flattened", + "title": "UpdateProfileAsync", + "description": "Snippet for UpdateProfileAsync", + "file": "HealthProfileServiceClient.UpdateProfileAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateProfileAsync", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.UpdateProfileAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.Profile", + "name": "profile" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "UpdateProfile", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.UpdateProfile", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetSettings_sync", + "title": "GetSettingsRequestObject", + "description": "Snippet for GetSettings", + "file": "HealthProfileServiceClient.GetSettingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSettings", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetSettings", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.GetSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.Settings", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetSettings", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetSettings", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetSettings_async", + "title": "GetSettingsRequestObjectAsync", + "description": "Snippet for GetSettingsAsync", + "file": "HealthProfileServiceClient.GetSettingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSettingsAsync", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.GetSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetSettings", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetSettings", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetSettings_sync_flattened", + "title": "GetSettings", + "description": "Snippet for GetSettings", + "file": "HealthProfileServiceClient.GetSettingsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSettings", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetSettings", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.Settings", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetSettings", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetSettings", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetSettings_async_flattened", + "title": "GetSettingsAsync", + "description": "Snippet for GetSettingsAsync", + "file": "HealthProfileServiceClient.GetSettingsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSettingsAsync", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetSettingsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetSettings", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetSettings", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetSettings_sync_flattened_resourceNames", + "title": "GetSettingsResourceNames", + "description": "Snippet for GetSettings", + "file": "HealthProfileServiceClient.GetSettingsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSettings", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetSettings", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.SettingsName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.Settings", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetSettings", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetSettings", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetSettings_async_flattened_resourceNames", + "title": "GetSettingsResourceNamesAsync", + "description": "Snippet for GetSettingsAsync", + "file": "HealthProfileServiceClient.GetSettingsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSettingsAsync", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.SettingsName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetSettings", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetSettings", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_UpdateSettings_sync", + "title": "UpdateSettingsRequestObject", + "description": "Snippet for UpdateSettings", + "file": "HealthProfileServiceClient.UpdateSettingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSettings", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.UpdateSettings", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.UpdateSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.Settings", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "UpdateSettings", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.UpdateSettings", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_UpdateSettings_async", + "title": "UpdateSettingsRequestObjectAsync", + "description": "Snippet for UpdateSettingsAsync", + "file": "HealthProfileServiceClient.UpdateSettingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSettingsAsync", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.UpdateSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.UpdateSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "UpdateSettings", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.UpdateSettings", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_UpdateSettings_sync_flattened", + "title": "UpdateSettings", + "description": "Snippet for UpdateSettings", + "file": "HealthProfileServiceClient.UpdateSettingsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSettings", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.UpdateSettings", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.Settings", + "name": "settings" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.Settings", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "UpdateSettings", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.UpdateSettings", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_UpdateSettings_async_flattened", + "title": "UpdateSettingsAsync", + "description": "Snippet for UpdateSettingsAsync", + "file": "HealthProfileServiceClient.UpdateSettingsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSettingsAsync", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.UpdateSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.Settings", + "name": "settings" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "UpdateSettings", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.UpdateSettings", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetIdentity_sync", + "title": "GetIdentityRequestObject", + "description": "Snippet for GetIdentity", + "file": "HealthProfileServiceClient.GetIdentityRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIdentity", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetIdentity", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.GetIdentityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.Identity", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetIdentity", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetIdentity", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetIdentity_async", + "title": "GetIdentityRequestObjectAsync", + "description": "Snippet for GetIdentityAsync", + "file": "HealthProfileServiceClient.GetIdentityRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIdentityAsync", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetIdentityAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.GetIdentityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetIdentity", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetIdentity", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetIdentity_sync_flattened", + "title": "GetIdentity", + "description": "Snippet for GetIdentity", + "file": "HealthProfileServiceClient.GetIdentitySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIdentity", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetIdentity", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.Identity", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetIdentity", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetIdentity", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetIdentity_async_flattened", + "title": "GetIdentityAsync", + "description": "Snippet for GetIdentityAsync", + "file": "HealthProfileServiceClient.GetIdentityAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIdentityAsync", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetIdentityAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetIdentity", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetIdentity", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetIdentity_sync_flattened_resourceNames", + "title": "GetIdentityResourceNames", + "description": "Snippet for GetIdentity", + "file": "HealthProfileServiceClient.GetIdentityResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIdentity", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetIdentity", + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.IdentityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.DevicesAndServices.Health.V4.Identity", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetIdentity", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetIdentity", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "health_v4_generated_HealthProfileService_GetIdentity_async_flattened_resourceNames", + "title": "GetIdentityResourceNamesAsync", + "description": "Snippet for GetIdentityAsync", + "file": "HealthProfileServiceClient.GetIdentityResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIdentityAsync", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient.GetIdentityAsync", + "async": true, + "parameters": [ + { + "type": "Google.DevicesAndServices.Health.V4.IdentityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "HealthProfileServiceClient", + "fullName": "Google.DevicesAndServices.Health.V4.HealthProfileServiceClient" + }, + "method": { + "shortName": "GetIdentity", + "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetIdentity", + "service": { + "shortName": "HealthProfileService", + "fullName": "google.devicesandservices.health.v4.HealthProfileService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + } + ] +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.Snippets/DataPointsServiceClientSnippets.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.Snippets/DataPointsServiceClientSnippets.g.cs new file mode 100644 index 000000000000..34e0675ec009 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.Snippets/DataPointsServiceClientSnippets.g.cs @@ -0,0 +1,1028 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + using Google.Api.Gax; + using Google.DevicesAndServices.Health.V4; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using Google.Type; + using System; + using System.Threading.Tasks; + + /// Generated snippets. + public sealed class AllGeneratedDataPointsServiceClientSnippets + { + /// Snippet for ListDataPoints + public void ListDataPointsRequestObject() + { + // Snippet: ListDataPoints(ListDataPointsRequest, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + ListDataPointsRequest request = new ListDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + Filter = "", + }; + // Make the request + PagedEnumerable response = dataPointsServiceClient.ListDataPoints(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (DataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (DataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListDataPointsAsync + public async Task ListDataPointsRequestObjectAsync() + { + // Snippet: ListDataPointsAsync(ListDataPointsRequest, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + ListDataPointsRequest request = new ListDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + Filter = "", + }; + // Make the request + PagedAsyncEnumerable response = dataPointsServiceClient.ListDataPointsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (DataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (DataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListDataPoints + public void ListDataPoints() + { + // Snippet: ListDataPoints(string, string, int?, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + string parent = "users/[USER]/dataTypes/[DATA_TYPE]"; + // Make the request + PagedEnumerable response = dataPointsServiceClient.ListDataPoints(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (DataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (DataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListDataPointsAsync + public async Task ListDataPointsAsync() + { + // Snippet: ListDataPointsAsync(string, string, int?, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "users/[USER]/dataTypes/[DATA_TYPE]"; + // Make the request + PagedAsyncEnumerable response = dataPointsServiceClient.ListDataPointsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (DataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (DataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListDataPoints + public void ListDataPointsResourceNames() + { + // Snippet: ListDataPoints(DataTypeName, string, int?, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + DataTypeName parent = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"); + // Make the request + PagedEnumerable response = dataPointsServiceClient.ListDataPoints(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (DataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (DataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListDataPointsAsync + public async Task ListDataPointsResourceNamesAsync() + { + // Snippet: ListDataPointsAsync(DataTypeName, string, int?, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + DataTypeName parent = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"); + // Make the request + PagedAsyncEnumerable response = dataPointsServiceClient.ListDataPointsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (DataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (DataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for CreateDataPoint + public void CreateDataPointRequestObject() + { + // Snippet: CreateDataPoint(CreateDataPointRequest, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + CreateDataPointRequest request = new CreateDataPointRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + DataPoint = new DataPoint(), + }; + // Make the request + Operation response = dataPointsServiceClient.CreateDataPoint(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataPointsServiceClient.PollOnceCreateDataPoint(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateDataPointAsync + public async Task CreateDataPointRequestObjectAsync() + { + // Snippet: CreateDataPointAsync(CreateDataPointRequest, CallSettings) + // Additional: CreateDataPointAsync(CreateDataPointRequest, CancellationToken) + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateDataPointRequest request = new CreateDataPointRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + DataPoint = new DataPoint(), + }; + // Make the request + Operation response = await dataPointsServiceClient.CreateDataPointAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataPointsServiceClient.PollOnceCreateDataPointAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateDataPoint + public void CreateDataPoint() + { + // Snippet: CreateDataPoint(string, DataPoint, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + string parent = "users/[USER]/dataTypes/[DATA_TYPE]"; + DataPoint dataPoint = new DataPoint(); + // Make the request + Operation response = dataPointsServiceClient.CreateDataPoint(parent, dataPoint); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataPointsServiceClient.PollOnceCreateDataPoint(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateDataPointAsync + public async Task CreateDataPointAsync() + { + // Snippet: CreateDataPointAsync(string, DataPoint, CallSettings) + // Additional: CreateDataPointAsync(string, DataPoint, CancellationToken) + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "users/[USER]/dataTypes/[DATA_TYPE]"; + DataPoint dataPoint = new DataPoint(); + // Make the request + Operation response = await dataPointsServiceClient.CreateDataPointAsync(parent, dataPoint); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataPointsServiceClient.PollOnceCreateDataPointAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateDataPoint + public void CreateDataPointResourceNames() + { + // Snippet: CreateDataPoint(DataTypeName, DataPoint, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + DataTypeName parent = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"); + DataPoint dataPoint = new DataPoint(); + // Make the request + Operation response = dataPointsServiceClient.CreateDataPoint(parent, dataPoint); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataPointsServiceClient.PollOnceCreateDataPoint(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateDataPointAsync + public async Task CreateDataPointResourceNamesAsync() + { + // Snippet: CreateDataPointAsync(DataTypeName, DataPoint, CallSettings) + // Additional: CreateDataPointAsync(DataTypeName, DataPoint, CancellationToken) + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + DataTypeName parent = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"); + DataPoint dataPoint = new DataPoint(); + // Make the request + Operation response = await dataPointsServiceClient.CreateDataPointAsync(parent, dataPoint); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataPointsServiceClient.PollOnceCreateDataPointAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateDataPoint + public void UpdateDataPointRequestObject() + { + // Snippet: UpdateDataPoint(UpdateDataPointRequest, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + UpdateDataPointRequest request = new UpdateDataPointRequest + { + DataPoint = new DataPoint(), + }; + // Make the request + Operation response = dataPointsServiceClient.UpdateDataPoint(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataPointsServiceClient.PollOnceUpdateDataPoint(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateDataPointAsync + public async Task UpdateDataPointRequestObjectAsync() + { + // Snippet: UpdateDataPointAsync(UpdateDataPointRequest, CallSettings) + // Additional: UpdateDataPointAsync(UpdateDataPointRequest, CancellationToken) + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateDataPointRequest request = new UpdateDataPointRequest + { + DataPoint = new DataPoint(), + }; + // Make the request + Operation response = await dataPointsServiceClient.UpdateDataPointAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataPointsServiceClient.PollOnceUpdateDataPointAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateDataPoint + public void UpdateDataPoint() + { + // Snippet: UpdateDataPoint(DataPoint, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + DataPoint dataPoint = new DataPoint(); + // Make the request + Operation response = dataPointsServiceClient.UpdateDataPoint(dataPoint); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataPointsServiceClient.PollOnceUpdateDataPoint(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateDataPointAsync + public async Task UpdateDataPointAsync() + { + // Snippet: UpdateDataPointAsync(DataPoint, CallSettings) + // Additional: UpdateDataPointAsync(DataPoint, CancellationToken) + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + DataPoint dataPoint = new DataPoint(); + // Make the request + Operation response = await dataPointsServiceClient.UpdateDataPointAsync(dataPoint); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + DataPoint result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataPointsServiceClient.PollOnceUpdateDataPointAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + DataPoint retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for BatchDeleteDataPoints + public void BatchDeleteDataPointsRequestObject() + { + // Snippet: BatchDeleteDataPoints(BatchDeleteDataPointsRequest, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + BatchDeleteDataPointsRequest request = new BatchDeleteDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + DataPointNames = + { + DataPointName.FromUserDataTypeDataPoint("[USER]", "[DATA_TYPE]", "[DATA_POINT]"), + }, + }; + // Make the request + Operation response = dataPointsServiceClient.BatchDeleteDataPoints(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BatchDeleteDataPointsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataPointsServiceClient.PollOnceBatchDeleteDataPoints(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BatchDeleteDataPointsResponse retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for BatchDeleteDataPointsAsync + public async Task BatchDeleteDataPointsRequestObjectAsync() + { + // Snippet: BatchDeleteDataPointsAsync(BatchDeleteDataPointsRequest, CallSettings) + // Additional: BatchDeleteDataPointsAsync(BatchDeleteDataPointsRequest, CancellationToken) + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + BatchDeleteDataPointsRequest request = new BatchDeleteDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + DataPointNames = + { + DataPointName.FromUserDataTypeDataPoint("[USER]", "[DATA_TYPE]", "[DATA_POINT]"), + }, + }; + // Make the request + Operation response = await dataPointsServiceClient.BatchDeleteDataPointsAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BatchDeleteDataPointsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataPointsServiceClient.PollOnceBatchDeleteDataPointsAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BatchDeleteDataPointsResponse retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for ReconcileDataPoints + public void ReconcileDataPointsRequestObject() + { + // Snippet: ReconcileDataPoints(ReconcileDataPointsRequest, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + ReconcileDataPointsRequest request = new ReconcileDataPointsRequest + { + Parent = "", + Filter = "", + DataSourceFamily = "", + }; + // Make the request + PagedEnumerable response = dataPointsServiceClient.ReconcileDataPoints(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ReconciledDataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ReconcileDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ReconciledDataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (ReconciledDataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ReconcileDataPointsAsync + public async Task ReconcileDataPointsRequestObjectAsync() + { + // Snippet: ReconcileDataPointsAsync(ReconcileDataPointsRequest, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + ReconcileDataPointsRequest request = new ReconcileDataPointsRequest + { + Parent = "", + Filter = "", + DataSourceFamily = "", + }; + // Make the request + PagedAsyncEnumerable response = dataPointsServiceClient.ReconcileDataPointsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (ReconciledDataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ReconcileDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ReconciledDataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (ReconciledDataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for RollUpDataPoints + public void RollUpDataPointsRequestObject() + { + // Snippet: RollUpDataPoints(RollUpDataPointsRequest, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + RollUpDataPointsRequest request = new RollUpDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + Range = new Interval(), + WindowSize = new Duration(), + DataSourceFamily = "", + }; + // Make the request + PagedEnumerable response = dataPointsServiceClient.RollUpDataPoints(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (RollupDataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (RollUpDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (RollupDataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (RollupDataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for RollUpDataPointsAsync + public async Task RollUpDataPointsRequestObjectAsync() + { + // Snippet: RollUpDataPointsAsync(RollUpDataPointsRequest, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + RollUpDataPointsRequest request = new RollUpDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + Range = new Interval(), + WindowSize = new Duration(), + DataSourceFamily = "", + }; + // Make the request + PagedAsyncEnumerable response = dataPointsServiceClient.RollUpDataPointsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (RollupDataPoint item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (RollUpDataPointsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (RollupDataPoint item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (RollupDataPoint item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for DailyRollUpDataPoints + public void DailyRollUpDataPointsRequestObject() + { + // Snippet: DailyRollUpDataPoints(DailyRollUpDataPointsRequest, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + DailyRollUpDataPointsRequest request = new DailyRollUpDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + Range = new CivilTimeInterval(), + WindowSizeDays = 0, + PageSize = 0, + PageToken = "", + DataSourceFamily = "", + }; + // Make the request + DailyRollUpDataPointsResponse response = dataPointsServiceClient.DailyRollUpDataPoints(request); + // End snippet + } + + /// Snippet for DailyRollUpDataPointsAsync + public async Task DailyRollUpDataPointsRequestObjectAsync() + { + // Snippet: DailyRollUpDataPointsAsync(DailyRollUpDataPointsRequest, CallSettings) + // Additional: DailyRollUpDataPointsAsync(DailyRollUpDataPointsRequest, CancellationToken) + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + DailyRollUpDataPointsRequest request = new DailyRollUpDataPointsRequest + { + ParentAsDataTypeName = DataTypeName.FromUserDataType("[USER]", "[DATA_TYPE]"), + Range = new CivilTimeInterval(), + WindowSizeDays = 0, + PageSize = 0, + PageToken = "", + DataSourceFamily = "", + }; + // Make the request + DailyRollUpDataPointsResponse response = await dataPointsServiceClient.DailyRollUpDataPointsAsync(request); + // End snippet + } + + /// Snippet for ExportExerciseTcx + public void ExportExerciseTcxRequestObject() + { + // Snippet: ExportExerciseTcx(ExportExerciseTcxRequest, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + ExportExerciseTcxRequest request = new ExportExerciseTcxRequest + { + DataPointName = DataPointName.FromUserDataTypeDataPoint("[USER]", "[DATA_TYPE]", "[DATA_POINT]"), + PartialData = false, + }; + // Make the request + ExportExerciseTcxResponse response = dataPointsServiceClient.ExportExerciseTcx(request); + // End snippet + } + + /// Snippet for ExportExerciseTcxAsync + public async Task ExportExerciseTcxRequestObjectAsync() + { + // Snippet: ExportExerciseTcxAsync(ExportExerciseTcxRequest, CallSettings) + // Additional: ExportExerciseTcxAsync(ExportExerciseTcxRequest, CancellationToken) + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + ExportExerciseTcxRequest request = new ExportExerciseTcxRequest + { + DataPointName = DataPointName.FromUserDataTypeDataPoint("[USER]", "[DATA_TYPE]", "[DATA_POINT]"), + PartialData = false, + }; + // Make the request + ExportExerciseTcxResponse response = await dataPointsServiceClient.ExportExerciseTcxAsync(request); + // End snippet + } + + /// Snippet for ExportExerciseTcx + public void ExportExerciseTcx() + { + // Snippet: ExportExerciseTcx(string, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + string name = "users/[USER]/dataTypes/[DATA_TYPE]/dataPoints/[DATA_POINT]"; + // Make the request + ExportExerciseTcxResponse response = dataPointsServiceClient.ExportExerciseTcx(name); + // End snippet + } + + /// Snippet for ExportExerciseTcxAsync + public async Task ExportExerciseTcxAsync() + { + // Snippet: ExportExerciseTcxAsync(string, CallSettings) + // Additional: ExportExerciseTcxAsync(string, CancellationToken) + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "users/[USER]/dataTypes/[DATA_TYPE]/dataPoints/[DATA_POINT]"; + // Make the request + ExportExerciseTcxResponse response = await dataPointsServiceClient.ExportExerciseTcxAsync(name); + // End snippet + } + + /// Snippet for ExportExerciseTcx + public void ExportExerciseTcxResourceNames() + { + // Snippet: ExportExerciseTcx(DataPointName, CallSettings) + // Create client + DataPointsServiceClient dataPointsServiceClient = DataPointsServiceClient.Create(); + // Initialize request argument(s) + DataPointName name = DataPointName.FromUserDataTypeDataPoint("[USER]", "[DATA_TYPE]", "[DATA_POINT]"); + // Make the request + ExportExerciseTcxResponse response = dataPointsServiceClient.ExportExerciseTcx(name); + // End snippet + } + + /// Snippet for ExportExerciseTcxAsync + public async Task ExportExerciseTcxResourceNamesAsync() + { + // Snippet: ExportExerciseTcxAsync(DataPointName, CallSettings) + // Additional: ExportExerciseTcxAsync(DataPointName, CancellationToken) + // Create client + DataPointsServiceClient dataPointsServiceClient = await DataPointsServiceClient.CreateAsync(); + // Initialize request argument(s) + DataPointName name = DataPointName.FromUserDataTypeDataPoint("[USER]", "[DATA_TYPE]", "[DATA_POINT]"); + // Make the request + ExportExerciseTcxResponse response = await dataPointsServiceClient.ExportExerciseTcxAsync(name); + // End snippet + } + } +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.Snippets/Google.DevicesAndServices.Health.V4.Snippets.csproj b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.Snippets/Google.DevicesAndServices.Health.V4.Snippets.csproj new file mode 100644 index 000000000000..873848e051a8 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.Snippets/Google.DevicesAndServices.Health.V4.Snippets.csproj @@ -0,0 +1,20 @@ + + + + net8.0;net462 + net8.0 + false + $(NoWarn);1701;1702;1705;xUnit2004;xUnit2013 + + + + + + + + + + + + + \ No newline at end of file diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.Snippets/HealthProfileServiceClientSnippets.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.Snippets/HealthProfileServiceClientSnippets.g.cs new file mode 100644 index 000000000000..ffd833b66cba --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.Snippets/HealthProfileServiceClientSnippets.g.cs @@ -0,0 +1,415 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + using Google.DevicesAndServices.Health.V4; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + /// Generated snippets. + public sealed class AllGeneratedHealthProfileServiceClientSnippets + { + /// Snippet for GetProfile + public void GetProfileRequestObject() + { + // Snippet: GetProfile(GetProfileRequest, CallSettings) + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + GetProfileRequest request = new GetProfileRequest + { + ProfileName = ProfileName.FromUser("[USER]"), + }; + // Make the request + Profile response = healthProfileServiceClient.GetProfile(request); + // End snippet + } + + /// Snippet for GetProfileAsync + public async Task GetProfileRequestObjectAsync() + { + // Snippet: GetProfileAsync(GetProfileRequest, CallSettings) + // Additional: GetProfileAsync(GetProfileRequest, CancellationToken) + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + GetProfileRequest request = new GetProfileRequest + { + ProfileName = ProfileName.FromUser("[USER]"), + }; + // Make the request + Profile response = await healthProfileServiceClient.GetProfileAsync(request); + // End snippet + } + + /// Snippet for GetProfile + public void GetProfile() + { + // Snippet: GetProfile(string, CallSettings) + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + string name = "users/[USER]/profile"; + // Make the request + Profile response = healthProfileServiceClient.GetProfile(name); + // End snippet + } + + /// Snippet for GetProfileAsync + public async Task GetProfileAsync() + { + // Snippet: GetProfileAsync(string, CallSettings) + // Additional: GetProfileAsync(string, CancellationToken) + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "users/[USER]/profile"; + // Make the request + Profile response = await healthProfileServiceClient.GetProfileAsync(name); + // End snippet + } + + /// Snippet for GetProfile + public void GetProfileResourceNames() + { + // Snippet: GetProfile(ProfileName, CallSettings) + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + ProfileName name = ProfileName.FromUser("[USER]"); + // Make the request + Profile response = healthProfileServiceClient.GetProfile(name); + // End snippet + } + + /// Snippet for GetProfileAsync + public async Task GetProfileResourceNamesAsync() + { + // Snippet: GetProfileAsync(ProfileName, CallSettings) + // Additional: GetProfileAsync(ProfileName, CancellationToken) + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + ProfileName name = ProfileName.FromUser("[USER]"); + // Make the request + Profile response = await healthProfileServiceClient.GetProfileAsync(name); + // End snippet + } + + /// Snippet for UpdateProfile + public void UpdateProfileRequestObject() + { + // Snippet: UpdateProfile(UpdateProfileRequest, CallSettings) + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + UpdateProfileRequest request = new UpdateProfileRequest + { + Profile = new Profile(), + UpdateMask = new FieldMask(), + }; + // Make the request + Profile response = healthProfileServiceClient.UpdateProfile(request); + // End snippet + } + + /// Snippet for UpdateProfileAsync + public async Task UpdateProfileRequestObjectAsync() + { + // Snippet: UpdateProfileAsync(UpdateProfileRequest, CallSettings) + // Additional: UpdateProfileAsync(UpdateProfileRequest, CancellationToken) + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateProfileRequest request = new UpdateProfileRequest + { + Profile = new Profile(), + UpdateMask = new FieldMask(), + }; + // Make the request + Profile response = await healthProfileServiceClient.UpdateProfileAsync(request); + // End snippet + } + + /// Snippet for UpdateProfile + public void UpdateProfile() + { + // Snippet: UpdateProfile(Profile, FieldMask, CallSettings) + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + Profile profile = new Profile(); + FieldMask updateMask = new FieldMask(); + // Make the request + Profile response = healthProfileServiceClient.UpdateProfile(profile, updateMask); + // End snippet + } + + /// Snippet for UpdateProfileAsync + public async Task UpdateProfileAsync() + { + // Snippet: UpdateProfileAsync(Profile, FieldMask, CallSettings) + // Additional: UpdateProfileAsync(Profile, FieldMask, CancellationToken) + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + Profile profile = new Profile(); + FieldMask updateMask = new FieldMask(); + // Make the request + Profile response = await healthProfileServiceClient.UpdateProfileAsync(profile, updateMask); + // End snippet + } + + /// Snippet for GetSettings + public void GetSettingsRequestObject() + { + // Snippet: GetSettings(GetSettingsRequest, CallSettings) + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + GetSettingsRequest request = new GetSettingsRequest + { + SettingsName = SettingsName.FromUser("[USER]"), + }; + // Make the request + Settings response = healthProfileServiceClient.GetSettings(request); + // End snippet + } + + /// Snippet for GetSettingsAsync + public async Task GetSettingsRequestObjectAsync() + { + // Snippet: GetSettingsAsync(GetSettingsRequest, CallSettings) + // Additional: GetSettingsAsync(GetSettingsRequest, CancellationToken) + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + GetSettingsRequest request = new GetSettingsRequest + { + SettingsName = SettingsName.FromUser("[USER]"), + }; + // Make the request + Settings response = await healthProfileServiceClient.GetSettingsAsync(request); + // End snippet + } + + /// Snippet for GetSettings + public void GetSettings() + { + // Snippet: GetSettings(string, CallSettings) + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + string name = "users/[USER]/settings"; + // Make the request + Settings response = healthProfileServiceClient.GetSettings(name); + // End snippet + } + + /// Snippet for GetSettingsAsync + public async Task GetSettingsAsync() + { + // Snippet: GetSettingsAsync(string, CallSettings) + // Additional: GetSettingsAsync(string, CancellationToken) + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "users/[USER]/settings"; + // Make the request + Settings response = await healthProfileServiceClient.GetSettingsAsync(name); + // End snippet + } + + /// Snippet for GetSettings + public void GetSettingsResourceNames() + { + // Snippet: GetSettings(SettingsName, CallSettings) + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + SettingsName name = SettingsName.FromUser("[USER]"); + // Make the request + Settings response = healthProfileServiceClient.GetSettings(name); + // End snippet + } + + /// Snippet for GetSettingsAsync + public async Task GetSettingsResourceNamesAsync() + { + // Snippet: GetSettingsAsync(SettingsName, CallSettings) + // Additional: GetSettingsAsync(SettingsName, CancellationToken) + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + SettingsName name = SettingsName.FromUser("[USER]"); + // Make the request + Settings response = await healthProfileServiceClient.GetSettingsAsync(name); + // End snippet + } + + /// Snippet for UpdateSettings + public void UpdateSettingsRequestObject() + { + // Snippet: UpdateSettings(UpdateSettingsRequest, CallSettings) + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + UpdateSettingsRequest request = new UpdateSettingsRequest + { + Settings = new Settings(), + UpdateMask = new FieldMask(), + }; + // Make the request + Settings response = healthProfileServiceClient.UpdateSettings(request); + // End snippet + } + + /// Snippet for UpdateSettingsAsync + public async Task UpdateSettingsRequestObjectAsync() + { + // Snippet: UpdateSettingsAsync(UpdateSettingsRequest, CallSettings) + // Additional: UpdateSettingsAsync(UpdateSettingsRequest, CancellationToken) + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateSettingsRequest request = new UpdateSettingsRequest + { + Settings = new Settings(), + UpdateMask = new FieldMask(), + }; + // Make the request + Settings response = await healthProfileServiceClient.UpdateSettingsAsync(request); + // End snippet + } + + /// Snippet for UpdateSettings + public void UpdateSettings() + { + // Snippet: UpdateSettings(Settings, FieldMask, CallSettings) + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + Settings settings = new Settings(); + FieldMask updateMask = new FieldMask(); + // Make the request + Settings response = healthProfileServiceClient.UpdateSettings(settings, updateMask); + // End snippet + } + + /// Snippet for UpdateSettingsAsync + public async Task UpdateSettingsAsync() + { + // Snippet: UpdateSettingsAsync(Settings, FieldMask, CallSettings) + // Additional: UpdateSettingsAsync(Settings, FieldMask, CancellationToken) + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + Settings settings = new Settings(); + FieldMask updateMask = new FieldMask(); + // Make the request + Settings response = await healthProfileServiceClient.UpdateSettingsAsync(settings, updateMask); + // End snippet + } + + /// Snippet for GetIdentity + public void GetIdentityRequestObject() + { + // Snippet: GetIdentity(GetIdentityRequest, CallSettings) + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + GetIdentityRequest request = new GetIdentityRequest + { + IdentityName = IdentityName.FromUser("[USER]"), + }; + // Make the request + Identity response = healthProfileServiceClient.GetIdentity(request); + // End snippet + } + + /// Snippet for GetIdentityAsync + public async Task GetIdentityRequestObjectAsync() + { + // Snippet: GetIdentityAsync(GetIdentityRequest, CallSettings) + // Additional: GetIdentityAsync(GetIdentityRequest, CancellationToken) + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + GetIdentityRequest request = new GetIdentityRequest + { + IdentityName = IdentityName.FromUser("[USER]"), + }; + // Make the request + Identity response = await healthProfileServiceClient.GetIdentityAsync(request); + // End snippet + } + + /// Snippet for GetIdentity + public void GetIdentity() + { + // Snippet: GetIdentity(string, CallSettings) + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + string name = "users/[USER]/identity"; + // Make the request + Identity response = healthProfileServiceClient.GetIdentity(name); + // End snippet + } + + /// Snippet for GetIdentityAsync + public async Task GetIdentityAsync() + { + // Snippet: GetIdentityAsync(string, CallSettings) + // Additional: GetIdentityAsync(string, CancellationToken) + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "users/[USER]/identity"; + // Make the request + Identity response = await healthProfileServiceClient.GetIdentityAsync(name); + // End snippet + } + + /// Snippet for GetIdentity + public void GetIdentityResourceNames() + { + // Snippet: GetIdentity(IdentityName, CallSettings) + // Create client + HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create(); + // Initialize request argument(s) + IdentityName name = IdentityName.FromUser("[USER]"); + // Make the request + Identity response = healthProfileServiceClient.GetIdentity(name); + // End snippet + } + + /// Snippet for GetIdentityAsync + public async Task GetIdentityResourceNamesAsync() + { + // Snippet: GetIdentityAsync(IdentityName, CallSettings) + // Additional: GetIdentityAsync(IdentityName, CancellationToken) + // Create client + HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync(); + // Initialize request argument(s) + IdentityName name = IdentityName.FromUser("[USER]"); + // Make the request + Identity response = await healthProfileServiceClient.GetIdentityAsync(name); + // End snippet + } + } +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.sln b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.sln new file mode 100644 index 000000000000..03527affaba3 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.sln @@ -0,0 +1,40 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32516.85 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.DevicesAndServices.Health.V4", "Google.DevicesAndServices.Health.V4\Google.DevicesAndServices.Health.V4.csproj", "{5C19BC27-C316-CB18-7F12-A151D8A4A3A4}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.DevicesAndServices.Health.V4.Snippets", "Google.DevicesAndServices.Health.V4.Snippets\Google.DevicesAndServices.Health.V4.Snippets.csproj", "{DA8DCAAB-D897-DA82-F23C-BADAD7AE4690}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.DevicesAndServices.Health.V4.GeneratedSnippets", "Google.DevicesAndServices.Health.V4.GeneratedSnippets\Google.DevicesAndServices.Health.V4.GeneratedSnippets.csproj", "{6A21C158-355E-7274-08BD-FE6556788701}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.Cloud.ClientTesting", "..\..\tools\Google.Cloud.ClientTesting\Google.Cloud.ClientTesting.csproj", "{29974B0C-A7B0-8CA8-AE32-99F622C89044}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5C19BC27-C316-CB18-7F12-A151D8A4A3A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5C19BC27-C316-CB18-7F12-A151D8A4A3A4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5C19BC27-C316-CB18-7F12-A151D8A4A3A4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5C19BC27-C316-CB18-7F12-A151D8A4A3A4}.Release|Any CPU.Build.0 = Release|Any CPU + {DA8DCAAB-D897-DA82-F23C-BADAD7AE4690}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DA8DCAAB-D897-DA82-F23C-BADAD7AE4690}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DA8DCAAB-D897-DA82-F23C-BADAD7AE4690}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DA8DCAAB-D897-DA82-F23C-BADAD7AE4690}.Release|Any CPU.Build.0 = Release|Any CPU + {6A21C158-355E-7274-08BD-FE6556788701}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6A21C158-355E-7274-08BD-FE6556788701}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6A21C158-355E-7274-08BD-FE6556788701}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6A21C158-355E-7274-08BD-FE6556788701}.Release|Any CPU.Build.0 = Release|Any CPU + {29974B0C-A7B0-8CA8-AE32-99F622C89044}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {29974B0C-A7B0-8CA8-AE32-99F622C89044}.Debug|Any CPU.Build.0 = Debug|Any CPU + {29974B0C-A7B0-8CA8-AE32-99F622C89044}.Release|Any CPU.ActiveCfg = Release|Any CPU + {29974B0C-A7B0-8CA8-AE32-99F622C89044}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataCoordinates.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataCoordinates.g.cs new file mode 100644 index 000000000000..e0793a76bff1 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataCoordinates.g.cs @@ -0,0 +1,1853 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devicesandservices/health/v4/data_coordinates.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Google.DevicesAndServices.Health.V4 { + + /// Holder for reflection information generated from google/devicesandservices/health/v4/data_coordinates.proto + public static partial class DataCoordinatesReflection { + + #region Descriptor + /// File descriptor for google/devicesandservices/health/v4/data_coordinates.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DataCoordinatesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cjpnb29nbGUvZGV2aWNlc2FuZHNlcnZpY2VzL2hlYWx0aC92NC9kYXRhX2Nv", + "b3JkaW5hdGVzLnByb3RvEiNnb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhl", + "YWx0aC52NBofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoeZ29v", + "Z2xlL3Byb3RvYnVmL2R1cmF0aW9uLnByb3RvGh9nb29nbGUvcHJvdG9idWYv", + "dGltZXN0YW1wLnByb3RvGhZnb29nbGUvdHlwZS9kYXRlLnByb3RvGhtnb29n", + "bGUvdHlwZS90aW1lb2ZkYXkucHJvdG8iYAoNQ2l2aWxEYXRlVGltZRIkCgRk", + "YXRlGAEgASgLMhEuZ29vZ2xlLnR5cGUuRGF0ZUID4EECEikKBHRpbWUYAiAB", + "KAsyFi5nb29nbGUudHlwZS5UaW1lT2ZEYXlCA+BBASKhAQoRQ2l2aWxUaW1l", + "SW50ZXJ2YWwSRgoFc3RhcnQYASABKAsyMi5nb29nbGUuZGV2aWNlc2FuZHNl", + "cnZpY2VzLmhlYWx0aC52NC5DaXZpbERhdGVUaW1lQgPgQQISRAoDZW5kGAIg", + "ASgLMjIuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuQ2l2", + "aWxEYXRlVGltZUID4EECIpcDChdPYnNlcnZhdGlvblRpbWVJbnRlcnZhbBIz", + "CgpzdGFydF90aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", + "cEID4EECEjgKEHN0YXJ0X3V0Y19vZmZzZXQYAiABKAsyGS5nb29nbGUucHJv", + "dG9idWYuRHVyYXRpb25CA+BBAhIxCghlbmRfdGltZRgDIAEoCzIaLmdvb2ds", + "ZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAhI2Cg5lbmRfdXRjX29mZnNldBgE", + "IAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbkID4EECElEKEGNpdmls", + "X3N0YXJ0X3RpbWUYBSABKAsyMi5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2Vz", + "LmhlYWx0aC52NC5DaXZpbERhdGVUaW1lQgPgQQMSTwoOY2l2aWxfZW5kX3Rp", + "bWUYBiABKAsyMi5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52", + "NC5DaXZpbERhdGVUaW1lQgPgQQMikwMKE1Nlc3Npb25UaW1lSW50ZXJ2YWwS", + "MwoKc3RhcnRfdGltZRgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", + "bXBCA+BBAhI4ChBzdGFydF91dGNfb2Zmc2V0GAIgASgLMhkuZ29vZ2xlLnBy", + "b3RvYnVmLkR1cmF0aW9uQgPgQQISMQoIZW5kX3RpbWUYAyABKAsyGi5nb29n", + "bGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQISNgoOZW5kX3V0Y19vZmZzZXQY", + "BCABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25CA+BBAhJRChBjaXZp", + "bF9zdGFydF90aW1lGAUgASgLMjIuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNl", + "cy5oZWFsdGgudjQuQ2l2aWxEYXRlVGltZUID4EEDEk8KDmNpdmlsX2VuZF90", + "aW1lGAYgASgLMjIuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgu", + "djQuQ2l2aWxEYXRlVGltZUID4EEDItABChVPYnNlcnZhdGlvblNhbXBsZVRp", + "bWUSNgoNcGh5c2ljYWxfdGltZRgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", + "aW1lc3RhbXBCA+BBAhIyCgp1dGNfb2Zmc2V0GAIgASgLMhkuZ29vZ2xlLnBy", + "b3RvYnVmLkR1cmF0aW9uQgPgQQISSwoKY2l2aWxfdGltZRgDIAEoCzIyLmdv", + "b2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LkNpdmlsRGF0ZVRp", + "bWVCA+BBA0KKAgonY29tLmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVh", + "bHRoLnY0QhREYXRhQ29vcmRpbmF0ZXNQcm90b1ABWlJnb29nbGUuZ29sYW5n", + "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2RldmljZXNhbmRzZXJ2aWNlcy9o", + "ZWFsdGgvYXBpdjRtYWluO2hlYWx0aHBiqgIjR29vZ2xlLkRldmljZXNBbmRT", + "ZXJ2aWNlcy5IZWFsdGguVjTKAiNHb29nbGVcRGV2aWNlc0FuZFNlcnZpY2Vz", + "XEhlYWx0aFxWNOoCJkdvb2dsZTo6RGV2aWNlc0FuZFNlcnZpY2VzOjpIZWFs", + "dGg6OlY0YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Type.DateReflection.Descriptor, global::Google.Type.TimeofdayReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.CivilDateTime), global::Google.DevicesAndServices.Health.V4.CivilDateTime.Parser, new[]{ "Date", "Time" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.CivilTimeInterval), global::Google.DevicesAndServices.Health.V4.CivilTimeInterval.Parser, new[]{ "Start", "End" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval), global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval.Parser, new[]{ "StartTime", "StartUtcOffset", "EndTime", "EndUtcOffset", "CivilStartTime", "CivilEndTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.SessionTimeInterval), global::Google.DevicesAndServices.Health.V4.SessionTimeInterval.Parser, new[]{ "StartTime", "StartUtcOffset", "EndTime", "EndUtcOffset", "CivilStartTime", "CivilEndTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ObservationSampleTime), global::Google.DevicesAndServices.Health.V4.ObservationSampleTime.Parser, new[]{ "PhysicalTime", "UtcOffset", "CivilTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Civil time representation similar to + /// [google.type.DateTime][google.type.DateTime], but ensures that neither the + /// timezone nor the UTC offset can be set to avoid confusion between civil and + /// physical time queries. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CivilDateTime : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CivilDateTime()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataCoordinatesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CivilDateTime() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CivilDateTime(CivilDateTime other) : this() { + date_ = other.date_ != null ? other.date_.Clone() : null; + time_ = other.time_ != null ? other.time_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CivilDateTime Clone() { + return new CivilDateTime(this); + } + + /// Field number for the "date" field. + public const int DateFieldNumber = 1; + private global::Google.Type.Date date_; + /// + /// Required. Calendar date. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.Date Date { + get { return date_; } + set { + date_ = value; + } + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 2; + private global::Google.Type.TimeOfDay time_; + /// + /// Optional. Time of day. Defaults to the start of the day, at midnight if + /// omitted. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.TimeOfDay Time { + get { return time_; } + set { + time_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CivilDateTime); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CivilDateTime other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Date, other.Date)) return false; + if (!object.Equals(Time, other.Time)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (date_ != null) hash ^= Date.GetHashCode(); + if (time_ != null) hash ^= Time.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (date_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Date); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (date_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Date); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (date_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Date); + } + if (time_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CivilDateTime other) { + if (other == null) { + return; + } + if (other.date_ != null) { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + Date.MergeFrom(other.Date); + } + if (other.time_ != null) { + if (time_ == null) { + Time = new global::Google.Type.TimeOfDay(); + } + Time.MergeFrom(other.Time); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Google.Type.TimeOfDay(); + } + input.ReadMessage(Time); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Google.Type.TimeOfDay(); + } + input.ReadMessage(Time); + break; + } + } + } + } + #endif + + } + + /// + /// Counterpart of [google.type.Interval][google.type.Interval], but using + /// [CivilDateTime][google.devicesandservices.health.v4.CivilDateTime]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CivilTimeInterval : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CivilTimeInterval()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataCoordinatesReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CivilTimeInterval() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CivilTimeInterval(CivilTimeInterval other) : this() { + start_ = other.start_ != null ? other.start_.Clone() : null; + end_ = other.end_ != null ? other.end_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CivilTimeInterval Clone() { + return new CivilTimeInterval(this); + } + + /// Field number for the "start" field. + public const int StartFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.CivilDateTime start_; + /// + /// Required. The inclusive start of the range. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.CivilDateTime Start { + get { return start_; } + set { + start_ = value; + } + } + + /// Field number for the "end" field. + public const int EndFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.CivilDateTime end_; + /// + /// Required. The exclusive end of the range. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.CivilDateTime End { + get { return end_; } + set { + end_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CivilTimeInterval); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CivilTimeInterval other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Start, other.Start)) return false; + if (!object.Equals(End, other.End)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (start_ != null) hash ^= Start.GetHashCode(); + if (end_ != null) hash ^= End.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (start_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Start); + } + if (end_ != null) { + output.WriteRawTag(18); + output.WriteMessage(End); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (start_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Start); + } + if (end_ != null) { + output.WriteRawTag(18); + output.WriteMessage(End); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (start_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Start); + } + if (end_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(End); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CivilTimeInterval other) { + if (other == null) { + return; + } + if (other.start_ != null) { + if (start_ == null) { + Start = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + Start.MergeFrom(other.Start); + } + if (other.end_ != null) { + if (end_ == null) { + End = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + End.MergeFrom(other.End); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (start_ == null) { + Start = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(Start); + break; + } + case 18: { + if (end_ == null) { + End = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(End); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (start_ == null) { + Start = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(Start); + break; + } + case 18: { + if (end_ == null) { + End = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(End); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a time interval of an observed data point. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ObservationTimeInterval : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ObservationTimeInterval()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataCoordinatesReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ObservationTimeInterval() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ObservationTimeInterval(ObservationTimeInterval other) : this() { + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + startUtcOffset_ = other.startUtcOffset_ != null ? other.startUtcOffset_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + endUtcOffset_ = other.endUtcOffset_ != null ? other.endUtcOffset_.Clone() : null; + civilStartTime_ = other.civilStartTime_ != null ? other.civilStartTime_.Clone() : null; + civilEndTime_ = other.civilEndTime_ != null ? other.civilEndTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ObservationTimeInterval Clone() { + return new ObservationTimeInterval(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// Required. Observed interval start time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "start_utc_offset" field. + public const int StartUtcOffsetFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Duration startUtcOffset_; + /// + /// Required. The offset of the user's local time at the start of the + /// observation relative to the Coordinated Universal Time (UTC). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration StartUtcOffset { + get { return startUtcOffset_; } + set { + startUtcOffset_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Required. Observed interval end time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "end_utc_offset" field. + public const int EndUtcOffsetFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Duration endUtcOffset_; + /// + /// Required. The offset of the user's local time at the end of the observation + /// relative to the Coordinated Universal Time (UTC). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration EndUtcOffset { + get { return endUtcOffset_; } + set { + endUtcOffset_ = value; + } + } + + /// Field number for the "civil_start_time" field. + public const int CivilStartTimeFieldNumber = 5; + private global::Google.DevicesAndServices.Health.V4.CivilDateTime civilStartTime_; + /// + /// Output only. Observed interval start time in civil time in the timezone the + /// subject is in at the start of the observed interval + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.CivilDateTime CivilStartTime { + get { return civilStartTime_; } + set { + civilStartTime_ = value; + } + } + + /// Field number for the "civil_end_time" field. + public const int CivilEndTimeFieldNumber = 6; + private global::Google.DevicesAndServices.Health.V4.CivilDateTime civilEndTime_; + /// + /// Output only. Observed interval end time in civil time in the timezone the + /// subject is in at the end of the observed interval + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.CivilDateTime CivilEndTime { + get { return civilEndTime_; } + set { + civilEndTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ObservationTimeInterval); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ObservationTimeInterval other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(StartUtcOffset, other.StartUtcOffset)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (!object.Equals(EndUtcOffset, other.EndUtcOffset)) return false; + if (!object.Equals(CivilStartTime, other.CivilStartTime)) return false; + if (!object.Equals(CivilEndTime, other.CivilEndTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (startUtcOffset_ != null) hash ^= StartUtcOffset.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (endUtcOffset_ != null) hash ^= EndUtcOffset.GetHashCode(); + if (civilStartTime_ != null) hash ^= CivilStartTime.GetHashCode(); + if (civilEndTime_ != null) hash ^= CivilEndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (startUtcOffset_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartUtcOffset); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (endUtcOffset_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndUtcOffset); + } + if (civilStartTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CivilStartTime); + } + if (civilEndTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CivilEndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (startUtcOffset_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartUtcOffset); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (endUtcOffset_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndUtcOffset); + } + if (civilStartTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CivilStartTime); + } + if (civilEndTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CivilEndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (startUtcOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartUtcOffset); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (endUtcOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndUtcOffset); + } + if (civilStartTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CivilStartTime); + } + if (civilEndTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CivilEndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ObservationTimeInterval other) { + if (other == null) { + return; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.startUtcOffset_ != null) { + if (startUtcOffset_ == null) { + StartUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + StartUtcOffset.MergeFrom(other.StartUtcOffset); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.endUtcOffset_ != null) { + if (endUtcOffset_ == null) { + EndUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + EndUtcOffset.MergeFrom(other.EndUtcOffset); + } + if (other.civilStartTime_ != null) { + if (civilStartTime_ == null) { + CivilStartTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + CivilStartTime.MergeFrom(other.CivilStartTime); + } + if (other.civilEndTime_ != null) { + if (civilEndTime_ == null) { + CivilEndTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + CivilEndTime.MergeFrom(other.CivilEndTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (startUtcOffset_ == null) { + StartUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartUtcOffset); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 34: { + if (endUtcOffset_ == null) { + EndUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndUtcOffset); + break; + } + case 42: { + if (civilStartTime_ == null) { + CivilStartTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(CivilStartTime); + break; + } + case 50: { + if (civilEndTime_ == null) { + CivilEndTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(CivilEndTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (startUtcOffset_ == null) { + StartUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartUtcOffset); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 34: { + if (endUtcOffset_ == null) { + EndUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndUtcOffset); + break; + } + case 42: { + if (civilStartTime_ == null) { + CivilStartTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(CivilStartTime); + break; + } + case 50: { + if (civilEndTime_ == null) { + CivilEndTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(CivilEndTime); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a time interval of session data point, which bundles multiple + /// observed metrics together. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SessionTimeInterval : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SessionTimeInterval()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataCoordinatesReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SessionTimeInterval() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SessionTimeInterval(SessionTimeInterval other) : this() { + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + startUtcOffset_ = other.startUtcOffset_ != null ? other.startUtcOffset_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + endUtcOffset_ = other.endUtcOffset_ != null ? other.endUtcOffset_.Clone() : null; + civilStartTime_ = other.civilStartTime_ != null ? other.civilStartTime_.Clone() : null; + civilEndTime_ = other.civilEndTime_ != null ? other.civilEndTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SessionTimeInterval Clone() { + return new SessionTimeInterval(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// Required. The start time of the observed session. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "start_utc_offset" field. + public const int StartUtcOffsetFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Duration startUtcOffset_; + /// + /// Required. The offset of the user's local time at the start of the session + /// relative to the Coordinated Universal Time (UTC). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration StartUtcOffset { + get { return startUtcOffset_; } + set { + startUtcOffset_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Required. The end time of the observed session. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "end_utc_offset" field. + public const int EndUtcOffsetFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Duration endUtcOffset_; + /// + /// Required. The offset of the user's local time at the end of the session + /// relative to the Coordinated Universal Time (UTC). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration EndUtcOffset { + get { return endUtcOffset_; } + set { + endUtcOffset_ = value; + } + } + + /// Field number for the "civil_start_time" field. + public const int CivilStartTimeFieldNumber = 5; + private global::Google.DevicesAndServices.Health.V4.CivilDateTime civilStartTime_; + /// + /// Output only. Session start time in civil time in the timezone the subject + /// is in at the start of the session. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.CivilDateTime CivilStartTime { + get { return civilStartTime_; } + set { + civilStartTime_ = value; + } + } + + /// Field number for the "civil_end_time" field. + public const int CivilEndTimeFieldNumber = 6; + private global::Google.DevicesAndServices.Health.V4.CivilDateTime civilEndTime_; + /// + /// Output only. Session end time in civil time in the timezone the subject is + /// in at the end of the session. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.CivilDateTime CivilEndTime { + get { return civilEndTime_; } + set { + civilEndTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SessionTimeInterval); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SessionTimeInterval other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(StartUtcOffset, other.StartUtcOffset)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (!object.Equals(EndUtcOffset, other.EndUtcOffset)) return false; + if (!object.Equals(CivilStartTime, other.CivilStartTime)) return false; + if (!object.Equals(CivilEndTime, other.CivilEndTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (startUtcOffset_ != null) hash ^= StartUtcOffset.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (endUtcOffset_ != null) hash ^= EndUtcOffset.GetHashCode(); + if (civilStartTime_ != null) hash ^= CivilStartTime.GetHashCode(); + if (civilEndTime_ != null) hash ^= CivilEndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (startUtcOffset_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartUtcOffset); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (endUtcOffset_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndUtcOffset); + } + if (civilStartTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CivilStartTime); + } + if (civilEndTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CivilEndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (startUtcOffset_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartUtcOffset); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (endUtcOffset_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndUtcOffset); + } + if (civilStartTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CivilStartTime); + } + if (civilEndTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CivilEndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (startUtcOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartUtcOffset); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (endUtcOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndUtcOffset); + } + if (civilStartTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CivilStartTime); + } + if (civilEndTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CivilEndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SessionTimeInterval other) { + if (other == null) { + return; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.startUtcOffset_ != null) { + if (startUtcOffset_ == null) { + StartUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + StartUtcOffset.MergeFrom(other.StartUtcOffset); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.endUtcOffset_ != null) { + if (endUtcOffset_ == null) { + EndUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + EndUtcOffset.MergeFrom(other.EndUtcOffset); + } + if (other.civilStartTime_ != null) { + if (civilStartTime_ == null) { + CivilStartTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + CivilStartTime.MergeFrom(other.CivilStartTime); + } + if (other.civilEndTime_ != null) { + if (civilEndTime_ == null) { + CivilEndTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + CivilEndTime.MergeFrom(other.CivilEndTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (startUtcOffset_ == null) { + StartUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartUtcOffset); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 34: { + if (endUtcOffset_ == null) { + EndUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndUtcOffset); + break; + } + case 42: { + if (civilStartTime_ == null) { + CivilStartTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(CivilStartTime); + break; + } + case 50: { + if (civilEndTime_ == null) { + CivilEndTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(CivilEndTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (startUtcOffset_ == null) { + StartUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartUtcOffset); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 34: { + if (endUtcOffset_ == null) { + EndUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndUtcOffset); + break; + } + case 42: { + if (civilStartTime_ == null) { + CivilStartTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(CivilStartTime); + break; + } + case 50: { + if (civilEndTime_ == null) { + CivilEndTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(CivilEndTime); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a sample time of an observed data point. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ObservationSampleTime : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ObservationSampleTime()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataCoordinatesReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ObservationSampleTime() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ObservationSampleTime(ObservationSampleTime other) : this() { + physicalTime_ = other.physicalTime_ != null ? other.physicalTime_.Clone() : null; + utcOffset_ = other.utcOffset_ != null ? other.utcOffset_.Clone() : null; + civilTime_ = other.civilTime_ != null ? other.civilTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ObservationSampleTime Clone() { + return new ObservationSampleTime(this); + } + + /// Field number for the "physical_time" field. + public const int PhysicalTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp physicalTime_; + /// + /// Required. The time of the observation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp PhysicalTime { + get { return physicalTime_; } + set { + physicalTime_ = value; + } + } + + /// Field number for the "utc_offset" field. + public const int UtcOffsetFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Duration utcOffset_; + /// + /// Required. The offset of the user's local time during the observation + /// relative to the Coordinated Universal Time (UTC). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration UtcOffset { + get { return utcOffset_; } + set { + utcOffset_ = value; + } + } + + /// Field number for the "civil_time" field. + public const int CivilTimeFieldNumber = 3; + private global::Google.DevicesAndServices.Health.V4.CivilDateTime civilTime_; + /// + /// Output only. The civil time in the timezone the subject is in + /// at the time of the observation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.CivilDateTime CivilTime { + get { return civilTime_; } + set { + civilTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ObservationSampleTime); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ObservationSampleTime other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(PhysicalTime, other.PhysicalTime)) return false; + if (!object.Equals(UtcOffset, other.UtcOffset)) return false; + if (!object.Equals(CivilTime, other.CivilTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (physicalTime_ != null) hash ^= PhysicalTime.GetHashCode(); + if (utcOffset_ != null) hash ^= UtcOffset.GetHashCode(); + if (civilTime_ != null) hash ^= CivilTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (physicalTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(PhysicalTime); + } + if (utcOffset_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UtcOffset); + } + if (civilTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CivilTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (physicalTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(PhysicalTime); + } + if (utcOffset_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UtcOffset); + } + if (civilTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CivilTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (physicalTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PhysicalTime); + } + if (utcOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UtcOffset); + } + if (civilTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CivilTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ObservationSampleTime other) { + if (other == null) { + return; + } + if (other.physicalTime_ != null) { + if (physicalTime_ == null) { + PhysicalTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + PhysicalTime.MergeFrom(other.PhysicalTime); + } + if (other.utcOffset_ != null) { + if (utcOffset_ == null) { + UtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + UtcOffset.MergeFrom(other.UtcOffset); + } + if (other.civilTime_ != null) { + if (civilTime_ == null) { + CivilTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + CivilTime.MergeFrom(other.CivilTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (physicalTime_ == null) { + PhysicalTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PhysicalTime); + break; + } + case 18: { + if (utcOffset_ == null) { + UtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(UtcOffset); + break; + } + case 26: { + if (civilTime_ == null) { + CivilTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(CivilTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (physicalTime_ == null) { + PhysicalTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(PhysicalTime); + break; + } + case 18: { + if (utcOffset_ == null) { + UtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(UtcOffset); + break; + } + case 26: { + if (civilTime_ == null) { + CivilTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(CivilTime); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataModel.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataModel.g.cs new file mode 100644 index 000000000000..3e3331146ad7 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataModel.g.cs @@ -0,0 +1,21087 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devicesandservices/health/v4/data_model.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Google.DevicesAndServices.Health.V4 { + + /// Holder for reflection information generated from google/devicesandservices/health/v4/data_model.proto + public static partial class DataModelReflection { + + #region Descriptor + /// File descriptor for google/devicesandservices/health/v4/data_model.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DataModelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjRnb29nbGUvZGV2aWNlc2FuZHNlcnZpY2VzL2hlYWx0aC92NC9kYXRhX21v", + "ZGVsLnByb3RvEiNnb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52", + "NBofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxo6Z29vZ2xlL2Rl", + "dmljZXNhbmRzZXJ2aWNlcy9oZWFsdGgvdjQvZGF0YV9jb29yZGluYXRlcy5w", + "cm90bxoeZ29vZ2xlL3Byb3RvYnVmL2R1cmF0aW9uLnByb3RvGh9nb29nbGUv", + "cHJvdG9idWYvdGltZXN0YW1wLnByb3RvGhZnb29nbGUvdHlwZS9kYXRlLnBy", + "b3RvIsQCChFBY3RpdmVab25lTWludXRlcxJTCghpbnRlcnZhbBgBIAEoCzI8", + "Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0Lk9ic2VydmF0", + "aW9uVGltZUludGVydmFsQgPgQQISYgoPaGVhcnRfcmF0ZV96b25lGAIgASgO", + "MkQuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuQWN0aXZl", + "Wm9uZU1pbnV0ZXMuSGVhcnRSYXRlWm9uZUID4EECEiAKE2FjdGl2ZV96b25l", + "X21pbnV0ZXMYAyABKANCA+BBAiJUCg1IZWFydFJhdGVab25lEh8KG0hFQVJU", + "X1JBVEVfWk9ORV9VTlNQRUNJRklFRBAAEgwKCEZBVF9CVVJOEAESCgoGQ0FS", + "RElPEAISCAoEUEVBSxADIoQBChxBY3RpdmVab25lTWludXRlc1JvbGx1cFZh", + "bHVlEiAKGHN1bV9pbl9jYXJkaW9faGVhcnRfem9uZRgBIAEoAxIeChZzdW1f", + "aW5fcGVha19oZWFydF96b25lGAIgASgDEiIKGnN1bV9pbl9mYXRfYnVybl9o", + "ZWFydF96b25lGAMgASgDItkDCg1BY3RpdmVNaW51dGVzElMKCGludGVydmFs", + "GAEgASgLMjwuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQu", + "T2JzZXJ2YXRpb25UaW1lSW50ZXJ2YWxCA+BBAhJ+CiBhY3RpdmVfbWludXRl", + "c19ieV9hY3Rpdml0eV9sZXZlbBgCIAMoCzJPLmdvb2dsZS5kZXZpY2VzYW5k", + "c2VydmljZXMuaGVhbHRoLnY0LkFjdGl2ZU1pbnV0ZXMuQWN0aXZlTWludXRl", + "c0J5QWN0aXZpdHlMZXZlbEID4EECGpoBChxBY3RpdmVNaW51dGVzQnlBY3Rp", + "dml0eUxldmVsEl0KDmFjdGl2aXR5X2xldmVsGAEgASgOMkAuZ29vZ2xlLmRl", + "dmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuQWN0aXZlTWludXRlcy5BY3Rp", + "dml0eUxldmVsQgPgQQISGwoOYWN0aXZlX21pbnV0ZXMYAiABKANCA+BBAiJW", + "Cg1BY3Rpdml0eUxldmVsEh4KGkFDVElWSVRZX0xFVkVMX1VOU1BFQ0lGSUVE", + "EAASCQoFTElHSFQQARIMCghNT0RFUkFURRACEgwKCFZJR09ST1VTEAMiywIK", + "GEFjdGl2ZU1pbnV0ZXNSb2xsdXBWYWx1ZRKRAQonYWN0aXZlX21pbnV0ZXNf", + "cm9sbHVwX2J5X2FjdGl2aXR5X2xldmVsGAEgAygLMmAuZ29vZ2xlLmRldmlj", + "ZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuQWN0aXZlTWludXRlc1JvbGx1cFZh", + "bHVlLkFjdGl2ZU1pbnV0ZXNSb2xsdXBCeUFjdGl2aXR5TGV2ZWwamgEKIkFj", + "dGl2ZU1pbnV0ZXNSb2xsdXBCeUFjdGl2aXR5TGV2ZWwSWAoOYWN0aXZpdHlf", + "bGV2ZWwYASABKA4yQC5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0", + "aC52NC5BY3RpdmVNaW51dGVzLkFjdGl2aXR5TGV2ZWwSGgoSYWN0aXZlX21p", + "bnV0ZXNfc3VtGAIgASgDItICCg1BY3Rpdml0eUxldmVsElMKCGludGVydmFs", + "GAEgASgLMjwuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQu", + "T2JzZXJ2YXRpb25UaW1lSW50ZXJ2YWxCA+BBAhJmChNhY3Rpdml0eV9sZXZl", + "bF90eXBlGAIgASgOMkQuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFs", + "dGgudjQuQWN0aXZpdHlMZXZlbC5BY3Rpdml0eUxldmVsVHlwZUID4EECIoMB", + "ChFBY3Rpdml0eUxldmVsVHlwZRIjCh9BQ1RJVklUWV9MRVZFTF9UWVBFX1VO", + "U1BFQ0lGSUVEEAASDQoJU0VERU5UQVJZEAESEgoOTElHSFRMWV9BQ1RJVkUQ", + "AhIVChFNT0RFUkFURUxZX0FDVElWRRADEg8KC1ZFUllfQUNUSVZFEAQi+QIK", + "GEFjdGl2aXR5TGV2ZWxSb2xsdXBWYWx1ZRKbAQotYWN0aXZpdHlfbGV2ZWxf", + "cm9sbHVwc19ieV9hY3Rpdml0eV9sZXZlbF90eXBlGAEgAygLMmQuZ29vZ2xl", + "LmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuQWN0aXZpdHlMZXZlbFJv", + "bGx1cFZhbHVlLkFjdGl2aXR5TGV2ZWxSb2xsdXBCeUFjdGl2aXR5TGV2ZWxU", + "eXBlGr4BCiZBY3Rpdml0eUxldmVsUm9sbHVwQnlBY3Rpdml0eUxldmVsVHlw", + "ZRJhChNhY3Rpdml0eV9sZXZlbF90eXBlGAEgASgOMkQuZ29vZ2xlLmRldmlj", + "ZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuQWN0aXZpdHlMZXZlbC5BY3Rpdml0", + "eUxldmVsVHlwZRIxCg50b3RhbF9kdXJhdGlvbhgCIAEoCzIZLmdvb2dsZS5w", + "cm90b2J1Zi5EdXJhdGlvbiJ+CghBbHRpdHVkZRJTCghpbnRlcnZhbBgCIAEo", + "CzI8Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0Lk9ic2Vy", + "dmF0aW9uVGltZUludGVydmFsQgPgQQISHQoQZ2Fpbl9taWxsaW1ldGVycxgD", + "IAEoA0ID4EECIngKB0JvZHlGYXQSVAoLc2FtcGxlX3RpbWUYAiABKAsyOi5n", + "b29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5PYnNlcnZhdGlv", + "blNhbXBsZVRpbWVCA+BBAhIXCgpwZXJjZW50YWdlGAMgASgBQgPgQQIiNQoS", + "Qm9keUZhdFJvbGx1cFZhbHVlEh8KF2JvZHlfZmF0X3BlcmNlbnRhZ2VfYXZn", + "GAEgASgBIrACCiJDYWxvcmllc0luSGVhcnRSYXRlWm9uZVJvbGx1cFZhbHVl", + "EooBChxjYWxvcmllc19pbl9oZWFydF9yYXRlX3pvbmVzGAEgAygLMmQuZ29v", + "Z2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuQ2Fsb3JpZXNJbkhl", + "YXJ0UmF0ZVpvbmVSb2xsdXBWYWx1ZS5DYWxvcmllc0luSGVhcnRSYXRlWm9u", + "ZVZhbHVlGn0KHENhbG9yaWVzSW5IZWFydFJhdGVab25lVmFsdWUSTwoPaGVh", + "cnRfcmF0ZV96b25lGAEgASgOMjYuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNl", + "cy5oZWFsdGgudjQuSGVhcnRSYXRlWm9uZVR5cGUSDAoEa2NhbBgCIAEoASLV", + "AgoTRGFpbHlIZWFydFJhdGVab25lcxIkCgRkYXRlGAEgASgLMhEuZ29vZ2xl", + "LnR5cGUuRGF0ZUID4EECEmUKEGhlYXJ0X3JhdGVfem9uZXMYAiADKAsyRi5n", + "b29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5EYWlseUhlYXJ0", + "UmF0ZVpvbmVzLkhlYXJ0UmF0ZVpvbmVCA+BBAhqwAQoNSGVhcnRSYXRlWm9u", + "ZRJZChRoZWFydF9yYXRlX3pvbmVfdHlwZRgBIAEoDjI2Lmdvb2dsZS5kZXZp", + "Y2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LkhlYXJ0UmF0ZVpvbmVUeXBlQgPg", + "QQISIQoUbWluX2JlYXRzX3Blcl9taW51dGUYAiABKANCA+BBAhIhChRtYXhf", + "YmVhdHNfcGVyX21pbnV0ZRgDIAEoA0ID4EECItMDChlEYWlseUhlYXJ0UmF0", + "ZVZhcmlhYmlsaXR5EiQKBGRhdGUYAiABKAsyES5nb29nbGUudHlwZS5EYXRl", + "QgPgQQISPQorYXZlcmFnZV9oZWFydF9yYXRlX3ZhcmlhYmlsaXR5X21pbGxp", + "c2Vjb25kcxgEIAEoAUID4EEBSACIAQESNQojbm9uX3JlbV9oZWFydF9yYXRl", + "X2JlYXRzX3Blcl9taW51dGUYBSABKANCA+BBAUgBiAEBEhkKB2VudHJvcHkY", + "BiABKAFCA+BBAUgCiAEBElQKQmRlZXBfc2xlZXBfcm9vdF9tZWFuX3NxdWFy", + "ZV9vZl9zdWNjZXNzaXZlX2RpZmZlcmVuY2VzX21pbGxpc2Vjb25kcxgHIAEo", + "AUID4EEBSAOIAQFCLgosX2F2ZXJhZ2VfaGVhcnRfcmF0ZV92YXJpYWJpbGl0", + "eV9taWxsaXNlY29uZHNCJgokX25vbl9yZW1faGVhcnRfcmF0ZV9iZWF0c19w", + "ZXJfbWludXRlQgoKCF9lbnRyb3B5QkUKQ19kZWVwX3NsZWVwX3Jvb3RfbWVh", + "bl9zcXVhcmVfb2Zfc3VjY2Vzc2l2ZV9kaWZmZXJlbmNlc19taWxsaXNlY29u", + "ZHMiXQoURGFpbHlSZXNwaXJhdG9yeVJhdGUSJAoEZGF0ZRgBIAEoCzIRLmdv", + "b2dsZS50eXBlLkRhdGVCA+BBAhIfChJicmVhdGhzX3Blcl9taW51dGUYAiAB", + "KAFCA+BBAiLUAQoVRGFpbHlPeHlnZW5TYXR1cmF0aW9uEiQKBGRhdGUYASAB", + "KAsyES5nb29nbGUudHlwZS5EYXRlQgPgQQISHwoSYXZlcmFnZV9wZXJjZW50", + "YWdlGAIgASgBQgPgQQISIwoWbG93ZXJfYm91bmRfcGVyY2VudGFnZRgDIAEo", + "AUID4EECEiMKFnVwcGVyX2JvdW5kX3BlcmNlbnRhZ2UYBCABKAFCA+BBAhIq", + "Ch1zdGFuZGFyZF9kZXZpYXRpb25fcGVyY2VudGFnZRgFIAEoAUID4EEBIvoD", + "ChVEYWlseVJlc3RpbmdIZWFydFJhdGUSJAoEZGF0ZRgCIAEoCzIRLmdvb2ds", + "ZS50eXBlLkRhdGVCA+BBAhIdChBiZWF0c19wZXJfbWludXRlGAQgASgDQgPg", + "QQISiAEKIWRhaWx5X3Jlc3RpbmdfaGVhcnRfcmF0ZV9tZXRhZGF0YRgFIAEo", + "CzJYLmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LkRhaWx5", + "UmVzdGluZ0hlYXJ0UmF0ZS5EYWlseVJlc3RpbmdIZWFydFJhdGVNZXRhZGF0", + "YUID4EEBGpACCh1EYWlseVJlc3RpbmdIZWFydFJhdGVNZXRhZGF0YRKLAQoS", + "Y2FsY3VsYXRpb25fbWV0aG9kGAEgASgOMmouZ29vZ2xlLmRldmljZXNhbmRz", + "ZXJ2aWNlcy5oZWFsdGgudjQuRGFpbHlSZXN0aW5nSGVhcnRSYXRlLkRhaWx5", + "UmVzdGluZ0hlYXJ0UmF0ZU1ldGFkYXRhLkNhbGN1bGF0aW9uTWV0aG9kQgPg", + "QQIiYQoRQ2FsY3VsYXRpb25NZXRob2QSIgoeQ0FMQ1VMQVRJT05fTUVUSE9E", + "X1VOU1BFQ0lGSUVEEAASDgoKV0lUSF9TTEVFUBABEhgKFE9OTFlfV0lUSF9B", + "V0FLRV9EQVRBEAIizwEKIERhaWx5U2xlZXBUZW1wZXJhdHVyZURlcml2YXRp", + "b25zEiQKBGRhdGUYASABKAsyES5nb29nbGUudHlwZS5EYXRlQgPgQQISKAob", + "bmlnaHRseV90ZW1wZXJhdHVyZV9jZWxzaXVzGAIgASgBQgPgQQISKQocYmFz", + "ZWxpbmVfdGVtcGVyYXR1cmVfY2Vsc2l1cxgDIAEoAUID4EEBEjAKI3JlbGF0", + "aXZlX25pZ2h0bHlfc3RkZGV2XzMwZF9jZWxzaXVzGAQgASgBQgPgQQEi8AIK", + "C0RhaWx5Vk8yTWF4EiQKBGRhdGUYASABKAsyES5nb29nbGUudHlwZS5EYXRl", + "QgPgQQISFAoHdm8yX21heBgCIAEoAUID4EECEhYKCWVzdGltYXRlZBgDIAEo", + "CEID4EEBEmYKFGNhcmRpb19maXRuZXNzX2xldmVsGAQgASgOMkMuZ29vZ2xl", + "LmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuRGFpbHlWTzJNYXguQ2Fy", + "ZGlvRml0bmVzc0xldmVsQgPgQQESHwoSdm8yX21heF9jb3ZhcmlhbmNlGAUg", + "ASgBQgPgQQEigwEKEkNhcmRpb0ZpdG5lc3NMZXZlbBIkCiBDQVJESU9fRklU", + "TkVTU19MRVZFTF9VTlNQRUNJRklFRBAAEggKBFBPT1IQARIICgRGQUlSEAIS", + "CwoHQVZFUkFHRRADEggKBEdPT0QQBBINCglWRVJZX0dPT0QQBRINCglFWENF", + "TExFTlQQBiJ5CghEaXN0YW5jZRJTCghpbnRlcnZhbBgCIAEoCzI8Lmdvb2ds", + "ZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0Lk9ic2VydmF0aW9uVGlt", + "ZUludGVydmFsQgPgQQISGAoLbWlsbGltZXRlcnMYAyABKANCA+BBAiIuChNE", + "aXN0YW5jZVJvbGx1cFZhbHVlEhcKD21pbGxpbWV0ZXJzX3N1bRgBIAEoAyKS", + "EAoIRXhlcmNpc2USTwoIaW50ZXJ2YWwYAiABKAsyOC5nb29nbGUuZGV2aWNl", + "c2FuZHNlcnZpY2VzLmhlYWx0aC52NC5TZXNzaW9uVGltZUludGVydmFsQgPg", + "QQISVgoNZXhlcmNpc2VfdHlwZRgGIAEoDjI6Lmdvb2dsZS5kZXZpY2VzYW5k", + "c2VydmljZXMuaGVhbHRoLnY0LkV4ZXJjaXNlLkV4ZXJjaXNlVHlwZUID4EEC", + "Ek8KBnNwbGl0cxgIIAMoCzI6Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMu", + "aGVhbHRoLnY0LkV4ZXJjaXNlLlNwbGl0U3VtbWFyeUID4EEBElkKD2V4ZXJj", + "aXNlX2V2ZW50cxgPIAMoCzI7Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMu", + "aGVhbHRoLnY0LkV4ZXJjaXNlLkV4ZXJjaXNlRXZlbnRCA+BBARJYCg9zcGxp", + "dF9zdW1tYXJpZXMYCSADKAsyOi5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2Vz", + "LmhlYWx0aC52NC5FeGVyY2lzZS5TcGxpdFN1bW1hcnlCA+BBARJRCg9tZXRy", + "aWNzX3N1bW1hcnkYCiABKAsyMy5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2Vz", + "LmhlYWx0aC52NC5NZXRyaWNzU3VtbWFyeUID4EECEl4KEWV4ZXJjaXNlX21l", + "dGFkYXRhGAsgASgLMj4uZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFs", + "dGgudjQuRXhlcmNpc2UuRXhlcmNpc2VNZXRhZGF0YUID4EEBEhkKDGRpc3Bs", + "YXlfbmFtZRgMIAEoCUID4EECEjcKD2FjdGl2ZV9kdXJhdGlvbhgNIAEoCzIZ", + "Lmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbkID4EEBEhIKBW5vdGVzGA4gASgJ", + "QgPgQQESNAoLdXBkYXRlX3RpbWUYECABKAsyGi5nb29nbGUucHJvdG9idWYu", + "VGltZXN0YW1wQgPgQQMSNAoLY3JlYXRlX3RpbWUYESABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuVGltZXN0YW1wQgPgQQMasgQKDFNwbGl0U3VtbWFyeRIzCgpz", + "dGFydF90aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID", + "4EECEjgKEHN0YXJ0X3V0Y19vZmZzZXQYAiABKAsyGS5nb29nbGUucHJvdG9i", + "dWYuRHVyYXRpb25CA+BBAhIxCghlbmRfdGltZRgDIAEoCzIaLmdvb2dsZS5w", + "cm90b2J1Zi5UaW1lc3RhbXBCA+BBAhI2Cg5lbmRfdXRjX29mZnNldBgEIAEo", + "CzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbkID4EECEjcKD2FjdGl2ZV9k", + "dXJhdGlvbhgFIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbkID4EED", + "ElEKD21ldHJpY3Nfc3VtbWFyeRgGIAEoCzIzLmdvb2dsZS5kZXZpY2VzYW5k", + "c2VydmljZXMuaGVhbHRoLnY0Lk1ldHJpY3NTdW1tYXJ5QgPgQQISXQoKc3Bs", + "aXRfdHlwZRgHIAEoDjJELmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVh", + "bHRoLnY0LkV4ZXJjaXNlLlNwbGl0U3VtbWFyeS5TcGxpdFR5cGVCA+BBAiJd", + "CglTcGxpdFR5cGUSGgoWU1BMSVRfVFlQRV9VTlNQRUNJRklFRBAAEgoKBk1B", + "TlVBTBABEgwKCERVUkFUSU9OEAISDAoIRElTVEFOQ0UQAxIMCghDQUxPUklF", + "UxAEGvcCCg1FeGVyY2lzZUV2ZW50EjMKCmV2ZW50X3RpbWUYASABKAsyGi5n", + "b29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQISOAoQZXZlbnRfdXRjX29m", + "ZnNldBgCIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbkID4EECEm8K", + "E2V4ZXJjaXNlX2V2ZW50X3R5cGUYAyABKA4yTS5nb29nbGUuZGV2aWNlc2Fu", + "ZHNlcnZpY2VzLmhlYWx0aC52NC5FeGVyY2lzZS5FeGVyY2lzZUV2ZW50LkV4", + "ZXJjaXNlRXZlbnRUeXBlQgPgQQIihQEKEUV4ZXJjaXNlRXZlbnRUeXBlEiMK", + "H0VYRVJDSVNFX0VWRU5UX1RZUEVfVU5TUEVDSUZJRUQQABIJCgVTVEFSVBAB", + "EggKBFNUT1AQAhIJCgVQQVVTRRADEgoKBlJFU1VNRRAEEg4KCkFVVE9fUEFV", + "U0UQBRIPCgtBVVRPX1JFU1VNRRAGGk4KEEV4ZXJjaXNlTWV0YWRhdGESJAoX", + "cG9vbF9sZW5ndGhfbWlsbGltZXRlcnMYASABKANCA+BBARIUCgdoYXNfZ3Bz", + "GAIgASgIQgPgQQEi0AEKDEV4ZXJjaXNlVHlwZRIdChlFWEVSQ0lTRV9UWVBF", + "X1VOU1BFQ0lGSUVEEAASCwoHUlVOTklORxABEgsKB1dBTEtJTkcQAhIKCgZC", + "SUtJTkcQAxIMCghTV0lNTUlORxAEEgoKBkhJS0lORxAFEggKBFlPR0EQBhIL", + "CgdQSUxBVEVTEAcSCwoHV09SS09VVBAIEggKBEhJSVQQCRIRCg1XRUlHSFRM", + "SUZUSU5HEAoSFQoRU1RSRU5HVEhfVFJBSU5JTkcQCxIJCgVPVEhFUhAMInEK", + "BkZsb29ycxJTCghpbnRlcnZhbBgCIAEoCzI8Lmdvb2dsZS5kZXZpY2VzYW5k", + "c2VydmljZXMuaGVhbHRoLnY0Lk9ic2VydmF0aW9uVGltZUludGVydmFsQgPg", + "QQISEgoFY291bnQYBCABKANCA+BBAiImChFGbG9vcnNSb2xsdXBWYWx1ZRIR", + "Cgljb3VudF9zdW0YASABKAMiMwoTQWx0aXR1ZGVSb2xsdXBWYWx1ZRIcChRn", + "YWluX21pbGxpbWV0ZXJzX3N1bRgBIAEoAyKOBQoJSGVhcnRSYXRlElQKC3Nh", + "bXBsZV90aW1lGAIgASgLMjouZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5o", + "ZWFsdGgudjQuT2JzZXJ2YXRpb25TYW1wbGVUaW1lQgPgQQISHQoQYmVhdHNf", + "cGVyX21pbnV0ZRgEIAEoA0ID4EECElcKCG1ldGFkYXRhGAYgASgLMkAuZ29v", + "Z2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuSGVhcnRSYXRlLkhl", + "YXJ0UmF0ZU1ldGFkYXRhQgPgQQEasgMKEUhlYXJ0UmF0ZU1ldGFkYXRhEmsK", + "Dm1vdGlvbl9jb250ZXh0GAEgASgOMk4uZ29vZ2xlLmRldmljZXNhbmRzZXJ2", + "aWNlcy5oZWFsdGgudjQuSGVhcnRSYXRlLkhlYXJ0UmF0ZU1ldGFkYXRhLk1v", + "dGlvbkNvbnRleHRCA+BBARJtCg9zZW5zb3JfbG9jYXRpb24YAiABKA4yTy5n", + "b29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5IZWFydFJhdGUu", + "SGVhcnRSYXRlTWV0YWRhdGEuU2Vuc29yTG9jYXRpb25CA+BBASJKCg1Nb3Rp", + "b25Db250ZXh0Eh4KGk1PVElPTl9DT05URVhUX1VOU1BFQ0lGSUVEEAASCgoG", + "QUNUSVZFEAESDQoJU0VERU5UQVJZEAIidQoOU2Vuc29yTG9jYXRpb24SHwob", + "U0VOU09SX0xPQ0FUSU9OX1VOU1BFQ0lGSUVEEAASCQoFQ0hFU1QQARIJCgVX", + "UklTVBACEgoKBkZJTkdFUhADEggKBEhBTkQQBBIMCghFQVJfTE9CRRAFEggK", + "BEZPT1QQBiLKAQoUSGVhcnRSYXRlUm9sbHVwVmFsdWUSIQoUYmVhdHNfcGVy", + "X21pbnV0ZV9hdmcYASABKAFIAIgBARIhChRiZWF0c19wZXJfbWludXRlX21h", + "eBgCIAEoAUgBiAEBEiEKFGJlYXRzX3Blcl9taW51dGVfbWluGAMgASgBSAKI", + "AQFCFwoVX2JlYXRzX3Blcl9taW51dGVfYXZnQhcKFV9iZWF0c19wZXJfbWlu", + "dXRlX21heEIXChVfYmVhdHNfcGVyX21pbnV0ZV9taW4iTAoUUnVuVk8yTWF4", + "Um9sbHVwVmFsdWUSEAoIcmF0ZV9taW4YASABKAESEAoIcmF0ZV9tYXgYAiAB", + "KAESEAoIcmF0ZV9hdmcYAyABKAEiewoJUnVuVk8yTWF4ElQKC3NhbXBsZV90", + "aW1lGAEgASgLMjouZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgu", + "djQuT2JzZXJ2YXRpb25TYW1wbGVUaW1lQgPgQQISGAoLcnVuX3ZvMl9tYXgY", + "AiABKAFCA+BBAiKSAgosSGVhcnRSYXRlVmFyaWFiaWxpdHlQZXJzb25hbFJh", + "bmdlUm9sbHVwVmFsdWUSPAovYXZlcmFnZV9oZWFydF9yYXRlX3ZhcmlhYmls", + "aXR5X21pbGxpc2Vjb25kc19taW4YASABKAFIAIgBARI8Ci9hdmVyYWdlX2hl", + "YXJ0X3JhdGVfdmFyaWFiaWxpdHlfbWlsbGlzZWNvbmRzX21heBgCIAEoAUgB", + "iAEBQjIKMF9hdmVyYWdlX2hlYXJ0X3JhdGVfdmFyaWFiaWxpdHlfbWlsbGlz", + "ZWNvbmRzX21pbkIyCjBfYXZlcmFnZV9oZWFydF9yYXRlX3ZhcmlhYmlsaXR5", + "X21pbGxpc2Vjb25kc19tYXgi4AEKFEhlYXJ0UmF0ZVZhcmlhYmlsaXR5ElQK", + "C3NhbXBsZV90aW1lGAEgASgLMjouZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNl", + "cy5oZWFsdGgudjQuT2JzZXJ2YXRpb25TYW1wbGVUaW1lQgPgQQISRAo3cm9v", + "dF9tZWFuX3NxdWFyZV9vZl9zdWNjZXNzaXZlX2RpZmZlcmVuY2VzX21pbGxp", + "c2Vjb25kcxgCIAEoAUID4EEBEiwKH3N0YW5kYXJkX2RldmlhdGlvbl9taWxs", + "aXNlY29uZHMYAyABKAFCA+BBASJ8Cg5Wb2x1bWVRdWFudGl0eRIYCgttaWxs", + "aWxpdGVycxgBIAEoAUID4EECElAKEnVzZXJfcHJvdmlkZWRfdW5pdBgCIAEo", + "DjIvLmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LlZvbHVt", + "ZVVuaXRCA+BBASKyAQoMSHlkcmF0aW9uTG9nEk8KCGludGVydmFsGAEgASgL", + "MjguZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuU2Vzc2lv", + "blRpbWVJbnRlcnZhbEID4EECElEKD2Ftb3VudF9jb25zdW1lZBgCIAEoCzIz", + "Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LlZvbHVtZVF1", + "YW50aXR5QgPgQQIikwIKF0h5ZHJhdGlvbkxvZ1JvbGx1cFZhbHVlEmoKD2Ft", + "b3VudF9jb25zdW1lZBgBIAEoCzJRLmdvb2dsZS5kZXZpY2VzYW5kc2Vydmlj", + "ZXMuaGVhbHRoLnY0Lkh5ZHJhdGlvbkxvZ1JvbGx1cFZhbHVlLlZvbHVtZVF1", + "YW50aXR5Um9sbHVwGosBChRWb2x1bWVRdWFudGl0eVJvbGx1cBIcCg9taWxs", + "aWxpdGVyc19zdW0YASABKAFCA+BBAhJVChd1c2VyX3Byb3ZpZGVkX3VuaXRf", + "bGFzdBgCIAEoDjIvLmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRo", + "LnY0LlZvbHVtZVVuaXRCA+BBASKYDAoOTWV0cmljc1N1bW1hcnkSHwoNY2Fs", + "b3JpZXNfa2NhbBgBIAEoAUID4EEBSACIAQESJgoUZGlzdGFuY2VfbWlsbGlt", + "ZXRlcnMYAiABKAFCA+BBAUgBiAEBEhcKBXN0ZXBzGAMgASgDQgPgQQFIAogB", + "ARI2CiRhdmVyYWdlX3NwZWVkX21pbGxpbWV0ZXJzX3Blcl9zZWNvbmQYBCAB", + "KAFCA+BBAUgDiAEBEjAKHmF2ZXJhZ2VfcGFjZV9zZWNvbmRzX3Blcl9tZXRl", + "chgFIAEoAUID4EEBSASIAQESNQojYXZlcmFnZV9oZWFydF9yYXRlX2JlYXRz", + "X3Blcl9taW51dGUYBiABKANCA+BBAUgFiAEBEiwKGmVsZXZhdGlvbl9nYWlu", + "X21pbGxpbWV0ZXJzGAcgASgBQgPgQQFIBogBARIlChNhY3RpdmVfem9uZV9t", + "aW51dGVzGAkgASgDQgPgQQFIB4gBARIdCgtydW5fdm8yX21heBgKIAEoAUID", + "4EEBSAiIAQESJAoSdG90YWxfc3dpbV9sZW5ndGhzGAsgASgBQgPgQQFICYgB", + "ARJwChloZWFydF9yYXRlX3pvbmVfZHVyYXRpb25zGAwgASgLMkguZ29vZ2xl", + "LmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuTWV0cmljc1N1bW1hcnku", + "VGltZUluSGVhcnRSYXRlWm9uZXNCA+BBARJiChBtb2JpbGl0eV9tZXRyaWNz", + "GA0gASgLMkMuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQu", + "TWV0cmljc1N1bW1hcnkuTW9iaWxpdHlNZXRyaWNzQgPgQQEa6wEKFFRpbWVJ", + "bkhlYXJ0UmF0ZVpvbmVzEjIKCmxpZ2h0X3RpbWUYASABKAsyGS5nb29nbGUu", + "cHJvdG9idWYuRHVyYXRpb25CA+BBARI1Cg1tb2RlcmF0ZV90aW1lGAIgASgL", + "MhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uQgPgQQESNQoNdmlnb3JvdXNf", + "dGltZRgDIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbkID4EEBEjEK", + "CXBlYWtfdGltZRgEIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbkID", + "4EEBGp0DCg9Nb2JpbGl0eU1ldHJpY3MSLgocYXZnX2NhZGVuY2Vfc3RlcHNf", + "cGVyX21pbnV0ZRgBIAEoAUID4EEBSACIAQESLwodYXZnX3N0cmlkZV9sZW5n", + "dGhfbWlsbGltZXRlcnMYAiABKANCA+BBAUgBiAEBEjYKJGF2Z192ZXJ0aWNh", + "bF9vc2NpbGxhdGlvbl9taWxsaW1ldGVycxgDIAEoA0ID4EEBSAKIAQESJAoS", + "YXZnX3ZlcnRpY2FsX3JhdGlvGAQgASgBQgPgQQFIA4gBARJICiBhdmdfZ3Jv", + "dW5kX2NvbnRhY3RfdGltZV9kdXJhdGlvbhgFIAEoCzIZLmdvb2dsZS5wcm90", + "b2J1Zi5EdXJhdGlvbkID4EEBQh8KHV9hdmdfY2FkZW5jZV9zdGVwc19wZXJf", + "bWludXRlQiAKHl9hdmdfc3RyaWRlX2xlbmd0aF9taWxsaW1ldGVyc0InCiVf", + "YXZnX3ZlcnRpY2FsX29zY2lsbGF0aW9uX21pbGxpbWV0ZXJzQhUKE19hdmdf", + "dmVydGljYWxfcmF0aW9CEAoOX2NhbG9yaWVzX2tjYWxCFwoVX2Rpc3RhbmNl", + "X21pbGxpbWV0ZXJzQggKBl9zdGVwc0InCiVfYXZlcmFnZV9zcGVlZF9taWxs", + "aW1ldGVyc19wZXJfc2Vjb25kQiEKH19hdmVyYWdlX3BhY2Vfc2Vjb25kc19w", + "ZXJfbWV0ZXJCJgokX2F2ZXJhZ2VfaGVhcnRfcmF0ZV9iZWF0c19wZXJfbWlu", + "dXRlQh0KG19lbGV2YXRpb25fZ2Fpbl9taWxsaW1ldGVyc0IWChRfYWN0aXZl", + "X3pvbmVfbWludXRlc0IOCgxfcnVuX3ZvMl9tYXhCFQoTX3RvdGFsX3N3aW1f", + "bGVuZ3RocyKBAQoQT3h5Z2VuU2F0dXJhdGlvbhJUCgtzYW1wbGVfdGltZRgB", + "IAEoCzI6Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0Lk9i", + "c2VydmF0aW9uU2FtcGxlVGltZUID4EECEhcKCnBlcmNlbnRhZ2UYAiABKAFC", + "A+BBAiKiAQooUmVzdGluZ0hlYXJ0UmF0ZVBlcnNvbmFsUmFuZ2VSb2xsdXBW", + "YWx1ZRIhChRiZWF0c19wZXJfbWludXRlX21pbhgBIAEoAUgAiAEBEiEKFGJl", + "YXRzX3Blcl9taW51dGVfbWF4GAIgASgBSAGIAQFCFwoVX2JlYXRzX3Blcl9t", + "aW51dGVfbWluQhcKFV9iZWF0c19wZXJfbWludXRlX21heCKdBgobUmVzcGly", + "YXRvcnlSYXRlU2xlZXBTdW1tYXJ5ElQKC3NhbXBsZV90aW1lGAEgASgLMjou", + "Z29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuT2JzZXJ2YXRp", + "b25TYW1wbGVUaW1lQgPgQQIShQEKEGRlZXBfc2xlZXBfc3RhdHMYAiABKAsy", + "Zi5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5SZXNwaXJh", + "dG9yeVJhdGVTbGVlcFN1bW1hcnkuUmVzcGlyYXRvcnlSYXRlU2xlZXBTdW1t", + "YXJ5U3RhdGlzdGljc0ID4EEBEoYBChFsaWdodF9zbGVlcF9zdGF0cxgDIAEo", + "CzJmLmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LlJlc3Bp", + "cmF0b3J5UmF0ZVNsZWVwU3VtbWFyeS5SZXNwaXJhdG9yeVJhdGVTbGVlcFN1", + "bW1hcnlTdGF0aXN0aWNzQgPgQQEShAEKD3JlbV9zbGVlcF9zdGF0cxgEIAEo", + "CzJmLmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LlJlc3Bp", + "cmF0b3J5UmF0ZVNsZWVwU3VtbWFyeS5SZXNwaXJhdG9yeVJhdGVTbGVlcFN1", + "bW1hcnlTdGF0aXN0aWNzQgPgQQEShQEKEGZ1bGxfc2xlZXBfc3RhdHMYBSAB", + "KAsyZi5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5SZXNw", + "aXJhdG9yeVJhdGVTbGVlcFN1bW1hcnkuUmVzcGlyYXRvcnlSYXRlU2xlZXBT", + "dW1tYXJ5U3RhdGlzdGljc0ID4EECGocBCiVSZXNwaXJhdG9yeVJhdGVTbGVl", + "cFN1bW1hcnlTdGF0aXN0aWNzEh8KEmJyZWF0aHNfcGVyX21pbnV0ZRgBIAEo", + "AUID4EECEh8KEnN0YW5kYXJkX2RldmlhdGlvbhgCIAEoAUID4EEBEhwKD3Np", + "Z25hbF90b19ub2lzZRgDIAEoAUID4EEBIpYTCgVTbGVlcBJPCghpbnRlcnZh", + "bBgDIAEoCzI4Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0", + "LlNlc3Npb25UaW1lSW50ZXJ2YWxCA+BBAhJHCgR0eXBlGAQgASgOMjQuZ29v", + "Z2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuU2xlZXAuU2xlZXBU", + "eXBlQgPgQQESSgoGc3RhZ2VzGAUgAygLMjUuZ29vZ2xlLmRldmljZXNhbmRz", + "ZXJ2aWNlcy5oZWFsdGgudjQuU2xlZXAuU2xlZXBTdGFnZUID4EEBElwKE291", + "dF9vZl9iZWRfc2VnbWVudHMYBiADKAsyOi5nb29nbGUuZGV2aWNlc2FuZHNl", + "cnZpY2VzLmhlYWx0aC52NC5TbGVlcC5PdXRPZkJlZFNlZ21lbnRCA+BBARJP", + "CghtZXRhZGF0YRgIIAEoCzI4Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMu", + "aGVhbHRoLnY0LlNsZWVwLlNsZWVwTWV0YWRhdGFCA+BBARJNCgdzdW1tYXJ5", + "GAkgASgLMjcuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQu", + "U2xlZXAuU2xlZXBTdW1tYXJ5QgPgQQMSNAoLY3JlYXRlX3RpbWUYCiABKAsy", + "Gi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSNAoLdXBkYXRlX3Rp", + "bWUYCyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMaoAMK", + "ClNsZWVwU3RhZ2USMwoKc3RhcnRfdGltZRgDIAEoCzIaLmdvb2dsZS5wcm90", + "b2J1Zi5UaW1lc3RhbXBCA+BBAhI4ChBzdGFydF91dGNfb2Zmc2V0GAQgASgL", + "MhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uQgPgQQISMQoIZW5kX3RpbWUY", + "BSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQISNgoOZW5k", + "X3V0Y19vZmZzZXQYBiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25C", + "A+BBAhJMCgR0eXBlGAcgASgOMjkuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNl", + "cy5oZWFsdGgudjQuU2xlZXAuU2xlZXBTdGFnZVR5cGVCA+BBAhI0CgtjcmVh", + "dGVfdGltZRgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BB", + "AxI0Cgt1cGRhdGVfdGltZRgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", + "c3RhbXBCA+BBAxrrAQoPT3V0T2ZCZWRTZWdtZW50EjMKCnN0YXJ0X3RpbWUY", + "ASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQISOAoQc3Rh", + "cnRfdXRjX29mZnNldBgCIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlv", + "bkID4EECEjEKCGVuZF90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRp", + "bWVzdGFtcEID4EECEjYKDmVuZF91dGNfb2Zmc2V0GAQgASgLMhkuZ29vZ2xl", + "LnByb3RvYnVmLkR1cmF0aW9uQgPgQQIavgMKDVNsZWVwTWV0YWRhdGESYAoN", + "c3RhZ2VzX3N0YXR1cxgBIAEoDjJELmdvb2dsZS5kZXZpY2VzYW5kc2Vydmlj", + "ZXMuaGVhbHRoLnY0LlNsZWVwLlNsZWVwTWV0YWRhdGEuU3RhZ2VzU3RhdGVC", + "A+BBAxIWCglwcm9jZXNzZWQYAiABKAhCA+BBAxIQCgNuYXAYBSABKAhCA+BB", + "AxIcCg9tYW51YWxseV9lZGl0ZWQYBiABKAhCA+BBAxIYCgtleHRlcm5hbF9p", + "ZBgHIAEoCUID4EEBIugBCgtTdGFnZXNTdGF0ZRIcChhTVEFHRVNfU1RBVEVf", + "VU5TUEVDSUZJRUQQABIVChFSRUpFQ1RFRF9DT1ZFUkFHRRABEhQKEFJFSkVD", + "VEVEX01BWF9HQVAQAhIWChJSRUpFQ1RFRF9TVEFSVF9HQVAQAxIUChBSRUpF", + "Q1RFRF9FTkRfR0FQEAQSEAoMUkVKRUNURURfTkFQEAUSEwoPUkVKRUNURURf", + "U0VSVkVSEAYSCwoHVElNRU9VVBAHEg0KCVNVQ0NFRURFRBAIEh0KGVBST0NF", + "U1NJTkdfSU5URVJOQUxfRVJST1IQCRqxBAoMU2xlZXBTdW1tYXJ5EikKF21p", + "bnV0ZXNfaW5fc2xlZXBfcGVyaW9kGAEgASgDQgPgQQNIAIgBARInChVtaW51", + "dGVzX2FmdGVyX3dha2VfdXAYAiABKANCA+BBA0gBiAEBEigKFm1pbnV0ZXNf", + "dG9fZmFsbF9hc2xlZXAYAyABKANCA+BBA0gCiAEBEiAKDm1pbnV0ZXNfYXNs", + "ZWVwGAQgASgDQgPgQQNIA4gBARIfCg1taW51dGVzX2F3YWtlGAUgASgDQgPg", + "QQNIBIgBARJhCg5zdGFnZXNfc3VtbWFyeRgGIAMoCzJELmdvb2dsZS5kZXZp", + "Y2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LlNsZWVwLlNsZWVwU3VtbWFyeS5T", + "dGFnZVN1bW1hcnlCA+BBAxqGAQoMU3RhZ2VTdW1tYXJ5EkwKBHR5cGUYASAB", + "KA4yOS5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5TbGVl", + "cC5TbGVlcFN0YWdlVHlwZUID4EEDEhQKB21pbnV0ZXMYAiABKANCA+BBAxIS", + "CgVjb3VudBgDIAEoA0ID4EEDQhoKGF9taW51dGVzX2luX3NsZWVwX3Blcmlv", + "ZEIYChZfbWludXRlc19hZnRlcl93YWtlX3VwQhkKF19taW51dGVzX3RvX2Zh", + "bGxfYXNsZWVwQhEKD19taW51dGVzX2FzbGVlcEIQCg5fbWludXRlc19hd2Fr", + "ZSJACglTbGVlcFR5cGUSGgoWU0xFRVBfVFlQRV9VTlNQRUNJRklFRBAAEgsK", + "B0NMQVNTSUMQARIKCgZTVEFHRVMQAiJ1Cg5TbGVlcFN0YWdlVHlwZRIgChxT", + "TEVFUF9TVEFHRV9UWVBFX1VOU1BFQ0lGSUVEEAASCQoFQVdBS0UQARIJCgVM", + "SUdIVBACEggKBERFRVAQAxIHCgNSRU0QBBIKCgZBU0xFRVAQBRIMCghSRVNU", + "TEVTUxAGInAKBVN0ZXBzElMKCGludGVydmFsGAIgASgLMjwuZ29vZ2xlLmRl", + "dmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuT2JzZXJ2YXRpb25UaW1lSW50", + "ZXJ2YWxCA+BBAhISCgVjb3VudBgEIAEoA0ID4EECIiUKEFN0ZXBzUm9sbHVw", + "VmFsdWUSEQoJY291bnRfc3VtGAEgASgDIsUBChNUaW1lSW5IZWFydFJhdGVa", + "b25lElMKCGludGVydmFsGAEgASgLMjwuZ29vZ2xlLmRldmljZXNhbmRzZXJ2", + "aWNlcy5oZWFsdGgudjQuT2JzZXJ2YXRpb25UaW1lSW50ZXJ2YWxCA+BBAhJZ", + "ChRoZWFydF9yYXRlX3pvbmVfdHlwZRgCIAEoDjI2Lmdvb2dsZS5kZXZpY2Vz", + "YW5kc2VydmljZXMuaGVhbHRoLnY0LkhlYXJ0UmF0ZVpvbmVUeXBlQgPgQQIi", + "uwIKHlRpbWVJbkhlYXJ0UmF0ZVpvbmVSb2xsdXBWYWx1ZRJ+Chh0aW1lX2lu", + "X2hlYXJ0X3JhdGVfem9uZXMYASADKAsyXC5nb29nbGUuZGV2aWNlc2FuZHNl", + "cnZpY2VzLmhlYWx0aC52NC5UaW1lSW5IZWFydFJhdGVab25lUm9sbHVwVmFs", + "dWUuVGltZUluSGVhcnRSYXRlWm9uZVZhbHVlGpgBChhUaW1lSW5IZWFydFJh", + "dGVab25lVmFsdWUSTwoPaGVhcnRfcmF0ZV96b25lGAEgASgOMjYuZ29vZ2xl", + "LmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuSGVhcnRSYXRlWm9uZVR5", + "cGUSKwoIZHVyYXRpb24YAiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRp", + "b24iLAoYVG90YWxDYWxvcmllc1JvbGx1cFZhbHVlEhAKCGtjYWxfc3VtGAEg", + "ASgBIoQECgZWTzJNYXgSVAoLc2FtcGxlX3RpbWUYASABKAsyOi5nb29nbGUu", + "ZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5PYnNlcnZhdGlvblNhbXBs", + "ZVRpbWVCA+BBAhIUCgd2bzJfbWF4GAIgASgBQgPgQQISXgoSbWVhc3VyZW1l", + "bnRfbWV0aG9kGAQgASgOMj0uZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5o", + "ZWFsdGgudjQuVk8yTWF4Lk1lYXN1cmVtZW50TWV0aG9kQgPgQQEirQIKEU1l", + "YXN1cmVtZW50TWV0aG9kEiIKHk1FQVNVUkVNRU5UX01FVEhPRF9VTlNQRUNJ", + "RklFRBAAEg4KCkZJVEJJVF9SVU4QARIWChJHT09HTEVfREVNT0dSQVBISUMQ", + "AhIPCgtDT09QRVJfVEVTVBADEhQKEEhFQVJUX1JBVEVfUkFUSU8QBBISCg5N", + "RVRBQk9MSUNfQ0FSVBAFEhsKF01VTFRJU1RBR0VfRklUTkVTU19URVNUEAYS", + "GQoVUk9DS1BPUlRfRklUTkVTU19URVNUEAcSEAoMTUFYX0VYRVJDSVNFEAgS", + "HwobUFJFRElDVElPTl9TVUJfTUFYX0VYRVJDSVNFEAkSGwoXUFJFRElDVElP", + "Tl9OT05fRVhFUkNJU0UQChIJCgVPVEhFUhALIo0BCgZXZWlnaHQSVAoLc2Ft", + "cGxlX3RpbWUYAiABKAsyOi5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhl", + "YWx0aC52NC5PYnNlcnZhdGlvblNhbXBsZVRpbWVCA+BBAhIZCgx3ZWlnaHRf", + "Z3JhbXMYAyABKAFCA+BBAhISCgVub3RlcxgEIAEoCUID4EEBIi0KEVdlaWdo", + "dFJvbGx1cFZhbHVlEhgKEHdlaWdodF9ncmFtc19hdmcYASABKAEiZgoPU2Vk", + "ZW50YXJ5UGVyaW9kElMKCGludGVydmFsGAEgASgLMjwuZ29vZ2xlLmRldmlj", + "ZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuT2JzZXJ2YXRpb25UaW1lSW50ZXJ2", + "YWxCA+BBAiJNChpTZWRlbnRhcnlQZXJpb2RSb2xsdXBWYWx1ZRIvCgxkdXJh", + "dGlvbl9zdW0YASABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24qagoR", + "SGVhcnRSYXRlWm9uZVR5cGUSJAogSEVBUlRfUkFURV9aT05FX1RZUEVfVU5T", + "UEVDSUZJRUQQABIJCgVMSUdIVBABEgwKCE1PREVSQVRFEAISDAoIVklHT1JP", + "VVMQAxIICgRQRUFLEAQqsAEKClZvbHVtZVVuaXQSGwoXVk9MVU1FX1VOSVRf", + "VU5TUEVDSUZJRUQQABIQCgxDVVBfSU1QRVJJQUwQARIKCgZDVVBfVVMQAhIY", + "ChRGTFVJRF9PVU5DRV9JTVBFUklBTBADEhIKDkZMVUlEX09VTkNFX1VTEAQS", + "CQoFTElURVIQBRIOCgpNSUxMSUxJVEVSEAYSEQoNUElOVF9JTVBFUklBTBAH", + "EgsKB1BJTlRfVVMQCEKEAgonY29tLmdvb2dsZS5kZXZpY2VzYW5kc2Vydmlj", + "ZXMuaGVhbHRoLnY0Qg5EYXRhTW9kZWxQcm90b1ABWlJnb29nbGUuZ29sYW5n", + "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2RldmljZXNhbmRzZXJ2aWNlcy9o", + "ZWFsdGgvYXBpdjRtYWluO2hlYWx0aHBiqgIjR29vZ2xlLkRldmljZXNBbmRT", + "ZXJ2aWNlcy5IZWFsdGguVjTKAiNHb29nbGVcRGV2aWNlc0FuZFNlcnZpY2Vz", + "XEhlYWx0aFxWNOoCJkdvb2dsZTo6RGV2aWNlc0FuZFNlcnZpY2VzOjpIZWFs", + "dGg6OlY0YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.DevicesAndServices.Health.V4.DataCoordinatesReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Type.DateReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.DevicesAndServices.Health.V4.HeartRateZoneType), typeof(global::Google.DevicesAndServices.Health.V4.VolumeUnit), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes), global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes.Parser, new[]{ "Interval", "HeartRateZone", "ActiveZoneMinutes_" }, null, new[]{ typeof(global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes.Types.HeartRateZone) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue), global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue.Parser, new[]{ "SumInCardioHeartZone", "SumInPeakHeartZone", "SumInFatBurnHeartZone" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ActiveMinutes), global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Parser, new[]{ "Interval", "ActiveMinutesByActivityLevel" }, null, new[]{ typeof(global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActiveMinutesByActivityLevel), global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActiveMinutesByActivityLevel.Parser, new[]{ "ActivityLevel", "ActiveMinutes" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue), global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue.Parser, new[]{ "ActiveMinutesRollupByActivityLevel" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue.Types.ActiveMinutesRollupByActivityLevel), global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue.Types.ActiveMinutesRollupByActivityLevel.Parser, new[]{ "ActivityLevel", "ActiveMinutesSum" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ActivityLevel), global::Google.DevicesAndServices.Health.V4.ActivityLevel.Parser, new[]{ "Interval", "ActivityLevelType" }, null, new[]{ typeof(global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue), global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue.Parser, new[]{ "ActivityLevelRollupsByActivityLevelType" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue.Types.ActivityLevelRollupByActivityLevelType), global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue.Types.ActivityLevelRollupByActivityLevelType.Parser, new[]{ "ActivityLevelType", "TotalDuration" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Altitude), global::Google.DevicesAndServices.Health.V4.Altitude.Parser, new[]{ "Interval", "GainMillimeters" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.BodyFat), global::Google.DevicesAndServices.Health.V4.BodyFat.Parser, new[]{ "SampleTime", "Percentage" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue), global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue.Parser, new[]{ "BodyFatPercentageAvg" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue), global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue.Parser, new[]{ "CaloriesInHeartRateZones" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue.Types.CaloriesInHeartRateZoneValue), global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue.Types.CaloriesInHeartRateZoneValue.Parser, new[]{ "HeartRateZone", "Kcal" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones), global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones.Parser, new[]{ "Date", "HeartRateZones" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones.Types.HeartRateZone), global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones.Types.HeartRateZone.Parser, new[]{ "HeartRateZoneType", "MinBeatsPerMinute", "MaxBeatsPerMinute" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability), global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability.Parser, new[]{ "Date", "AverageHeartRateVariabilityMilliseconds", "NonRemHeartRateBeatsPerMinute", "Entropy", "DeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds" }, new[]{ "AverageHeartRateVariabilityMilliseconds", "NonRemHeartRateBeatsPerMinute", "Entropy", "DeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate), global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate.Parser, new[]{ "Date", "BreathsPerMinute" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation), global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation.Parser, new[]{ "Date", "AveragePercentage", "LowerBoundPercentage", "UpperBoundPercentage", "StandardDeviationPercentage" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate), global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Parser, new[]{ "Date", "BeatsPerMinute", "DailyRestingHeartRateMetadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata), global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata.Parser, new[]{ "CalculationMethod" }, null, new[]{ typeof(global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata.Types.CalculationMethod) }, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations), global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations.Parser, new[]{ "Date", "NightlyTemperatureCelsius", "BaselineTemperatureCelsius", "RelativeNightlyStddev30DCelsius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DailyVO2Max), global::Google.DevicesAndServices.Health.V4.DailyVO2Max.Parser, new[]{ "Date", "Vo2Max", "Estimated", "CardioFitnessLevel", "Vo2MaxCovariance" }, null, new[]{ typeof(global::Google.DevicesAndServices.Health.V4.DailyVO2Max.Types.CardioFitnessLevel) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Distance), global::Google.DevicesAndServices.Health.V4.Distance.Parser, new[]{ "Interval", "Millimeters" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DistanceRollupValue), global::Google.DevicesAndServices.Health.V4.DistanceRollupValue.Parser, new[]{ "MillimetersSum" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Exercise), global::Google.DevicesAndServices.Health.V4.Exercise.Parser, new[]{ "Interval", "ExerciseType", "Splits", "ExerciseEvents", "SplitSummaries", "MetricsSummary", "ExerciseMetadata", "DisplayName", "ActiveDuration", "Notes", "UpdateTime", "CreateTime" }, null, new[]{ typeof(global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Exercise.Types.SplitSummary), global::Google.DevicesAndServices.Health.V4.Exercise.Types.SplitSummary.Parser, new[]{ "StartTime", "StartUtcOffset", "EndTime", "EndUtcOffset", "ActiveDuration", "MetricsSummary", "SplitType" }, null, new[]{ typeof(global::Google.DevicesAndServices.Health.V4.Exercise.Types.SplitSummary.Types.SplitType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseEvent), global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseEvent.Parser, new[]{ "EventTime", "EventUtcOffset", "ExerciseEventType" }, null, new[]{ typeof(global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseEvent.Types.ExerciseEventType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseMetadata), global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseMetadata.Parser, new[]{ "PoolLengthMillimeters", "HasGps" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Floors), global::Google.DevicesAndServices.Health.V4.Floors.Parser, new[]{ "Interval", "Count" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.FloorsRollupValue), global::Google.DevicesAndServices.Health.V4.FloorsRollupValue.Parser, new[]{ "CountSum" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue), global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue.Parser, new[]{ "GainMillimetersSum" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.HeartRate), global::Google.DevicesAndServices.Health.V4.HeartRate.Parser, new[]{ "SampleTime", "BeatsPerMinute", "Metadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata), global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Parser, new[]{ "MotionContext", "SensorLocation" }, null, new[]{ typeof(global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.MotionContext), typeof(global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.SensorLocation) }, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue), global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue.Parser, new[]{ "BeatsPerMinuteAvg", "BeatsPerMinuteMax", "BeatsPerMinuteMin" }, new[]{ "BeatsPerMinuteAvg", "BeatsPerMinuteMax", "BeatsPerMinuteMin" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue), global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue.Parser, new[]{ "RateMin", "RateMax", "RateAvg" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.RunVO2Max), global::Google.DevicesAndServices.Health.V4.RunVO2Max.Parser, new[]{ "SampleTime", "RunVo2Max" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.HeartRateVariabilityPersonalRangeRollupValue), global::Google.DevicesAndServices.Health.V4.HeartRateVariabilityPersonalRangeRollupValue.Parser, new[]{ "AverageHeartRateVariabilityMillisecondsMin", "AverageHeartRateVariabilityMillisecondsMax" }, new[]{ "AverageHeartRateVariabilityMillisecondsMin", "AverageHeartRateVariabilityMillisecondsMax" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.HeartRateVariability), global::Google.DevicesAndServices.Health.V4.HeartRateVariability.Parser, new[]{ "SampleTime", "RootMeanSquareOfSuccessiveDifferencesMilliseconds", "StandardDeviationMilliseconds" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.VolumeQuantity), global::Google.DevicesAndServices.Health.V4.VolumeQuantity.Parser, new[]{ "Milliliters", "UserProvidedUnit" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.HydrationLog), global::Google.DevicesAndServices.Health.V4.HydrationLog.Parser, new[]{ "Interval", "AmountConsumed" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue), global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue.Parser, new[]{ "AmountConsumed" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue.Types.VolumeQuantityRollup), global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue.Types.VolumeQuantityRollup.Parser, new[]{ "MillilitersSum", "UserProvidedUnitLast" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.MetricsSummary), global::Google.DevicesAndServices.Health.V4.MetricsSummary.Parser, new[]{ "CaloriesKcal", "DistanceMillimeters", "Steps", "AverageSpeedMillimetersPerSecond", "AveragePaceSecondsPerMeter", "AverageHeartRateBeatsPerMinute", "ElevationGainMillimeters", "ActiveZoneMinutes", "RunVo2Max", "TotalSwimLengths", "HeartRateZoneDurations", "MobilityMetrics" }, new[]{ "CaloriesKcal", "DistanceMillimeters", "Steps", "AverageSpeedMillimetersPerSecond", "AveragePaceSecondsPerMeter", "AverageHeartRateBeatsPerMinute", "ElevationGainMillimeters", "ActiveZoneMinutes", "RunVo2Max", "TotalSwimLengths" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.MetricsSummary.Types.TimeInHeartRateZones), global::Google.DevicesAndServices.Health.V4.MetricsSummary.Types.TimeInHeartRateZones.Parser, new[]{ "LightTime", "ModerateTime", "VigorousTime", "PeakTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.MetricsSummary.Types.MobilityMetrics), global::Google.DevicesAndServices.Health.V4.MetricsSummary.Types.MobilityMetrics.Parser, new[]{ "AvgCadenceStepsPerMinute", "AvgStrideLengthMillimeters", "AvgVerticalOscillationMillimeters", "AvgVerticalRatio", "AvgGroundContactTimeDuration" }, new[]{ "AvgCadenceStepsPerMinute", "AvgStrideLengthMillimeters", "AvgVerticalOscillationMillimeters", "AvgVerticalRatio" }, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.OxygenSaturation), global::Google.DevicesAndServices.Health.V4.OxygenSaturation.Parser, new[]{ "SampleTime", "Percentage" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.RestingHeartRatePersonalRangeRollupValue), global::Google.DevicesAndServices.Health.V4.RestingHeartRatePersonalRangeRollupValue.Parser, new[]{ "BeatsPerMinuteMin", "BeatsPerMinuteMax" }, new[]{ "BeatsPerMinuteMin", "BeatsPerMinuteMax" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary), global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Parser, new[]{ "SampleTime", "DeepSleepStats", "LightSleepStats", "RemSleepStats", "FullSleepStats" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics), global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics.Parser, new[]{ "BreathsPerMinute", "StandardDeviation", "SignalToNoise" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Sleep), global::Google.DevicesAndServices.Health.V4.Sleep.Parser, new[]{ "Interval", "Type", "Stages", "OutOfBedSegments", "Metadata", "Summary", "CreateTime", "UpdateTime" }, null, new[]{ typeof(global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepType), typeof(global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStage), global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStage.Parser, new[]{ "StartTime", "StartUtcOffset", "EndTime", "EndUtcOffset", "Type", "CreateTime", "UpdateTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Sleep.Types.OutOfBedSegment), global::Google.DevicesAndServices.Health.V4.Sleep.Types.OutOfBedSegment.Parser, new[]{ "StartTime", "StartUtcOffset", "EndTime", "EndUtcOffset" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata), global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata.Parser, new[]{ "StagesStatus", "Processed", "Nap", "ManuallyEdited", "ExternalId" }, null, new[]{ typeof(global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata.Types.StagesState) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepSummary), global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepSummary.Parser, new[]{ "MinutesInSleepPeriod", "MinutesAfterWakeUp", "MinutesToFallAsleep", "MinutesAsleep", "MinutesAwake", "StagesSummary" }, new[]{ "MinutesInSleepPeriod", "MinutesAfterWakeUp", "MinutesToFallAsleep", "MinutesAsleep", "MinutesAwake" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepSummary.Types.StageSummary), global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepSummary.Types.StageSummary.Parser, new[]{ "Type", "Minutes", "Count" }, null, null, null, null)})}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Steps), global::Google.DevicesAndServices.Health.V4.Steps.Parser, new[]{ "Interval", "Count" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.StepsRollupValue), global::Google.DevicesAndServices.Health.V4.StepsRollupValue.Parser, new[]{ "CountSum" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone), global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone.Parser, new[]{ "Interval", "HeartRateZoneType" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue), global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue.Parser, new[]{ "TimeInHeartRateZones" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue.Types.TimeInHeartRateZoneValue), global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue.Types.TimeInHeartRateZoneValue.Parser, new[]{ "HeartRateZone", "Duration" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue), global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue.Parser, new[]{ "KcalSum" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.VO2Max), global::Google.DevicesAndServices.Health.V4.VO2Max.Parser, new[]{ "SampleTime", "Vo2Max", "MeasurementMethod" }, null, new[]{ typeof(global::Google.DevicesAndServices.Health.V4.VO2Max.Types.MeasurementMethod) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Weight), global::Google.DevicesAndServices.Health.V4.Weight.Parser, new[]{ "SampleTime", "WeightGrams", "Notes" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.WeightRollupValue), global::Google.DevicesAndServices.Health.V4.WeightRollupValue.Parser, new[]{ "WeightGramsAvg" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.SedentaryPeriod), global::Google.DevicesAndServices.Health.V4.SedentaryPeriod.Parser, new[]{ "Interval" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue), global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue.Parser, new[]{ "DurationSum" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + /// + /// The heart rate zone type. + /// + public enum HeartRateZoneType { + /// + /// Unspecified heart rate zone. + /// + [pbr::OriginalName("HEART_RATE_ZONE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// The light heart rate zone. + /// + [pbr::OriginalName("LIGHT")] Light = 1, + /// + /// The moderate heart rate zone. + /// + [pbr::OriginalName("MODERATE")] Moderate = 2, + /// + /// The vigorous heart rate zone. + /// + [pbr::OriginalName("VIGOROUS")] Vigorous = 3, + /// + /// The peak heart rate zone. + /// + [pbr::OriginalName("PEAK")] Peak = 4, + } + + /// + /// Enum representing the unit of volume. + /// + public enum VolumeUnit { + /// + /// Unspecified volume unit. + /// + [pbr::OriginalName("VOLUME_UNIT_UNSPECIFIED")] Unspecified = 0, + /// + /// Cup (imperial) + /// + [pbr::OriginalName("CUP_IMPERIAL")] CupImperial = 1, + /// + /// Cup (US) + /// + [pbr::OriginalName("CUP_US")] CupUs = 2, + /// + /// Fluid ounce (imperial) + /// + [pbr::OriginalName("FLUID_OUNCE_IMPERIAL")] FluidOunceImperial = 3, + /// + /// Fluid ounce (US) + /// + [pbr::OriginalName("FLUID_OUNCE_US")] FluidOunceUs = 4, + /// + /// Liter + /// + [pbr::OriginalName("LITER")] Liter = 5, + /// + /// Milliliter + /// + [pbr::OriginalName("MILLILITER")] Milliliter = 6, + /// + /// Pint (imperial) + /// + [pbr::OriginalName("PINT_IMPERIAL")] PintImperial = 7, + /// + /// Pint (US) + /// + [pbr::OriginalName("PINT_US")] PintUs = 8, + } + + #endregion + + #region Messages + /// + /// Record of active zone minutes in a given time interval. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActiveZoneMinutes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActiveZoneMinutes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveZoneMinutes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveZoneMinutes(ActiveZoneMinutes other) : this() { + interval_ = other.interval_ != null ? other.interval_.Clone() : null; + heartRateZone_ = other.heartRateZone_; + activeZoneMinutes_ = other.activeZoneMinutes_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveZoneMinutes Clone() { + return new ActiveZoneMinutes(this); + } + + /// Field number for the "interval" field. + public const int IntervalFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval interval_; + /// + /// Required. Observed interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval Interval { + get { return interval_; } + set { + interval_ = value; + } + } + + /// Field number for the "heart_rate_zone" field. + public const int HeartRateZoneFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes.Types.HeartRateZone heartRateZone_ = global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes.Types.HeartRateZone.Unspecified; + /// + /// Required. Heart rate zone in which the active zone minutes have been + /// earned, in the given time interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes.Types.HeartRateZone HeartRateZone { + get { return heartRateZone_; } + set { + heartRateZone_ = value; + } + } + + /// Field number for the "active_zone_minutes" field. + public const int ActiveZoneMinutes_FieldNumber = 3; + private long activeZoneMinutes_; + /// + /// Required. Number of Active Zone Minutes earned in the given time interval. + /// Note: active_zone_minutes equals to 1 for low intensity (fat burn) zones or + /// 2 for high intensity zones (cardio, peak). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ActiveZoneMinutes_ { + get { return activeZoneMinutes_; } + set { + activeZoneMinutes_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActiveZoneMinutes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActiveZoneMinutes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Interval, other.Interval)) return false; + if (HeartRateZone != other.HeartRateZone) return false; + if (ActiveZoneMinutes_ != other.ActiveZoneMinutes_) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (interval_ != null) hash ^= Interval.GetHashCode(); + if (HeartRateZone != global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes.Types.HeartRateZone.Unspecified) hash ^= HeartRateZone.GetHashCode(); + if (ActiveZoneMinutes_ != 0L) hash ^= ActiveZoneMinutes_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (interval_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Interval); + } + if (HeartRateZone != global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes.Types.HeartRateZone.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) HeartRateZone); + } + if (ActiveZoneMinutes_ != 0L) { + output.WriteRawTag(24); + output.WriteInt64(ActiveZoneMinutes_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (interval_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Interval); + } + if (HeartRateZone != global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes.Types.HeartRateZone.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) HeartRateZone); + } + if (ActiveZoneMinutes_ != 0L) { + output.WriteRawTag(24); + output.WriteInt64(ActiveZoneMinutes_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (interval_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interval); + } + if (HeartRateZone != global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes.Types.HeartRateZone.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HeartRateZone); + } + if (ActiveZoneMinutes_ != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ActiveZoneMinutes_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActiveZoneMinutes other) { + if (other == null) { + return; + } + if (other.interval_ != null) { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + Interval.MergeFrom(other.Interval); + } + if (other.HeartRateZone != global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes.Types.HeartRateZone.Unspecified) { + HeartRateZone = other.HeartRateZone; + } + if (other.ActiveZoneMinutes_ != 0L) { + ActiveZoneMinutes_ = other.ActiveZoneMinutes_; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 16: { + HeartRateZone = (global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes.Types.HeartRateZone) input.ReadEnum(); + break; + } + case 24: { + ActiveZoneMinutes_ = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 16: { + HeartRateZone = (global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes.Types.HeartRateZone) input.ReadEnum(); + break; + } + case 24: { + ActiveZoneMinutes_ = input.ReadInt64(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ActiveZoneMinutes message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Represents different heart rate zones. + /// + public enum HeartRateZone { + /// + /// Unspecified heart rate zone. + /// + [pbr::OriginalName("HEART_RATE_ZONE_UNSPECIFIED")] Unspecified = 0, + /// + /// The fat burn heart rate zone. + /// + [pbr::OriginalName("FAT_BURN")] FatBurn = 1, + /// + /// The cardio heart rate zone. + /// + [pbr::OriginalName("CARDIO")] Cardio = 2, + /// + /// The peak heart rate zone. + /// + [pbr::OriginalName("PEAK")] Peak = 3, + } + + } + #endregion + + } + + /// + /// Represents the result of the rollup of the active zone minutes data type. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActiveZoneMinutesRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActiveZoneMinutesRollupValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveZoneMinutesRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveZoneMinutesRollupValue(ActiveZoneMinutesRollupValue other) : this() { + sumInCardioHeartZone_ = other.sumInCardioHeartZone_; + sumInPeakHeartZone_ = other.sumInPeakHeartZone_; + sumInFatBurnHeartZone_ = other.sumInFatBurnHeartZone_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveZoneMinutesRollupValue Clone() { + return new ActiveZoneMinutesRollupValue(this); + } + + /// Field number for the "sum_in_cardio_heart_zone" field. + public const int SumInCardioHeartZoneFieldNumber = 1; + private long sumInCardioHeartZone_; + /// + /// Active zone minutes in `HeartRateZone.CARDIO`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long SumInCardioHeartZone { + get { return sumInCardioHeartZone_; } + set { + sumInCardioHeartZone_ = value; + } + } + + /// Field number for the "sum_in_peak_heart_zone" field. + public const int SumInPeakHeartZoneFieldNumber = 2; + private long sumInPeakHeartZone_; + /// + /// Active zone minutes in `HeartRateZone.PEAK`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long SumInPeakHeartZone { + get { return sumInPeakHeartZone_; } + set { + sumInPeakHeartZone_ = value; + } + } + + /// Field number for the "sum_in_fat_burn_heart_zone" field. + public const int SumInFatBurnHeartZoneFieldNumber = 3; + private long sumInFatBurnHeartZone_; + /// + /// Active zone minutes in `HeartRateZone.FAT_BURN`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long SumInFatBurnHeartZone { + get { return sumInFatBurnHeartZone_; } + set { + sumInFatBurnHeartZone_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActiveZoneMinutesRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActiveZoneMinutesRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SumInCardioHeartZone != other.SumInCardioHeartZone) return false; + if (SumInPeakHeartZone != other.SumInPeakHeartZone) return false; + if (SumInFatBurnHeartZone != other.SumInFatBurnHeartZone) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (SumInCardioHeartZone != 0L) hash ^= SumInCardioHeartZone.GetHashCode(); + if (SumInPeakHeartZone != 0L) hash ^= SumInPeakHeartZone.GetHashCode(); + if (SumInFatBurnHeartZone != 0L) hash ^= SumInFatBurnHeartZone.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SumInCardioHeartZone != 0L) { + output.WriteRawTag(8); + output.WriteInt64(SumInCardioHeartZone); + } + if (SumInPeakHeartZone != 0L) { + output.WriteRawTag(16); + output.WriteInt64(SumInPeakHeartZone); + } + if (SumInFatBurnHeartZone != 0L) { + output.WriteRawTag(24); + output.WriteInt64(SumInFatBurnHeartZone); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SumInCardioHeartZone != 0L) { + output.WriteRawTag(8); + output.WriteInt64(SumInCardioHeartZone); + } + if (SumInPeakHeartZone != 0L) { + output.WriteRawTag(16); + output.WriteInt64(SumInPeakHeartZone); + } + if (SumInFatBurnHeartZone != 0L) { + output.WriteRawTag(24); + output.WriteInt64(SumInFatBurnHeartZone); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (SumInCardioHeartZone != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(SumInCardioHeartZone); + } + if (SumInPeakHeartZone != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(SumInPeakHeartZone); + } + if (SumInFatBurnHeartZone != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(SumInFatBurnHeartZone); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActiveZoneMinutesRollupValue other) { + if (other == null) { + return; + } + if (other.SumInCardioHeartZone != 0L) { + SumInCardioHeartZone = other.SumInCardioHeartZone; + } + if (other.SumInPeakHeartZone != 0L) { + SumInPeakHeartZone = other.SumInPeakHeartZone; + } + if (other.SumInFatBurnHeartZone != 0L) { + SumInFatBurnHeartZone = other.SumInFatBurnHeartZone; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + SumInCardioHeartZone = input.ReadInt64(); + break; + } + case 16: { + SumInPeakHeartZone = input.ReadInt64(); + break; + } + case 24: { + SumInFatBurnHeartZone = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SumInCardioHeartZone = input.ReadInt64(); + break; + } + case 16: { + SumInPeakHeartZone = input.ReadInt64(); + break; + } + case 24: { + SumInFatBurnHeartZone = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Record of active minutes in a given time interval. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActiveMinutes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActiveMinutes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveMinutes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveMinutes(ActiveMinutes other) : this() { + interval_ = other.interval_ != null ? other.interval_.Clone() : null; + activeMinutesByActivityLevel_ = other.activeMinutesByActivityLevel_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveMinutes Clone() { + return new ActiveMinutes(this); + } + + /// Field number for the "interval" field. + public const int IntervalFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval interval_; + /// + /// Required. Observed interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval Interval { + get { return interval_; } + set { + interval_ = value; + } + } + + /// Field number for the "active_minutes_by_activity_level" field. + public const int ActiveMinutesByActivityLevelFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_activeMinutesByActivityLevel_codec + = pb::FieldCodec.ForMessage(18, global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActiveMinutesByActivityLevel.Parser); + private readonly pbc::RepeatedField activeMinutesByActivityLevel_ = new pbc::RepeatedField(); + /// + /// Required. Active minutes by activity level. At most one record per activity + /// level is allowed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ActiveMinutesByActivityLevel { + get { return activeMinutesByActivityLevel_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActiveMinutes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActiveMinutes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Interval, other.Interval)) return false; + if(!activeMinutesByActivityLevel_.Equals(other.activeMinutesByActivityLevel_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (interval_ != null) hash ^= Interval.GetHashCode(); + hash ^= activeMinutesByActivityLevel_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (interval_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Interval); + } + activeMinutesByActivityLevel_.WriteTo(output, _repeated_activeMinutesByActivityLevel_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (interval_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Interval); + } + activeMinutesByActivityLevel_.WriteTo(ref output, _repeated_activeMinutesByActivityLevel_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (interval_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interval); + } + size += activeMinutesByActivityLevel_.CalculateSize(_repeated_activeMinutesByActivityLevel_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActiveMinutes other) { + if (other == null) { + return; + } + if (other.interval_ != null) { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + Interval.MergeFrom(other.Interval); + } + activeMinutesByActivityLevel_.Add(other.activeMinutesByActivityLevel_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 18: { + activeMinutesByActivityLevel_.AddEntriesFrom(input, _repeated_activeMinutesByActivityLevel_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 18: { + activeMinutesByActivityLevel_.AddEntriesFrom(ref input, _repeated_activeMinutesByActivityLevel_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ActiveMinutes message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Activity level. + /// + public enum ActivityLevel { + /// + /// Activity level is unspecified. + /// + [pbr::OriginalName("ACTIVITY_LEVEL_UNSPECIFIED")] Unspecified = 0, + /// + /// Light activity level. + /// + [pbr::OriginalName("LIGHT")] Light = 1, + /// + /// Moderate activity level. + /// + [pbr::OriginalName("MODERATE")] Moderate = 2, + /// + /// Vigorous activity level. + /// + [pbr::OriginalName("VIGOROUS")] Vigorous = 3, + } + + /// + /// Active minutes at a given activity level. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActiveMinutesByActivityLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActiveMinutesByActivityLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveMinutesByActivityLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveMinutesByActivityLevel(ActiveMinutesByActivityLevel other) : this() { + activityLevel_ = other.activityLevel_; + activeMinutes_ = other.activeMinutes_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveMinutesByActivityLevel Clone() { + return new ActiveMinutesByActivityLevel(this); + } + + /// Field number for the "activity_level" field. + public const int ActivityLevelFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel activityLevel_ = global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel.Unspecified; + /// + /// Required. The level of activity. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel ActivityLevel { + get { return activityLevel_; } + set { + activityLevel_ = value; + } + } + + /// Field number for the "active_minutes" field. + public const int ActiveMinutesFieldNumber = 2; + private long activeMinutes_; + /// + /// Required. Number of whole minutes spent in activity. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ActiveMinutes { + get { return activeMinutes_; } + set { + activeMinutes_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActiveMinutesByActivityLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActiveMinutesByActivityLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ActivityLevel != other.ActivityLevel) return false; + if (ActiveMinutes != other.ActiveMinutes) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ActivityLevel != global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel.Unspecified) hash ^= ActivityLevel.GetHashCode(); + if (ActiveMinutes != 0L) hash ^= ActiveMinutes.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ActivityLevel != global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) ActivityLevel); + } + if (ActiveMinutes != 0L) { + output.WriteRawTag(16); + output.WriteInt64(ActiveMinutes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ActivityLevel != global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) ActivityLevel); + } + if (ActiveMinutes != 0L) { + output.WriteRawTag(16); + output.WriteInt64(ActiveMinutes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ActivityLevel != global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ActivityLevel); + } + if (ActiveMinutes != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ActiveMinutes); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActiveMinutesByActivityLevel other) { + if (other == null) { + return; + } + if (other.ActivityLevel != global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel.Unspecified) { + ActivityLevel = other.ActivityLevel; + } + if (other.ActiveMinutes != 0L) { + ActiveMinutes = other.ActiveMinutes; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ActivityLevel = (global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel) input.ReadEnum(); + break; + } + case 16: { + ActiveMinutes = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ActivityLevel = (global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel) input.ReadEnum(); + break; + } + case 16: { + ActiveMinutes = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Represents the result of the rollup of the active minutes data type. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActiveMinutesRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActiveMinutesRollupValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveMinutesRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveMinutesRollupValue(ActiveMinutesRollupValue other) : this() { + activeMinutesRollupByActivityLevel_ = other.activeMinutesRollupByActivityLevel_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveMinutesRollupValue Clone() { + return new ActiveMinutesRollupValue(this); + } + + /// Field number for the "active_minutes_rollup_by_activity_level" field. + public const int ActiveMinutesRollupByActivityLevelFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_activeMinutesRollupByActivityLevel_codec + = pb::FieldCodec.ForMessage(10, global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue.Types.ActiveMinutesRollupByActivityLevel.Parser); + private readonly pbc::RepeatedField activeMinutesRollupByActivityLevel_ = new pbc::RepeatedField(); + /// + /// Active minutes by activity level. At most one record per activity level + /// is allowed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ActiveMinutesRollupByActivityLevel { + get { return activeMinutesRollupByActivityLevel_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActiveMinutesRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActiveMinutesRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!activeMinutesRollupByActivityLevel_.Equals(other.activeMinutesRollupByActivityLevel_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= activeMinutesRollupByActivityLevel_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + activeMinutesRollupByActivityLevel_.WriteTo(output, _repeated_activeMinutesRollupByActivityLevel_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + activeMinutesRollupByActivityLevel_.WriteTo(ref output, _repeated_activeMinutesRollupByActivityLevel_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += activeMinutesRollupByActivityLevel_.CalculateSize(_repeated_activeMinutesRollupByActivityLevel_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActiveMinutesRollupValue other) { + if (other == null) { + return; + } + activeMinutesRollupByActivityLevel_.Add(other.activeMinutesRollupByActivityLevel_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + activeMinutesRollupByActivityLevel_.AddEntriesFrom(input, _repeated_activeMinutesRollupByActivityLevel_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + activeMinutesRollupByActivityLevel_.AddEntriesFrom(ref input, _repeated_activeMinutesRollupByActivityLevel_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ActiveMinutesRollupValue message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Active minutes by activity level. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActiveMinutesRollupByActivityLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActiveMinutesRollupByActivityLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveMinutesRollupByActivityLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveMinutesRollupByActivityLevel(ActiveMinutesRollupByActivityLevel other) : this() { + activityLevel_ = other.activityLevel_; + activeMinutesSum_ = other.activeMinutesSum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActiveMinutesRollupByActivityLevel Clone() { + return new ActiveMinutesRollupByActivityLevel(this); + } + + /// Field number for the "activity_level" field. + public const int ActivityLevelFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel activityLevel_ = global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel.Unspecified; + /// + /// The level of activity. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel ActivityLevel { + get { return activityLevel_; } + set { + activityLevel_ = value; + } + } + + /// Field number for the "active_minutes_sum" field. + public const int ActiveMinutesSumFieldNumber = 2; + private long activeMinutesSum_; + /// + /// Number of whole minutes spent in activity. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ActiveMinutesSum { + get { return activeMinutesSum_; } + set { + activeMinutesSum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActiveMinutesRollupByActivityLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActiveMinutesRollupByActivityLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ActivityLevel != other.ActivityLevel) return false; + if (ActiveMinutesSum != other.ActiveMinutesSum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ActivityLevel != global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel.Unspecified) hash ^= ActivityLevel.GetHashCode(); + if (ActiveMinutesSum != 0L) hash ^= ActiveMinutesSum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ActivityLevel != global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) ActivityLevel); + } + if (ActiveMinutesSum != 0L) { + output.WriteRawTag(16); + output.WriteInt64(ActiveMinutesSum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ActivityLevel != global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) ActivityLevel); + } + if (ActiveMinutesSum != 0L) { + output.WriteRawTag(16); + output.WriteInt64(ActiveMinutesSum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ActivityLevel != global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ActivityLevel); + } + if (ActiveMinutesSum != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ActiveMinutesSum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActiveMinutesRollupByActivityLevel other) { + if (other == null) { + return; + } + if (other.ActivityLevel != global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel.Unspecified) { + ActivityLevel = other.ActivityLevel; + } + if (other.ActiveMinutesSum != 0L) { + ActiveMinutesSum = other.ActiveMinutesSum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ActivityLevel = (global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel) input.ReadEnum(); + break; + } + case 16: { + ActiveMinutesSum = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ActivityLevel = (global::Google.DevicesAndServices.Health.V4.ActiveMinutes.Types.ActivityLevel) input.ReadEnum(); + break; + } + case 16: { + ActiveMinutesSum = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Internal type to capture activity level during a certain time interval. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActivityLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivityLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivityLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivityLevel(ActivityLevel other) : this() { + interval_ = other.interval_ != null ? other.interval_.Clone() : null; + activityLevelType_ = other.activityLevelType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivityLevel Clone() { + return new ActivityLevel(this); + } + + /// Field number for the "interval" field. + public const int IntervalFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval interval_; + /// + /// Required. Observed interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval Interval { + get { return interval_; } + set { + interval_ = value; + } + } + + /// Field number for the "activity_level_type" field. + public const int ActivityLevelTypeFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType activityLevelType_ = global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType.Unspecified; + /// + /// Required. Activity level type in the given time interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType ActivityLevelType { + get { return activityLevelType_; } + set { + activityLevelType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActivityLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActivityLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Interval, other.Interval)) return false; + if (ActivityLevelType != other.ActivityLevelType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (interval_ != null) hash ^= Interval.GetHashCode(); + if (ActivityLevelType != global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType.Unspecified) hash ^= ActivityLevelType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (interval_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Interval); + } + if (ActivityLevelType != global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) ActivityLevelType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (interval_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Interval); + } + if (ActivityLevelType != global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) ActivityLevelType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (interval_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interval); + } + if (ActivityLevelType != global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ActivityLevelType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActivityLevel other) { + if (other == null) { + return; + } + if (other.interval_ != null) { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + Interval.MergeFrom(other.Interval); + } + if (other.ActivityLevelType != global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType.Unspecified) { + ActivityLevelType = other.ActivityLevelType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 16: { + ActivityLevelType = (global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 16: { + ActivityLevelType = (global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ActivityLevel message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Represents different activity level types. + /// + public enum ActivityLevelType { + /// + /// Unspecified activity level type. + /// + [pbr::OriginalName("ACTIVITY_LEVEL_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Sedentary activity level. + /// + [pbr::OriginalName("SEDENTARY")] Sedentary = 1, + /// + /// Lightly active activity level. + /// + [pbr::OriginalName("LIGHTLY_ACTIVE")] LightlyActive = 2, + /// + /// Moderately active activity level. + /// + [pbr::OriginalName("MODERATELY_ACTIVE")] ModeratelyActive = 3, + /// + /// Very active activity level. + /// + [pbr::OriginalName("VERY_ACTIVE")] VeryActive = 4, + } + + } + #endregion + + } + + /// + /// Represents the result of the rollup of the activity level data type. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActivityLevelRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivityLevelRollupValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivityLevelRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivityLevelRollupValue(ActivityLevelRollupValue other) : this() { + activityLevelRollupsByActivityLevelType_ = other.activityLevelRollupsByActivityLevelType_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivityLevelRollupValue Clone() { + return new ActivityLevelRollupValue(this); + } + + /// Field number for the "activity_level_rollups_by_activity_level_type" field. + public const int ActivityLevelRollupsByActivityLevelTypeFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_activityLevelRollupsByActivityLevelType_codec + = pb::FieldCodec.ForMessage(10, global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue.Types.ActivityLevelRollupByActivityLevelType.Parser); + private readonly pbc::RepeatedField activityLevelRollupsByActivityLevelType_ = new pbc::RepeatedField(); + /// + /// List of total durations in each activity level type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ActivityLevelRollupsByActivityLevelType { + get { return activityLevelRollupsByActivityLevelType_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActivityLevelRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActivityLevelRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!activityLevelRollupsByActivityLevelType_.Equals(other.activityLevelRollupsByActivityLevelType_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= activityLevelRollupsByActivityLevelType_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + activityLevelRollupsByActivityLevelType_.WriteTo(output, _repeated_activityLevelRollupsByActivityLevelType_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + activityLevelRollupsByActivityLevelType_.WriteTo(ref output, _repeated_activityLevelRollupsByActivityLevelType_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += activityLevelRollupsByActivityLevelType_.CalculateSize(_repeated_activityLevelRollupsByActivityLevelType_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActivityLevelRollupValue other) { + if (other == null) { + return; + } + activityLevelRollupsByActivityLevelType_.Add(other.activityLevelRollupsByActivityLevelType_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + activityLevelRollupsByActivityLevelType_.AddEntriesFrom(input, _repeated_activityLevelRollupsByActivityLevelType_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + activityLevelRollupsByActivityLevelType_.AddEntriesFrom(ref input, _repeated_activityLevelRollupsByActivityLevelType_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ActivityLevelRollupValue message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Represents the total duration in a specific activity level type. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActivityLevelRollupByActivityLevelType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivityLevelRollupByActivityLevelType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivityLevelRollupByActivityLevelType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivityLevelRollupByActivityLevelType(ActivityLevelRollupByActivityLevelType other) : this() { + activityLevelType_ = other.activityLevelType_; + totalDuration_ = other.totalDuration_ != null ? other.totalDuration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivityLevelRollupByActivityLevelType Clone() { + return new ActivityLevelRollupByActivityLevelType(this); + } + + /// Field number for the "activity_level_type" field. + public const int ActivityLevelTypeFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType activityLevelType_ = global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType.Unspecified; + /// + /// Activity level type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType ActivityLevelType { + get { return activityLevelType_; } + set { + activityLevelType_ = value; + } + } + + /// Field number for the "total_duration" field. + public const int TotalDurationFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Duration totalDuration_; + /// + /// Total duration in the activity level type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration TotalDuration { + get { return totalDuration_; } + set { + totalDuration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActivityLevelRollupByActivityLevelType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActivityLevelRollupByActivityLevelType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ActivityLevelType != other.ActivityLevelType) return false; + if (!object.Equals(TotalDuration, other.TotalDuration)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ActivityLevelType != global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType.Unspecified) hash ^= ActivityLevelType.GetHashCode(); + if (totalDuration_ != null) hash ^= TotalDuration.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ActivityLevelType != global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) ActivityLevelType); + } + if (totalDuration_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TotalDuration); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ActivityLevelType != global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) ActivityLevelType); + } + if (totalDuration_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TotalDuration); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ActivityLevelType != global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ActivityLevelType); + } + if (totalDuration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TotalDuration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActivityLevelRollupByActivityLevelType other) { + if (other == null) { + return; + } + if (other.ActivityLevelType != global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType.Unspecified) { + ActivityLevelType = other.ActivityLevelType; + } + if (other.totalDuration_ != null) { + if (totalDuration_ == null) { + TotalDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + TotalDuration.MergeFrom(other.TotalDuration); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ActivityLevelType = (global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType) input.ReadEnum(); + break; + } + case 18: { + if (totalDuration_ == null) { + TotalDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(TotalDuration); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ActivityLevelType = (global::Google.DevicesAndServices.Health.V4.ActivityLevel.Types.ActivityLevelType) input.ReadEnum(); + break; + } + case 18: { + if (totalDuration_ == null) { + TotalDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(TotalDuration); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Captures the altitude gain (i.e. deltas), and not level above sea, for a user + /// in millimeters. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Altitude : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Altitude()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Altitude() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Altitude(Altitude other) : this() { + interval_ = other.interval_ != null ? other.interval_.Clone() : null; + gainMillimeters_ = other.gainMillimeters_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Altitude Clone() { + return new Altitude(this); + } + + /// Field number for the "interval" field. + public const int IntervalFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval interval_; + /// + /// Required. Observed interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval Interval { + get { return interval_; } + set { + interval_ = value; + } + } + + /// Field number for the "gain_millimeters" field. + public const int GainMillimetersFieldNumber = 3; + private long gainMillimeters_; + /// + /// Required. Altitude gain in millimeters over the observed interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long GainMillimeters { + get { return gainMillimeters_; } + set { + gainMillimeters_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Altitude); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Altitude other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Interval, other.Interval)) return false; + if (GainMillimeters != other.GainMillimeters) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (interval_ != null) hash ^= Interval.GetHashCode(); + if (GainMillimeters != 0L) hash ^= GainMillimeters.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (interval_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Interval); + } + if (GainMillimeters != 0L) { + output.WriteRawTag(24); + output.WriteInt64(GainMillimeters); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (interval_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Interval); + } + if (GainMillimeters != 0L) { + output.WriteRawTag(24); + output.WriteInt64(GainMillimeters); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (interval_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interval); + } + if (GainMillimeters != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(GainMillimeters); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Altitude other) { + if (other == null) { + return; + } + if (other.interval_ != null) { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + Interval.MergeFrom(other.Interval); + } + if (other.GainMillimeters != 0L) { + GainMillimeters = other.GainMillimeters; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 24: { + GainMillimeters = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 24: { + GainMillimeters = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Body fat measurement. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BodyFat : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BodyFat()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BodyFat() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BodyFat(BodyFat other) : this() { + sampleTime_ = other.sampleTime_ != null ? other.sampleTime_.Clone() : null; + percentage_ = other.percentage_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BodyFat Clone() { + return new BodyFat(this); + } + + /// Field number for the "sample_time" field. + public const int SampleTimeFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.ObservationSampleTime sampleTime_; + /// + /// Required. The time at which body fat was measured. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationSampleTime SampleTime { + get { return sampleTime_; } + set { + sampleTime_ = value; + } + } + + /// Field number for the "percentage" field. + public const int PercentageFieldNumber = 3; + private double percentage_; + /// + /// Required. Body fat percentage, in range [0, 100]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Percentage { + get { return percentage_; } + set { + percentage_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BodyFat); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BodyFat other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SampleTime, other.SampleTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Percentage, other.Percentage)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (sampleTime_ != null) hash ^= SampleTime.GetHashCode(); + if (Percentage != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Percentage); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (sampleTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SampleTime); + } + if (Percentage != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Percentage); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (sampleTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SampleTime); + } + if (Percentage != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Percentage); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (sampleTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SampleTime); + } + if (Percentage != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BodyFat other) { + if (other == null) { + return; + } + if (other.sampleTime_ != null) { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + SampleTime.MergeFrom(other.SampleTime); + } + if (other.Percentage != 0D) { + Percentage = other.Percentage; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 25: { + Percentage = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 25: { + Percentage = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the result of the rollup of the body fat data type. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BodyFatRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BodyFatRollupValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BodyFatRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BodyFatRollupValue(BodyFatRollupValue other) : this() { + bodyFatPercentageAvg_ = other.bodyFatPercentageAvg_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BodyFatRollupValue Clone() { + return new BodyFatRollupValue(this); + } + + /// Field number for the "body_fat_percentage_avg" field. + public const int BodyFatPercentageAvgFieldNumber = 1; + private double bodyFatPercentageAvg_; + /// + /// Average body fat percentage. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double BodyFatPercentageAvg { + get { return bodyFatPercentageAvg_; } + set { + bodyFatPercentageAvg_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BodyFatRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BodyFatRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BodyFatPercentageAvg, other.BodyFatPercentageAvg)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BodyFatPercentageAvg != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BodyFatPercentageAvg); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BodyFatPercentageAvg != 0D) { + output.WriteRawTag(9); + output.WriteDouble(BodyFatPercentageAvg); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BodyFatPercentageAvg != 0D) { + output.WriteRawTag(9); + output.WriteDouble(BodyFatPercentageAvg); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BodyFatPercentageAvg != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BodyFatRollupValue other) { + if (other == null) { + return; + } + if (other.BodyFatPercentageAvg != 0D) { + BodyFatPercentageAvg = other.BodyFatPercentageAvg; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + BodyFatPercentageAvg = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9: { + BodyFatPercentageAvg = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the result of the rollup of the calories in heart rate zone data + /// type. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CaloriesInHeartRateZoneRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CaloriesInHeartRateZoneRollupValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CaloriesInHeartRateZoneRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CaloriesInHeartRateZoneRollupValue(CaloriesInHeartRateZoneRollupValue other) : this() { + caloriesInHeartRateZones_ = other.caloriesInHeartRateZones_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CaloriesInHeartRateZoneRollupValue Clone() { + return new CaloriesInHeartRateZoneRollupValue(this); + } + + /// Field number for the "calories_in_heart_rate_zones" field. + public const int CaloriesInHeartRateZonesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_caloriesInHeartRateZones_codec + = pb::FieldCodec.ForMessage(10, global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue.Types.CaloriesInHeartRateZoneValue.Parser); + private readonly pbc::RepeatedField caloriesInHeartRateZones_ = new pbc::RepeatedField(); + /// + /// List of calories burned in each heart rate zone. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CaloriesInHeartRateZones { + get { return caloriesInHeartRateZones_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CaloriesInHeartRateZoneRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CaloriesInHeartRateZoneRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!caloriesInHeartRateZones_.Equals(other.caloriesInHeartRateZones_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= caloriesInHeartRateZones_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + caloriesInHeartRateZones_.WriteTo(output, _repeated_caloriesInHeartRateZones_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + caloriesInHeartRateZones_.WriteTo(ref output, _repeated_caloriesInHeartRateZones_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += caloriesInHeartRateZones_.CalculateSize(_repeated_caloriesInHeartRateZones_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CaloriesInHeartRateZoneRollupValue other) { + if (other == null) { + return; + } + caloriesInHeartRateZones_.Add(other.caloriesInHeartRateZones_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + caloriesInHeartRateZones_.AddEntriesFrom(input, _repeated_caloriesInHeartRateZones_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + caloriesInHeartRateZones_.AddEntriesFrom(ref input, _repeated_caloriesInHeartRateZones_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the CaloriesInHeartRateZoneRollupValue message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Represents the amount of kilocalories burned in a specific heart rate zone. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CaloriesInHeartRateZoneValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CaloriesInHeartRateZoneValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CaloriesInHeartRateZoneValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CaloriesInHeartRateZoneValue(CaloriesInHeartRateZoneValue other) : this() { + heartRateZone_ = other.heartRateZone_; + kcal_ = other.kcal_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CaloriesInHeartRateZoneValue Clone() { + return new CaloriesInHeartRateZoneValue(this); + } + + /// Field number for the "heart_rate_zone" field. + public const int HeartRateZoneFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.HeartRateZoneType heartRateZone_ = global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified; + /// + /// The heart rate zone. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HeartRateZoneType HeartRateZone { + get { return heartRateZone_; } + set { + heartRateZone_ = value; + } + } + + /// Field number for the "kcal" field. + public const int KcalFieldNumber = 2; + private double kcal_; + /// + /// The amount of kilocalories burned in the specified heart rate zone. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Kcal { + get { return kcal_; } + set { + kcal_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CaloriesInHeartRateZoneValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CaloriesInHeartRateZoneValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (HeartRateZone != other.HeartRateZone) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Kcal, other.Kcal)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HeartRateZone != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) hash ^= HeartRateZone.GetHashCode(); + if (Kcal != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Kcal); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HeartRateZone != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) HeartRateZone); + } + if (Kcal != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Kcal); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HeartRateZone != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) HeartRateZone); + } + if (Kcal != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Kcal); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HeartRateZone != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HeartRateZone); + } + if (Kcal != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CaloriesInHeartRateZoneValue other) { + if (other == null) { + return; + } + if (other.HeartRateZone != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + HeartRateZone = other.HeartRateZone; + } + if (other.Kcal != 0D) { + Kcal = other.Kcal; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + HeartRateZone = (global::Google.DevicesAndServices.Health.V4.HeartRateZoneType) input.ReadEnum(); + break; + } + case 17: { + Kcal = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + HeartRateZone = (global::Google.DevicesAndServices.Health.V4.HeartRateZoneType) input.ReadEnum(); + break; + } + case 17: { + Kcal = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// User's heart rate zone thresholds based on the Karvonen algorithm for a + /// specific day. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyHeartRateZones : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyHeartRateZones()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyHeartRateZones() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyHeartRateZones(DailyHeartRateZones other) : this() { + date_ = other.date_ != null ? other.date_.Clone() : null; + heartRateZones_ = other.heartRateZones_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyHeartRateZones Clone() { + return new DailyHeartRateZones(this); + } + + /// Field number for the "date" field. + public const int DateFieldNumber = 1; + private global::Google.Type.Date date_; + /// + /// Required. Date (in user's timezone) of the heart rate zones record. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.Date Date { + get { return date_; } + set { + date_ = value; + } + } + + /// Field number for the "heart_rate_zones" field. + public const int HeartRateZonesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_heartRateZones_codec + = pb::FieldCodec.ForMessage(18, global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones.Types.HeartRateZone.Parser); + private readonly pbc::RepeatedField heartRateZones_ = new pbc::RepeatedField(); + /// + /// Required. The heart rate zones. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField HeartRateZones { + get { return heartRateZones_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyHeartRateZones); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyHeartRateZones other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Date, other.Date)) return false; + if(!heartRateZones_.Equals(other.heartRateZones_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (date_ != null) hash ^= Date.GetHashCode(); + hash ^= heartRateZones_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (date_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Date); + } + heartRateZones_.WriteTo(output, _repeated_heartRateZones_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (date_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Date); + } + heartRateZones_.WriteTo(ref output, _repeated_heartRateZones_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (date_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Date); + } + size += heartRateZones_.CalculateSize(_repeated_heartRateZones_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyHeartRateZones other) { + if (other == null) { + return; + } + if (other.date_ != null) { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + Date.MergeFrom(other.Date); + } + heartRateZones_.Add(other.heartRateZones_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 18: { + heartRateZones_.AddEntriesFrom(input, _repeated_heartRateZones_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 18: { + heartRateZones_.AddEntriesFrom(ref input, _repeated_heartRateZones_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the DailyHeartRateZones message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The heart rate zone. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HeartRateZone : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HeartRateZone()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRateZone() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRateZone(HeartRateZone other) : this() { + heartRateZoneType_ = other.heartRateZoneType_; + minBeatsPerMinute_ = other.minBeatsPerMinute_; + maxBeatsPerMinute_ = other.maxBeatsPerMinute_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRateZone Clone() { + return new HeartRateZone(this); + } + + /// Field number for the "heart_rate_zone_type" field. + public const int HeartRateZoneTypeFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.HeartRateZoneType heartRateZoneType_ = global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified; + /// + /// Required. The heart rate zone type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HeartRateZoneType HeartRateZoneType { + get { return heartRateZoneType_; } + set { + heartRateZoneType_ = value; + } + } + + /// Field number for the "min_beats_per_minute" field. + public const int MinBeatsPerMinuteFieldNumber = 2; + private long minBeatsPerMinute_; + /// + /// Required. Minimum heart rate for this zone in beats per minute. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MinBeatsPerMinute { + get { return minBeatsPerMinute_; } + set { + minBeatsPerMinute_ = value; + } + } + + /// Field number for the "max_beats_per_minute" field. + public const int MaxBeatsPerMinuteFieldNumber = 3; + private long maxBeatsPerMinute_; + /// + /// Required. Maximum heart rate for this zone in beats per minute. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MaxBeatsPerMinute { + get { return maxBeatsPerMinute_; } + set { + maxBeatsPerMinute_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HeartRateZone); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HeartRateZone other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (HeartRateZoneType != other.HeartRateZoneType) return false; + if (MinBeatsPerMinute != other.MinBeatsPerMinute) return false; + if (MaxBeatsPerMinute != other.MaxBeatsPerMinute) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HeartRateZoneType != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) hash ^= HeartRateZoneType.GetHashCode(); + if (MinBeatsPerMinute != 0L) hash ^= MinBeatsPerMinute.GetHashCode(); + if (MaxBeatsPerMinute != 0L) hash ^= MaxBeatsPerMinute.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HeartRateZoneType != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) HeartRateZoneType); + } + if (MinBeatsPerMinute != 0L) { + output.WriteRawTag(16); + output.WriteInt64(MinBeatsPerMinute); + } + if (MaxBeatsPerMinute != 0L) { + output.WriteRawTag(24); + output.WriteInt64(MaxBeatsPerMinute); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HeartRateZoneType != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) HeartRateZoneType); + } + if (MinBeatsPerMinute != 0L) { + output.WriteRawTag(16); + output.WriteInt64(MinBeatsPerMinute); + } + if (MaxBeatsPerMinute != 0L) { + output.WriteRawTag(24); + output.WriteInt64(MaxBeatsPerMinute); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HeartRateZoneType != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HeartRateZoneType); + } + if (MinBeatsPerMinute != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MinBeatsPerMinute); + } + if (MaxBeatsPerMinute != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MaxBeatsPerMinute); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HeartRateZone other) { + if (other == null) { + return; + } + if (other.HeartRateZoneType != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + HeartRateZoneType = other.HeartRateZoneType; + } + if (other.MinBeatsPerMinute != 0L) { + MinBeatsPerMinute = other.MinBeatsPerMinute; + } + if (other.MaxBeatsPerMinute != 0L) { + MaxBeatsPerMinute = other.MaxBeatsPerMinute; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + HeartRateZoneType = (global::Google.DevicesAndServices.Health.V4.HeartRateZoneType) input.ReadEnum(); + break; + } + case 16: { + MinBeatsPerMinute = input.ReadInt64(); + break; + } + case 24: { + MaxBeatsPerMinute = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + HeartRateZoneType = (global::Google.DevicesAndServices.Health.V4.HeartRateZoneType) input.ReadEnum(); + break; + } + case 16: { + MinBeatsPerMinute = input.ReadInt64(); + break; + } + case 24: { + MaxBeatsPerMinute = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Represents the daily heart rate variability data type. + /// + /// At least one of the following fields must be set: + /// + /// - `average_heart_rate_variability_milliseconds` + /// - `non_rem_heart_rate_beats_per_minute` + /// - `entropy` + /// - `deep_sleep_root_mean_square_of_successive_differences_milliseconds` + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyHeartRateVariability : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyHeartRateVariability()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyHeartRateVariability() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyHeartRateVariability(DailyHeartRateVariability other) : this() { + _hasBits0 = other._hasBits0; + date_ = other.date_ != null ? other.date_.Clone() : null; + averageHeartRateVariabilityMilliseconds_ = other.averageHeartRateVariabilityMilliseconds_; + nonRemHeartRateBeatsPerMinute_ = other.nonRemHeartRateBeatsPerMinute_; + entropy_ = other.entropy_; + deepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds_ = other.deepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyHeartRateVariability Clone() { + return new DailyHeartRateVariability(this); + } + + /// Field number for the "date" field. + public const int DateFieldNumber = 2; + private global::Google.Type.Date date_; + /// + /// Required. Date (in the user's timezone) of heart rate variability + /// measurement. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.Date Date { + get { return date_; } + set { + date_ = value; + } + } + + /// Field number for the "average_heart_rate_variability_milliseconds" field. + public const int AverageHeartRateVariabilityMillisecondsFieldNumber = 4; + private readonly static double AverageHeartRateVariabilityMillisecondsDefaultValue = 0D; + + private double averageHeartRateVariabilityMilliseconds_; + /// + /// Optional. A user's average heart rate variability calculated using the root + /// mean square of successive differences (RMSSD) in times between heartbeats. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double AverageHeartRateVariabilityMilliseconds { + get { if ((_hasBits0 & 1) != 0) { return averageHeartRateVariabilityMilliseconds_; } else { return AverageHeartRateVariabilityMillisecondsDefaultValue; } } + set { + _hasBits0 |= 1; + averageHeartRateVariabilityMilliseconds_ = value; + } + } + /// Gets whether the "average_heart_rate_variability_milliseconds" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAverageHeartRateVariabilityMilliseconds { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "average_heart_rate_variability_milliseconds" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAverageHeartRateVariabilityMilliseconds() { + _hasBits0 &= ~1; + } + + /// Field number for the "non_rem_heart_rate_beats_per_minute" field. + public const int NonRemHeartRateBeatsPerMinuteFieldNumber = 5; + private readonly static long NonRemHeartRateBeatsPerMinuteDefaultValue = 0L; + + private long nonRemHeartRateBeatsPerMinute_; + /// + /// Optional. Non-REM heart rate + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NonRemHeartRateBeatsPerMinute { + get { if ((_hasBits0 & 2) != 0) { return nonRemHeartRateBeatsPerMinute_; } else { return NonRemHeartRateBeatsPerMinuteDefaultValue; } } + set { + _hasBits0 |= 2; + nonRemHeartRateBeatsPerMinute_ = value; + } + } + /// Gets whether the "non_rem_heart_rate_beats_per_minute" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNonRemHeartRateBeatsPerMinute { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "non_rem_heart_rate_beats_per_minute" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNonRemHeartRateBeatsPerMinute() { + _hasBits0 &= ~2; + } + + /// Field number for the "entropy" field. + public const int EntropyFieldNumber = 6; + private readonly static double EntropyDefaultValue = 0D; + + private double entropy_; + /// + /// Optional. The Shanon entropy of heartbeat intervals. + /// Entropy quantifies randomness or disorder in a system. High entropy + /// indicates high HRV. Entropy is measured from the histogram of time interval + /// between successive heart beats values measured during sleep. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Entropy { + get { if ((_hasBits0 & 4) != 0) { return entropy_; } else { return EntropyDefaultValue; } } + set { + _hasBits0 |= 4; + entropy_ = value; + } + } + /// Gets whether the "entropy" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEntropy { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "entropy" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEntropy() { + _hasBits0 &= ~4; + } + + /// Field number for the "deep_sleep_root_mean_square_of_successive_differences_milliseconds" field. + public const int DeepSleepRootMeanSquareOfSuccessiveDifferencesMillisecondsFieldNumber = 7; + private readonly static double DeepSleepRootMeanSquareOfSuccessiveDifferencesMillisecondsDefaultValue = 0D; + + private double deepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds_; + /// + /// Optional. The root mean square of successive differences (RMSSD) value + /// during deep sleep. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double DeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds { + get { if ((_hasBits0 & 8) != 0) { return deepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds_; } else { return DeepSleepRootMeanSquareOfSuccessiveDifferencesMillisecondsDefaultValue; } } + set { + _hasBits0 |= 8; + deepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds_ = value; + } + } + /// Gets whether the "deep_sleep_root_mean_square_of_successive_differences_milliseconds" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "deep_sleep_root_mean_square_of_successive_differences_milliseconds" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyHeartRateVariability); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyHeartRateVariability other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Date, other.Date)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AverageHeartRateVariabilityMilliseconds, other.AverageHeartRateVariabilityMilliseconds)) return false; + if (NonRemHeartRateBeatsPerMinute != other.NonRemHeartRateBeatsPerMinute) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Entropy, other.Entropy)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds, other.DeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (date_ != null) hash ^= Date.GetHashCode(); + if (HasAverageHeartRateVariabilityMilliseconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AverageHeartRateVariabilityMilliseconds); + if (HasNonRemHeartRateBeatsPerMinute) hash ^= NonRemHeartRateBeatsPerMinute.GetHashCode(); + if (HasEntropy) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Entropy); + if (HasDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (date_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Date); + } + if (HasAverageHeartRateVariabilityMilliseconds) { + output.WriteRawTag(33); + output.WriteDouble(AverageHeartRateVariabilityMilliseconds); + } + if (HasNonRemHeartRateBeatsPerMinute) { + output.WriteRawTag(40); + output.WriteInt64(NonRemHeartRateBeatsPerMinute); + } + if (HasEntropy) { + output.WriteRawTag(49); + output.WriteDouble(Entropy); + } + if (HasDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds) { + output.WriteRawTag(57); + output.WriteDouble(DeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (date_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Date); + } + if (HasAverageHeartRateVariabilityMilliseconds) { + output.WriteRawTag(33); + output.WriteDouble(AverageHeartRateVariabilityMilliseconds); + } + if (HasNonRemHeartRateBeatsPerMinute) { + output.WriteRawTag(40); + output.WriteInt64(NonRemHeartRateBeatsPerMinute); + } + if (HasEntropy) { + output.WriteRawTag(49); + output.WriteDouble(Entropy); + } + if (HasDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds) { + output.WriteRawTag(57); + output.WriteDouble(DeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (date_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Date); + } + if (HasAverageHeartRateVariabilityMilliseconds) { + size += 1 + 8; + } + if (HasNonRemHeartRateBeatsPerMinute) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NonRemHeartRateBeatsPerMinute); + } + if (HasEntropy) { + size += 1 + 8; + } + if (HasDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyHeartRateVariability other) { + if (other == null) { + return; + } + if (other.date_ != null) { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + Date.MergeFrom(other.Date); + } + if (other.HasAverageHeartRateVariabilityMilliseconds) { + AverageHeartRateVariabilityMilliseconds = other.AverageHeartRateVariabilityMilliseconds; + } + if (other.HasNonRemHeartRateBeatsPerMinute) { + NonRemHeartRateBeatsPerMinute = other.NonRemHeartRateBeatsPerMinute; + } + if (other.HasEntropy) { + Entropy = other.Entropy; + } + if (other.HasDeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds) { + DeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds = other.DeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 33: { + AverageHeartRateVariabilityMilliseconds = input.ReadDouble(); + break; + } + case 40: { + NonRemHeartRateBeatsPerMinute = input.ReadInt64(); + break; + } + case 49: { + Entropy = input.ReadDouble(); + break; + } + case 57: { + DeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 33: { + AverageHeartRateVariabilityMilliseconds = input.ReadDouble(); + break; + } + case 40: { + NonRemHeartRateBeatsPerMinute = input.ReadInt64(); + break; + } + case 49: { + Entropy = input.ReadDouble(); + break; + } + case 57: { + DeepSleepRootMeanSquareOfSuccessiveDifferencesMilliseconds = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// A daily average respiratory rate (breaths per minute) for a day of the year. + /// One data point per day calculated for the main sleep. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyRespiratoryRate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyRespiratoryRate()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRespiratoryRate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRespiratoryRate(DailyRespiratoryRate other) : this() { + date_ = other.date_ != null ? other.date_.Clone() : null; + breathsPerMinute_ = other.breathsPerMinute_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRespiratoryRate Clone() { + return new DailyRespiratoryRate(this); + } + + /// Field number for the "date" field. + public const int DateFieldNumber = 1; + private global::Google.Type.Date date_; + /// + /// Required. The date on which the respiratory rate was measured. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.Date Date { + get { return date_; } + set { + date_ = value; + } + } + + /// Field number for the "breaths_per_minute" field. + public const int BreathsPerMinuteFieldNumber = 2; + private double breathsPerMinute_; + /// + /// Required. The average number of breaths taken per minute. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double BreathsPerMinute { + get { return breathsPerMinute_; } + set { + breathsPerMinute_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyRespiratoryRate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyRespiratoryRate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Date, other.Date)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BreathsPerMinute, other.BreathsPerMinute)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (date_ != null) hash ^= Date.GetHashCode(); + if (BreathsPerMinute != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BreathsPerMinute); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (date_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Date); + } + if (BreathsPerMinute != 0D) { + output.WriteRawTag(17); + output.WriteDouble(BreathsPerMinute); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (date_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Date); + } + if (BreathsPerMinute != 0D) { + output.WriteRawTag(17); + output.WriteDouble(BreathsPerMinute); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (date_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Date); + } + if (BreathsPerMinute != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyRespiratoryRate other) { + if (other == null) { + return; + } + if (other.date_ != null) { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + Date.MergeFrom(other.Date); + } + if (other.BreathsPerMinute != 0D) { + BreathsPerMinute = other.BreathsPerMinute; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 17: { + BreathsPerMinute = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 17: { + BreathsPerMinute = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// A daily oxygen saturation (SpO2) record. + /// Represents the user's daily oxygen saturation summary, typically calculated + /// during sleep. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyOxygenSaturation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyOxygenSaturation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyOxygenSaturation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyOxygenSaturation(DailyOxygenSaturation other) : this() { + date_ = other.date_ != null ? other.date_.Clone() : null; + averagePercentage_ = other.averagePercentage_; + lowerBoundPercentage_ = other.lowerBoundPercentage_; + upperBoundPercentage_ = other.upperBoundPercentage_; + standardDeviationPercentage_ = other.standardDeviationPercentage_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyOxygenSaturation Clone() { + return new DailyOxygenSaturation(this); + } + + /// Field number for the "date" field. + public const int DateFieldNumber = 1; + private global::Google.Type.Date date_; + /// + /// Required. Date (in user's timezone) of the daily oxygen saturation record. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.Date Date { + get { return date_; } + set { + date_ = value; + } + } + + /// Field number for the "average_percentage" field. + public const int AveragePercentageFieldNumber = 2; + private double averagePercentage_; + /// + /// Required. The average value of the oxygen saturation samples during the + /// sleep. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double AveragePercentage { + get { return averagePercentage_; } + set { + averagePercentage_ = value; + } + } + + /// Field number for the "lower_bound_percentage" field. + public const int LowerBoundPercentageFieldNumber = 3; + private double lowerBoundPercentage_; + /// + /// Required. The lower bound of the confidence interval of oxygen saturation + /// samples during sleep. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double LowerBoundPercentage { + get { return lowerBoundPercentage_; } + set { + lowerBoundPercentage_ = value; + } + } + + /// Field number for the "upper_bound_percentage" field. + public const int UpperBoundPercentageFieldNumber = 4; + private double upperBoundPercentage_; + /// + /// Required. The upper bound of the confidence interval of oxygen saturation + /// samples during sleep. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double UpperBoundPercentage { + get { return upperBoundPercentage_; } + set { + upperBoundPercentage_ = value; + } + } + + /// Field number for the "standard_deviation_percentage" field. + public const int StandardDeviationPercentageFieldNumber = 5; + private double standardDeviationPercentage_; + /// + /// Optional. Standard deviation of the daily oxygen saturation averages from + /// the past 7-30 days. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double StandardDeviationPercentage { + get { return standardDeviationPercentage_; } + set { + standardDeviationPercentage_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyOxygenSaturation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyOxygenSaturation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Date, other.Date)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AveragePercentage, other.AveragePercentage)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LowerBoundPercentage, other.LowerBoundPercentage)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UpperBoundPercentage, other.UpperBoundPercentage)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(StandardDeviationPercentage, other.StandardDeviationPercentage)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (date_ != null) hash ^= Date.GetHashCode(); + if (AveragePercentage != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AveragePercentage); + if (LowerBoundPercentage != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LowerBoundPercentage); + if (UpperBoundPercentage != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(UpperBoundPercentage); + if (StandardDeviationPercentage != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(StandardDeviationPercentage); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (date_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Date); + } + if (AveragePercentage != 0D) { + output.WriteRawTag(17); + output.WriteDouble(AveragePercentage); + } + if (LowerBoundPercentage != 0D) { + output.WriteRawTag(25); + output.WriteDouble(LowerBoundPercentage); + } + if (UpperBoundPercentage != 0D) { + output.WriteRawTag(33); + output.WriteDouble(UpperBoundPercentage); + } + if (StandardDeviationPercentage != 0D) { + output.WriteRawTag(41); + output.WriteDouble(StandardDeviationPercentage); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (date_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Date); + } + if (AveragePercentage != 0D) { + output.WriteRawTag(17); + output.WriteDouble(AveragePercentage); + } + if (LowerBoundPercentage != 0D) { + output.WriteRawTag(25); + output.WriteDouble(LowerBoundPercentage); + } + if (UpperBoundPercentage != 0D) { + output.WriteRawTag(33); + output.WriteDouble(UpperBoundPercentage); + } + if (StandardDeviationPercentage != 0D) { + output.WriteRawTag(41); + output.WriteDouble(StandardDeviationPercentage); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (date_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Date); + } + if (AveragePercentage != 0D) { + size += 1 + 8; + } + if (LowerBoundPercentage != 0D) { + size += 1 + 8; + } + if (UpperBoundPercentage != 0D) { + size += 1 + 8; + } + if (StandardDeviationPercentage != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyOxygenSaturation other) { + if (other == null) { + return; + } + if (other.date_ != null) { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + Date.MergeFrom(other.Date); + } + if (other.AveragePercentage != 0D) { + AveragePercentage = other.AveragePercentage; + } + if (other.LowerBoundPercentage != 0D) { + LowerBoundPercentage = other.LowerBoundPercentage; + } + if (other.UpperBoundPercentage != 0D) { + UpperBoundPercentage = other.UpperBoundPercentage; + } + if (other.StandardDeviationPercentage != 0D) { + StandardDeviationPercentage = other.StandardDeviationPercentage; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 17: { + AveragePercentage = input.ReadDouble(); + break; + } + case 25: { + LowerBoundPercentage = input.ReadDouble(); + break; + } + case 33: { + UpperBoundPercentage = input.ReadDouble(); + break; + } + case 41: { + StandardDeviationPercentage = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 17: { + AveragePercentage = input.ReadDouble(); + break; + } + case 25: { + LowerBoundPercentage = input.ReadDouble(); + break; + } + case 33: { + UpperBoundPercentage = input.ReadDouble(); + break; + } + case 41: { + StandardDeviationPercentage = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Measures the daily resting heart rate for a user, calculated using the all + /// day heart rate measurements. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyRestingHeartRate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyRestingHeartRate()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRestingHeartRate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRestingHeartRate(DailyRestingHeartRate other) : this() { + date_ = other.date_ != null ? other.date_.Clone() : null; + beatsPerMinute_ = other.beatsPerMinute_; + dailyRestingHeartRateMetadata_ = other.dailyRestingHeartRateMetadata_ != null ? other.dailyRestingHeartRateMetadata_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRestingHeartRate Clone() { + return new DailyRestingHeartRate(this); + } + + /// Field number for the "date" field. + public const int DateFieldNumber = 2; + private global::Google.Type.Date date_; + /// + /// Required. Date (in the user's timezone) of the resting heart rate + /// measurement. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.Date Date { + get { return date_; } + set { + date_ = value; + } + } + + /// Field number for the "beats_per_minute" field. + public const int BeatsPerMinuteFieldNumber = 4; + private long beatsPerMinute_; + /// + /// Required. The resting heart rate value in beats per minute. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BeatsPerMinute { + get { return beatsPerMinute_; } + set { + beatsPerMinute_ = value; + } + } + + /// Field number for the "daily_resting_heart_rate_metadata" field. + public const int DailyRestingHeartRateMetadataFieldNumber = 5; + private global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata dailyRestingHeartRateMetadata_; + /// + /// Optional. Metadata for the daily resting heart rate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata DailyRestingHeartRateMetadata { + get { return dailyRestingHeartRateMetadata_; } + set { + dailyRestingHeartRateMetadata_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyRestingHeartRate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyRestingHeartRate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Date, other.Date)) return false; + if (BeatsPerMinute != other.BeatsPerMinute) return false; + if (!object.Equals(DailyRestingHeartRateMetadata, other.DailyRestingHeartRateMetadata)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (date_ != null) hash ^= Date.GetHashCode(); + if (BeatsPerMinute != 0L) hash ^= BeatsPerMinute.GetHashCode(); + if (dailyRestingHeartRateMetadata_ != null) hash ^= DailyRestingHeartRateMetadata.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (date_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Date); + } + if (BeatsPerMinute != 0L) { + output.WriteRawTag(32); + output.WriteInt64(BeatsPerMinute); + } + if (dailyRestingHeartRateMetadata_ != null) { + output.WriteRawTag(42); + output.WriteMessage(DailyRestingHeartRateMetadata); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (date_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Date); + } + if (BeatsPerMinute != 0L) { + output.WriteRawTag(32); + output.WriteInt64(BeatsPerMinute); + } + if (dailyRestingHeartRateMetadata_ != null) { + output.WriteRawTag(42); + output.WriteMessage(DailyRestingHeartRateMetadata); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (date_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Date); + } + if (BeatsPerMinute != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeatsPerMinute); + } + if (dailyRestingHeartRateMetadata_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DailyRestingHeartRateMetadata); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyRestingHeartRate other) { + if (other == null) { + return; + } + if (other.date_ != null) { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + Date.MergeFrom(other.Date); + } + if (other.BeatsPerMinute != 0L) { + BeatsPerMinute = other.BeatsPerMinute; + } + if (other.dailyRestingHeartRateMetadata_ != null) { + if (dailyRestingHeartRateMetadata_ == null) { + DailyRestingHeartRateMetadata = new global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata(); + } + DailyRestingHeartRateMetadata.MergeFrom(other.DailyRestingHeartRateMetadata); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 32: { + BeatsPerMinute = input.ReadInt64(); + break; + } + case 42: { + if (dailyRestingHeartRateMetadata_ == null) { + DailyRestingHeartRateMetadata = new global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata(); + } + input.ReadMessage(DailyRestingHeartRateMetadata); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 32: { + BeatsPerMinute = input.ReadInt64(); + break; + } + case 42: { + if (dailyRestingHeartRateMetadata_ == null) { + DailyRestingHeartRateMetadata = new global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata(); + } + input.ReadMessage(DailyRestingHeartRateMetadata); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the DailyRestingHeartRate message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Metadata for the daily resting heart rate. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyRestingHeartRateMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyRestingHeartRateMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRestingHeartRateMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRestingHeartRateMetadata(DailyRestingHeartRateMetadata other) : this() { + calculationMethod_ = other.calculationMethod_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRestingHeartRateMetadata Clone() { + return new DailyRestingHeartRateMetadata(this); + } + + /// Field number for the "calculation_method" field. + public const int CalculationMethodFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata.Types.CalculationMethod calculationMethod_ = global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata.Types.CalculationMethod.Unspecified; + /// + /// Required. The method used to calculate the resting heart rate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata.Types.CalculationMethod CalculationMethod { + get { return calculationMethod_; } + set { + calculationMethod_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyRestingHeartRateMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyRestingHeartRateMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CalculationMethod != other.CalculationMethod) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CalculationMethod != global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata.Types.CalculationMethod.Unspecified) hash ^= CalculationMethod.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CalculationMethod != global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata.Types.CalculationMethod.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) CalculationMethod); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CalculationMethod != global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata.Types.CalculationMethod.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) CalculationMethod); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CalculationMethod != global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata.Types.CalculationMethod.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CalculationMethod); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyRestingHeartRateMetadata other) { + if (other == null) { + return; + } + if (other.CalculationMethod != global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata.Types.CalculationMethod.Unspecified) { + CalculationMethod = other.CalculationMethod; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + CalculationMethod = (global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata.Types.CalculationMethod) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + CalculationMethod = (global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate.Types.DailyRestingHeartRateMetadata.Types.CalculationMethod) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the DailyRestingHeartRateMetadata message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The method used to calculate the resting heart rate. + /// + public enum CalculationMethod { + /// + /// The calculation method is unspecified. + /// + [pbr::OriginalName("CALCULATION_METHOD_UNSPECIFIED")] Unspecified = 0, + /// + /// The resting heart rate is calculated using the sleep data. + /// + [pbr::OriginalName("WITH_SLEEP")] WithSleep = 1, + /// + /// The resting heart rate is calculated using only awake data. + /// + [pbr::OriginalName("ONLY_WITH_AWAKE_DATA")] OnlyWithAwakeData = 2, + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// Provides derived sleep temperature values, calculated from skin or internal + /// device temperature readings during sleep. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailySleepTemperatureDerivations : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailySleepTemperatureDerivations()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailySleepTemperatureDerivations() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailySleepTemperatureDerivations(DailySleepTemperatureDerivations other) : this() { + date_ = other.date_ != null ? other.date_.Clone() : null; + nightlyTemperatureCelsius_ = other.nightlyTemperatureCelsius_; + baselineTemperatureCelsius_ = other.baselineTemperatureCelsius_; + relativeNightlyStddev30DCelsius_ = other.relativeNightlyStddev30DCelsius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailySleepTemperatureDerivations Clone() { + return new DailySleepTemperatureDerivations(this); + } + + /// Field number for the "date" field. + public const int DateFieldNumber = 1; + private global::Google.Type.Date date_; + /// + /// Required. Date for which the sleep temperature derivations are calculated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.Date Date { + get { return date_; } + set { + date_ = value; + } + } + + /// Field number for the "nightly_temperature_celsius" field. + public const int NightlyTemperatureCelsiusFieldNumber = 2; + private double nightlyTemperatureCelsius_; + /// + /// Required. The user's nightly skin temperature. It is the mean of skin + /// temperature samples taken from the user’s sleep. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double NightlyTemperatureCelsius { + get { return nightlyTemperatureCelsius_; } + set { + nightlyTemperatureCelsius_ = value; + } + } + + /// Field number for the "baseline_temperature_celsius" field. + public const int BaselineTemperatureCelsiusFieldNumber = 3; + private double baselineTemperatureCelsius_; + /// + /// Optional. The user's baseline skin temperature. It is the median of the + /// user's nightly skin temperature over the past 30 days. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double BaselineTemperatureCelsius { + get { return baselineTemperatureCelsius_; } + set { + baselineTemperatureCelsius_ = value; + } + } + + /// Field number for the "relative_nightly_stddev_30d_celsius" field. + public const int RelativeNightlyStddev30DCelsiusFieldNumber = 4; + private double relativeNightlyStddev30DCelsius_; + /// + /// Optional. The standard deviation of the user’s relative nightly skin + /// temperature (temperature - baseline) over the past 30 days. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double RelativeNightlyStddev30DCelsius { + get { return relativeNightlyStddev30DCelsius_; } + set { + relativeNightlyStddev30DCelsius_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailySleepTemperatureDerivations); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailySleepTemperatureDerivations other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Date, other.Date)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NightlyTemperatureCelsius, other.NightlyTemperatureCelsius)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BaselineTemperatureCelsius, other.BaselineTemperatureCelsius)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RelativeNightlyStddev30DCelsius, other.RelativeNightlyStddev30DCelsius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (date_ != null) hash ^= Date.GetHashCode(); + if (NightlyTemperatureCelsius != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NightlyTemperatureCelsius); + if (BaselineTemperatureCelsius != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BaselineTemperatureCelsius); + if (RelativeNightlyStddev30DCelsius != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RelativeNightlyStddev30DCelsius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (date_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Date); + } + if (NightlyTemperatureCelsius != 0D) { + output.WriteRawTag(17); + output.WriteDouble(NightlyTemperatureCelsius); + } + if (BaselineTemperatureCelsius != 0D) { + output.WriteRawTag(25); + output.WriteDouble(BaselineTemperatureCelsius); + } + if (RelativeNightlyStddev30DCelsius != 0D) { + output.WriteRawTag(33); + output.WriteDouble(RelativeNightlyStddev30DCelsius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (date_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Date); + } + if (NightlyTemperatureCelsius != 0D) { + output.WriteRawTag(17); + output.WriteDouble(NightlyTemperatureCelsius); + } + if (BaselineTemperatureCelsius != 0D) { + output.WriteRawTag(25); + output.WriteDouble(BaselineTemperatureCelsius); + } + if (RelativeNightlyStddev30DCelsius != 0D) { + output.WriteRawTag(33); + output.WriteDouble(RelativeNightlyStddev30DCelsius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (date_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Date); + } + if (NightlyTemperatureCelsius != 0D) { + size += 1 + 8; + } + if (BaselineTemperatureCelsius != 0D) { + size += 1 + 8; + } + if (RelativeNightlyStddev30DCelsius != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailySleepTemperatureDerivations other) { + if (other == null) { + return; + } + if (other.date_ != null) { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + Date.MergeFrom(other.Date); + } + if (other.NightlyTemperatureCelsius != 0D) { + NightlyTemperatureCelsius = other.NightlyTemperatureCelsius; + } + if (other.BaselineTemperatureCelsius != 0D) { + BaselineTemperatureCelsius = other.BaselineTemperatureCelsius; + } + if (other.RelativeNightlyStddev30DCelsius != 0D) { + RelativeNightlyStddev30DCelsius = other.RelativeNightlyStddev30DCelsius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 17: { + NightlyTemperatureCelsius = input.ReadDouble(); + break; + } + case 25: { + BaselineTemperatureCelsius = input.ReadDouble(); + break; + } + case 33: { + RelativeNightlyStddev30DCelsius = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 17: { + NightlyTemperatureCelsius = input.ReadDouble(); + break; + } + case 25: { + BaselineTemperatureCelsius = input.ReadDouble(); + break; + } + case 33: { + RelativeNightlyStddev30DCelsius = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Contains a daily summary of the user's VO2 max (cardio fitness score), + /// which is the maximum rate of oxygen the body can use during exercise. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyVO2Max : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyVO2Max()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyVO2Max() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyVO2Max(DailyVO2Max other) : this() { + date_ = other.date_ != null ? other.date_.Clone() : null; + vo2Max_ = other.vo2Max_; + estimated_ = other.estimated_; + cardioFitnessLevel_ = other.cardioFitnessLevel_; + vo2MaxCovariance_ = other.vo2MaxCovariance_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyVO2Max Clone() { + return new DailyVO2Max(this); + } + + /// Field number for the "date" field. + public const int DateFieldNumber = 1; + private global::Google.Type.Date date_; + /// + /// Required. The date for which the Daily VO2 max was measured. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.Date Date { + get { return date_; } + set { + date_ = value; + } + } + + /// Field number for the "vo2_max" field. + public const int Vo2MaxFieldNumber = 2; + private double vo2Max_; + /// + /// Required. Daily VO2 max value measured as in ml consumed oxygen / kg of + /// body weight / min. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Vo2Max { + get { return vo2Max_; } + set { + vo2Max_ = value; + } + } + + /// Field number for the "estimated" field. + public const int EstimatedFieldNumber = 3; + private bool estimated_; + /// + /// Optional. An estimated field is added to indicate when the confidence has + /// decreased sufficiently to consider the value an estimation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Estimated { + get { return estimated_; } + set { + estimated_ = value; + } + } + + /// Field number for the "cardio_fitness_level" field. + public const int CardioFitnessLevelFieldNumber = 4; + private global::Google.DevicesAndServices.Health.V4.DailyVO2Max.Types.CardioFitnessLevel cardioFitnessLevel_ = global::Google.DevicesAndServices.Health.V4.DailyVO2Max.Types.CardioFitnessLevel.Unspecified; + /// + /// Optional. Represents the user's cardio fitness level based on their VO2 + /// max. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailyVO2Max.Types.CardioFitnessLevel CardioFitnessLevel { + get { return cardioFitnessLevel_; } + set { + cardioFitnessLevel_ = value; + } + } + + /// Field number for the "vo2_max_covariance" field. + public const int Vo2MaxCovarianceFieldNumber = 5; + private double vo2MaxCovariance_; + /// + /// Optional. The covariance of the VO2 max value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Vo2MaxCovariance { + get { return vo2MaxCovariance_; } + set { + vo2MaxCovariance_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyVO2Max); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyVO2Max other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Date, other.Date)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Vo2Max, other.Vo2Max)) return false; + if (Estimated != other.Estimated) return false; + if (CardioFitnessLevel != other.CardioFitnessLevel) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Vo2MaxCovariance, other.Vo2MaxCovariance)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (date_ != null) hash ^= Date.GetHashCode(); + if (Vo2Max != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Vo2Max); + if (Estimated != false) hash ^= Estimated.GetHashCode(); + if (CardioFitnessLevel != global::Google.DevicesAndServices.Health.V4.DailyVO2Max.Types.CardioFitnessLevel.Unspecified) hash ^= CardioFitnessLevel.GetHashCode(); + if (Vo2MaxCovariance != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Vo2MaxCovariance); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (date_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Date); + } + if (Vo2Max != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Vo2Max); + } + if (Estimated != false) { + output.WriteRawTag(24); + output.WriteBool(Estimated); + } + if (CardioFitnessLevel != global::Google.DevicesAndServices.Health.V4.DailyVO2Max.Types.CardioFitnessLevel.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) CardioFitnessLevel); + } + if (Vo2MaxCovariance != 0D) { + output.WriteRawTag(41); + output.WriteDouble(Vo2MaxCovariance); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (date_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Date); + } + if (Vo2Max != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Vo2Max); + } + if (Estimated != false) { + output.WriteRawTag(24); + output.WriteBool(Estimated); + } + if (CardioFitnessLevel != global::Google.DevicesAndServices.Health.V4.DailyVO2Max.Types.CardioFitnessLevel.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) CardioFitnessLevel); + } + if (Vo2MaxCovariance != 0D) { + output.WriteRawTag(41); + output.WriteDouble(Vo2MaxCovariance); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (date_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Date); + } + if (Vo2Max != 0D) { + size += 1 + 8; + } + if (Estimated != false) { + size += 1 + 1; + } + if (CardioFitnessLevel != global::Google.DevicesAndServices.Health.V4.DailyVO2Max.Types.CardioFitnessLevel.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CardioFitnessLevel); + } + if (Vo2MaxCovariance != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyVO2Max other) { + if (other == null) { + return; + } + if (other.date_ != null) { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + Date.MergeFrom(other.Date); + } + if (other.Vo2Max != 0D) { + Vo2Max = other.Vo2Max; + } + if (other.Estimated != false) { + Estimated = other.Estimated; + } + if (other.CardioFitnessLevel != global::Google.DevicesAndServices.Health.V4.DailyVO2Max.Types.CardioFitnessLevel.Unspecified) { + CardioFitnessLevel = other.CardioFitnessLevel; + } + if (other.Vo2MaxCovariance != 0D) { + Vo2MaxCovariance = other.Vo2MaxCovariance; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 17: { + Vo2Max = input.ReadDouble(); + break; + } + case 24: { + Estimated = input.ReadBool(); + break; + } + case 32: { + CardioFitnessLevel = (global::Google.DevicesAndServices.Health.V4.DailyVO2Max.Types.CardioFitnessLevel) input.ReadEnum(); + break; + } + case 41: { + Vo2MaxCovariance = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (date_ == null) { + Date = new global::Google.Type.Date(); + } + input.ReadMessage(Date); + break; + } + case 17: { + Vo2Max = input.ReadDouble(); + break; + } + case 24: { + Estimated = input.ReadBool(); + break; + } + case 32: { + CardioFitnessLevel = (global::Google.DevicesAndServices.Health.V4.DailyVO2Max.Types.CardioFitnessLevel) input.ReadEnum(); + break; + } + case 41: { + Vo2MaxCovariance = input.ReadDouble(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the DailyVO2Max message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The cardio fitness level categories. + /// + public enum CardioFitnessLevel { + /// + /// Unspecified cardio fitness level. + /// + [pbr::OriginalName("CARDIO_FITNESS_LEVEL_UNSPECIFIED")] Unspecified = 0, + /// + /// Poor cardio fitness level. + /// + [pbr::OriginalName("POOR")] Poor = 1, + /// + /// Fair cardio fitness level. + /// + [pbr::OriginalName("FAIR")] Fair = 2, + /// + /// Average cardio fitness level. + /// + [pbr::OriginalName("AVERAGE")] Average = 3, + /// + /// Good cardio fitness level. + /// + [pbr::OriginalName("GOOD")] Good = 4, + /// + /// Very good cardio fitness level. + /// + [pbr::OriginalName("VERY_GOOD")] VeryGood = 5, + /// + /// Excellent cardio fitness level. + /// + [pbr::OriginalName("EXCELLENT")] Excellent = 6, + } + + } + #endregion + + } + + /// + /// Distance traveled over an interval of time. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Distance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Distance()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Distance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Distance(Distance other) : this() { + interval_ = other.interval_ != null ? other.interval_.Clone() : null; + millimeters_ = other.millimeters_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Distance Clone() { + return new Distance(this); + } + + /// Field number for the "interval" field. + public const int IntervalFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval interval_; + /// + /// Required. Observed interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval Interval { + get { return interval_; } + set { + interval_ = value; + } + } + + /// Field number for the "millimeters" field. + public const int MillimetersFieldNumber = 3; + private long millimeters_; + /// + /// Required. Distance in millimeters over the observed interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Millimeters { + get { return millimeters_; } + set { + millimeters_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Distance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Distance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Interval, other.Interval)) return false; + if (Millimeters != other.Millimeters) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (interval_ != null) hash ^= Interval.GetHashCode(); + if (Millimeters != 0L) hash ^= Millimeters.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (interval_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Interval); + } + if (Millimeters != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Millimeters); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (interval_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Interval); + } + if (Millimeters != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Millimeters); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (interval_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interval); + } + if (Millimeters != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Millimeters); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Distance other) { + if (other == null) { + return; + } + if (other.interval_ != null) { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + Interval.MergeFrom(other.Interval); + } + if (other.Millimeters != 0L) { + Millimeters = other.Millimeters; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 24: { + Millimeters = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 24: { + Millimeters = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Result of the rollup of the user's distance. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DistanceRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DistanceRollupValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DistanceRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DistanceRollupValue(DistanceRollupValue other) : this() { + millimetersSum_ = other.millimetersSum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DistanceRollupValue Clone() { + return new DistanceRollupValue(this); + } + + /// Field number for the "millimeters_sum" field. + public const int MillimetersSumFieldNumber = 1; + private long millimetersSum_; + /// + /// Sum of the distance in millimeters. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MillimetersSum { + get { return millimetersSum_; } + set { + millimetersSum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DistanceRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DistanceRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MillimetersSum != other.MillimetersSum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MillimetersSum != 0L) hash ^= MillimetersSum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MillimetersSum != 0L) { + output.WriteRawTag(8); + output.WriteInt64(MillimetersSum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MillimetersSum != 0L) { + output.WriteRawTag(8); + output.WriteInt64(MillimetersSum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MillimetersSum != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MillimetersSum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DistanceRollupValue other) { + if (other == null) { + return; + } + if (other.MillimetersSum != 0L) { + MillimetersSum = other.MillimetersSum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MillimetersSum = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MillimetersSum = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// An exercise that stores information about a physical activity. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Exercise : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Exercise()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Exercise() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Exercise(Exercise other) : this() { + interval_ = other.interval_ != null ? other.interval_.Clone() : null; + exerciseType_ = other.exerciseType_; + splits_ = other.splits_.Clone(); + exerciseEvents_ = other.exerciseEvents_.Clone(); + splitSummaries_ = other.splitSummaries_.Clone(); + metricsSummary_ = other.metricsSummary_ != null ? other.metricsSummary_.Clone() : null; + exerciseMetadata_ = other.exerciseMetadata_ != null ? other.exerciseMetadata_.Clone() : null; + displayName_ = other.displayName_; + activeDuration_ = other.activeDuration_ != null ? other.activeDuration_.Clone() : null; + notes_ = other.notes_; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Exercise Clone() { + return new Exercise(this); + } + + /// Field number for the "interval" field. + public const int IntervalFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.SessionTimeInterval interval_; + /// + /// Required. Observed exercise interval + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.SessionTimeInterval Interval { + get { return interval_; } + set { + interval_ = value; + } + } + + /// Field number for the "exercise_type" field. + public const int ExerciseTypeFieldNumber = 6; + private global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseType exerciseType_ = global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseType.Unspecified; + /// + /// Required. The type of activity performed during an exercise. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseType ExerciseType { + get { return exerciseType_; } + set { + exerciseType_ = value; + } + } + + /// Field number for the "splits" field. + public const int SplitsFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_splits_codec + = pb::FieldCodec.ForMessage(66, global::Google.DevicesAndServices.Health.V4.Exercise.Types.SplitSummary.Parser); + private readonly pbc::RepeatedField splits_ = new pbc::RepeatedField(); + /// + /// Optional. The default split is 1 km or 1 mile. + /// - if the movement distance is less than the default, + /// then there are no splits + /// - if the movement distance is greater than or equal to the + /// default, + /// then we have splits + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Splits { + get { return splits_; } + } + + /// Field number for the "exercise_events" field. + public const int ExerciseEventsFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_exerciseEvents_codec + = pb::FieldCodec.ForMessage(122, global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseEvent.Parser); + private readonly pbc::RepeatedField exerciseEvents_ = new pbc::RepeatedField(); + /// + /// Optional. Exercise events that happen during an exercise, such as pause & + /// restarts. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ExerciseEvents { + get { return exerciseEvents_; } + } + + /// Field number for the "split_summaries" field. + public const int SplitSummariesFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_splitSummaries_codec + = pb::FieldCodec.ForMessage(74, global::Google.DevicesAndServices.Health.V4.Exercise.Types.SplitSummary.Parser); + private readonly pbc::RepeatedField splitSummaries_ = new pbc::RepeatedField(); + /// + /// Optional. Laps or splits recorded within an exercise. + /// Laps could be split based on distance or other criteria (duration, etc.) + /// Laps should not be overlapping with each other. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SplitSummaries { + get { return splitSummaries_; } + } + + /// Field number for the "metrics_summary" field. + public const int MetricsSummaryFieldNumber = 10; + private global::Google.DevicesAndServices.Health.V4.MetricsSummary metricsSummary_; + /// + /// Required. Summary metrics for this exercise + /// ( ) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.MetricsSummary MetricsSummary { + get { return metricsSummary_; } + set { + metricsSummary_ = value; + } + } + + /// Field number for the "exercise_metadata" field. + public const int ExerciseMetadataFieldNumber = 11; + private global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseMetadata exerciseMetadata_; + /// + /// Optional. Additional exercise metadata. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseMetadata ExerciseMetadata { + get { return exerciseMetadata_; } + set { + exerciseMetadata_ = value; + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 12; + private string displayName_ = ""; + /// + /// Required. Exercise display name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "active_duration" field. + public const int ActiveDurationFieldNumber = 13; + private global::Google.Protobuf.WellKnownTypes.Duration activeDuration_; + /// + /// Optional. Duration excluding pauses. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration ActiveDuration { + get { return activeDuration_; } + set { + activeDuration_ = value; + } + } + + /// Field number for the "notes" field. + public const int NotesFieldNumber = 14; + private string notes_ = ""; + /// + /// Optional. Standard free-form notes captured at manual logging. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Notes { + get { return notes_; } + set { + notes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 16; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. This is the timestamp of the last update to the exercise. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 17; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Represents the timestamp of the creation of the exercise. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Exercise); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Exercise other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Interval, other.Interval)) return false; + if (ExerciseType != other.ExerciseType) return false; + if(!splits_.Equals(other.splits_)) return false; + if(!exerciseEvents_.Equals(other.exerciseEvents_)) return false; + if(!splitSummaries_.Equals(other.splitSummaries_)) return false; + if (!object.Equals(MetricsSummary, other.MetricsSummary)) return false; + if (!object.Equals(ExerciseMetadata, other.ExerciseMetadata)) return false; + if (DisplayName != other.DisplayName) return false; + if (!object.Equals(ActiveDuration, other.ActiveDuration)) return false; + if (Notes != other.Notes) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (interval_ != null) hash ^= Interval.GetHashCode(); + if (ExerciseType != global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseType.Unspecified) hash ^= ExerciseType.GetHashCode(); + hash ^= splits_.GetHashCode(); + hash ^= exerciseEvents_.GetHashCode(); + hash ^= splitSummaries_.GetHashCode(); + if (metricsSummary_ != null) hash ^= MetricsSummary.GetHashCode(); + if (exerciseMetadata_ != null) hash ^= ExerciseMetadata.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (activeDuration_ != null) hash ^= ActiveDuration.GetHashCode(); + if (Notes.Length != 0) hash ^= Notes.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (interval_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Interval); + } + if (ExerciseType != global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseType.Unspecified) { + output.WriteRawTag(48); + output.WriteEnum((int) ExerciseType); + } + splits_.WriteTo(output, _repeated_splits_codec); + splitSummaries_.WriteTo(output, _repeated_splitSummaries_codec); + if (metricsSummary_ != null) { + output.WriteRawTag(82); + output.WriteMessage(MetricsSummary); + } + if (exerciseMetadata_ != null) { + output.WriteRawTag(90); + output.WriteMessage(ExerciseMetadata); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(98); + output.WriteString(DisplayName); + } + if (activeDuration_ != null) { + output.WriteRawTag(106); + output.WriteMessage(ActiveDuration); + } + if (Notes.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Notes); + } + exerciseEvents_.WriteTo(output, _repeated_exerciseEvents_codec); + if (updateTime_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(UpdateTime); + } + if (createTime_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(CreateTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (interval_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Interval); + } + if (ExerciseType != global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseType.Unspecified) { + output.WriteRawTag(48); + output.WriteEnum((int) ExerciseType); + } + splits_.WriteTo(ref output, _repeated_splits_codec); + splitSummaries_.WriteTo(ref output, _repeated_splitSummaries_codec); + if (metricsSummary_ != null) { + output.WriteRawTag(82); + output.WriteMessage(MetricsSummary); + } + if (exerciseMetadata_ != null) { + output.WriteRawTag(90); + output.WriteMessage(ExerciseMetadata); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(98); + output.WriteString(DisplayName); + } + if (activeDuration_ != null) { + output.WriteRawTag(106); + output.WriteMessage(ActiveDuration); + } + if (Notes.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Notes); + } + exerciseEvents_.WriteTo(ref output, _repeated_exerciseEvents_codec); + if (updateTime_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(UpdateTime); + } + if (createTime_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(CreateTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (interval_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interval); + } + if (ExerciseType != global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExerciseType); + } + size += splits_.CalculateSize(_repeated_splits_codec); + size += exerciseEvents_.CalculateSize(_repeated_exerciseEvents_codec); + size += splitSummaries_.CalculateSize(_repeated_splitSummaries_codec); + if (metricsSummary_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MetricsSummary); + } + if (exerciseMetadata_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExerciseMetadata); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (activeDuration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActiveDuration); + } + if (Notes.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Notes); + } + if (updateTime_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (createTime_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Exercise other) { + if (other == null) { + return; + } + if (other.interval_ != null) { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.SessionTimeInterval(); + } + Interval.MergeFrom(other.Interval); + } + if (other.ExerciseType != global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseType.Unspecified) { + ExerciseType = other.ExerciseType; + } + splits_.Add(other.splits_); + exerciseEvents_.Add(other.exerciseEvents_); + splitSummaries_.Add(other.splitSummaries_); + if (other.metricsSummary_ != null) { + if (metricsSummary_ == null) { + MetricsSummary = new global::Google.DevicesAndServices.Health.V4.MetricsSummary(); + } + MetricsSummary.MergeFrom(other.MetricsSummary); + } + if (other.exerciseMetadata_ != null) { + if (exerciseMetadata_ == null) { + ExerciseMetadata = new global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseMetadata(); + } + ExerciseMetadata.MergeFrom(other.ExerciseMetadata); + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.activeDuration_ != null) { + if (activeDuration_ == null) { + ActiveDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + ActiveDuration.MergeFrom(other.ActiveDuration); + } + if (other.Notes.Length != 0) { + Notes = other.Notes; + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.SessionTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 48: { + ExerciseType = (global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseType) input.ReadEnum(); + break; + } + case 66: { + splits_.AddEntriesFrom(input, _repeated_splits_codec); + break; + } + case 74: { + splitSummaries_.AddEntriesFrom(input, _repeated_splitSummaries_codec); + break; + } + case 82: { + if (metricsSummary_ == null) { + MetricsSummary = new global::Google.DevicesAndServices.Health.V4.MetricsSummary(); + } + input.ReadMessage(MetricsSummary); + break; + } + case 90: { + if (exerciseMetadata_ == null) { + ExerciseMetadata = new global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseMetadata(); + } + input.ReadMessage(ExerciseMetadata); + break; + } + case 98: { + DisplayName = input.ReadString(); + break; + } + case 106: { + if (activeDuration_ == null) { + ActiveDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ActiveDuration); + break; + } + case 114: { + Notes = input.ReadString(); + break; + } + case 122: { + exerciseEvents_.AddEntriesFrom(input, _repeated_exerciseEvents_codec); + break; + } + case 130: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 138: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.SessionTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 48: { + ExerciseType = (global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseType) input.ReadEnum(); + break; + } + case 66: { + splits_.AddEntriesFrom(ref input, _repeated_splits_codec); + break; + } + case 74: { + splitSummaries_.AddEntriesFrom(ref input, _repeated_splitSummaries_codec); + break; + } + case 82: { + if (metricsSummary_ == null) { + MetricsSummary = new global::Google.DevicesAndServices.Health.V4.MetricsSummary(); + } + input.ReadMessage(MetricsSummary); + break; + } + case 90: { + if (exerciseMetadata_ == null) { + ExerciseMetadata = new global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseMetadata(); + } + input.ReadMessage(ExerciseMetadata); + break; + } + case 98: { + DisplayName = input.ReadString(); + break; + } + case 106: { + if (activeDuration_ == null) { + ActiveDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ActiveDuration); + break; + } + case 114: { + Notes = input.ReadString(); + break; + } + case 122: { + exerciseEvents_.AddEntriesFrom(ref input, _repeated_exerciseEvents_codec); + break; + } + case 130: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 138: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Exercise message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The type of activity performed during an exercise. + /// + public enum ExerciseType { + /// + /// Exercise type is unspecified. + /// + [pbr::OriginalName("EXERCISE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Running type. + /// + [pbr::OriginalName("RUNNING")] Running = 1, + /// + /// Walking type. + /// + [pbr::OriginalName("WALKING")] Walking = 2, + /// + /// Biking type. + /// + [pbr::OriginalName("BIKING")] Biking = 3, + /// + /// Swimming type. + /// + [pbr::OriginalName("SWIMMING")] Swimming = 4, + /// + /// Hiking type. + /// + [pbr::OriginalName("HIKING")] Hiking = 5, + /// + /// Yoga type. + /// + [pbr::OriginalName("YOGA")] Yoga = 6, + /// + /// Pilates type. + /// + [pbr::OriginalName("PILATES")] Pilates = 7, + /// + /// Workout type. + /// + [pbr::OriginalName("WORKOUT")] Workout = 8, + /// + /// HIIT type. + /// + [pbr::OriginalName("HIIT")] Hiit = 9, + /// + /// Weightlifting type. + /// + [pbr::OriginalName("WEIGHTLIFTING")] Weightlifting = 10, + /// + /// Strength training type. + /// + [pbr::OriginalName("STRENGTH_TRAINING")] StrengthTraining = 11, + /// + /// Other type. + /// + [pbr::OriginalName("OTHER")] Other = 12, + } + + /// + /// Represents splits or laps recorded within an exercise. Lap events + /// partition a workout into segments based on criteria like distance, time, or + /// calories. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SplitSummary : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SplitSummary()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.Exercise.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SplitSummary() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SplitSummary(SplitSummary other) : this() { + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + startUtcOffset_ = other.startUtcOffset_ != null ? other.startUtcOffset_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + endUtcOffset_ = other.endUtcOffset_ != null ? other.endUtcOffset_.Clone() : null; + activeDuration_ = other.activeDuration_ != null ? other.activeDuration_.Clone() : null; + metricsSummary_ = other.metricsSummary_ != null ? other.metricsSummary_.Clone() : null; + splitType_ = other.splitType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SplitSummary Clone() { + return new SplitSummary(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// Required. Lap start time + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "start_utc_offset" field. + public const int StartUtcOffsetFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Duration startUtcOffset_; + /// + /// Required. Lap start time offset from UTC + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration StartUtcOffset { + get { return startUtcOffset_; } + set { + startUtcOffset_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Required. Lap end time + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "end_utc_offset" field. + public const int EndUtcOffsetFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Duration endUtcOffset_; + /// + /// Required. Lap end time offset from UTC + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration EndUtcOffset { + get { return endUtcOffset_; } + set { + endUtcOffset_ = value; + } + } + + /// Field number for the "active_duration" field. + public const int ActiveDurationFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Duration activeDuration_; + /// + /// Output only. Lap time excluding the pauses. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration ActiveDuration { + get { return activeDuration_; } + set { + activeDuration_ = value; + } + } + + /// Field number for the "metrics_summary" field. + public const int MetricsSummaryFieldNumber = 6; + private global::Google.DevicesAndServices.Health.V4.MetricsSummary metricsSummary_; + /// + /// Required. Summary metrics for this split. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.MetricsSummary MetricsSummary { + get { return metricsSummary_; } + set { + metricsSummary_ = value; + } + } + + /// Field number for the "split_type" field. + public const int SplitTypeFieldNumber = 7; + private global::Google.DevicesAndServices.Health.V4.Exercise.Types.SplitSummary.Types.SplitType splitType_ = global::Google.DevicesAndServices.Health.V4.Exercise.Types.SplitSummary.Types.SplitType.Unspecified; + /// + /// Required. Method used to split the exercise laps. + /// Users may manually mark the lap as complete even if the tracking + /// is automatic. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Exercise.Types.SplitSummary.Types.SplitType SplitType { + get { return splitType_; } + set { + splitType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SplitSummary); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SplitSummary other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(StartUtcOffset, other.StartUtcOffset)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (!object.Equals(EndUtcOffset, other.EndUtcOffset)) return false; + if (!object.Equals(ActiveDuration, other.ActiveDuration)) return false; + if (!object.Equals(MetricsSummary, other.MetricsSummary)) return false; + if (SplitType != other.SplitType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (startUtcOffset_ != null) hash ^= StartUtcOffset.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (endUtcOffset_ != null) hash ^= EndUtcOffset.GetHashCode(); + if (activeDuration_ != null) hash ^= ActiveDuration.GetHashCode(); + if (metricsSummary_ != null) hash ^= MetricsSummary.GetHashCode(); + if (SplitType != global::Google.DevicesAndServices.Health.V4.Exercise.Types.SplitSummary.Types.SplitType.Unspecified) hash ^= SplitType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (startUtcOffset_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartUtcOffset); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (endUtcOffset_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndUtcOffset); + } + if (activeDuration_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ActiveDuration); + } + if (metricsSummary_ != null) { + output.WriteRawTag(50); + output.WriteMessage(MetricsSummary); + } + if (SplitType != global::Google.DevicesAndServices.Health.V4.Exercise.Types.SplitSummary.Types.SplitType.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) SplitType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (startUtcOffset_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartUtcOffset); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (endUtcOffset_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndUtcOffset); + } + if (activeDuration_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ActiveDuration); + } + if (metricsSummary_ != null) { + output.WriteRawTag(50); + output.WriteMessage(MetricsSummary); + } + if (SplitType != global::Google.DevicesAndServices.Health.V4.Exercise.Types.SplitSummary.Types.SplitType.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) SplitType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (startUtcOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartUtcOffset); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (endUtcOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndUtcOffset); + } + if (activeDuration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActiveDuration); + } + if (metricsSummary_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MetricsSummary); + } + if (SplitType != global::Google.DevicesAndServices.Health.V4.Exercise.Types.SplitSummary.Types.SplitType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SplitType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SplitSummary other) { + if (other == null) { + return; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.startUtcOffset_ != null) { + if (startUtcOffset_ == null) { + StartUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + StartUtcOffset.MergeFrom(other.StartUtcOffset); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.endUtcOffset_ != null) { + if (endUtcOffset_ == null) { + EndUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + EndUtcOffset.MergeFrom(other.EndUtcOffset); + } + if (other.activeDuration_ != null) { + if (activeDuration_ == null) { + ActiveDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + ActiveDuration.MergeFrom(other.ActiveDuration); + } + if (other.metricsSummary_ != null) { + if (metricsSummary_ == null) { + MetricsSummary = new global::Google.DevicesAndServices.Health.V4.MetricsSummary(); + } + MetricsSummary.MergeFrom(other.MetricsSummary); + } + if (other.SplitType != global::Google.DevicesAndServices.Health.V4.Exercise.Types.SplitSummary.Types.SplitType.Unspecified) { + SplitType = other.SplitType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (startUtcOffset_ == null) { + StartUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartUtcOffset); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 34: { + if (endUtcOffset_ == null) { + EndUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndUtcOffset); + break; + } + case 42: { + if (activeDuration_ == null) { + ActiveDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ActiveDuration); + break; + } + case 50: { + if (metricsSummary_ == null) { + MetricsSummary = new global::Google.DevicesAndServices.Health.V4.MetricsSummary(); + } + input.ReadMessage(MetricsSummary); + break; + } + case 56: { + SplitType = (global::Google.DevicesAndServices.Health.V4.Exercise.Types.SplitSummary.Types.SplitType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (startUtcOffset_ == null) { + StartUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartUtcOffset); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 34: { + if (endUtcOffset_ == null) { + EndUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndUtcOffset); + break; + } + case 42: { + if (activeDuration_ == null) { + ActiveDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ActiveDuration); + break; + } + case 50: { + if (metricsSummary_ == null) { + MetricsSummary = new global::Google.DevicesAndServices.Health.V4.MetricsSummary(); + } + input.ReadMessage(MetricsSummary); + break; + } + case 56: { + SplitType = (global::Google.DevicesAndServices.Health.V4.Exercise.Types.SplitSummary.Types.SplitType) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the SplitSummary message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The type of the split, such as manual, duration, distance, calories. + /// + public enum SplitType { + /// + /// Split type is unspecified. + /// + [pbr::OriginalName("SPLIT_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Manual split. + /// + [pbr::OriginalName("MANUAL")] Manual = 1, + /// + /// Split by duration. + /// + [pbr::OriginalName("DURATION")] Duration = 2, + /// + /// Split by distance. + /// + [pbr::OriginalName("DISTANCE")] Distance = 3, + /// + /// Split by calories. + /// + [pbr::OriginalName("CALORIES")] Calories = 4, + } + + } + #endregion + + } + + /// + /// Represents instantaneous events that happen during an exercise, + /// such as start, stop, pause, split. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExerciseEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExerciseEvent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.Exercise.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExerciseEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExerciseEvent(ExerciseEvent other) : this() { + eventTime_ = other.eventTime_ != null ? other.eventTime_.Clone() : null; + eventUtcOffset_ = other.eventUtcOffset_ != null ? other.eventUtcOffset_.Clone() : null; + exerciseEventType_ = other.exerciseEventType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExerciseEvent Clone() { + return new ExerciseEvent(this); + } + + /// Field number for the "event_time" field. + public const int EventTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp eventTime_; + /// + /// Required. Exercise event time + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EventTime { + get { return eventTime_; } + set { + eventTime_ = value; + } + } + + /// Field number for the "event_utc_offset" field. + public const int EventUtcOffsetFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Duration eventUtcOffset_; + /// + /// Required. Exercise event time offset from UTC + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration EventUtcOffset { + get { return eventUtcOffset_; } + set { + eventUtcOffset_ = value; + } + } + + /// Field number for the "exercise_event_type" field. + public const int ExerciseEventTypeFieldNumber = 3; + private global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseEvent.Types.ExerciseEventType exerciseEventType_ = global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseEvent.Types.ExerciseEventType.Unspecified; + /// + /// Required. The type of the event, such as start, stop, pause, resume. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseEvent.Types.ExerciseEventType ExerciseEventType { + get { return exerciseEventType_; } + set { + exerciseEventType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExerciseEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExerciseEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(EventTime, other.EventTime)) return false; + if (!object.Equals(EventUtcOffset, other.EventUtcOffset)) return false; + if (ExerciseEventType != other.ExerciseEventType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (eventTime_ != null) hash ^= EventTime.GetHashCode(); + if (eventUtcOffset_ != null) hash ^= EventUtcOffset.GetHashCode(); + if (ExerciseEventType != global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseEvent.Types.ExerciseEventType.Unspecified) hash ^= ExerciseEventType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (eventTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(EventTime); + } + if (eventUtcOffset_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EventUtcOffset); + } + if (ExerciseEventType != global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseEvent.Types.ExerciseEventType.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) ExerciseEventType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (eventTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(EventTime); + } + if (eventUtcOffset_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EventUtcOffset); + } + if (ExerciseEventType != global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseEvent.Types.ExerciseEventType.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) ExerciseEventType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (eventTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EventTime); + } + if (eventUtcOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EventUtcOffset); + } + if (ExerciseEventType != global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseEvent.Types.ExerciseEventType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExerciseEventType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExerciseEvent other) { + if (other == null) { + return; + } + if (other.eventTime_ != null) { + if (eventTime_ == null) { + EventTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EventTime.MergeFrom(other.EventTime); + } + if (other.eventUtcOffset_ != null) { + if (eventUtcOffset_ == null) { + EventUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + EventUtcOffset.MergeFrom(other.EventUtcOffset); + } + if (other.ExerciseEventType != global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseEvent.Types.ExerciseEventType.Unspecified) { + ExerciseEventType = other.ExerciseEventType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (eventTime_ == null) { + EventTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EventTime); + break; + } + case 18: { + if (eventUtcOffset_ == null) { + EventUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EventUtcOffset); + break; + } + case 24: { + ExerciseEventType = (global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseEvent.Types.ExerciseEventType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (eventTime_ == null) { + EventTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EventTime); + break; + } + case 18: { + if (eventUtcOffset_ == null) { + EventUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EventUtcOffset); + break; + } + case 24: { + ExerciseEventType = (global::Google.DevicesAndServices.Health.V4.Exercise.Types.ExerciseEvent.Types.ExerciseEventType) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ExerciseEvent message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The type of the event, such as start, stop, pause, resume. + /// + public enum ExerciseEventType { + /// + /// Exercise event type is unspecified. + /// + [pbr::OriginalName("EXERCISE_EVENT_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Exercise start event. + /// + [pbr::OriginalName("START")] Start = 1, + /// + /// Exercise stop event. + /// + [pbr::OriginalName("STOP")] Stop = 2, + /// + /// Exercise pause event. + /// + [pbr::OriginalName("PAUSE")] Pause = 3, + /// + /// Exercise resume event. + /// + [pbr::OriginalName("RESUME")] Resume = 4, + /// + /// Exercise auto-pause event. + /// + [pbr::OriginalName("AUTO_PAUSE")] AutoPause = 5, + /// + /// Exercise auto-resume event. + /// + [pbr::OriginalName("AUTO_RESUME")] AutoResume = 6, + } + + } + #endregion + + } + + /// + /// Additional exercise metadata. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExerciseMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExerciseMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.Exercise.Descriptor.NestedTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExerciseMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExerciseMetadata(ExerciseMetadata other) : this() { + poolLengthMillimeters_ = other.poolLengthMillimeters_; + hasGps_ = other.hasGps_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExerciseMetadata Clone() { + return new ExerciseMetadata(this); + } + + /// Field number for the "pool_length_millimeters" field. + public const int PoolLengthMillimetersFieldNumber = 1; + private long poolLengthMillimeters_; + /// + /// Optional. Pool length in millimeters. Only present in the swimming + /// exercises. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long PoolLengthMillimeters { + get { return poolLengthMillimeters_; } + set { + poolLengthMillimeters_ = value; + } + } + + /// Field number for the "has_gps" field. + public const int HasGpsFieldNumber = 2; + private bool hasGps_; + /// + /// Optional. Whether the exercise had GPS tracking. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasGps { + get { return hasGps_; } + set { + hasGps_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExerciseMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExerciseMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PoolLengthMillimeters != other.PoolLengthMillimeters) return false; + if (HasGps != other.HasGps) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (PoolLengthMillimeters != 0L) hash ^= PoolLengthMillimeters.GetHashCode(); + if (HasGps != false) hash ^= HasGps.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PoolLengthMillimeters != 0L) { + output.WriteRawTag(8); + output.WriteInt64(PoolLengthMillimeters); + } + if (HasGps != false) { + output.WriteRawTag(16); + output.WriteBool(HasGps); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PoolLengthMillimeters != 0L) { + output.WriteRawTag(8); + output.WriteInt64(PoolLengthMillimeters); + } + if (HasGps != false) { + output.WriteRawTag(16); + output.WriteBool(HasGps); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (PoolLengthMillimeters != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(PoolLengthMillimeters); + } + if (HasGps != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExerciseMetadata other) { + if (other == null) { + return; + } + if (other.PoolLengthMillimeters != 0L) { + PoolLengthMillimeters = other.PoolLengthMillimeters; + } + if (other.HasGps != false) { + HasGps = other.HasGps; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + PoolLengthMillimeters = input.ReadInt64(); + break; + } + case 16: { + HasGps = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + PoolLengthMillimeters = input.ReadInt64(); + break; + } + case 16: { + HasGps = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Gained elevation measured in floors over the time interval + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Floors : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Floors()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Floors() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Floors(Floors other) : this() { + interval_ = other.interval_ != null ? other.interval_.Clone() : null; + count_ = other.count_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Floors Clone() { + return new Floors(this); + } + + /// Field number for the "interval" field. + public const int IntervalFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval interval_; + /// + /// Required. Observed interval + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval Interval { + get { return interval_; } + set { + interval_ = value; + } + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 4; + private long count_; + /// + /// Required. Number of floors in the recorded interval + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Count { + get { return count_; } + set { + count_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Floors); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Floors other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Interval, other.Interval)) return false; + if (Count != other.Count) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (interval_ != null) hash ^= Interval.GetHashCode(); + if (Count != 0L) hash ^= Count.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (interval_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Interval); + } + if (Count != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (interval_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Interval); + } + if (Count != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (interval_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interval); + } + if (Count != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Floors other) { + if (other == null) { + return; + } + if (other.interval_ != null) { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + Interval.MergeFrom(other.Interval); + } + if (other.Count != 0L) { + Count = other.Count; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 32: { + Count = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 32: { + Count = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the result of the rollup of the user's floors. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FloorsRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FloorsRollupValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FloorsRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FloorsRollupValue(FloorsRollupValue other) : this() { + countSum_ = other.countSum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FloorsRollupValue Clone() { + return new FloorsRollupValue(this); + } + + /// Field number for the "count_sum" field. + public const int CountSumFieldNumber = 1; + private long countSum_; + /// + /// Sum of the floors count. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CountSum { + get { return countSum_; } + set { + countSum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FloorsRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FloorsRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CountSum != other.CountSum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CountSum != 0L) hash ^= CountSum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CountSum != 0L) { + output.WriteRawTag(8); + output.WriteInt64(CountSum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CountSum != 0L) { + output.WriteRawTag(8); + output.WriteInt64(CountSum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CountSum != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CountSum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FloorsRollupValue other) { + if (other == null) { + return; + } + if (other.CountSum != 0L) { + CountSum = other.CountSum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + CountSum = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + CountSum = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the result of the rollup of the user's altitude. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AltitudeRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AltitudeRollupValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AltitudeRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AltitudeRollupValue(AltitudeRollupValue other) : this() { + gainMillimetersSum_ = other.gainMillimetersSum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AltitudeRollupValue Clone() { + return new AltitudeRollupValue(this); + } + + /// Field number for the "gain_millimeters_sum" field. + public const int GainMillimetersSumFieldNumber = 1; + private long gainMillimetersSum_; + /// + /// Sum of the altitude gain in millimeters. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long GainMillimetersSum { + get { return gainMillimetersSum_; } + set { + gainMillimetersSum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AltitudeRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AltitudeRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GainMillimetersSum != other.GainMillimetersSum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (GainMillimetersSum != 0L) hash ^= GainMillimetersSum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (GainMillimetersSum != 0L) { + output.WriteRawTag(8); + output.WriteInt64(GainMillimetersSum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (GainMillimetersSum != 0L) { + output.WriteRawTag(8); + output.WriteInt64(GainMillimetersSum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (GainMillimetersSum != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(GainMillimetersSum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AltitudeRollupValue other) { + if (other == null) { + return; + } + if (other.GainMillimetersSum != 0L) { + GainMillimetersSum = other.GainMillimetersSum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + GainMillimetersSum = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + GainMillimetersSum = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// A heart rate measurement. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HeartRate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HeartRate()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRate(HeartRate other) : this() { + sampleTime_ = other.sampleTime_ != null ? other.sampleTime_.Clone() : null; + beatsPerMinute_ = other.beatsPerMinute_; + metadata_ = other.metadata_ != null ? other.metadata_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRate Clone() { + return new HeartRate(this); + } + + /// Field number for the "sample_time" field. + public const int SampleTimeFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.ObservationSampleTime sampleTime_; + /// + /// Required. Observation time + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationSampleTime SampleTime { + get { return sampleTime_; } + set { + sampleTime_ = value; + } + } + + /// Field number for the "beats_per_minute" field. + public const int BeatsPerMinuteFieldNumber = 4; + private long beatsPerMinute_; + /// + /// Required. The heart rate value in beats per minute. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BeatsPerMinute { + get { return beatsPerMinute_; } + set { + beatsPerMinute_ = value; + } + } + + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 6; + private global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata metadata_; + /// + /// Optional. Metadata about the heart rate sample. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata Metadata { + get { return metadata_; } + set { + metadata_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HeartRate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HeartRate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SampleTime, other.SampleTime)) return false; + if (BeatsPerMinute != other.BeatsPerMinute) return false; + if (!object.Equals(Metadata, other.Metadata)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (sampleTime_ != null) hash ^= SampleTime.GetHashCode(); + if (BeatsPerMinute != 0L) hash ^= BeatsPerMinute.GetHashCode(); + if (metadata_ != null) hash ^= Metadata.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (sampleTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SampleTime); + } + if (BeatsPerMinute != 0L) { + output.WriteRawTag(32); + output.WriteInt64(BeatsPerMinute); + } + if (metadata_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Metadata); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (sampleTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SampleTime); + } + if (BeatsPerMinute != 0L) { + output.WriteRawTag(32); + output.WriteInt64(BeatsPerMinute); + } + if (metadata_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Metadata); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (sampleTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SampleTime); + } + if (BeatsPerMinute != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeatsPerMinute); + } + if (metadata_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Metadata); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HeartRate other) { + if (other == null) { + return; + } + if (other.sampleTime_ != null) { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + SampleTime.MergeFrom(other.SampleTime); + } + if (other.BeatsPerMinute != 0L) { + BeatsPerMinute = other.BeatsPerMinute; + } + if (other.metadata_ != null) { + if (metadata_ == null) { + Metadata = new global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata(); + } + Metadata.MergeFrom(other.Metadata); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 32: { + BeatsPerMinute = input.ReadInt64(); + break; + } + case 50: { + if (metadata_ == null) { + Metadata = new global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata(); + } + input.ReadMessage(Metadata); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 32: { + BeatsPerMinute = input.ReadInt64(); + break; + } + case 50: { + if (metadata_ == null) { + Metadata = new global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata(); + } + input.ReadMessage(Metadata); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the HeartRate message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Heart rate metadata. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HeartRateMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HeartRateMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.HeartRate.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRateMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRateMetadata(HeartRateMetadata other) : this() { + motionContext_ = other.motionContext_; + sensorLocation_ = other.sensorLocation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRateMetadata Clone() { + return new HeartRateMetadata(this); + } + + /// Field number for the "motion_context" field. + public const int MotionContextFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.MotionContext motionContext_ = global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.MotionContext.Unspecified; + /// + /// Optional. Indicates the user’s level of activity when the heart rate + /// sample was measured + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.MotionContext MotionContext { + get { return motionContext_; } + set { + motionContext_ = value; + } + } + + /// Field number for the "sensor_location" field. + public const int SensorLocationFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.SensorLocation sensorLocation_ = global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.SensorLocation.Unspecified; + /// + /// Optional. Indicates the location of the sensor that measured the heart + /// rate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.SensorLocation SensorLocation { + get { return sensorLocation_; } + set { + sensorLocation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HeartRateMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HeartRateMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MotionContext != other.MotionContext) return false; + if (SensorLocation != other.SensorLocation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MotionContext != global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.MotionContext.Unspecified) hash ^= MotionContext.GetHashCode(); + if (SensorLocation != global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.SensorLocation.Unspecified) hash ^= SensorLocation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MotionContext != global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.MotionContext.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) MotionContext); + } + if (SensorLocation != global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.SensorLocation.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) SensorLocation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MotionContext != global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.MotionContext.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) MotionContext); + } + if (SensorLocation != global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.SensorLocation.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) SensorLocation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MotionContext != global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.MotionContext.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MotionContext); + } + if (SensorLocation != global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.SensorLocation.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SensorLocation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HeartRateMetadata other) { + if (other == null) { + return; + } + if (other.MotionContext != global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.MotionContext.Unspecified) { + MotionContext = other.MotionContext; + } + if (other.SensorLocation != global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.SensorLocation.Unspecified) { + SensorLocation = other.SensorLocation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MotionContext = (global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.MotionContext) input.ReadEnum(); + break; + } + case 16: { + SensorLocation = (global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.SensorLocation) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MotionContext = (global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.MotionContext) input.ReadEnum(); + break; + } + case 16: { + SensorLocation = (global::Google.DevicesAndServices.Health.V4.HeartRate.Types.HeartRateMetadata.Types.SensorLocation) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the HeartRateMetadata message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The user’s level of activity when the heart rate sample was measured. + /// + public enum MotionContext { + /// + /// The default value when no data is available. + /// + [pbr::OriginalName("MOTION_CONTEXT_UNSPECIFIED")] Unspecified = 0, + /// + /// The user is active. + /// + [pbr::OriginalName("ACTIVE")] Active = 1, + /// + /// The user is inactive. + /// + [pbr::OriginalName("SEDENTARY")] Sedentary = 2, + } + + /// + /// The location of the sensor that measured the heart rate. + /// + public enum SensorLocation { + /// + /// The default value when no data is available. + /// + [pbr::OriginalName("SENSOR_LOCATION_UNSPECIFIED")] Unspecified = 0, + /// + /// Chest sensor. + /// + [pbr::OriginalName("CHEST")] Chest = 1, + /// + /// Wrist sensor. + /// + [pbr::OriginalName("WRIST")] Wrist = 2, + /// + /// Finger sensor. + /// + [pbr::OriginalName("FINGER")] Finger = 3, + /// + /// Hand sensor. + /// + [pbr::OriginalName("HAND")] Hand = 4, + /// + /// Ear lobe sensor. + /// + [pbr::OriginalName("EAR_LOBE")] EarLobe = 5, + /// + /// Foot sensor. + /// + [pbr::OriginalName("FOOT")] Foot = 6, + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// Represents the result of the rollup of the heart rate data type. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HeartRateRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HeartRateRollupValue()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRateRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRateRollupValue(HeartRateRollupValue other) : this() { + _hasBits0 = other._hasBits0; + beatsPerMinuteAvg_ = other.beatsPerMinuteAvg_; + beatsPerMinuteMax_ = other.beatsPerMinuteMax_; + beatsPerMinuteMin_ = other.beatsPerMinuteMin_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRateRollupValue Clone() { + return new HeartRateRollupValue(this); + } + + /// Field number for the "beats_per_minute_avg" field. + public const int BeatsPerMinuteAvgFieldNumber = 1; + private readonly static double BeatsPerMinuteAvgDefaultValue = 0D; + + private double beatsPerMinuteAvg_; + /// + /// The average heart rate value in the interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double BeatsPerMinuteAvg { + get { if ((_hasBits0 & 1) != 0) { return beatsPerMinuteAvg_; } else { return BeatsPerMinuteAvgDefaultValue; } } + set { + _hasBits0 |= 1; + beatsPerMinuteAvg_ = value; + } + } + /// Gets whether the "beats_per_minute_avg" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBeatsPerMinuteAvg { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "beats_per_minute_avg" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBeatsPerMinuteAvg() { + _hasBits0 &= ~1; + } + + /// Field number for the "beats_per_minute_max" field. + public const int BeatsPerMinuteMaxFieldNumber = 2; + private readonly static double BeatsPerMinuteMaxDefaultValue = 0D; + + private double beatsPerMinuteMax_; + /// + /// The maximum heart rate value in the interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double BeatsPerMinuteMax { + get { if ((_hasBits0 & 2) != 0) { return beatsPerMinuteMax_; } else { return BeatsPerMinuteMaxDefaultValue; } } + set { + _hasBits0 |= 2; + beatsPerMinuteMax_ = value; + } + } + /// Gets whether the "beats_per_minute_max" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBeatsPerMinuteMax { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "beats_per_minute_max" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBeatsPerMinuteMax() { + _hasBits0 &= ~2; + } + + /// Field number for the "beats_per_minute_min" field. + public const int BeatsPerMinuteMinFieldNumber = 3; + private readonly static double BeatsPerMinuteMinDefaultValue = 0D; + + private double beatsPerMinuteMin_; + /// + /// The minimum heart rate value in the interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double BeatsPerMinuteMin { + get { if ((_hasBits0 & 4) != 0) { return beatsPerMinuteMin_; } else { return BeatsPerMinuteMinDefaultValue; } } + set { + _hasBits0 |= 4; + beatsPerMinuteMin_ = value; + } + } + /// Gets whether the "beats_per_minute_min" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBeatsPerMinuteMin { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "beats_per_minute_min" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBeatsPerMinuteMin() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HeartRateRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HeartRateRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BeatsPerMinuteAvg, other.BeatsPerMinuteAvg)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BeatsPerMinuteMax, other.BeatsPerMinuteMax)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BeatsPerMinuteMin, other.BeatsPerMinuteMin)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBeatsPerMinuteAvg) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BeatsPerMinuteAvg); + if (HasBeatsPerMinuteMax) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BeatsPerMinuteMax); + if (HasBeatsPerMinuteMin) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BeatsPerMinuteMin); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBeatsPerMinuteAvg) { + output.WriteRawTag(9); + output.WriteDouble(BeatsPerMinuteAvg); + } + if (HasBeatsPerMinuteMax) { + output.WriteRawTag(17); + output.WriteDouble(BeatsPerMinuteMax); + } + if (HasBeatsPerMinuteMin) { + output.WriteRawTag(25); + output.WriteDouble(BeatsPerMinuteMin); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBeatsPerMinuteAvg) { + output.WriteRawTag(9); + output.WriteDouble(BeatsPerMinuteAvg); + } + if (HasBeatsPerMinuteMax) { + output.WriteRawTag(17); + output.WriteDouble(BeatsPerMinuteMax); + } + if (HasBeatsPerMinuteMin) { + output.WriteRawTag(25); + output.WriteDouble(BeatsPerMinuteMin); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBeatsPerMinuteAvg) { + size += 1 + 8; + } + if (HasBeatsPerMinuteMax) { + size += 1 + 8; + } + if (HasBeatsPerMinuteMin) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HeartRateRollupValue other) { + if (other == null) { + return; + } + if (other.HasBeatsPerMinuteAvg) { + BeatsPerMinuteAvg = other.BeatsPerMinuteAvg; + } + if (other.HasBeatsPerMinuteMax) { + BeatsPerMinuteMax = other.BeatsPerMinuteMax; + } + if (other.HasBeatsPerMinuteMin) { + BeatsPerMinuteMin = other.BeatsPerMinuteMin; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + BeatsPerMinuteAvg = input.ReadDouble(); + break; + } + case 17: { + BeatsPerMinuteMax = input.ReadDouble(); + break; + } + case 25: { + BeatsPerMinuteMin = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9: { + BeatsPerMinuteAvg = input.ReadDouble(); + break; + } + case 17: { + BeatsPerMinuteMax = input.ReadDouble(); + break; + } + case 25: { + BeatsPerMinuteMin = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the result of the rollup of the user's daily heart rate + /// variability personal range. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RunVO2MaxRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RunVO2MaxRollupValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RunVO2MaxRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RunVO2MaxRollupValue(RunVO2MaxRollupValue other) : this() { + rateMin_ = other.rateMin_; + rateMax_ = other.rateMax_; + rateAvg_ = other.rateAvg_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RunVO2MaxRollupValue Clone() { + return new RunVO2MaxRollupValue(this); + } + + /// Field number for the "rate_min" field. + public const int RateMinFieldNumber = 1; + private double rateMin_; + /// + /// Minimum value of run VO2 max in the interval.. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double RateMin { + get { return rateMin_; } + set { + rateMin_ = value; + } + } + + /// Field number for the "rate_max" field. + public const int RateMaxFieldNumber = 2; + private double rateMax_; + /// + /// Maximum value of run VO2 max in the interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double RateMax { + get { return rateMax_; } + set { + rateMax_ = value; + } + } + + /// Field number for the "rate_avg" field. + public const int RateAvgFieldNumber = 3; + private double rateAvg_; + /// + /// Average value of run VO2 max in the interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double RateAvg { + get { return rateAvg_; } + set { + rateAvg_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RunVO2MaxRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RunVO2MaxRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RateMin, other.RateMin)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RateMax, other.RateMax)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RateAvg, other.RateAvg)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RateMin != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RateMin); + if (RateMax != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RateMax); + if (RateAvg != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RateAvg); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RateMin != 0D) { + output.WriteRawTag(9); + output.WriteDouble(RateMin); + } + if (RateMax != 0D) { + output.WriteRawTag(17); + output.WriteDouble(RateMax); + } + if (RateAvg != 0D) { + output.WriteRawTag(25); + output.WriteDouble(RateAvg); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RateMin != 0D) { + output.WriteRawTag(9); + output.WriteDouble(RateMin); + } + if (RateMax != 0D) { + output.WriteRawTag(17); + output.WriteDouble(RateMax); + } + if (RateAvg != 0D) { + output.WriteRawTag(25); + output.WriteDouble(RateAvg); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RateMin != 0D) { + size += 1 + 8; + } + if (RateMax != 0D) { + size += 1 + 8; + } + if (RateAvg != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RunVO2MaxRollupValue other) { + if (other == null) { + return; + } + if (other.RateMin != 0D) { + RateMin = other.RateMin; + } + if (other.RateMax != 0D) { + RateMax = other.RateMax; + } + if (other.RateAvg != 0D) { + RateAvg = other.RateAvg; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + RateMin = input.ReadDouble(); + break; + } + case 17: { + RateMax = input.ReadDouble(); + break; + } + case 25: { + RateAvg = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9: { + RateMin = input.ReadDouble(); + break; + } + case 17: { + RateMax = input.ReadDouble(); + break; + } + case 25: { + RateAvg = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// VO2 max value calculated based on the user's running activity. + /// Value stored in ml/kg/min. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RunVO2Max : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RunVO2Max()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RunVO2Max() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RunVO2Max(RunVO2Max other) : this() { + sampleTime_ = other.sampleTime_ != null ? other.sampleTime_.Clone() : null; + runVo2Max_ = other.runVo2Max_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RunVO2Max Clone() { + return new RunVO2Max(this); + } + + /// Field number for the "sample_time" field. + public const int SampleTimeFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.ObservationSampleTime sampleTime_; + /// + /// Required. The time at which the metric was measured. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationSampleTime SampleTime { + get { return sampleTime_; } + set { + sampleTime_ = value; + } + } + + /// Field number for the "run_vo2_max" field. + public const int RunVo2MaxFieldNumber = 2; + private double runVo2Max_; + /// + /// Required. Run VO2 max value in ml/kg/min. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double RunVo2Max { + get { return runVo2Max_; } + set { + runVo2Max_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RunVO2Max); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RunVO2Max other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SampleTime, other.SampleTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RunVo2Max, other.RunVo2Max)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (sampleTime_ != null) hash ^= SampleTime.GetHashCode(); + if (RunVo2Max != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RunVo2Max); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (sampleTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SampleTime); + } + if (RunVo2Max != 0D) { + output.WriteRawTag(17); + output.WriteDouble(RunVo2Max); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (sampleTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SampleTime); + } + if (RunVo2Max != 0D) { + output.WriteRawTag(17); + output.WriteDouble(RunVo2Max); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (sampleTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SampleTime); + } + if (RunVo2Max != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RunVO2Max other) { + if (other == null) { + return; + } + if (other.sampleTime_ != null) { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + SampleTime.MergeFrom(other.SampleTime); + } + if (other.RunVo2Max != 0D) { + RunVo2Max = other.RunVo2Max; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 17: { + RunVo2Max = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 17: { + RunVo2Max = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the result of the rollup of the user's daily heart rate + /// variability personal range. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HeartRateVariabilityPersonalRangeRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HeartRateVariabilityPersonalRangeRollupValue()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRateVariabilityPersonalRangeRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRateVariabilityPersonalRangeRollupValue(HeartRateVariabilityPersonalRangeRollupValue other) : this() { + _hasBits0 = other._hasBits0; + averageHeartRateVariabilityMillisecondsMin_ = other.averageHeartRateVariabilityMillisecondsMin_; + averageHeartRateVariabilityMillisecondsMax_ = other.averageHeartRateVariabilityMillisecondsMax_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRateVariabilityPersonalRangeRollupValue Clone() { + return new HeartRateVariabilityPersonalRangeRollupValue(this); + } + + /// Field number for the "average_heart_rate_variability_milliseconds_min" field. + public const int AverageHeartRateVariabilityMillisecondsMinFieldNumber = 1; + private readonly static double AverageHeartRateVariabilityMillisecondsMinDefaultValue = 0D; + + private double averageHeartRateVariabilityMillisecondsMin_; + /// + /// The lower bound of the user's average heart rate variability personal + /// range. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double AverageHeartRateVariabilityMillisecondsMin { + get { if ((_hasBits0 & 1) != 0) { return averageHeartRateVariabilityMillisecondsMin_; } else { return AverageHeartRateVariabilityMillisecondsMinDefaultValue; } } + set { + _hasBits0 |= 1; + averageHeartRateVariabilityMillisecondsMin_ = value; + } + } + /// Gets whether the "average_heart_rate_variability_milliseconds_min" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAverageHeartRateVariabilityMillisecondsMin { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "average_heart_rate_variability_milliseconds_min" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAverageHeartRateVariabilityMillisecondsMin() { + _hasBits0 &= ~1; + } + + /// Field number for the "average_heart_rate_variability_milliseconds_max" field. + public const int AverageHeartRateVariabilityMillisecondsMaxFieldNumber = 2; + private readonly static double AverageHeartRateVariabilityMillisecondsMaxDefaultValue = 0D; + + private double averageHeartRateVariabilityMillisecondsMax_; + /// + /// The upper bound of the user's average heart rate variability personal + /// range. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double AverageHeartRateVariabilityMillisecondsMax { + get { if ((_hasBits0 & 2) != 0) { return averageHeartRateVariabilityMillisecondsMax_; } else { return AverageHeartRateVariabilityMillisecondsMaxDefaultValue; } } + set { + _hasBits0 |= 2; + averageHeartRateVariabilityMillisecondsMax_ = value; + } + } + /// Gets whether the "average_heart_rate_variability_milliseconds_max" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAverageHeartRateVariabilityMillisecondsMax { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "average_heart_rate_variability_milliseconds_max" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAverageHeartRateVariabilityMillisecondsMax() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HeartRateVariabilityPersonalRangeRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HeartRateVariabilityPersonalRangeRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AverageHeartRateVariabilityMillisecondsMin, other.AverageHeartRateVariabilityMillisecondsMin)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AverageHeartRateVariabilityMillisecondsMax, other.AverageHeartRateVariabilityMillisecondsMax)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasAverageHeartRateVariabilityMillisecondsMin) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AverageHeartRateVariabilityMillisecondsMin); + if (HasAverageHeartRateVariabilityMillisecondsMax) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AverageHeartRateVariabilityMillisecondsMax); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasAverageHeartRateVariabilityMillisecondsMin) { + output.WriteRawTag(9); + output.WriteDouble(AverageHeartRateVariabilityMillisecondsMin); + } + if (HasAverageHeartRateVariabilityMillisecondsMax) { + output.WriteRawTag(17); + output.WriteDouble(AverageHeartRateVariabilityMillisecondsMax); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasAverageHeartRateVariabilityMillisecondsMin) { + output.WriteRawTag(9); + output.WriteDouble(AverageHeartRateVariabilityMillisecondsMin); + } + if (HasAverageHeartRateVariabilityMillisecondsMax) { + output.WriteRawTag(17); + output.WriteDouble(AverageHeartRateVariabilityMillisecondsMax); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasAverageHeartRateVariabilityMillisecondsMin) { + size += 1 + 8; + } + if (HasAverageHeartRateVariabilityMillisecondsMax) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HeartRateVariabilityPersonalRangeRollupValue other) { + if (other == null) { + return; + } + if (other.HasAverageHeartRateVariabilityMillisecondsMin) { + AverageHeartRateVariabilityMillisecondsMin = other.AverageHeartRateVariabilityMillisecondsMin; + } + if (other.HasAverageHeartRateVariabilityMillisecondsMax) { + AverageHeartRateVariabilityMillisecondsMax = other.AverageHeartRateVariabilityMillisecondsMax; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + AverageHeartRateVariabilityMillisecondsMin = input.ReadDouble(); + break; + } + case 17: { + AverageHeartRateVariabilityMillisecondsMax = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9: { + AverageHeartRateVariabilityMillisecondsMin = input.ReadDouble(); + break; + } + case 17: { + AverageHeartRateVariabilityMillisecondsMax = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Captures user's heart rate variability (HRV) as measured by the root mean + /// square of successive differences (RMSSD) between normal heartbeats or by + /// standard deviation of the inter-beat intervals (SDNN). + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HeartRateVariability : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HeartRateVariability()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[28]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRateVariability() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRateVariability(HeartRateVariability other) : this() { + sampleTime_ = other.sampleTime_ != null ? other.sampleTime_.Clone() : null; + rootMeanSquareOfSuccessiveDifferencesMilliseconds_ = other.rootMeanSquareOfSuccessiveDifferencesMilliseconds_; + standardDeviationMilliseconds_ = other.standardDeviationMilliseconds_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeartRateVariability Clone() { + return new HeartRateVariability(this); + } + + /// Field number for the "sample_time" field. + public const int SampleTimeFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.ObservationSampleTime sampleTime_; + /// + /// Required. The time of the heart rate variability measurement. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationSampleTime SampleTime { + get { return sampleTime_; } + set { + sampleTime_ = value; + } + } + + /// Field number for the "root_mean_square_of_successive_differences_milliseconds" field. + public const int RootMeanSquareOfSuccessiveDifferencesMillisecondsFieldNumber = 2; + private double rootMeanSquareOfSuccessiveDifferencesMilliseconds_; + /// + /// Optional. The root mean square of successive differences between normal + /// heartbeats. This is a measure of heart rate variability used by Fitbit. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double RootMeanSquareOfSuccessiveDifferencesMilliseconds { + get { return rootMeanSquareOfSuccessiveDifferencesMilliseconds_; } + set { + rootMeanSquareOfSuccessiveDifferencesMilliseconds_ = value; + } + } + + /// Field number for the "standard_deviation_milliseconds" field. + public const int StandardDeviationMillisecondsFieldNumber = 3; + private double standardDeviationMilliseconds_; + /// + /// Optional. The standard deviation of the heart rate variability measurement. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double StandardDeviationMilliseconds { + get { return standardDeviationMilliseconds_; } + set { + standardDeviationMilliseconds_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HeartRateVariability); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HeartRateVariability other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SampleTime, other.SampleTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RootMeanSquareOfSuccessiveDifferencesMilliseconds, other.RootMeanSquareOfSuccessiveDifferencesMilliseconds)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(StandardDeviationMilliseconds, other.StandardDeviationMilliseconds)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (sampleTime_ != null) hash ^= SampleTime.GetHashCode(); + if (RootMeanSquareOfSuccessiveDifferencesMilliseconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RootMeanSquareOfSuccessiveDifferencesMilliseconds); + if (StandardDeviationMilliseconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(StandardDeviationMilliseconds); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (sampleTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SampleTime); + } + if (RootMeanSquareOfSuccessiveDifferencesMilliseconds != 0D) { + output.WriteRawTag(17); + output.WriteDouble(RootMeanSquareOfSuccessiveDifferencesMilliseconds); + } + if (StandardDeviationMilliseconds != 0D) { + output.WriteRawTag(25); + output.WriteDouble(StandardDeviationMilliseconds); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (sampleTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SampleTime); + } + if (RootMeanSquareOfSuccessiveDifferencesMilliseconds != 0D) { + output.WriteRawTag(17); + output.WriteDouble(RootMeanSquareOfSuccessiveDifferencesMilliseconds); + } + if (StandardDeviationMilliseconds != 0D) { + output.WriteRawTag(25); + output.WriteDouble(StandardDeviationMilliseconds); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (sampleTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SampleTime); + } + if (RootMeanSquareOfSuccessiveDifferencesMilliseconds != 0D) { + size += 1 + 8; + } + if (StandardDeviationMilliseconds != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HeartRateVariability other) { + if (other == null) { + return; + } + if (other.sampleTime_ != null) { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + SampleTime.MergeFrom(other.SampleTime); + } + if (other.RootMeanSquareOfSuccessiveDifferencesMilliseconds != 0D) { + RootMeanSquareOfSuccessiveDifferencesMilliseconds = other.RootMeanSquareOfSuccessiveDifferencesMilliseconds; + } + if (other.StandardDeviationMilliseconds != 0D) { + StandardDeviationMilliseconds = other.StandardDeviationMilliseconds; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 17: { + RootMeanSquareOfSuccessiveDifferencesMilliseconds = input.ReadDouble(); + break; + } + case 25: { + StandardDeviationMilliseconds = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 17: { + RootMeanSquareOfSuccessiveDifferencesMilliseconds = input.ReadDouble(); + break; + } + case 25: { + StandardDeviationMilliseconds = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the volume quantity. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VolumeQuantity : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VolumeQuantity()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[29]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VolumeQuantity() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VolumeQuantity(VolumeQuantity other) : this() { + milliliters_ = other.milliliters_; + userProvidedUnit_ = other.userProvidedUnit_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VolumeQuantity Clone() { + return new VolumeQuantity(this); + } + + /// Field number for the "milliliters" field. + public const int MillilitersFieldNumber = 1; + private double milliliters_; + /// + /// Required. Value representing the volume in milliliters. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Milliliters { + get { return milliliters_; } + set { + milliliters_ = value; + } + } + + /// Field number for the "user_provided_unit" field. + public const int UserProvidedUnitFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.VolumeUnit userProvidedUnit_ = global::Google.DevicesAndServices.Health.V4.VolumeUnit.Unspecified; + /// + /// Optional. Value representing the user provided unit. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.VolumeUnit UserProvidedUnit { + get { return userProvidedUnit_; } + set { + userProvidedUnit_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VolumeQuantity); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VolumeQuantity other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Milliliters, other.Milliliters)) return false; + if (UserProvidedUnit != other.UserProvidedUnit) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Milliliters != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Milliliters); + if (UserProvidedUnit != global::Google.DevicesAndServices.Health.V4.VolumeUnit.Unspecified) hash ^= UserProvidedUnit.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Milliliters != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Milliliters); + } + if (UserProvidedUnit != global::Google.DevicesAndServices.Health.V4.VolumeUnit.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) UserProvidedUnit); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Milliliters != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Milliliters); + } + if (UserProvidedUnit != global::Google.DevicesAndServices.Health.V4.VolumeUnit.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) UserProvidedUnit); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Milliliters != 0D) { + size += 1 + 8; + } + if (UserProvidedUnit != global::Google.DevicesAndServices.Health.V4.VolumeUnit.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) UserProvidedUnit); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VolumeQuantity other) { + if (other == null) { + return; + } + if (other.Milliliters != 0D) { + Milliliters = other.Milliliters; + } + if (other.UserProvidedUnit != global::Google.DevicesAndServices.Health.V4.VolumeUnit.Unspecified) { + UserProvidedUnit = other.UserProvidedUnit; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + Milliliters = input.ReadDouble(); + break; + } + case 16: { + UserProvidedUnit = (global::Google.DevicesAndServices.Health.V4.VolumeUnit) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9: { + Milliliters = input.ReadDouble(); + break; + } + case 16: { + UserProvidedUnit = (global::Google.DevicesAndServices.Health.V4.VolumeUnit) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + /// + /// Holds information about a user logged hydration. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HydrationLog : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HydrationLog()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[30]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HydrationLog() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HydrationLog(HydrationLog other) : this() { + interval_ = other.interval_ != null ? other.interval_.Clone() : null; + amountConsumed_ = other.amountConsumed_ != null ? other.amountConsumed_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HydrationLog Clone() { + return new HydrationLog(this); + } + + /// Field number for the "interval" field. + public const int IntervalFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.SessionTimeInterval interval_; + /// + /// Required. Observed interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.SessionTimeInterval Interval { + get { return interval_; } + set { + interval_ = value; + } + } + + /// Field number for the "amount_consumed" field. + public const int AmountConsumedFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.VolumeQuantity amountConsumed_; + /// + /// Required. Amount of liquid (ex. water) consumed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.VolumeQuantity AmountConsumed { + get { return amountConsumed_; } + set { + amountConsumed_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HydrationLog); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HydrationLog other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Interval, other.Interval)) return false; + if (!object.Equals(AmountConsumed, other.AmountConsumed)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (interval_ != null) hash ^= Interval.GetHashCode(); + if (amountConsumed_ != null) hash ^= AmountConsumed.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (interval_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Interval); + } + if (amountConsumed_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AmountConsumed); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (interval_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Interval); + } + if (amountConsumed_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AmountConsumed); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (interval_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interval); + } + if (amountConsumed_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AmountConsumed); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HydrationLog other) { + if (other == null) { + return; + } + if (other.interval_ != null) { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.SessionTimeInterval(); + } + Interval.MergeFrom(other.Interval); + } + if (other.amountConsumed_ != null) { + if (amountConsumed_ == null) { + AmountConsumed = new global::Google.DevicesAndServices.Health.V4.VolumeQuantity(); + } + AmountConsumed.MergeFrom(other.AmountConsumed); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.SessionTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 18: { + if (amountConsumed_ == null) { + AmountConsumed = new global::Google.DevicesAndServices.Health.V4.VolumeQuantity(); + } + input.ReadMessage(AmountConsumed); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.SessionTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 18: { + if (amountConsumed_ == null) { + AmountConsumed = new global::Google.DevicesAndServices.Health.V4.VolumeQuantity(); + } + input.ReadMessage(AmountConsumed); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the result of the rollup of the hydration log data type. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HydrationLogRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HydrationLogRollupValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[31]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HydrationLogRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HydrationLogRollupValue(HydrationLogRollupValue other) : this() { + amountConsumed_ = other.amountConsumed_ != null ? other.amountConsumed_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HydrationLogRollupValue Clone() { + return new HydrationLogRollupValue(this); + } + + /// Field number for the "amount_consumed" field. + public const int AmountConsumedFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue.Types.VolumeQuantityRollup amountConsumed_; + /// + /// Rollup for amount consumed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue.Types.VolumeQuantityRollup AmountConsumed { + get { return amountConsumed_; } + set { + amountConsumed_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HydrationLogRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HydrationLogRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AmountConsumed, other.AmountConsumed)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (amountConsumed_ != null) hash ^= AmountConsumed.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (amountConsumed_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AmountConsumed); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (amountConsumed_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AmountConsumed); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (amountConsumed_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AmountConsumed); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HydrationLogRollupValue other) { + if (other == null) { + return; + } + if (other.amountConsumed_ != null) { + if (amountConsumed_ == null) { + AmountConsumed = new global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue.Types.VolumeQuantityRollup(); + } + AmountConsumed.MergeFrom(other.AmountConsumed); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (amountConsumed_ == null) { + AmountConsumed = new global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue.Types.VolumeQuantityRollup(); + } + input.ReadMessage(AmountConsumed); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (amountConsumed_ == null) { + AmountConsumed = new global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue.Types.VolumeQuantityRollup(); + } + input.ReadMessage(AmountConsumed); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the HydrationLogRollupValue message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Rollup for volume quantity. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VolumeQuantityRollup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VolumeQuantityRollup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VolumeQuantityRollup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VolumeQuantityRollup(VolumeQuantityRollup other) : this() { + millilitersSum_ = other.millilitersSum_; + userProvidedUnitLast_ = other.userProvidedUnitLast_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VolumeQuantityRollup Clone() { + return new VolumeQuantityRollup(this); + } + + /// Field number for the "milliliters_sum" field. + public const int MillilitersSumFieldNumber = 1; + private double millilitersSum_; + /// + /// Required. The sum of volume in milliliters. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double MillilitersSum { + get { return millilitersSum_; } + set { + millilitersSum_ = value; + } + } + + /// Field number for the "user_provided_unit_last" field. + public const int UserProvidedUnitLastFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.VolumeUnit userProvidedUnitLast_ = global::Google.DevicesAndServices.Health.V4.VolumeUnit.Unspecified; + /// + /// Optional. The user provided unit on the last element. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.VolumeUnit UserProvidedUnitLast { + get { return userProvidedUnitLast_; } + set { + userProvidedUnitLast_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VolumeQuantityRollup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VolumeQuantityRollup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MillilitersSum, other.MillilitersSum)) return false; + if (UserProvidedUnitLast != other.UserProvidedUnitLast) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MillilitersSum != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MillilitersSum); + if (UserProvidedUnitLast != global::Google.DevicesAndServices.Health.V4.VolumeUnit.Unspecified) hash ^= UserProvidedUnitLast.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MillilitersSum != 0D) { + output.WriteRawTag(9); + output.WriteDouble(MillilitersSum); + } + if (UserProvidedUnitLast != global::Google.DevicesAndServices.Health.V4.VolumeUnit.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) UserProvidedUnitLast); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MillilitersSum != 0D) { + output.WriteRawTag(9); + output.WriteDouble(MillilitersSum); + } + if (UserProvidedUnitLast != global::Google.DevicesAndServices.Health.V4.VolumeUnit.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) UserProvidedUnitLast); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MillilitersSum != 0D) { + size += 1 + 8; + } + if (UserProvidedUnitLast != global::Google.DevicesAndServices.Health.V4.VolumeUnit.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) UserProvidedUnitLast); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VolumeQuantityRollup other) { + if (other == null) { + return; + } + if (other.MillilitersSum != 0D) { + MillilitersSum = other.MillilitersSum; + } + if (other.UserProvidedUnitLast != global::Google.DevicesAndServices.Health.V4.VolumeUnit.Unspecified) { + UserProvidedUnitLast = other.UserProvidedUnitLast; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + MillilitersSum = input.ReadDouble(); + break; + } + case 16: { + UserProvidedUnitLast = (global::Google.DevicesAndServices.Health.V4.VolumeUnit) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9: { + MillilitersSum = input.ReadDouble(); + break; + } + case 16: { + UserProvidedUnitLast = (global::Google.DevicesAndServices.Health.V4.VolumeUnit) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Summary metrics for an exercise. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MetricsSummary : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetricsSummary()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[32]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetricsSummary() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetricsSummary(MetricsSummary other) : this() { + _hasBits0 = other._hasBits0; + caloriesKcal_ = other.caloriesKcal_; + distanceMillimeters_ = other.distanceMillimeters_; + steps_ = other.steps_; + averageSpeedMillimetersPerSecond_ = other.averageSpeedMillimetersPerSecond_; + averagePaceSecondsPerMeter_ = other.averagePaceSecondsPerMeter_; + averageHeartRateBeatsPerMinute_ = other.averageHeartRateBeatsPerMinute_; + elevationGainMillimeters_ = other.elevationGainMillimeters_; + activeZoneMinutes_ = other.activeZoneMinutes_; + runVo2Max_ = other.runVo2Max_; + totalSwimLengths_ = other.totalSwimLengths_; + heartRateZoneDurations_ = other.heartRateZoneDurations_ != null ? other.heartRateZoneDurations_.Clone() : null; + mobilityMetrics_ = other.mobilityMetrics_ != null ? other.mobilityMetrics_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetricsSummary Clone() { + return new MetricsSummary(this); + } + + /// Field number for the "calories_kcal" field. + public const int CaloriesKcalFieldNumber = 1; + private readonly static double CaloriesKcalDefaultValue = 0D; + + private double caloriesKcal_; + /// + /// Optional. Total calories burned by the user during the exercise. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double CaloriesKcal { + get { if ((_hasBits0 & 1) != 0) { return caloriesKcal_; } else { return CaloriesKcalDefaultValue; } } + set { + _hasBits0 |= 1; + caloriesKcal_ = value; + } + } + /// Gets whether the "calories_kcal" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCaloriesKcal { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "calories_kcal" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCaloriesKcal() { + _hasBits0 &= ~1; + } + + /// Field number for the "distance_millimeters" field. + public const int DistanceMillimetersFieldNumber = 2; + private readonly static double DistanceMillimetersDefaultValue = 0D; + + private double distanceMillimeters_; + /// + /// Optional. Total distance covered by the user during the exercise. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double DistanceMillimeters { + get { if ((_hasBits0 & 2) != 0) { return distanceMillimeters_; } else { return DistanceMillimetersDefaultValue; } } + set { + _hasBits0 |= 2; + distanceMillimeters_ = value; + } + } + /// Gets whether the "distance_millimeters" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDistanceMillimeters { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "distance_millimeters" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDistanceMillimeters() { + _hasBits0 &= ~2; + } + + /// Field number for the "steps" field. + public const int StepsFieldNumber = 3; + private readonly static long StepsDefaultValue = 0L; + + private long steps_; + /// + /// Optional. Total steps taken during the exercise. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Steps { + get { if ((_hasBits0 & 4) != 0) { return steps_; } else { return StepsDefaultValue; } } + set { + _hasBits0 |= 4; + steps_ = value; + } + } + /// Gets whether the "steps" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSteps { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "steps" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSteps() { + _hasBits0 &= ~4; + } + + /// Field number for the "average_speed_millimeters_per_second" field. + public const int AverageSpeedMillimetersPerSecondFieldNumber = 4; + private readonly static double AverageSpeedMillimetersPerSecondDefaultValue = 0D; + + private double averageSpeedMillimetersPerSecond_; + /// + /// Optional. Average speed in millimeters per second. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double AverageSpeedMillimetersPerSecond { + get { if ((_hasBits0 & 8) != 0) { return averageSpeedMillimetersPerSecond_; } else { return AverageSpeedMillimetersPerSecondDefaultValue; } } + set { + _hasBits0 |= 8; + averageSpeedMillimetersPerSecond_ = value; + } + } + /// Gets whether the "average_speed_millimeters_per_second" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAverageSpeedMillimetersPerSecond { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "average_speed_millimeters_per_second" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAverageSpeedMillimetersPerSecond() { + _hasBits0 &= ~8; + } + + /// Field number for the "average_pace_seconds_per_meter" field. + public const int AveragePaceSecondsPerMeterFieldNumber = 5; + private readonly static double AveragePaceSecondsPerMeterDefaultValue = 0D; + + private double averagePaceSecondsPerMeter_; + /// + /// Optional. Average pace in seconds per meter. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double AveragePaceSecondsPerMeter { + get { if ((_hasBits0 & 16) != 0) { return averagePaceSecondsPerMeter_; } else { return AveragePaceSecondsPerMeterDefaultValue; } } + set { + _hasBits0 |= 16; + averagePaceSecondsPerMeter_ = value; + } + } + /// Gets whether the "average_pace_seconds_per_meter" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAveragePaceSecondsPerMeter { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "average_pace_seconds_per_meter" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAveragePaceSecondsPerMeter() { + _hasBits0 &= ~16; + } + + /// Field number for the "average_heart_rate_beats_per_minute" field. + public const int AverageHeartRateBeatsPerMinuteFieldNumber = 6; + private readonly static long AverageHeartRateBeatsPerMinuteDefaultValue = 0L; + + private long averageHeartRateBeatsPerMinute_; + /// + /// Optional. Average heart rate during the exercise. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long AverageHeartRateBeatsPerMinute { + get { if ((_hasBits0 & 32) != 0) { return averageHeartRateBeatsPerMinute_; } else { return AverageHeartRateBeatsPerMinuteDefaultValue; } } + set { + _hasBits0 |= 32; + averageHeartRateBeatsPerMinute_ = value; + } + } + /// Gets whether the "average_heart_rate_beats_per_minute" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAverageHeartRateBeatsPerMinute { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "average_heart_rate_beats_per_minute" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAverageHeartRateBeatsPerMinute() { + _hasBits0 &= ~32; + } + + /// Field number for the "elevation_gain_millimeters" field. + public const int ElevationGainMillimetersFieldNumber = 7; + private readonly static double ElevationGainMillimetersDefaultValue = 0D; + + private double elevationGainMillimeters_; + /// + /// Optional. Total elevation gain during the exercise. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double ElevationGainMillimeters { + get { if ((_hasBits0 & 64) != 0) { return elevationGainMillimeters_; } else { return ElevationGainMillimetersDefaultValue; } } + set { + _hasBits0 |= 64; + elevationGainMillimeters_ = value; + } + } + /// Gets whether the "elevation_gain_millimeters" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasElevationGainMillimeters { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "elevation_gain_millimeters" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearElevationGainMillimeters() { + _hasBits0 &= ~64; + } + + /// Field number for the "active_zone_minutes" field. + public const int ActiveZoneMinutesFieldNumber = 9; + private readonly static long ActiveZoneMinutesDefaultValue = 0L; + + private long activeZoneMinutes_; + /// + /// Optional. Total active zone minutes for the exercise. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ActiveZoneMinutes { + get { if ((_hasBits0 & 128) != 0) { return activeZoneMinutes_; } else { return ActiveZoneMinutesDefaultValue; } } + set { + _hasBits0 |= 128; + activeZoneMinutes_ = value; + } + } + /// Gets whether the "active_zone_minutes" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasActiveZoneMinutes { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "active_zone_minutes" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearActiveZoneMinutes() { + _hasBits0 &= ~128; + } + + /// Field number for the "run_vo2_max" field. + public const int RunVo2MaxFieldNumber = 10; + private readonly static double RunVo2MaxDefaultValue = 0D; + + private double runVo2Max_; + /// + /// Optional. Run VO2 max value for the exercise. Only present in the running + /// exercises at the top level as in the summary of the whole exercise. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double RunVo2Max { + get { if ((_hasBits0 & 256) != 0) { return runVo2Max_; } else { return RunVo2MaxDefaultValue; } } + set { + _hasBits0 |= 256; + runVo2Max_ = value; + } + } + /// Gets whether the "run_vo2_max" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRunVo2Max { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "run_vo2_max" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRunVo2Max() { + _hasBits0 &= ~256; + } + + /// Field number for the "total_swim_lengths" field. + public const int TotalSwimLengthsFieldNumber = 11; + private readonly static double TotalSwimLengthsDefaultValue = 0D; + + private double totalSwimLengths_; + /// + /// Optional. Number of full pool lengths completed during the exercise. Only + /// present in the swimming exercises at the top level as in the summary of the + /// whole exercise. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalSwimLengths { + get { if ((_hasBits0 & 512) != 0) { return totalSwimLengths_; } else { return TotalSwimLengthsDefaultValue; } } + set { + _hasBits0 |= 512; + totalSwimLengths_ = value; + } + } + /// Gets whether the "total_swim_lengths" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalSwimLengths { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "total_swim_lengths" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalSwimLengths() { + _hasBits0 &= ~512; + } + + /// Field number for the "heart_rate_zone_durations" field. + public const int HeartRateZoneDurationsFieldNumber = 12; + private global::Google.DevicesAndServices.Health.V4.MetricsSummary.Types.TimeInHeartRateZones heartRateZoneDurations_; + /// + /// Optional. Time spent in each heart rate zone. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.MetricsSummary.Types.TimeInHeartRateZones HeartRateZoneDurations { + get { return heartRateZoneDurations_; } + set { + heartRateZoneDurations_ = value; + } + } + + /// Field number for the "mobility_metrics" field. + public const int MobilityMetricsFieldNumber = 13; + private global::Google.DevicesAndServices.Health.V4.MetricsSummary.Types.MobilityMetrics mobilityMetrics_; + /// + /// Optional. Mobility workouts specific metrics. Only present in the advanced + /// running exercises. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.MetricsSummary.Types.MobilityMetrics MobilityMetrics { + get { return mobilityMetrics_; } + set { + mobilityMetrics_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MetricsSummary); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MetricsSummary other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(CaloriesKcal, other.CaloriesKcal)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DistanceMillimeters, other.DistanceMillimeters)) return false; + if (Steps != other.Steps) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AverageSpeedMillimetersPerSecond, other.AverageSpeedMillimetersPerSecond)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AveragePaceSecondsPerMeter, other.AveragePaceSecondsPerMeter)) return false; + if (AverageHeartRateBeatsPerMinute != other.AverageHeartRateBeatsPerMinute) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ElevationGainMillimeters, other.ElevationGainMillimeters)) return false; + if (ActiveZoneMinutes != other.ActiveZoneMinutes) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RunVo2Max, other.RunVo2Max)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalSwimLengths, other.TotalSwimLengths)) return false; + if (!object.Equals(HeartRateZoneDurations, other.HeartRateZoneDurations)) return false; + if (!object.Equals(MobilityMetrics, other.MobilityMetrics)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasCaloriesKcal) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(CaloriesKcal); + if (HasDistanceMillimeters) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DistanceMillimeters); + if (HasSteps) hash ^= Steps.GetHashCode(); + if (HasAverageSpeedMillimetersPerSecond) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AverageSpeedMillimetersPerSecond); + if (HasAveragePaceSecondsPerMeter) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AveragePaceSecondsPerMeter); + if (HasAverageHeartRateBeatsPerMinute) hash ^= AverageHeartRateBeatsPerMinute.GetHashCode(); + if (HasElevationGainMillimeters) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ElevationGainMillimeters); + if (HasActiveZoneMinutes) hash ^= ActiveZoneMinutes.GetHashCode(); + if (HasRunVo2Max) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RunVo2Max); + if (HasTotalSwimLengths) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalSwimLengths); + if (heartRateZoneDurations_ != null) hash ^= HeartRateZoneDurations.GetHashCode(); + if (mobilityMetrics_ != null) hash ^= MobilityMetrics.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasCaloriesKcal) { + output.WriteRawTag(9); + output.WriteDouble(CaloriesKcal); + } + if (HasDistanceMillimeters) { + output.WriteRawTag(17); + output.WriteDouble(DistanceMillimeters); + } + if (HasSteps) { + output.WriteRawTag(24); + output.WriteInt64(Steps); + } + if (HasAverageSpeedMillimetersPerSecond) { + output.WriteRawTag(33); + output.WriteDouble(AverageSpeedMillimetersPerSecond); + } + if (HasAveragePaceSecondsPerMeter) { + output.WriteRawTag(41); + output.WriteDouble(AveragePaceSecondsPerMeter); + } + if (HasAverageHeartRateBeatsPerMinute) { + output.WriteRawTag(48); + output.WriteInt64(AverageHeartRateBeatsPerMinute); + } + if (HasElevationGainMillimeters) { + output.WriteRawTag(57); + output.WriteDouble(ElevationGainMillimeters); + } + if (HasActiveZoneMinutes) { + output.WriteRawTag(72); + output.WriteInt64(ActiveZoneMinutes); + } + if (HasRunVo2Max) { + output.WriteRawTag(81); + output.WriteDouble(RunVo2Max); + } + if (HasTotalSwimLengths) { + output.WriteRawTag(89); + output.WriteDouble(TotalSwimLengths); + } + if (heartRateZoneDurations_ != null) { + output.WriteRawTag(98); + output.WriteMessage(HeartRateZoneDurations); + } + if (mobilityMetrics_ != null) { + output.WriteRawTag(106); + output.WriteMessage(MobilityMetrics); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasCaloriesKcal) { + output.WriteRawTag(9); + output.WriteDouble(CaloriesKcal); + } + if (HasDistanceMillimeters) { + output.WriteRawTag(17); + output.WriteDouble(DistanceMillimeters); + } + if (HasSteps) { + output.WriteRawTag(24); + output.WriteInt64(Steps); + } + if (HasAverageSpeedMillimetersPerSecond) { + output.WriteRawTag(33); + output.WriteDouble(AverageSpeedMillimetersPerSecond); + } + if (HasAveragePaceSecondsPerMeter) { + output.WriteRawTag(41); + output.WriteDouble(AveragePaceSecondsPerMeter); + } + if (HasAverageHeartRateBeatsPerMinute) { + output.WriteRawTag(48); + output.WriteInt64(AverageHeartRateBeatsPerMinute); + } + if (HasElevationGainMillimeters) { + output.WriteRawTag(57); + output.WriteDouble(ElevationGainMillimeters); + } + if (HasActiveZoneMinutes) { + output.WriteRawTag(72); + output.WriteInt64(ActiveZoneMinutes); + } + if (HasRunVo2Max) { + output.WriteRawTag(81); + output.WriteDouble(RunVo2Max); + } + if (HasTotalSwimLengths) { + output.WriteRawTag(89); + output.WriteDouble(TotalSwimLengths); + } + if (heartRateZoneDurations_ != null) { + output.WriteRawTag(98); + output.WriteMessage(HeartRateZoneDurations); + } + if (mobilityMetrics_ != null) { + output.WriteRawTag(106); + output.WriteMessage(MobilityMetrics); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasCaloriesKcal) { + size += 1 + 8; + } + if (HasDistanceMillimeters) { + size += 1 + 8; + } + if (HasSteps) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Steps); + } + if (HasAverageSpeedMillimetersPerSecond) { + size += 1 + 8; + } + if (HasAveragePaceSecondsPerMeter) { + size += 1 + 8; + } + if (HasAverageHeartRateBeatsPerMinute) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(AverageHeartRateBeatsPerMinute); + } + if (HasElevationGainMillimeters) { + size += 1 + 8; + } + if (HasActiveZoneMinutes) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ActiveZoneMinutes); + } + if (HasRunVo2Max) { + size += 1 + 8; + } + if (HasTotalSwimLengths) { + size += 1 + 8; + } + if (heartRateZoneDurations_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HeartRateZoneDurations); + } + if (mobilityMetrics_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MobilityMetrics); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MetricsSummary other) { + if (other == null) { + return; + } + if (other.HasCaloriesKcal) { + CaloriesKcal = other.CaloriesKcal; + } + if (other.HasDistanceMillimeters) { + DistanceMillimeters = other.DistanceMillimeters; + } + if (other.HasSteps) { + Steps = other.Steps; + } + if (other.HasAverageSpeedMillimetersPerSecond) { + AverageSpeedMillimetersPerSecond = other.AverageSpeedMillimetersPerSecond; + } + if (other.HasAveragePaceSecondsPerMeter) { + AveragePaceSecondsPerMeter = other.AveragePaceSecondsPerMeter; + } + if (other.HasAverageHeartRateBeatsPerMinute) { + AverageHeartRateBeatsPerMinute = other.AverageHeartRateBeatsPerMinute; + } + if (other.HasElevationGainMillimeters) { + ElevationGainMillimeters = other.ElevationGainMillimeters; + } + if (other.HasActiveZoneMinutes) { + ActiveZoneMinutes = other.ActiveZoneMinutes; + } + if (other.HasRunVo2Max) { + RunVo2Max = other.RunVo2Max; + } + if (other.HasTotalSwimLengths) { + TotalSwimLengths = other.TotalSwimLengths; + } + if (other.heartRateZoneDurations_ != null) { + if (heartRateZoneDurations_ == null) { + HeartRateZoneDurations = new global::Google.DevicesAndServices.Health.V4.MetricsSummary.Types.TimeInHeartRateZones(); + } + HeartRateZoneDurations.MergeFrom(other.HeartRateZoneDurations); + } + if (other.mobilityMetrics_ != null) { + if (mobilityMetrics_ == null) { + MobilityMetrics = new global::Google.DevicesAndServices.Health.V4.MetricsSummary.Types.MobilityMetrics(); + } + MobilityMetrics.MergeFrom(other.MobilityMetrics); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + CaloriesKcal = input.ReadDouble(); + break; + } + case 17: { + DistanceMillimeters = input.ReadDouble(); + break; + } + case 24: { + Steps = input.ReadInt64(); + break; + } + case 33: { + AverageSpeedMillimetersPerSecond = input.ReadDouble(); + break; + } + case 41: { + AveragePaceSecondsPerMeter = input.ReadDouble(); + break; + } + case 48: { + AverageHeartRateBeatsPerMinute = input.ReadInt64(); + break; + } + case 57: { + ElevationGainMillimeters = input.ReadDouble(); + break; + } + case 72: { + ActiveZoneMinutes = input.ReadInt64(); + break; + } + case 81: { + RunVo2Max = input.ReadDouble(); + break; + } + case 89: { + TotalSwimLengths = input.ReadDouble(); + break; + } + case 98: { + if (heartRateZoneDurations_ == null) { + HeartRateZoneDurations = new global::Google.DevicesAndServices.Health.V4.MetricsSummary.Types.TimeInHeartRateZones(); + } + input.ReadMessage(HeartRateZoneDurations); + break; + } + case 106: { + if (mobilityMetrics_ == null) { + MobilityMetrics = new global::Google.DevicesAndServices.Health.V4.MetricsSummary.Types.MobilityMetrics(); + } + input.ReadMessage(MobilityMetrics); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9: { + CaloriesKcal = input.ReadDouble(); + break; + } + case 17: { + DistanceMillimeters = input.ReadDouble(); + break; + } + case 24: { + Steps = input.ReadInt64(); + break; + } + case 33: { + AverageSpeedMillimetersPerSecond = input.ReadDouble(); + break; + } + case 41: { + AveragePaceSecondsPerMeter = input.ReadDouble(); + break; + } + case 48: { + AverageHeartRateBeatsPerMinute = input.ReadInt64(); + break; + } + case 57: { + ElevationGainMillimeters = input.ReadDouble(); + break; + } + case 72: { + ActiveZoneMinutes = input.ReadInt64(); + break; + } + case 81: { + RunVo2Max = input.ReadDouble(); + break; + } + case 89: { + TotalSwimLengths = input.ReadDouble(); + break; + } + case 98: { + if (heartRateZoneDurations_ == null) { + HeartRateZoneDurations = new global::Google.DevicesAndServices.Health.V4.MetricsSummary.Types.TimeInHeartRateZones(); + } + input.ReadMessage(HeartRateZoneDurations); + break; + } + case 106: { + if (mobilityMetrics_ == null) { + MobilityMetrics = new global::Google.DevicesAndServices.Health.V4.MetricsSummary.Types.MobilityMetrics(); + } + input.ReadMessage(MobilityMetrics); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the MetricsSummary message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Time spent in each heart rate zone. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TimeInHeartRateZones : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TimeInHeartRateZones()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.MetricsSummary.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeInHeartRateZones() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeInHeartRateZones(TimeInHeartRateZones other) : this() { + lightTime_ = other.lightTime_ != null ? other.lightTime_.Clone() : null; + moderateTime_ = other.moderateTime_ != null ? other.moderateTime_.Clone() : null; + vigorousTime_ = other.vigorousTime_ != null ? other.vigorousTime_.Clone() : null; + peakTime_ = other.peakTime_ != null ? other.peakTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeInHeartRateZones Clone() { + return new TimeInHeartRateZones(this); + } + + /// Field number for the "light_time" field. + public const int LightTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Duration lightTime_; + /// + /// Optional. Time spent in light heart rate zone. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration LightTime { + get { return lightTime_; } + set { + lightTime_ = value; + } + } + + /// Field number for the "moderate_time" field. + public const int ModerateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Duration moderateTime_; + /// + /// Optional. Time spent in moderate heart rate zone. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration ModerateTime { + get { return moderateTime_; } + set { + moderateTime_ = value; + } + } + + /// Field number for the "vigorous_time" field. + public const int VigorousTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Duration vigorousTime_; + /// + /// Optional. Time spent in vigorous heart rate zone. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration VigorousTime { + get { return vigorousTime_; } + set { + vigorousTime_ = value; + } + } + + /// Field number for the "peak_time" field. + public const int PeakTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Duration peakTime_; + /// + /// Optional. Time spent in peak heart rate zone. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration PeakTime { + get { return peakTime_; } + set { + peakTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TimeInHeartRateZones); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TimeInHeartRateZones other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(LightTime, other.LightTime)) return false; + if (!object.Equals(ModerateTime, other.ModerateTime)) return false; + if (!object.Equals(VigorousTime, other.VigorousTime)) return false; + if (!object.Equals(PeakTime, other.PeakTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (lightTime_ != null) hash ^= LightTime.GetHashCode(); + if (moderateTime_ != null) hash ^= ModerateTime.GetHashCode(); + if (vigorousTime_ != null) hash ^= VigorousTime.GetHashCode(); + if (peakTime_ != null) hash ^= PeakTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (lightTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(LightTime); + } + if (moderateTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ModerateTime); + } + if (vigorousTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(VigorousTime); + } + if (peakTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(PeakTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (lightTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(LightTime); + } + if (moderateTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ModerateTime); + } + if (vigorousTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(VigorousTime); + } + if (peakTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(PeakTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (lightTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LightTime); + } + if (moderateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ModerateTime); + } + if (vigorousTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VigorousTime); + } + if (peakTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PeakTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TimeInHeartRateZones other) { + if (other == null) { + return; + } + if (other.lightTime_ != null) { + if (lightTime_ == null) { + LightTime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + LightTime.MergeFrom(other.LightTime); + } + if (other.moderateTime_ != null) { + if (moderateTime_ == null) { + ModerateTime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + ModerateTime.MergeFrom(other.ModerateTime); + } + if (other.vigorousTime_ != null) { + if (vigorousTime_ == null) { + VigorousTime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + VigorousTime.MergeFrom(other.VigorousTime); + } + if (other.peakTime_ != null) { + if (peakTime_ == null) { + PeakTime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + PeakTime.MergeFrom(other.PeakTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (lightTime_ == null) { + LightTime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(LightTime); + break; + } + case 18: { + if (moderateTime_ == null) { + ModerateTime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ModerateTime); + break; + } + case 26: { + if (vigorousTime_ == null) { + VigorousTime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(VigorousTime); + break; + } + case 34: { + if (peakTime_ == null) { + PeakTime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(PeakTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (lightTime_ == null) { + LightTime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(LightTime); + break; + } + case 18: { + if (moderateTime_ == null) { + ModerateTime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ModerateTime); + break; + } + case 26: { + if (vigorousTime_ == null) { + VigorousTime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(VigorousTime); + break; + } + case 34: { + if (peakTime_ == null) { + PeakTime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(PeakTime); + break; + } + } + } + } + #endif + + } + + /// + /// Mobility workouts specific metrics + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MobilityMetrics : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MobilityMetrics()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.MetricsSummary.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MobilityMetrics() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MobilityMetrics(MobilityMetrics other) : this() { + _hasBits0 = other._hasBits0; + avgCadenceStepsPerMinute_ = other.avgCadenceStepsPerMinute_; + avgStrideLengthMillimeters_ = other.avgStrideLengthMillimeters_; + avgVerticalOscillationMillimeters_ = other.avgVerticalOscillationMillimeters_; + avgVerticalRatio_ = other.avgVerticalRatio_; + avgGroundContactTimeDuration_ = other.avgGroundContactTimeDuration_ != null ? other.avgGroundContactTimeDuration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MobilityMetrics Clone() { + return new MobilityMetrics(this); + } + + /// Field number for the "avg_cadence_steps_per_minute" field. + public const int AvgCadenceStepsPerMinuteFieldNumber = 1; + private readonly static double AvgCadenceStepsPerMinuteDefaultValue = 0D; + + private double avgCadenceStepsPerMinute_; + /// + /// Optional. Cadence is a measure of the frequency of your foot strikes. + /// Steps / min in real time during workout. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double AvgCadenceStepsPerMinute { + get { if ((_hasBits0 & 1) != 0) { return avgCadenceStepsPerMinute_; } else { return AvgCadenceStepsPerMinuteDefaultValue; } } + set { + _hasBits0 |= 1; + avgCadenceStepsPerMinute_ = value; + } + } + /// Gets whether the "avg_cadence_steps_per_minute" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAvgCadenceStepsPerMinute { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "avg_cadence_steps_per_minute" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAvgCadenceStepsPerMinute() { + _hasBits0 &= ~1; + } + + /// Field number for the "avg_stride_length_millimeters" field. + public const int AvgStrideLengthMillimetersFieldNumber = 2; + private readonly static long AvgStrideLengthMillimetersDefaultValue = 0L; + + private long avgStrideLengthMillimeters_; + /// + /// Optional. Stride length is a measure of the distance covered by a single + /// stride + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long AvgStrideLengthMillimeters { + get { if ((_hasBits0 & 2) != 0) { return avgStrideLengthMillimeters_; } else { return AvgStrideLengthMillimetersDefaultValue; } } + set { + _hasBits0 |= 2; + avgStrideLengthMillimeters_ = value; + } + } + /// Gets whether the "avg_stride_length_millimeters" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAvgStrideLengthMillimeters { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "avg_stride_length_millimeters" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAvgStrideLengthMillimeters() { + _hasBits0 &= ~2; + } + + /// Field number for the "avg_vertical_oscillation_millimeters" field. + public const int AvgVerticalOscillationMillimetersFieldNumber = 3; + private readonly static long AvgVerticalOscillationMillimetersDefaultValue = 0L; + + private long avgVerticalOscillationMillimeters_; + /// + /// Optional. Distance off the ground your center of mass moves with each + /// stride while running + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long AvgVerticalOscillationMillimeters { + get { if ((_hasBits0 & 4) != 0) { return avgVerticalOscillationMillimeters_; } else { return AvgVerticalOscillationMillimetersDefaultValue; } } + set { + _hasBits0 |= 4; + avgVerticalOscillationMillimeters_ = value; + } + } + /// Gets whether the "avg_vertical_oscillation_millimeters" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAvgVerticalOscillationMillimeters { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "avg_vertical_oscillation_millimeters" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAvgVerticalOscillationMillimeters() { + _hasBits0 &= ~4; + } + + /// Field number for the "avg_vertical_ratio" field. + public const int AvgVerticalRatioFieldNumber = 4; + private readonly static double AvgVerticalRatioDefaultValue = 0D; + + private double avgVerticalRatio_; + /// + /// Optional. Vertical oscillation/stride length between [5.0, 11.0]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double AvgVerticalRatio { + get { if ((_hasBits0 & 8) != 0) { return avgVerticalRatio_; } else { return AvgVerticalRatioDefaultValue; } } + set { + _hasBits0 |= 8; + avgVerticalRatio_ = value; + } + } + /// Gets whether the "avg_vertical_ratio" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAvgVerticalRatio { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "avg_vertical_ratio" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAvgVerticalRatio() { + _hasBits0 &= ~8; + } + + /// Field number for the "avg_ground_contact_time_duration" field. + public const int AvgGroundContactTimeDurationFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Duration avgGroundContactTimeDuration_; + /// + /// Optional. The ground contact time for a particular stride is the amount + /// of time for which the foot was in contact with the ground on that stride + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration AvgGroundContactTimeDuration { + get { return avgGroundContactTimeDuration_; } + set { + avgGroundContactTimeDuration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MobilityMetrics); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MobilityMetrics other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AvgCadenceStepsPerMinute, other.AvgCadenceStepsPerMinute)) return false; + if (AvgStrideLengthMillimeters != other.AvgStrideLengthMillimeters) return false; + if (AvgVerticalOscillationMillimeters != other.AvgVerticalOscillationMillimeters) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AvgVerticalRatio, other.AvgVerticalRatio)) return false; + if (!object.Equals(AvgGroundContactTimeDuration, other.AvgGroundContactTimeDuration)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasAvgCadenceStepsPerMinute) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AvgCadenceStepsPerMinute); + if (HasAvgStrideLengthMillimeters) hash ^= AvgStrideLengthMillimeters.GetHashCode(); + if (HasAvgVerticalOscillationMillimeters) hash ^= AvgVerticalOscillationMillimeters.GetHashCode(); + if (HasAvgVerticalRatio) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AvgVerticalRatio); + if (avgGroundContactTimeDuration_ != null) hash ^= AvgGroundContactTimeDuration.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasAvgCadenceStepsPerMinute) { + output.WriteRawTag(9); + output.WriteDouble(AvgCadenceStepsPerMinute); + } + if (HasAvgStrideLengthMillimeters) { + output.WriteRawTag(16); + output.WriteInt64(AvgStrideLengthMillimeters); + } + if (HasAvgVerticalOscillationMillimeters) { + output.WriteRawTag(24); + output.WriteInt64(AvgVerticalOscillationMillimeters); + } + if (HasAvgVerticalRatio) { + output.WriteRawTag(33); + output.WriteDouble(AvgVerticalRatio); + } + if (avgGroundContactTimeDuration_ != null) { + output.WriteRawTag(42); + output.WriteMessage(AvgGroundContactTimeDuration); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasAvgCadenceStepsPerMinute) { + output.WriteRawTag(9); + output.WriteDouble(AvgCadenceStepsPerMinute); + } + if (HasAvgStrideLengthMillimeters) { + output.WriteRawTag(16); + output.WriteInt64(AvgStrideLengthMillimeters); + } + if (HasAvgVerticalOscillationMillimeters) { + output.WriteRawTag(24); + output.WriteInt64(AvgVerticalOscillationMillimeters); + } + if (HasAvgVerticalRatio) { + output.WriteRawTag(33); + output.WriteDouble(AvgVerticalRatio); + } + if (avgGroundContactTimeDuration_ != null) { + output.WriteRawTag(42); + output.WriteMessage(AvgGroundContactTimeDuration); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasAvgCadenceStepsPerMinute) { + size += 1 + 8; + } + if (HasAvgStrideLengthMillimeters) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(AvgStrideLengthMillimeters); + } + if (HasAvgVerticalOscillationMillimeters) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(AvgVerticalOscillationMillimeters); + } + if (HasAvgVerticalRatio) { + size += 1 + 8; + } + if (avgGroundContactTimeDuration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AvgGroundContactTimeDuration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MobilityMetrics other) { + if (other == null) { + return; + } + if (other.HasAvgCadenceStepsPerMinute) { + AvgCadenceStepsPerMinute = other.AvgCadenceStepsPerMinute; + } + if (other.HasAvgStrideLengthMillimeters) { + AvgStrideLengthMillimeters = other.AvgStrideLengthMillimeters; + } + if (other.HasAvgVerticalOscillationMillimeters) { + AvgVerticalOscillationMillimeters = other.AvgVerticalOscillationMillimeters; + } + if (other.HasAvgVerticalRatio) { + AvgVerticalRatio = other.AvgVerticalRatio; + } + if (other.avgGroundContactTimeDuration_ != null) { + if (avgGroundContactTimeDuration_ == null) { + AvgGroundContactTimeDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + AvgGroundContactTimeDuration.MergeFrom(other.AvgGroundContactTimeDuration); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + AvgCadenceStepsPerMinute = input.ReadDouble(); + break; + } + case 16: { + AvgStrideLengthMillimeters = input.ReadInt64(); + break; + } + case 24: { + AvgVerticalOscillationMillimeters = input.ReadInt64(); + break; + } + case 33: { + AvgVerticalRatio = input.ReadDouble(); + break; + } + case 42: { + if (avgGroundContactTimeDuration_ == null) { + AvgGroundContactTimeDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(AvgGroundContactTimeDuration); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9: { + AvgCadenceStepsPerMinute = input.ReadDouble(); + break; + } + case 16: { + AvgStrideLengthMillimeters = input.ReadInt64(); + break; + } + case 24: { + AvgVerticalOscillationMillimeters = input.ReadInt64(); + break; + } + case 33: { + AvgVerticalRatio = input.ReadDouble(); + break; + } + case 42: { + if (avgGroundContactTimeDuration_ == null) { + AvgGroundContactTimeDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(AvgGroundContactTimeDuration); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Captures the user's instantaneous oxygen saturation percentage (SpO2). + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OxygenSaturation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OxygenSaturation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[33]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OxygenSaturation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OxygenSaturation(OxygenSaturation other) : this() { + sampleTime_ = other.sampleTime_ != null ? other.sampleTime_.Clone() : null; + percentage_ = other.percentage_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OxygenSaturation Clone() { + return new OxygenSaturation(this); + } + + /// Field number for the "sample_time" field. + public const int SampleTimeFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.ObservationSampleTime sampleTime_; + /// + /// Required. The time at which oxygen saturation was measured. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationSampleTime SampleTime { + get { return sampleTime_; } + set { + sampleTime_ = value; + } + } + + /// Field number for the "percentage" field. + public const int PercentageFieldNumber = 2; + private double percentage_; + /// + /// Required. The oxygen saturation percentage. Valid values are from 0 to 100. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Percentage { + get { return percentage_; } + set { + percentage_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OxygenSaturation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OxygenSaturation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SampleTime, other.SampleTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Percentage, other.Percentage)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (sampleTime_ != null) hash ^= SampleTime.GetHashCode(); + if (Percentage != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Percentage); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (sampleTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SampleTime); + } + if (Percentage != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Percentage); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (sampleTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SampleTime); + } + if (Percentage != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Percentage); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (sampleTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SampleTime); + } + if (Percentage != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OxygenSaturation other) { + if (other == null) { + return; + } + if (other.sampleTime_ != null) { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + SampleTime.MergeFrom(other.SampleTime); + } + if (other.Percentage != 0D) { + Percentage = other.Percentage; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 17: { + Percentage = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 17: { + Percentage = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the rollup value for the daily resting heart rate data type. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RestingHeartRatePersonalRangeRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RestingHeartRatePersonalRangeRollupValue()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[34]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RestingHeartRatePersonalRangeRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RestingHeartRatePersonalRangeRollupValue(RestingHeartRatePersonalRangeRollupValue other) : this() { + _hasBits0 = other._hasBits0; + beatsPerMinuteMin_ = other.beatsPerMinuteMin_; + beatsPerMinuteMax_ = other.beatsPerMinuteMax_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RestingHeartRatePersonalRangeRollupValue Clone() { + return new RestingHeartRatePersonalRangeRollupValue(this); + } + + /// Field number for the "beats_per_minute_min" field. + public const int BeatsPerMinuteMinFieldNumber = 1; + private readonly static double BeatsPerMinuteMinDefaultValue = 0D; + + private double beatsPerMinuteMin_; + /// + /// The lower bound of the user's daily resting heart rate personal range. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double BeatsPerMinuteMin { + get { if ((_hasBits0 & 1) != 0) { return beatsPerMinuteMin_; } else { return BeatsPerMinuteMinDefaultValue; } } + set { + _hasBits0 |= 1; + beatsPerMinuteMin_ = value; + } + } + /// Gets whether the "beats_per_minute_min" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBeatsPerMinuteMin { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "beats_per_minute_min" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBeatsPerMinuteMin() { + _hasBits0 &= ~1; + } + + /// Field number for the "beats_per_minute_max" field. + public const int BeatsPerMinuteMaxFieldNumber = 2; + private readonly static double BeatsPerMinuteMaxDefaultValue = 0D; + + private double beatsPerMinuteMax_; + /// + /// The upper bound of the user's daily resting heart rate personal range. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double BeatsPerMinuteMax { + get { if ((_hasBits0 & 2) != 0) { return beatsPerMinuteMax_; } else { return BeatsPerMinuteMaxDefaultValue; } } + set { + _hasBits0 |= 2; + beatsPerMinuteMax_ = value; + } + } + /// Gets whether the "beats_per_minute_max" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBeatsPerMinuteMax { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "beats_per_minute_max" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBeatsPerMinuteMax() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RestingHeartRatePersonalRangeRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RestingHeartRatePersonalRangeRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BeatsPerMinuteMin, other.BeatsPerMinuteMin)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BeatsPerMinuteMax, other.BeatsPerMinuteMax)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBeatsPerMinuteMin) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BeatsPerMinuteMin); + if (HasBeatsPerMinuteMax) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BeatsPerMinuteMax); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBeatsPerMinuteMin) { + output.WriteRawTag(9); + output.WriteDouble(BeatsPerMinuteMin); + } + if (HasBeatsPerMinuteMax) { + output.WriteRawTag(17); + output.WriteDouble(BeatsPerMinuteMax); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBeatsPerMinuteMin) { + output.WriteRawTag(9); + output.WriteDouble(BeatsPerMinuteMin); + } + if (HasBeatsPerMinuteMax) { + output.WriteRawTag(17); + output.WriteDouble(BeatsPerMinuteMax); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBeatsPerMinuteMin) { + size += 1 + 8; + } + if (HasBeatsPerMinuteMax) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RestingHeartRatePersonalRangeRollupValue other) { + if (other == null) { + return; + } + if (other.HasBeatsPerMinuteMin) { + BeatsPerMinuteMin = other.BeatsPerMinuteMin; + } + if (other.HasBeatsPerMinuteMax) { + BeatsPerMinuteMax = other.BeatsPerMinuteMax; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + BeatsPerMinuteMin = input.ReadDouble(); + break; + } + case 17: { + BeatsPerMinuteMax = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9: { + BeatsPerMinuteMin = input.ReadDouble(); + break; + } + case 17: { + BeatsPerMinuteMax = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Records respiratory rate details during sleep. + /// Can have multiple per day if the user sleeps multiple times. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RespiratoryRateSleepSummary : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RespiratoryRateSleepSummary()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[35]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RespiratoryRateSleepSummary() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RespiratoryRateSleepSummary(RespiratoryRateSleepSummary other) : this() { + sampleTime_ = other.sampleTime_ != null ? other.sampleTime_.Clone() : null; + deepSleepStats_ = other.deepSleepStats_ != null ? other.deepSleepStats_.Clone() : null; + lightSleepStats_ = other.lightSleepStats_ != null ? other.lightSleepStats_.Clone() : null; + remSleepStats_ = other.remSleepStats_ != null ? other.remSleepStats_.Clone() : null; + fullSleepStats_ = other.fullSleepStats_ != null ? other.fullSleepStats_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RespiratoryRateSleepSummary Clone() { + return new RespiratoryRateSleepSummary(this); + } + + /// Field number for the "sample_time" field. + public const int SampleTimeFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.ObservationSampleTime sampleTime_; + /// + /// Required. The time at which respiratory rate was measured. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationSampleTime SampleTime { + get { return sampleTime_; } + set { + sampleTime_ = value; + } + } + + /// Field number for the "deep_sleep_stats" field. + public const int DeepSleepStatsFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics deepSleepStats_; + /// + /// Optional. Respiratory rate statistics for deep sleep. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics DeepSleepStats { + get { return deepSleepStats_; } + set { + deepSleepStats_ = value; + } + } + + /// Field number for the "light_sleep_stats" field. + public const int LightSleepStatsFieldNumber = 3; + private global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics lightSleepStats_; + /// + /// Optional. Respiratory rate statistics for light sleep. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics LightSleepStats { + get { return lightSleepStats_; } + set { + lightSleepStats_ = value; + } + } + + /// Field number for the "rem_sleep_stats" field. + public const int RemSleepStatsFieldNumber = 4; + private global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics remSleepStats_; + /// + /// Optional. Respiratory rate statistics for REM sleep. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics RemSleepStats { + get { return remSleepStats_; } + set { + remSleepStats_ = value; + } + } + + /// Field number for the "full_sleep_stats" field. + public const int FullSleepStatsFieldNumber = 5; + private global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics fullSleepStats_; + /// + /// Required. Full respiratory rate statistics. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics FullSleepStats { + get { return fullSleepStats_; } + set { + fullSleepStats_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RespiratoryRateSleepSummary); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RespiratoryRateSleepSummary other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SampleTime, other.SampleTime)) return false; + if (!object.Equals(DeepSleepStats, other.DeepSleepStats)) return false; + if (!object.Equals(LightSleepStats, other.LightSleepStats)) return false; + if (!object.Equals(RemSleepStats, other.RemSleepStats)) return false; + if (!object.Equals(FullSleepStats, other.FullSleepStats)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (sampleTime_ != null) hash ^= SampleTime.GetHashCode(); + if (deepSleepStats_ != null) hash ^= DeepSleepStats.GetHashCode(); + if (lightSleepStats_ != null) hash ^= LightSleepStats.GetHashCode(); + if (remSleepStats_ != null) hash ^= RemSleepStats.GetHashCode(); + if (fullSleepStats_ != null) hash ^= FullSleepStats.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (sampleTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SampleTime); + } + if (deepSleepStats_ != null) { + output.WriteRawTag(18); + output.WriteMessage(DeepSleepStats); + } + if (lightSleepStats_ != null) { + output.WriteRawTag(26); + output.WriteMessage(LightSleepStats); + } + if (remSleepStats_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RemSleepStats); + } + if (fullSleepStats_ != null) { + output.WriteRawTag(42); + output.WriteMessage(FullSleepStats); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (sampleTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SampleTime); + } + if (deepSleepStats_ != null) { + output.WriteRawTag(18); + output.WriteMessage(DeepSleepStats); + } + if (lightSleepStats_ != null) { + output.WriteRawTag(26); + output.WriteMessage(LightSleepStats); + } + if (remSleepStats_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RemSleepStats); + } + if (fullSleepStats_ != null) { + output.WriteRawTag(42); + output.WriteMessage(FullSleepStats); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (sampleTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SampleTime); + } + if (deepSleepStats_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeepSleepStats); + } + if (lightSleepStats_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LightSleepStats); + } + if (remSleepStats_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RemSleepStats); + } + if (fullSleepStats_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FullSleepStats); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RespiratoryRateSleepSummary other) { + if (other == null) { + return; + } + if (other.sampleTime_ != null) { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + SampleTime.MergeFrom(other.SampleTime); + } + if (other.deepSleepStats_ != null) { + if (deepSleepStats_ == null) { + DeepSleepStats = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics(); + } + DeepSleepStats.MergeFrom(other.DeepSleepStats); + } + if (other.lightSleepStats_ != null) { + if (lightSleepStats_ == null) { + LightSleepStats = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics(); + } + LightSleepStats.MergeFrom(other.LightSleepStats); + } + if (other.remSleepStats_ != null) { + if (remSleepStats_ == null) { + RemSleepStats = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics(); + } + RemSleepStats.MergeFrom(other.RemSleepStats); + } + if (other.fullSleepStats_ != null) { + if (fullSleepStats_ == null) { + FullSleepStats = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics(); + } + FullSleepStats.MergeFrom(other.FullSleepStats); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 18: { + if (deepSleepStats_ == null) { + DeepSleepStats = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics(); + } + input.ReadMessage(DeepSleepStats); + break; + } + case 26: { + if (lightSleepStats_ == null) { + LightSleepStats = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics(); + } + input.ReadMessage(LightSleepStats); + break; + } + case 34: { + if (remSleepStats_ == null) { + RemSleepStats = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics(); + } + input.ReadMessage(RemSleepStats); + break; + } + case 42: { + if (fullSleepStats_ == null) { + FullSleepStats = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics(); + } + input.ReadMessage(FullSleepStats); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 18: { + if (deepSleepStats_ == null) { + DeepSleepStats = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics(); + } + input.ReadMessage(DeepSleepStats); + break; + } + case 26: { + if (lightSleepStats_ == null) { + LightSleepStats = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics(); + } + input.ReadMessage(LightSleepStats); + break; + } + case 34: { + if (remSleepStats_ == null) { + RemSleepStats = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics(); + } + input.ReadMessage(RemSleepStats); + break; + } + case 42: { + if (fullSleepStats_ == null) { + FullSleepStats = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Types.RespiratoryRateSleepSummaryStatistics(); + } + input.ReadMessage(FullSleepStats); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the RespiratoryRateSleepSummary message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Respiratory rate statistics for a given sleep stage. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RespiratoryRateSleepSummaryStatistics : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RespiratoryRateSleepSummaryStatistics()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RespiratoryRateSleepSummaryStatistics() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RespiratoryRateSleepSummaryStatistics(RespiratoryRateSleepSummaryStatistics other) : this() { + breathsPerMinute_ = other.breathsPerMinute_; + standardDeviation_ = other.standardDeviation_; + signalToNoise_ = other.signalToNoise_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RespiratoryRateSleepSummaryStatistics Clone() { + return new RespiratoryRateSleepSummaryStatistics(this); + } + + /// Field number for the "breaths_per_minute" field. + public const int BreathsPerMinuteFieldNumber = 1; + private double breathsPerMinute_; + /// + /// Required. Average breaths per minute. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double BreathsPerMinute { + get { return breathsPerMinute_; } + set { + breathsPerMinute_ = value; + } + } + + /// Field number for the "standard_deviation" field. + public const int StandardDeviationFieldNumber = 2; + private double standardDeviation_; + /// + /// Optional. Standard deviation of the respiratory rate during sleep. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double StandardDeviation { + get { return standardDeviation_; } + set { + standardDeviation_ = value; + } + } + + /// Field number for the "signal_to_noise" field. + public const int SignalToNoiseFieldNumber = 3; + private double signalToNoise_; + /// + /// Optional. How trustworthy the data is for the computation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double SignalToNoise { + get { return signalToNoise_; } + set { + signalToNoise_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RespiratoryRateSleepSummaryStatistics); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RespiratoryRateSleepSummaryStatistics other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BreathsPerMinute, other.BreathsPerMinute)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(StandardDeviation, other.StandardDeviation)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SignalToNoise, other.SignalToNoise)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BreathsPerMinute != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BreathsPerMinute); + if (StandardDeviation != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(StandardDeviation); + if (SignalToNoise != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SignalToNoise); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BreathsPerMinute != 0D) { + output.WriteRawTag(9); + output.WriteDouble(BreathsPerMinute); + } + if (StandardDeviation != 0D) { + output.WriteRawTag(17); + output.WriteDouble(StandardDeviation); + } + if (SignalToNoise != 0D) { + output.WriteRawTag(25); + output.WriteDouble(SignalToNoise); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BreathsPerMinute != 0D) { + output.WriteRawTag(9); + output.WriteDouble(BreathsPerMinute); + } + if (StandardDeviation != 0D) { + output.WriteRawTag(17); + output.WriteDouble(StandardDeviation); + } + if (SignalToNoise != 0D) { + output.WriteRawTag(25); + output.WriteDouble(SignalToNoise); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BreathsPerMinute != 0D) { + size += 1 + 8; + } + if (StandardDeviation != 0D) { + size += 1 + 8; + } + if (SignalToNoise != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RespiratoryRateSleepSummaryStatistics other) { + if (other == null) { + return; + } + if (other.BreathsPerMinute != 0D) { + BreathsPerMinute = other.BreathsPerMinute; + } + if (other.StandardDeviation != 0D) { + StandardDeviation = other.StandardDeviation; + } + if (other.SignalToNoise != 0D) { + SignalToNoise = other.SignalToNoise; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + BreathsPerMinute = input.ReadDouble(); + break; + } + case 17: { + StandardDeviation = input.ReadDouble(); + break; + } + case 25: { + SignalToNoise = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9: { + BreathsPerMinute = input.ReadDouble(); + break; + } + case 17: { + StandardDeviation = input.ReadDouble(); + break; + } + case 25: { + SignalToNoise = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// A sleep session possibly including stages. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Sleep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Sleep()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[36]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Sleep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Sleep(Sleep other) : this() { + interval_ = other.interval_ != null ? other.interval_.Clone() : null; + type_ = other.type_; + stages_ = other.stages_.Clone(); + outOfBedSegments_ = other.outOfBedSegments_.Clone(); + metadata_ = other.metadata_ != null ? other.metadata_.Clone() : null; + summary_ = other.summary_ != null ? other.summary_.Clone() : null; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Sleep Clone() { + return new Sleep(this); + } + + /// Field number for the "interval" field. + public const int IntervalFieldNumber = 3; + private global::Google.DevicesAndServices.Health.V4.SessionTimeInterval interval_; + /// + /// Required. Observed sleep interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.SessionTimeInterval Interval { + get { return interval_; } + set { + interval_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 4; + private global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepType type_ = global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepType.Unspecified; + /// + /// Optional. SleepType: classic or stages. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "stages" field. + public const int StagesFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_stages_codec + = pb::FieldCodec.ForMessage(42, global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStage.Parser); + private readonly pbc::RepeatedField stages_ = new pbc::RepeatedField(); + /// + /// Optional. List of non-overlapping contiguous sleep stage segments that + /// cover the sleep period. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Stages { + get { return stages_; } + } + + /// Field number for the "out_of_bed_segments" field. + public const int OutOfBedSegmentsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_outOfBedSegments_codec + = pb::FieldCodec.ForMessage(50, global::Google.DevicesAndServices.Health.V4.Sleep.Types.OutOfBedSegment.Parser); + private readonly pbc::RepeatedField outOfBedSegments_ = new pbc::RepeatedField(); + /// + /// Optional. + /// “Out of bed” segments that can overlap with sleep stages. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OutOfBedSegments { + get { return outOfBedSegments_; } + } + + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 8; + private global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata metadata_; + /// + /// Optional. Sleep metadata: processing, main, manually edited, stages status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata Metadata { + get { return metadata_; } + set { + metadata_ = value; + } + } + + /// Field number for the "summary" field. + public const int SummaryFieldNumber = 9; + private global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepSummary summary_; + /// + /// Output only. Sleep summary: metrics and stages summary. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepSummary Summary { + get { return summary_; } + set { + summary_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Creation time of this sleep observation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 11; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Last update time of this sleep observation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Sleep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Sleep other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Interval, other.Interval)) return false; + if (Type != other.Type) return false; + if(!stages_.Equals(other.stages_)) return false; + if(!outOfBedSegments_.Equals(other.outOfBedSegments_)) return false; + if (!object.Equals(Metadata, other.Metadata)) return false; + if (!object.Equals(Summary, other.Summary)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (interval_ != null) hash ^= Interval.GetHashCode(); + if (Type != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepType.Unspecified) hash ^= Type.GetHashCode(); + hash ^= stages_.GetHashCode(); + hash ^= outOfBedSegments_.GetHashCode(); + if (metadata_ != null) hash ^= Metadata.GetHashCode(); + if (summary_ != null) hash ^= Summary.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (interval_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Interval); + } + if (Type != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + stages_.WriteTo(output, _repeated_stages_codec); + outOfBedSegments_.WriteTo(output, _repeated_outOfBedSegments_codec); + if (metadata_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Metadata); + } + if (summary_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Summary); + } + if (createTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(90); + output.WriteMessage(UpdateTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (interval_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Interval); + } + if (Type != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + stages_.WriteTo(ref output, _repeated_stages_codec); + outOfBedSegments_.WriteTo(ref output, _repeated_outOfBedSegments_codec); + if (metadata_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Metadata); + } + if (summary_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Summary); + } + if (createTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(90); + output.WriteMessage(UpdateTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (interval_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interval); + } + if (Type != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + size += stages_.CalculateSize(_repeated_stages_codec); + size += outOfBedSegments_.CalculateSize(_repeated_outOfBedSegments_codec); + if (metadata_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Metadata); + } + if (summary_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Summary); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Sleep other) { + if (other == null) { + return; + } + if (other.interval_ != null) { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.SessionTimeInterval(); + } + Interval.MergeFrom(other.Interval); + } + if (other.Type != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepType.Unspecified) { + Type = other.Type; + } + stages_.Add(other.stages_); + outOfBedSegments_.Add(other.outOfBedSegments_); + if (other.metadata_ != null) { + if (metadata_ == null) { + Metadata = new global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata(); + } + Metadata.MergeFrom(other.Metadata); + } + if (other.summary_ != null) { + if (summary_ == null) { + Summary = new global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepSummary(); + } + Summary.MergeFrom(other.Summary); + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.SessionTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 32: { + Type = (global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepType) input.ReadEnum(); + break; + } + case 42: { + stages_.AddEntriesFrom(input, _repeated_stages_codec); + break; + } + case 50: { + outOfBedSegments_.AddEntriesFrom(input, _repeated_outOfBedSegments_codec); + break; + } + case 66: { + if (metadata_ == null) { + Metadata = new global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata(); + } + input.ReadMessage(Metadata); + break; + } + case 74: { + if (summary_ == null) { + Summary = new global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepSummary(); + } + input.ReadMessage(Summary); + break; + } + case 82: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 90: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.SessionTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 32: { + Type = (global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepType) input.ReadEnum(); + break; + } + case 42: { + stages_.AddEntriesFrom(ref input, _repeated_stages_codec); + break; + } + case 50: { + outOfBedSegments_.AddEntriesFrom(ref input, _repeated_outOfBedSegments_codec); + break; + } + case 66: { + if (metadata_ == null) { + Metadata = new global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata(); + } + input.ReadMessage(Metadata); + break; + } + case 74: { + if (summary_ == null) { + Summary = new global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepSummary(); + } + input.ReadMessage(Summary); + break; + } + case 82: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 90: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Sleep message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Sleep type: classic or stages. + /// + public enum SleepType { + /// + /// Sleep type is unspecified. + /// + [pbr::OriginalName("SLEEP_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Classic sleep is a sleep with 3 stages types: AWAKE, RESTLESS and ASLEEP. + /// + [pbr::OriginalName("CLASSIC")] Classic = 1, + /// + /// On top of "classic" sleep stages an additional processing pass can + /// calculate stages more precisely, overwriting the prior stages with AWAKE, + /// LIGHT, REM and DEEP. + /// + [pbr::OriginalName("STAGES")] Stages = 2, + } + + /// + /// Sleep stage type: AWAKE, DEEP, REM, LIGHT etc. + /// + public enum SleepStageType { + /// + /// The default unset value. + /// + [pbr::OriginalName("SLEEP_STAGE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Sleep stage AWAKE. + /// + [pbr::OriginalName("AWAKE")] Awake = 1, + /// + /// Sleep stage LIGHT. + /// + [pbr::OriginalName("LIGHT")] Light = 2, + /// + /// Sleep stage DEEP. + /// + [pbr::OriginalName("DEEP")] Deep = 3, + /// + /// Sleep stage REM. + /// + [pbr::OriginalName("REM")] Rem = 4, + /// + /// Sleep stage ASLEEP. + /// + [pbr::OriginalName("ASLEEP")] Asleep = 5, + /// + /// Sleep stage RESTLESS. + /// + [pbr::OriginalName("RESTLESS")] Restless = 6, + } + + /// + /// Sleep stage segment. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SleepStage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SleepStage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.Sleep.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SleepStage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SleepStage(SleepStage other) : this() { + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + startUtcOffset_ = other.startUtcOffset_ != null ? other.startUtcOffset_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + endUtcOffset_ = other.endUtcOffset_ != null ? other.endUtcOffset_.Clone() : null; + type_ = other.type_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SleepStage Clone() { + return new SleepStage(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// Required. Sleep stage start time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "start_utc_offset" field. + public const int StartUtcOffsetFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Duration startUtcOffset_; + /// + /// Required. The offset of the user's local time at the start of the sleep + /// stage relative to the Coordinated Universal Time (UTC). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration StartUtcOffset { + get { return startUtcOffset_; } + set { + startUtcOffset_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Required. Sleep stage end time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "end_utc_offset" field. + public const int EndUtcOffsetFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Duration endUtcOffset_; + /// + /// Required. The offset of the user's local time at the end of the sleep + /// stage relative to the Coordinated Universal Time (UTC). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration EndUtcOffset { + get { return endUtcOffset_; } + set { + endUtcOffset_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 7; + private global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType type_ = global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType.Unspecified; + /// + /// Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Creation time of this sleep stages segment. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Last update time of this sleep stages segment. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SleepStage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SleepStage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(StartUtcOffset, other.StartUtcOffset)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (!object.Equals(EndUtcOffset, other.EndUtcOffset)) return false; + if (Type != other.Type) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (startUtcOffset_ != null) hash ^= StartUtcOffset.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (endUtcOffset_ != null) hash ^= EndUtcOffset.GetHashCode(); + if (Type != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType.Unspecified) hash ^= Type.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (startTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTime); + } + if (startUtcOffset_ != null) { + output.WriteRawTag(34); + output.WriteMessage(StartUtcOffset); + } + if (endTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(EndTime); + } + if (endUtcOffset_ != null) { + output.WriteRawTag(50); + output.WriteMessage(EndUtcOffset); + } + if (Type != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) Type); + } + if (createTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(UpdateTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (startTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTime); + } + if (startUtcOffset_ != null) { + output.WriteRawTag(34); + output.WriteMessage(StartUtcOffset); + } + if (endTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(EndTime); + } + if (endUtcOffset_ != null) { + output.WriteRawTag(50); + output.WriteMessage(EndUtcOffset); + } + if (Type != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) Type); + } + if (createTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(UpdateTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (startUtcOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartUtcOffset); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (endUtcOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndUtcOffset); + } + if (Type != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SleepStage other) { + if (other == null) { + return; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.startUtcOffset_ != null) { + if (startUtcOffset_ == null) { + StartUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + StartUtcOffset.MergeFrom(other.StartUtcOffset); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.endUtcOffset_ != null) { + if (endUtcOffset_ == null) { + EndUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + EndUtcOffset.MergeFrom(other.EndUtcOffset); + } + if (other.Type != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType.Unspecified) { + Type = other.Type; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 34: { + if (startUtcOffset_ == null) { + StartUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartUtcOffset); + break; + } + case 42: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 50: { + if (endUtcOffset_ == null) { + EndUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndUtcOffset); + break; + } + case 56: { + Type = (global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType) input.ReadEnum(); + break; + } + case 66: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 74: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 34: { + if (startUtcOffset_ == null) { + StartUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartUtcOffset); + break; + } + case 42: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 50: { + if (endUtcOffset_ == null) { + EndUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndUtcOffset); + break; + } + case 56: { + Type = (global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType) input.ReadEnum(); + break; + } + case 66: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 74: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + } + } + } + #endif + + } + + /// + /// A time interval to represent an out-of-bed segment. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OutOfBedSegment : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OutOfBedSegment()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.Sleep.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OutOfBedSegment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OutOfBedSegment(OutOfBedSegment other) : this() { + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + startUtcOffset_ = other.startUtcOffset_ != null ? other.startUtcOffset_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + endUtcOffset_ = other.endUtcOffset_ != null ? other.endUtcOffset_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OutOfBedSegment Clone() { + return new OutOfBedSegment(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// Required. Segment tart time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "start_utc_offset" field. + public const int StartUtcOffsetFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Duration startUtcOffset_; + /// + /// Required. The offset of the user's local time at the start of the segment + /// relative to the Coordinated Universal Time (UTC). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration StartUtcOffset { + get { return startUtcOffset_; } + set { + startUtcOffset_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Required. Segment end time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "end_utc_offset" field. + public const int EndUtcOffsetFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Duration endUtcOffset_; + /// + /// Required. The offset of the user's local time at the end of the segment + /// relative to the Coordinated Universal Time (UTC). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration EndUtcOffset { + get { return endUtcOffset_; } + set { + endUtcOffset_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OutOfBedSegment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OutOfBedSegment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(StartUtcOffset, other.StartUtcOffset)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (!object.Equals(EndUtcOffset, other.EndUtcOffset)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (startUtcOffset_ != null) hash ^= StartUtcOffset.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (endUtcOffset_ != null) hash ^= EndUtcOffset.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (startUtcOffset_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartUtcOffset); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (endUtcOffset_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndUtcOffset); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (startUtcOffset_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartUtcOffset); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (endUtcOffset_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndUtcOffset); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (startUtcOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartUtcOffset); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (endUtcOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndUtcOffset); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OutOfBedSegment other) { + if (other == null) { + return; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.startUtcOffset_ != null) { + if (startUtcOffset_ == null) { + StartUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + StartUtcOffset.MergeFrom(other.StartUtcOffset); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.endUtcOffset_ != null) { + if (endUtcOffset_ == null) { + EndUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + EndUtcOffset.MergeFrom(other.EndUtcOffset); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (startUtcOffset_ == null) { + StartUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartUtcOffset); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 34: { + if (endUtcOffset_ == null) { + EndUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndUtcOffset); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (startUtcOffset_ == null) { + StartUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartUtcOffset); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 34: { + if (endUtcOffset_ == null) { + EndUtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(EndUtcOffset); + break; + } + } + } + } + #endif + + } + + /// + /// Additional information about how the sleep was processed. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SleepMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SleepMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.Sleep.Descriptor.NestedTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SleepMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SleepMetadata(SleepMetadata other) : this() { + stagesStatus_ = other.stagesStatus_; + processed_ = other.processed_; + nap_ = other.nap_; + manuallyEdited_ = other.manuallyEdited_; + externalId_ = other.externalId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SleepMetadata Clone() { + return new SleepMetadata(this); + } + + /// Field number for the "stages_status" field. + public const int StagesStatusFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata.Types.StagesState stagesStatus_ = global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata.Types.StagesState.Unspecified; + /// + /// Output only. Sleep stages algorithm processing status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata.Types.StagesState StagesStatus { + get { return stagesStatus_; } + set { + stagesStatus_ = value; + } + } + + /// Field number for the "processed" field. + public const int ProcessedFieldNumber = 2; + private bool processed_; + /// + /// Output only. Sleep and sleep stages algorithms finished processing. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Processed { + get { return processed_; } + set { + processed_ = value; + } + } + + /// Field number for the "nap" field. + public const int NapFieldNumber = 5; + private bool nap_; + /// + /// Output only. Naps are sleeps without stages and relatively short + /// durations. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Nap { + get { return nap_; } + set { + nap_ = value; + } + } + + /// Field number for the "manually_edited" field. + public const int ManuallyEditedFieldNumber = 6; + private bool manuallyEdited_; + /// + /// Output only. Some sleeps autodetected by algorithms can be manually + /// edited by users. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ManuallyEdited { + get { return manuallyEdited_; } + set { + manuallyEdited_ = value; + } + } + + /// Field number for the "external_id" field. + public const int ExternalIdFieldNumber = 7; + private string externalId_ = ""; + /// + /// Optional. Sleep identifier relevant in the context of the data source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ExternalId { + get { return externalId_; } + set { + externalId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SleepMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SleepMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StagesStatus != other.StagesStatus) return false; + if (Processed != other.Processed) return false; + if (Nap != other.Nap) return false; + if (ManuallyEdited != other.ManuallyEdited) return false; + if (ExternalId != other.ExternalId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (StagesStatus != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata.Types.StagesState.Unspecified) hash ^= StagesStatus.GetHashCode(); + if (Processed != false) hash ^= Processed.GetHashCode(); + if (Nap != false) hash ^= Nap.GetHashCode(); + if (ManuallyEdited != false) hash ^= ManuallyEdited.GetHashCode(); + if (ExternalId.Length != 0) hash ^= ExternalId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (StagesStatus != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata.Types.StagesState.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) StagesStatus); + } + if (Processed != false) { + output.WriteRawTag(16); + output.WriteBool(Processed); + } + if (Nap != false) { + output.WriteRawTag(40); + output.WriteBool(Nap); + } + if (ManuallyEdited != false) { + output.WriteRawTag(48); + output.WriteBool(ManuallyEdited); + } + if (ExternalId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ExternalId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (StagesStatus != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata.Types.StagesState.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) StagesStatus); + } + if (Processed != false) { + output.WriteRawTag(16); + output.WriteBool(Processed); + } + if (Nap != false) { + output.WriteRawTag(40); + output.WriteBool(Nap); + } + if (ManuallyEdited != false) { + output.WriteRawTag(48); + output.WriteBool(ManuallyEdited); + } + if (ExternalId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ExternalId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (StagesStatus != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata.Types.StagesState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StagesStatus); + } + if (Processed != false) { + size += 1 + 1; + } + if (Nap != false) { + size += 1 + 1; + } + if (ManuallyEdited != false) { + size += 1 + 1; + } + if (ExternalId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ExternalId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SleepMetadata other) { + if (other == null) { + return; + } + if (other.StagesStatus != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata.Types.StagesState.Unspecified) { + StagesStatus = other.StagesStatus; + } + if (other.Processed != false) { + Processed = other.Processed; + } + if (other.Nap != false) { + Nap = other.Nap; + } + if (other.ManuallyEdited != false) { + ManuallyEdited = other.ManuallyEdited; + } + if (other.ExternalId.Length != 0) { + ExternalId = other.ExternalId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StagesStatus = (global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata.Types.StagesState) input.ReadEnum(); + break; + } + case 16: { + Processed = input.ReadBool(); + break; + } + case 40: { + Nap = input.ReadBool(); + break; + } + case 48: { + ManuallyEdited = input.ReadBool(); + break; + } + case 58: { + ExternalId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + StagesStatus = (global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepMetadata.Types.StagesState) input.ReadEnum(); + break; + } + case 16: { + Processed = input.ReadBool(); + break; + } + case 40: { + Nap = input.ReadBool(); + break; + } + case 48: { + ManuallyEdited = input.ReadBool(); + break; + } + case 58: { + ExternalId = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the SleepMetadata message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Sleep stages algorithm processing status. + /// + public enum StagesState { + /// + /// Output only. Sleep stages status is unspecified. + /// + [pbr::OriginalName("STAGES_STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// Output only. Sleep stages cannot be computed due to low RR coverage. + /// + [pbr::OriginalName("REJECTED_COVERAGE")] RejectedCoverage = 1, + /// + /// Output only. Sleep stages cannot be computed due to the large middle + /// gap (2h). + /// + [pbr::OriginalName("REJECTED_MAX_GAP")] RejectedMaxGap = 2, + /// + /// Output only. Sleep stages cannot be computed due to the large start + /// gap (1h). + /// + [pbr::OriginalName("REJECTED_START_GAP")] RejectedStartGap = 3, + /// + /// Output only. Sleep stages cannot be computed due to the large end gap + /// (1h). + /// + [pbr::OriginalName("REJECTED_END_GAP")] RejectedEndGap = 4, + /// + /// Output only. Sleep stages cannot be computed because the sleep log is a + /// nap (has < 3h duration). + /// + [pbr::OriginalName("REJECTED_NAP")] RejectedNap = 5, + /// + /// Output only. Sleep stages cannot be computed because input data is not + /// available (PPGV2, wake magnitude, etc). + /// + [pbr::OriginalName("REJECTED_SERVER")] RejectedServer = 6, + /// + /// Output only. Sleep stages cannot be computed due to server timeout. + /// + [pbr::OriginalName("TIMEOUT")] Timeout = 7, + /// + /// Output only. Sleep stages successfully computed. + /// + [pbr::OriginalName("SUCCEEDED")] Succeeded = 8, + /// + /// Output only. Sleep stages cannot be computed due to server internal + /// error. + /// + [pbr::OriginalName("PROCESSING_INTERNAL_ERROR")] ProcessingInternalError = 9, + } + + } + #endregion + + } + + /// + /// + /// Sleep summary: metrics and stages summary. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SleepSummary : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SleepSummary()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.Sleep.Descriptor.NestedTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SleepSummary() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SleepSummary(SleepSummary other) : this() { + _hasBits0 = other._hasBits0; + minutesInSleepPeriod_ = other.minutesInSleepPeriod_; + minutesAfterWakeUp_ = other.minutesAfterWakeUp_; + minutesToFallAsleep_ = other.minutesToFallAsleep_; + minutesAsleep_ = other.minutesAsleep_; + minutesAwake_ = other.minutesAwake_; + stagesSummary_ = other.stagesSummary_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SleepSummary Clone() { + return new SleepSummary(this); + } + + /// Field number for the "minutes_in_sleep_period" field. + public const int MinutesInSleepPeriodFieldNumber = 1; + private readonly static long MinutesInSleepPeriodDefaultValue = 0L; + + private long minutesInSleepPeriod_; + /// + /// Output only. Delta between wake time and bedtime. It is the sum of all + /// stages. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MinutesInSleepPeriod { + get { if ((_hasBits0 & 1) != 0) { return minutesInSleepPeriod_; } else { return MinutesInSleepPeriodDefaultValue; } } + set { + _hasBits0 |= 1; + minutesInSleepPeriod_ = value; + } + } + /// Gets whether the "minutes_in_sleep_period" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinutesInSleepPeriod { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "minutes_in_sleep_period" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinutesInSleepPeriod() { + _hasBits0 &= ~1; + } + + /// Field number for the "minutes_after_wake_up" field. + public const int MinutesAfterWakeUpFieldNumber = 2; + private readonly static long MinutesAfterWakeUpDefaultValue = 0L; + + private long minutesAfterWakeUp_; + /// + /// Output only. Minutes after wake up calculated by restlessness algorithm. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MinutesAfterWakeUp { + get { if ((_hasBits0 & 2) != 0) { return minutesAfterWakeUp_; } else { return MinutesAfterWakeUpDefaultValue; } } + set { + _hasBits0 |= 2; + minutesAfterWakeUp_ = value; + } + } + /// Gets whether the "minutes_after_wake_up" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinutesAfterWakeUp { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "minutes_after_wake_up" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinutesAfterWakeUp() { + _hasBits0 &= ~2; + } + + /// Field number for the "minutes_to_fall_asleep" field. + public const int MinutesToFallAsleepFieldNumber = 3; + private readonly static long MinutesToFallAsleepDefaultValue = 0L; + + private long minutesToFallAsleep_; + /// + /// Output only. Minutes to fall asleep calculated by restlessness algorithm. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MinutesToFallAsleep { + get { if ((_hasBits0 & 4) != 0) { return minutesToFallAsleep_; } else { return MinutesToFallAsleepDefaultValue; } } + set { + _hasBits0 |= 4; + minutesToFallAsleep_ = value; + } + } + /// Gets whether the "minutes_to_fall_asleep" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinutesToFallAsleep { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "minutes_to_fall_asleep" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinutesToFallAsleep() { + _hasBits0 &= ~4; + } + + /// Field number for the "minutes_asleep" field. + public const int MinutesAsleepFieldNumber = 4; + private readonly static long MinutesAsleepDefaultValue = 0L; + + private long minutesAsleep_; + /// + /// Output only. Total number of minutes asleep. + /// For classic sleep it is the sum of ASLEEP stages (excluding AWAKE and + /// RESTLESS). For "stages" sleep it is the sum of LIGHT, REM and DEEP stages + /// (excluding AWAKE). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MinutesAsleep { + get { if ((_hasBits0 & 8) != 0) { return minutesAsleep_; } else { return MinutesAsleepDefaultValue; } } + set { + _hasBits0 |= 8; + minutesAsleep_ = value; + } + } + /// Gets whether the "minutes_asleep" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinutesAsleep { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "minutes_asleep" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinutesAsleep() { + _hasBits0 &= ~8; + } + + /// Field number for the "minutes_awake" field. + public const int MinutesAwakeFieldNumber = 5; + private readonly static long MinutesAwakeDefaultValue = 0L; + + private long minutesAwake_; + /// + /// Output only. Total number of minutes awake. It is a sum of all AWAKE + /// stages. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MinutesAwake { + get { if ((_hasBits0 & 16) != 0) { return minutesAwake_; } else { return MinutesAwakeDefaultValue; } } + set { + _hasBits0 |= 16; + minutesAwake_ = value; + } + } + /// Gets whether the "minutes_awake" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinutesAwake { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "minutes_awake" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinutesAwake() { + _hasBits0 &= ~16; + } + + /// Field number for the "stages_summary" field. + public const int StagesSummaryFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_stagesSummary_codec + = pb::FieldCodec.ForMessage(50, global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepSummary.Types.StageSummary.Parser); + private readonly pbc::RepeatedField stagesSummary_ = new pbc::RepeatedField(); + /// + /// Output only. List of summaries (total duration and segment count) per + /// each sleep stage type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField StagesSummary { + get { return stagesSummary_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SleepSummary); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SleepSummary other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MinutesInSleepPeriod != other.MinutesInSleepPeriod) return false; + if (MinutesAfterWakeUp != other.MinutesAfterWakeUp) return false; + if (MinutesToFallAsleep != other.MinutesToFallAsleep) return false; + if (MinutesAsleep != other.MinutesAsleep) return false; + if (MinutesAwake != other.MinutesAwake) return false; + if(!stagesSummary_.Equals(other.stagesSummary_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasMinutesInSleepPeriod) hash ^= MinutesInSleepPeriod.GetHashCode(); + if (HasMinutesAfterWakeUp) hash ^= MinutesAfterWakeUp.GetHashCode(); + if (HasMinutesToFallAsleep) hash ^= MinutesToFallAsleep.GetHashCode(); + if (HasMinutesAsleep) hash ^= MinutesAsleep.GetHashCode(); + if (HasMinutesAwake) hash ^= MinutesAwake.GetHashCode(); + hash ^= stagesSummary_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasMinutesInSleepPeriod) { + output.WriteRawTag(8); + output.WriteInt64(MinutesInSleepPeriod); + } + if (HasMinutesAfterWakeUp) { + output.WriteRawTag(16); + output.WriteInt64(MinutesAfterWakeUp); + } + if (HasMinutesToFallAsleep) { + output.WriteRawTag(24); + output.WriteInt64(MinutesToFallAsleep); + } + if (HasMinutesAsleep) { + output.WriteRawTag(32); + output.WriteInt64(MinutesAsleep); + } + if (HasMinutesAwake) { + output.WriteRawTag(40); + output.WriteInt64(MinutesAwake); + } + stagesSummary_.WriteTo(output, _repeated_stagesSummary_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasMinutesInSleepPeriod) { + output.WriteRawTag(8); + output.WriteInt64(MinutesInSleepPeriod); + } + if (HasMinutesAfterWakeUp) { + output.WriteRawTag(16); + output.WriteInt64(MinutesAfterWakeUp); + } + if (HasMinutesToFallAsleep) { + output.WriteRawTag(24); + output.WriteInt64(MinutesToFallAsleep); + } + if (HasMinutesAsleep) { + output.WriteRawTag(32); + output.WriteInt64(MinutesAsleep); + } + if (HasMinutesAwake) { + output.WriteRawTag(40); + output.WriteInt64(MinutesAwake); + } + stagesSummary_.WriteTo(ref output, _repeated_stagesSummary_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasMinutesInSleepPeriod) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MinutesInSleepPeriod); + } + if (HasMinutesAfterWakeUp) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MinutesAfterWakeUp); + } + if (HasMinutesToFallAsleep) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MinutesToFallAsleep); + } + if (HasMinutesAsleep) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MinutesAsleep); + } + if (HasMinutesAwake) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MinutesAwake); + } + size += stagesSummary_.CalculateSize(_repeated_stagesSummary_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SleepSummary other) { + if (other == null) { + return; + } + if (other.HasMinutesInSleepPeriod) { + MinutesInSleepPeriod = other.MinutesInSleepPeriod; + } + if (other.HasMinutesAfterWakeUp) { + MinutesAfterWakeUp = other.MinutesAfterWakeUp; + } + if (other.HasMinutesToFallAsleep) { + MinutesToFallAsleep = other.MinutesToFallAsleep; + } + if (other.HasMinutesAsleep) { + MinutesAsleep = other.MinutesAsleep; + } + if (other.HasMinutesAwake) { + MinutesAwake = other.MinutesAwake; + } + stagesSummary_.Add(other.stagesSummary_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MinutesInSleepPeriod = input.ReadInt64(); + break; + } + case 16: { + MinutesAfterWakeUp = input.ReadInt64(); + break; + } + case 24: { + MinutesToFallAsleep = input.ReadInt64(); + break; + } + case 32: { + MinutesAsleep = input.ReadInt64(); + break; + } + case 40: { + MinutesAwake = input.ReadInt64(); + break; + } + case 50: { + stagesSummary_.AddEntriesFrom(input, _repeated_stagesSummary_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MinutesInSleepPeriod = input.ReadInt64(); + break; + } + case 16: { + MinutesAfterWakeUp = input.ReadInt64(); + break; + } + case 24: { + MinutesToFallAsleep = input.ReadInt64(); + break; + } + case 32: { + MinutesAsleep = input.ReadInt64(); + break; + } + case 40: { + MinutesAwake = input.ReadInt64(); + break; + } + case 50: { + stagesSummary_.AddEntriesFrom(ref input, _repeated_stagesSummary_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the SleepSummary message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Total duration and segment count for a stage. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StageSummary : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StageSummary()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepSummary.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StageSummary() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StageSummary(StageSummary other) : this() { + type_ = other.type_; + minutes_ = other.minutes_; + count_ = other.count_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StageSummary Clone() { + return new StageSummary(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType type_ = global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType.Unspecified; + /// + /// Output only. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "minutes" field. + public const int MinutesFieldNumber = 2; + private long minutes_; + /// + /// Output only. Total duration in minutes of a sleep stage. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Minutes { + get { return minutes_; } + set { + minutes_ = value; + } + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 3; + private long count_; + /// + /// Output only. Number of sleep stages segments. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Count { + get { return count_; } + set { + count_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StageSummary); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StageSummary other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (Minutes != other.Minutes) return false; + if (Count != other.Count) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Type != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType.Unspecified) hash ^= Type.GetHashCode(); + if (Minutes != 0L) hash ^= Minutes.GetHashCode(); + if (Count != 0L) hash ^= Count.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Type != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (Minutes != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Minutes); + } + if (Count != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Type != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (Minutes != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Minutes); + } + if (Count != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Type != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (Minutes != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Minutes); + } + if (Count != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StageSummary other) { + if (other == null) { + return; + } + if (other.Type != global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType.Unspecified) { + Type = other.Type; + } + if (other.Minutes != 0L) { + Minutes = other.Minutes; + } + if (other.Count != 0L) { + Count = other.Count; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Type = (global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType) input.ReadEnum(); + break; + } + case 16: { + Minutes = input.ReadInt64(); + break; + } + case 24: { + Count = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Type = (global::Google.DevicesAndServices.Health.V4.Sleep.Types.SleepStageType) input.ReadEnum(); + break; + } + case 16: { + Minutes = input.ReadInt64(); + break; + } + case 24: { + Count = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// Step count over the time interval. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Steps : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Steps()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[37]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Steps() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Steps(Steps other) : this() { + interval_ = other.interval_ != null ? other.interval_.Clone() : null; + count_ = other.count_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Steps Clone() { + return new Steps(this); + } + + /// Field number for the "interval" field. + public const int IntervalFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval interval_; + /// + /// Required. Observed interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval Interval { + get { return interval_; } + set { + interval_ = value; + } + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 4; + private long count_; + /// + /// Required. Number of steps in the recorded interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Count { + get { return count_; } + set { + count_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Steps); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Steps other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Interval, other.Interval)) return false; + if (Count != other.Count) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (interval_ != null) hash ^= Interval.GetHashCode(); + if (Count != 0L) hash ^= Count.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (interval_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Interval); + } + if (Count != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (interval_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Interval); + } + if (Count != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (interval_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interval); + } + if (Count != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Steps other) { + if (other == null) { + return; + } + if (other.interval_ != null) { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + Interval.MergeFrom(other.Interval); + } + if (other.Count != 0L) { + Count = other.Count; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 32: { + Count = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 32: { + Count = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the result of the rollup of the steps data type. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StepsRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StepsRollupValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StepsRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StepsRollupValue(StepsRollupValue other) : this() { + countSum_ = other.countSum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StepsRollupValue Clone() { + return new StepsRollupValue(this); + } + + /// Field number for the "count_sum" field. + public const int CountSumFieldNumber = 1; + private long countSum_; + /// + /// Total number of steps in the interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long CountSum { + get { return countSum_; } + set { + countSum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StepsRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StepsRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CountSum != other.CountSum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CountSum != 0L) hash ^= CountSum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CountSum != 0L) { + output.WriteRawTag(8); + output.WriteInt64(CountSum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CountSum != 0L) { + output.WriteRawTag(8); + output.WriteInt64(CountSum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CountSum != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CountSum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StepsRollupValue other) { + if (other == null) { + return; + } + if (other.CountSum != 0L) { + CountSum = other.CountSum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + CountSum = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + CountSum = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Time in heart rate zone record. It's an interval spent in specific heart + /// rate zone. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TimeInHeartRateZone : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TimeInHeartRateZone()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[39]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeInHeartRateZone() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeInHeartRateZone(TimeInHeartRateZone other) : this() { + interval_ = other.interval_ != null ? other.interval_.Clone() : null; + heartRateZoneType_ = other.heartRateZoneType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeInHeartRateZone Clone() { + return new TimeInHeartRateZone(this); + } + + /// Field number for the "interval" field. + public const int IntervalFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval interval_; + /// + /// Required. Observed interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval Interval { + get { return interval_; } + set { + interval_ = value; + } + } + + /// Field number for the "heart_rate_zone_type" field. + public const int HeartRateZoneTypeFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.HeartRateZoneType heartRateZoneType_ = global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified; + /// + /// Required. Heart rate zone type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HeartRateZoneType HeartRateZoneType { + get { return heartRateZoneType_; } + set { + heartRateZoneType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TimeInHeartRateZone); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TimeInHeartRateZone other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Interval, other.Interval)) return false; + if (HeartRateZoneType != other.HeartRateZoneType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (interval_ != null) hash ^= Interval.GetHashCode(); + if (HeartRateZoneType != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) hash ^= HeartRateZoneType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (interval_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Interval); + } + if (HeartRateZoneType != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) HeartRateZoneType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (interval_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Interval); + } + if (HeartRateZoneType != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) HeartRateZoneType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (interval_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interval); + } + if (HeartRateZoneType != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HeartRateZoneType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TimeInHeartRateZone other) { + if (other == null) { + return; + } + if (other.interval_ != null) { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + Interval.MergeFrom(other.Interval); + } + if (other.HeartRateZoneType != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + HeartRateZoneType = other.HeartRateZoneType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 16: { + HeartRateZoneType = (global::Google.DevicesAndServices.Health.V4.HeartRateZoneType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + case 16: { + HeartRateZoneType = (global::Google.DevicesAndServices.Health.V4.HeartRateZoneType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the result of the rollup of the time in heart rate zone data + /// type. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TimeInHeartRateZoneRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TimeInHeartRateZoneRollupValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[40]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeInHeartRateZoneRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeInHeartRateZoneRollupValue(TimeInHeartRateZoneRollupValue other) : this() { + timeInHeartRateZones_ = other.timeInHeartRateZones_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeInHeartRateZoneRollupValue Clone() { + return new TimeInHeartRateZoneRollupValue(this); + } + + /// Field number for the "time_in_heart_rate_zones" field. + public const int TimeInHeartRateZonesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_timeInHeartRateZones_codec + = pb::FieldCodec.ForMessage(10, global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue.Types.TimeInHeartRateZoneValue.Parser); + private readonly pbc::RepeatedField timeInHeartRateZones_ = new pbc::RepeatedField(); + /// + /// List of time spent in each heart rate zone. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TimeInHeartRateZones { + get { return timeInHeartRateZones_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TimeInHeartRateZoneRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TimeInHeartRateZoneRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!timeInHeartRateZones_.Equals(other.timeInHeartRateZones_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= timeInHeartRateZones_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + timeInHeartRateZones_.WriteTo(output, _repeated_timeInHeartRateZones_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + timeInHeartRateZones_.WriteTo(ref output, _repeated_timeInHeartRateZones_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += timeInHeartRateZones_.CalculateSize(_repeated_timeInHeartRateZones_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TimeInHeartRateZoneRollupValue other) { + if (other == null) { + return; + } + timeInHeartRateZones_.Add(other.timeInHeartRateZones_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + timeInHeartRateZones_.AddEntriesFrom(input, _repeated_timeInHeartRateZones_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + timeInHeartRateZones_.AddEntriesFrom(ref input, _repeated_timeInHeartRateZones_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the TimeInHeartRateZoneRollupValue message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Represents the total time spent in a specific heart rate zone. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TimeInHeartRateZoneValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TimeInHeartRateZoneValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeInHeartRateZoneValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeInHeartRateZoneValue(TimeInHeartRateZoneValue other) : this() { + heartRateZone_ = other.heartRateZone_; + duration_ = other.duration_ != null ? other.duration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeInHeartRateZoneValue Clone() { + return new TimeInHeartRateZoneValue(this); + } + + /// Field number for the "heart_rate_zone" field. + public const int HeartRateZoneFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.HeartRateZoneType heartRateZone_ = global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified; + /// + /// The heart rate zone. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HeartRateZoneType HeartRateZone { + get { return heartRateZone_; } + set { + heartRateZone_ = value; + } + } + + /// Field number for the "duration" field. + public const int DurationFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Duration duration_; + /// + /// The total time spent in the specified heart rate zone. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration Duration { + get { return duration_; } + set { + duration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TimeInHeartRateZoneValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TimeInHeartRateZoneValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (HeartRateZone != other.HeartRateZone) return false; + if (!object.Equals(Duration, other.Duration)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HeartRateZone != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) hash ^= HeartRateZone.GetHashCode(); + if (duration_ != null) hash ^= Duration.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HeartRateZone != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) HeartRateZone); + } + if (duration_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Duration); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HeartRateZone != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) HeartRateZone); + } + if (duration_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Duration); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HeartRateZone != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HeartRateZone); + } + if (duration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Duration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TimeInHeartRateZoneValue other) { + if (other == null) { + return; + } + if (other.HeartRateZone != global::Google.DevicesAndServices.Health.V4.HeartRateZoneType.Unspecified) { + HeartRateZone = other.HeartRateZone; + } + if (other.duration_ != null) { + if (duration_ == null) { + Duration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + Duration.MergeFrom(other.Duration); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + HeartRateZone = (global::Google.DevicesAndServices.Health.V4.HeartRateZoneType) input.ReadEnum(); + break; + } + case 18: { + if (duration_ == null) { + Duration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Duration); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + HeartRateZone = (global::Google.DevicesAndServices.Health.V4.HeartRateZoneType) input.ReadEnum(); + break; + } + case 18: { + if (duration_ == null) { + Duration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Duration); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Represents the result of the rollup of the user's total calories. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TotalCaloriesRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TotalCaloriesRollupValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[41]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalCaloriesRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalCaloriesRollupValue(TotalCaloriesRollupValue other) : this() { + kcalSum_ = other.kcalSum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TotalCaloriesRollupValue Clone() { + return new TotalCaloriesRollupValue(this); + } + + /// Field number for the "kcal_sum" field. + public const int KcalSumFieldNumber = 1; + private double kcalSum_; + /// + /// Sum of the total calories in kilocalories. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double KcalSum { + get { return kcalSum_; } + set { + kcalSum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TotalCaloriesRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TotalCaloriesRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(KcalSum, other.KcalSum)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (KcalSum != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(KcalSum); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (KcalSum != 0D) { + output.WriteRawTag(9); + output.WriteDouble(KcalSum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (KcalSum != 0D) { + output.WriteRawTag(9); + output.WriteDouble(KcalSum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (KcalSum != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TotalCaloriesRollupValue other) { + if (other == null) { + return; + } + if (other.KcalSum != 0D) { + KcalSum = other.KcalSum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + KcalSum = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9: { + KcalSum = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// VO2 max measurement. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VO2Max : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VO2Max()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[42]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VO2Max() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VO2Max(VO2Max other) : this() { + sampleTime_ = other.sampleTime_ != null ? other.sampleTime_.Clone() : null; + vo2Max_ = other.vo2Max_; + measurementMethod_ = other.measurementMethod_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VO2Max Clone() { + return new VO2Max(this); + } + + /// Field number for the "sample_time" field. + public const int SampleTimeFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.ObservationSampleTime sampleTime_; + /// + /// Required. The time at which VO2 max was measured. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationSampleTime SampleTime { + get { return sampleTime_; } + set { + sampleTime_ = value; + } + } + + /// Field number for the "vo2_max" field. + public const int Vo2MaxFieldNumber = 2; + private double vo2Max_; + /// + /// Required. VO2 max value measured as in ml consumed oxygen / kg of body + /// weight / min. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Vo2Max { + get { return vo2Max_; } + set { + vo2Max_ = value; + } + } + + /// Field number for the "measurement_method" field. + public const int MeasurementMethodFieldNumber = 4; + private global::Google.DevicesAndServices.Health.V4.VO2Max.Types.MeasurementMethod measurementMethod_ = global::Google.DevicesAndServices.Health.V4.VO2Max.Types.MeasurementMethod.Unspecified; + /// + /// Optional. The method used to measure the VO2 max value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.VO2Max.Types.MeasurementMethod MeasurementMethod { + get { return measurementMethod_; } + set { + measurementMethod_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VO2Max); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VO2Max other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SampleTime, other.SampleTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Vo2Max, other.Vo2Max)) return false; + if (MeasurementMethod != other.MeasurementMethod) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (sampleTime_ != null) hash ^= SampleTime.GetHashCode(); + if (Vo2Max != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Vo2Max); + if (MeasurementMethod != global::Google.DevicesAndServices.Health.V4.VO2Max.Types.MeasurementMethod.Unspecified) hash ^= MeasurementMethod.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (sampleTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SampleTime); + } + if (Vo2Max != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Vo2Max); + } + if (MeasurementMethod != global::Google.DevicesAndServices.Health.V4.VO2Max.Types.MeasurementMethod.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) MeasurementMethod); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (sampleTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SampleTime); + } + if (Vo2Max != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Vo2Max); + } + if (MeasurementMethod != global::Google.DevicesAndServices.Health.V4.VO2Max.Types.MeasurementMethod.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) MeasurementMethod); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (sampleTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SampleTime); + } + if (Vo2Max != 0D) { + size += 1 + 8; + } + if (MeasurementMethod != global::Google.DevicesAndServices.Health.V4.VO2Max.Types.MeasurementMethod.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MeasurementMethod); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VO2Max other) { + if (other == null) { + return; + } + if (other.sampleTime_ != null) { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + SampleTime.MergeFrom(other.SampleTime); + } + if (other.Vo2Max != 0D) { + Vo2Max = other.Vo2Max; + } + if (other.MeasurementMethod != global::Google.DevicesAndServices.Health.V4.VO2Max.Types.MeasurementMethod.Unspecified) { + MeasurementMethod = other.MeasurementMethod; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 17: { + Vo2Max = input.ReadDouble(); + break; + } + case 32: { + MeasurementMethod = (global::Google.DevicesAndServices.Health.V4.VO2Max.Types.MeasurementMethod) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 17: { + Vo2Max = input.ReadDouble(); + break; + } + case 32: { + MeasurementMethod = (global::Google.DevicesAndServices.Health.V4.VO2Max.Types.MeasurementMethod) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the VO2Max message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Measurement method used to measure the VO2 max value. + /// + public enum MeasurementMethod { + /// + /// Unspecified measurement method. + /// + [pbr::OriginalName("MEASUREMENT_METHOD_UNSPECIFIED")] Unspecified = 0, + /// + /// Fitbit specific, measures VO2 max rate during a run. + /// + [pbr::OriginalName("FITBIT_RUN")] FitbitRun = 1, + /// + /// Google specific, measures VO2 max rate for a user based on their + /// demographic data. + /// + [pbr::OriginalName("GOOGLE_DEMOGRAPHIC")] GoogleDemographic = 2, + /// + /// Run as far as possible for 12 minutes. Distance correlated with age and + /// gender translates to a VO2 max value. + /// + [pbr::OriginalName("COOPER_TEST")] CooperTest = 3, + /// + /// Maximum heart rate divided by the resting heart rate, with a multiplier + /// applied. Does not require any exercise. + /// + [pbr::OriginalName("HEART_RATE_RATIO")] HeartRateRatio = 4, + /// + /// Measured by a medical device called metabolic cart. + /// + [pbr::OriginalName("METABOLIC_CART")] MetabolicCart = 5, + /// + /// Continuous 20m back-and-forth runs with increasing difficulty, until + /// exhaustion. + /// + [pbr::OriginalName("MULTISTAGE_FITNESS_TEST")] MultistageFitnessTest = 6, + /// + /// Measured using walking exercise. + /// + [pbr::OriginalName("ROCKPORT_FITNESS_TEST")] RockportFitnessTest = 7, + /// + /// Healthkit specific, measures VO2 max rate by monitoring exercise to the + /// user’s physical limit. Similar to COOPER_TEST or + /// MULTISTAGE_FITNESS_TEST. + /// + [pbr::OriginalName("MAX_EXERCISE")] MaxExercise = 8, + /// + /// Healthkit specific, estimates VO2 max rate based on low-intensity + /// exercise. Similar to ROCKPORT_FITNESS_TEST. + /// + [pbr::OriginalName("PREDICTION_SUB_MAX_EXERCISE")] PredictionSubMaxExercise = 9, + /// + /// Healthkit specific, estimates VO2 max rate without any exercise. + /// Similar to HEART_RATE_RATIO. + /// + [pbr::OriginalName("PREDICTION_NON_EXERCISE")] PredictionNonExercise = 10, + /// + /// Use when the method is not covered in this enum. + /// + [pbr::OriginalName("OTHER")] Other = 11, + } + + } + #endregion + + } + + /// + /// Body weight measurement. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Weight : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Weight()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[43]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Weight() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Weight(Weight other) : this() { + sampleTime_ = other.sampleTime_ != null ? other.sampleTime_.Clone() : null; + weightGrams_ = other.weightGrams_; + notes_ = other.notes_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Weight Clone() { + return new Weight(this); + } + + /// Field number for the "sample_time" field. + public const int SampleTimeFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.ObservationSampleTime sampleTime_; + /// + /// Required. The time at which the weight was measured + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationSampleTime SampleTime { + get { return sampleTime_; } + set { + sampleTime_ = value; + } + } + + /// Field number for the "weight_grams" field. + public const int WeightGramsFieldNumber = 3; + private double weightGrams_; + /// + /// Required. Weight of a user in grams. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double WeightGrams { + get { return weightGrams_; } + set { + weightGrams_ = value; + } + } + + /// Field number for the "notes" field. + public const int NotesFieldNumber = 4; + private string notes_ = ""; + /// + /// Optional. Standard free-form notes captured at manual logging. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Notes { + get { return notes_; } + set { + notes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Weight); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Weight other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SampleTime, other.SampleTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(WeightGrams, other.WeightGrams)) return false; + if (Notes != other.Notes) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (sampleTime_ != null) hash ^= SampleTime.GetHashCode(); + if (WeightGrams != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(WeightGrams); + if (Notes.Length != 0) hash ^= Notes.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (sampleTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SampleTime); + } + if (WeightGrams != 0D) { + output.WriteRawTag(25); + output.WriteDouble(WeightGrams); + } + if (Notes.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Notes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (sampleTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SampleTime); + } + if (WeightGrams != 0D) { + output.WriteRawTag(25); + output.WriteDouble(WeightGrams); + } + if (Notes.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Notes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (sampleTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SampleTime); + } + if (WeightGrams != 0D) { + size += 1 + 8; + } + if (Notes.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Notes); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Weight other) { + if (other == null) { + return; + } + if (other.sampleTime_ != null) { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + SampleTime.MergeFrom(other.SampleTime); + } + if (other.WeightGrams != 0D) { + WeightGrams = other.WeightGrams; + } + if (other.Notes.Length != 0) { + Notes = other.Notes; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 25: { + WeightGrams = input.ReadDouble(); + break; + } + case 34: { + Notes = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (sampleTime_ == null) { + SampleTime = new global::Google.DevicesAndServices.Health.V4.ObservationSampleTime(); + } + input.ReadMessage(SampleTime); + break; + } + case 25: { + WeightGrams = input.ReadDouble(); + break; + } + case 34: { + Notes = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the result of the rollup of the weight data type. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WeightRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WeightRollupValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[44]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WeightRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WeightRollupValue(WeightRollupValue other) : this() { + weightGramsAvg_ = other.weightGramsAvg_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WeightRollupValue Clone() { + return new WeightRollupValue(this); + } + + /// Field number for the "weight_grams_avg" field. + public const int WeightGramsAvgFieldNumber = 1; + private double weightGramsAvg_; + /// + /// Average weight in grams. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double WeightGramsAvg { + get { return weightGramsAvg_; } + set { + weightGramsAvg_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WeightRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WeightRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(WeightGramsAvg, other.WeightGramsAvg)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (WeightGramsAvg != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(WeightGramsAvg); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (WeightGramsAvg != 0D) { + output.WriteRawTag(9); + output.WriteDouble(WeightGramsAvg); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (WeightGramsAvg != 0D) { + output.WriteRawTag(9); + output.WriteDouble(WeightGramsAvg); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (WeightGramsAvg != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WeightRollupValue other) { + if (other == null) { + return; + } + if (other.WeightGramsAvg != 0D) { + WeightGramsAvg = other.WeightGramsAvg; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + WeightGramsAvg = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9: { + WeightGramsAvg = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// SedentaryPeriod + /// + /// SedentaryPeriod data represents the periods of time that the user was + /// sedentary (i.e. not moving while wearing the device). + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SedentaryPeriod : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SedentaryPeriod()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[45]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SedentaryPeriod() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SedentaryPeriod(SedentaryPeriod other) : this() { + interval_ = other.interval_ != null ? other.interval_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SedentaryPeriod Clone() { + return new SedentaryPeriod(this); + } + + /// Field number for the "interval" field. + public const int IntervalFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval interval_; + /// + /// Required. Observed interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval Interval { + get { return interval_; } + set { + interval_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SedentaryPeriod); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SedentaryPeriod other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Interval, other.Interval)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (interval_ != null) hash ^= Interval.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (interval_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Interval); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (interval_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Interval); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (interval_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interval); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SedentaryPeriod other) { + if (other == null) { + return; + } + if (other.interval_ != null) { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + Interval.MergeFrom(other.Interval); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (interval_ == null) { + Interval = new global::Google.DevicesAndServices.Health.V4.ObservationTimeInterval(); + } + input.ReadMessage(Interval); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the result of the rollup of the user's sedentary periods. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SedentaryPeriodRollupValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SedentaryPeriodRollupValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor.MessageTypes[46]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SedentaryPeriodRollupValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SedentaryPeriodRollupValue(SedentaryPeriodRollupValue other) : this() { + durationSum_ = other.durationSum_ != null ? other.durationSum_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SedentaryPeriodRollupValue Clone() { + return new SedentaryPeriodRollupValue(this); + } + + /// Field number for the "duration_sum" field. + public const int DurationSumFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Duration durationSum_; + /// + /// The total time user spent sedentary during the interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration DurationSum { + get { return durationSum_; } + set { + durationSum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SedentaryPeriodRollupValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SedentaryPeriodRollupValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DurationSum, other.DurationSum)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (durationSum_ != null) hash ^= DurationSum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (durationSum_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DurationSum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (durationSum_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DurationSum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (durationSum_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DurationSum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SedentaryPeriodRollupValue other) { + if (other == null) { + return; + } + if (other.durationSum_ != null) { + if (durationSum_ == null) { + DurationSum = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + DurationSum.MergeFrom(other.DurationSum); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (durationSum_ == null) { + DurationSum = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(DurationSum); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (durationSum_ == null) { + DurationSum = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(DurationSum); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPoints.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPoints.g.cs new file mode 100644 index 000000000000..f625fafdaa39 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPoints.g.cs @@ -0,0 +1,11227 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devicesandservices/health/v4/data_points.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Google.DevicesAndServices.Health.V4 { + + /// Holder for reflection information generated from google/devicesandservices/health/v4/data_points.proto + public static partial class DataPointsReflection { + + #region Descriptor + /// File descriptor for google/devicesandservices/health/v4/data_points.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DataPointsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjVnb29nbGUvZGV2aWNlc2FuZHNlcnZpY2VzL2hlYWx0aC92NC9kYXRhX3Bv", + "aW50cy5wcm90bxIjZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgu", + "djQaHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkv", + "Y2xpZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3Rv", + "Ghlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvGjpnb29nbGUvZGV2aWNlc2Fu", + "ZHNlcnZpY2VzL2hlYWx0aC92NC9kYXRhX2Nvb3JkaW5hdGVzLnByb3RvGjRn", + "b29nbGUvZGV2aWNlc2FuZHNlcnZpY2VzL2hlYWx0aC92NC9kYXRhX21vZGVs", + "LnByb3RvGjVnb29nbGUvZGV2aWNlc2FuZHNlcnZpY2VzL2hlYWx0aC92NC9k", + "YXRhX3NvdXJjZS5wcm90bxojZ29vZ2xlL2xvbmdydW5uaW5nL29wZXJhdGlv", + "bnMucHJvdG8aHmdvb2dsZS9wcm90b2J1Zi9kdXJhdGlvbi5wcm90bxofZ29v", + "Z2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90bxoXZ29vZ2xlL3JwYy9zdGF0", + "dXMucHJvdG8aGmdvb2dsZS90eXBlL2ludGVydmFsLnByb3RvIu0TCglEYXRh", + "UG9pbnQSQAoFc3RlcHMYBCABKAsyKi5nb29nbGUuZGV2aWNlc2FuZHNlcnZp", + "Y2VzLmhlYWx0aC52NC5TdGVwc0ID4EEBSAASQgoGZmxvb3JzGAUgASgLMisu", + "Z29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuRmxvb3JzQgPg", + "QQFIABJJCgpoZWFydF9yYXRlGAYgASgLMi4uZ29vZ2xlLmRldmljZXNhbmRz", + "ZXJ2aWNlcy5oZWFsdGgudjQuSGVhcnRSYXRlQgPgQQFIABJACgVzbGVlcBgI", + "IAEoCzIqLmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LlNs", + "ZWVwQgPgQQFIABJjChhkYWlseV9yZXN0aW5nX2hlYXJ0X3JhdGUYCSABKAsy", + "Oi5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5EYWlseVJl", + "c3RpbmdIZWFydFJhdGVCA+BBAUgAEmsKHGRhaWx5X2hlYXJ0X3JhdGVfdmFy", + "aWFiaWxpdHkYCiABKAsyPi5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhl", + "YWx0aC52NC5EYWlseUhlYXJ0UmF0ZVZhcmlhYmlsaXR5QgPgQQFIABJGCghl", + "eGVyY2lzZRgLIAEoCzItLmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVh", + "bHRoLnY0LkV4ZXJjaXNlQgPgQQFIABJCCgZ3ZWlnaHQYDCABKAsyKy5nb29n", + "bGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5XZWlnaHRCA+BBAUgA", + "EkYKCGFsdGl0dWRlGA0gASgLMi0uZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNl", + "cy5oZWFsdGgudjQuQWx0aXR1ZGVCA+BBAUgAEkYKCGRpc3RhbmNlGA4gASgL", + "Mi0uZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuRGlzdGFu", + "Y2VCA+BBAUgAEkUKCGJvZHlfZmF0GA8gASgLMiwuZ29vZ2xlLmRldmljZXNh", + "bmRzZXJ2aWNlcy5oZWFsdGgudjQuQm9keUZhdEID4EEBSAASWgoTYWN0aXZl", + "X3pvbmVfbWludXRlcxgRIAEoCzI2Lmdvb2dsZS5kZXZpY2VzYW5kc2Vydmlj", + "ZXMuaGVhbHRoLnY0LkFjdGl2ZVpvbmVNaW51dGVzQgPgQQFIABJgChZoZWFy", + "dF9yYXRlX3ZhcmlhYmlsaXR5GBMgASgLMjkuZ29vZ2xlLmRldmljZXNhbmRz", + "ZXJ2aWNlcy5oZWFsdGgudjQuSGVhcnRSYXRlVmFyaWFiaWxpdHlCA+BBAUgA", + "EnkKI2RhaWx5X3NsZWVwX3RlbXBlcmF0dXJlX2Rlcml2YXRpb25zGBQgASgL", + "MkUuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuRGFpbHlT", + "bGVlcFRlbXBlcmF0dXJlRGVyaXZhdGlvbnNCA+BBAUgAElUKEHNlZGVudGFy", + "eV9wZXJpb2QYFSABKAsyNC5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhl", + "YWx0aC52NC5TZWRlbnRhcnlQZXJpb2RCA+BBAUgAEkoKC3J1bl92bzJfbWF4", + "GBYgASgLMi4uZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQu", + "UnVuVk8yTWF4QgPgQQFIABJXChFveHlnZW5fc2F0dXJhdGlvbhgYIAEoCzI1", + "Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0Lk94eWdlblNh", + "dHVyYXRpb25CA+BBAUgAEmIKF2RhaWx5X294eWdlbl9zYXR1cmF0aW9uGBkg", + "ASgLMjouZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuRGFp", + "bHlPeHlnZW5TYXR1cmF0aW9uQgPgQQFIABJRCg5hY3Rpdml0eV9sZXZlbBga", + "IAEoCzIyLmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LkFj", + "dGl2aXR5TGV2ZWxCA+BBAUgAEkMKB3ZvMl9tYXgYGyABKAsyKy5nb29nbGUu", + "ZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5WTzJNYXhCA+BBAUgAEk4K", + "DWRhaWx5X3ZvMl9tYXgYHCABKAsyMC5nb29nbGUuZGV2aWNlc2FuZHNlcnZp", + "Y2VzLmhlYWx0aC52NC5EYWlseVZPMk1heEID4EEBSAASXwoWZGFpbHlfaGVh", + "cnRfcmF0ZV96b25lcxggIAEoCzI4Lmdvb2dsZS5kZXZpY2VzYW5kc2Vydmlj", + "ZXMuaGVhbHRoLnY0LkRhaWx5SGVhcnRSYXRlWm9uZXNCA+BBAUgAEk8KDWh5", + "ZHJhdGlvbl9sb2cYISABKAsyMS5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2Vz", + "LmhlYWx0aC52NC5IeWRyYXRpb25Mb2dCA+BBAUgAEmAKF3RpbWVfaW5faGVh", + "cnRfcmF0ZV96b25lGCMgASgLMjguZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNl", + "cy5oZWFsdGgudjQuVGltZUluSGVhcnRSYXRlWm9uZUID4EEBSAASUQoOYWN0", + "aXZlX21pbnV0ZXMYJCABKAsyMi5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2Vz", + "LmhlYWx0aC52NC5BY3RpdmVNaW51dGVzQgPgQQFIABJvCh5yZXNwaXJhdG9y", + "eV9yYXRlX3NsZWVwX3N1bW1hcnkYJSABKAsyQC5nb29nbGUuZGV2aWNlc2Fu", + "ZHNlcnZpY2VzLmhlYWx0aC52NC5SZXNwaXJhdG9yeVJhdGVTbGVlcFN1bW1h", + "cnlCA+BBAUgAEmAKFmRhaWx5X3Jlc3BpcmF0b3J5X3JhdGUYJiABKAsyOS5n", + "b29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5EYWlseVJlc3Bp", + "cmF0b3J5UmF0ZUID4EEBSAASEQoEbmFtZRgBIAEoCUID4EEIEkkKC2RhdGFf", + "c291cmNlGAMgASgLMi8uZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFs", + "dGgudjQuRGF0YVNvdXJjZUID4EEBOnfqQXQKH2hlYWx0aC5nb29nbGVhcGlz", + "LmNvbS9EYXRhUG9pbnQSOnVzZXJzL3t1c2VyfS9kYXRhVHlwZXMve2RhdGFf", + "dHlwZX0vZGF0YVBvaW50cy97ZGF0YV9wb2ludH0qCmRhdGFQb2ludHMyCWRh", + "dGFQb2ludEIGCgRkYXRhIrcRChNSZWNvbmNpbGVkRGF0YVBvaW50EjsKBXN0", + "ZXBzGAQgASgLMiouZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgu", + "djQuU3RlcHNIABI9CgZmbG9vcnMYBSABKAsyKy5nb29nbGUuZGV2aWNlc2Fu", + "ZHNlcnZpY2VzLmhlYWx0aC52NC5GbG9vcnNIABJECgpoZWFydF9yYXRlGAYg", + "ASgLMi4uZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuSGVh", + "cnRSYXRlSAASOwoFc2xlZXAYCCABKAsyKi5nb29nbGUuZGV2aWNlc2FuZHNl", + "cnZpY2VzLmhlYWx0aC52NC5TbGVlcEgAEl4KGGRhaWx5X3Jlc3RpbmdfaGVh", + "cnRfcmF0ZRgJIAEoCzI6Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVh", + "bHRoLnY0LkRhaWx5UmVzdGluZ0hlYXJ0UmF0ZUgAEmYKHGRhaWx5X2hlYXJ0", + "X3JhdGVfdmFyaWFiaWxpdHkYCiABKAsyPi5nb29nbGUuZGV2aWNlc2FuZHNl", + "cnZpY2VzLmhlYWx0aC52NC5EYWlseUhlYXJ0UmF0ZVZhcmlhYmlsaXR5SAAS", + "QQoIZXhlcmNpc2UYCyABKAsyLS5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2Vz", + "LmhlYWx0aC52NC5FeGVyY2lzZUgAEj0KBndlaWdodBgMIAEoCzIrLmdvb2ds", + "ZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LldlaWdodEgAEkEKCGFs", + "dGl0dWRlGA0gASgLMi0uZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFs", + "dGgudjQuQWx0aXR1ZGVIABJBCghkaXN0YW5jZRgOIAEoCzItLmdvb2dsZS5k", + "ZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LkRpc3RhbmNlSAASQAoIYm9k", + "eV9mYXQYDyABKAsyLC5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0", + "aC52NC5Cb2R5RmF0SAASVQoTYWN0aXZlX3pvbmVfbWludXRlcxgRIAEoCzI2", + "Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LkFjdGl2ZVpv", + "bmVNaW51dGVzSAASWwoWaGVhcnRfcmF0ZV92YXJpYWJpbGl0eRgTIAEoCzI5", + "Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LkhlYXJ0UmF0", + "ZVZhcmlhYmlsaXR5SAASdAojZGFpbHlfc2xlZXBfdGVtcGVyYXR1cmVfZGVy", + "aXZhdGlvbnMYFCABKAsyRS5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhl", + "YWx0aC52NC5EYWlseVNsZWVwVGVtcGVyYXR1cmVEZXJpdmF0aW9uc0gAElAK", + "EHNlZGVudGFyeV9wZXJpb2QYFSABKAsyNC5nb29nbGUuZGV2aWNlc2FuZHNl", + "cnZpY2VzLmhlYWx0aC52NC5TZWRlbnRhcnlQZXJpb2RIABJFCgtydW5fdm8y", + "X21heBgWIAEoCzIuLmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRo", + "LnY0LlJ1blZPMk1heEgAElIKEW94eWdlbl9zYXR1cmF0aW9uGBggASgLMjUu", + "Z29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuT3h5Z2VuU2F0", + "dXJhdGlvbkgAEl0KF2RhaWx5X294eWdlbl9zYXR1cmF0aW9uGBkgASgLMjou", + "Z29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuRGFpbHlPeHln", + "ZW5TYXR1cmF0aW9uSAASTAoOYWN0aXZpdHlfbGV2ZWwYGiABKAsyMi5nb29n", + "bGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5BY3Rpdml0eUxldmVs", + "SAASPgoHdm8yX21heBgbIAEoCzIrLmdvb2dsZS5kZXZpY2VzYW5kc2Vydmlj", + "ZXMuaGVhbHRoLnY0LlZPMk1heEgAEkkKDWRhaWx5X3ZvMl9tYXgYHCABKAsy", + "MC5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5EYWlseVZP", + "Mk1heEgAEloKFmRhaWx5X2hlYXJ0X3JhdGVfem9uZXMYICABKAsyOC5nb29n", + "bGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5EYWlseUhlYXJ0UmF0", + "ZVpvbmVzSAASSgoNaHlkcmF0aW9uX2xvZxghIAEoCzIxLmdvb2dsZS5kZXZp", + "Y2VzYW5kc2VydmljZXMuaGVhbHRoLnY0Lkh5ZHJhdGlvbkxvZ0gAElsKF3Rp", + "bWVfaW5faGVhcnRfcmF0ZV96b25lGCMgASgLMjguZ29vZ2xlLmRldmljZXNh", + "bmRzZXJ2aWNlcy5oZWFsdGgudjQuVGltZUluSGVhcnRSYXRlWm9uZUgAEkwK", + "DmFjdGl2ZV9taW51dGVzGCQgASgLMjIuZ29vZ2xlLmRldmljZXNhbmRzZXJ2", + "aWNlcy5oZWFsdGgudjQuQWN0aXZlTWludXRlc0gAEmoKHnJlc3BpcmF0b3J5", + "X3JhdGVfc2xlZXBfc3VtbWFyeRglIAEoCzJALmdvb2dsZS5kZXZpY2VzYW5k", + "c2VydmljZXMuaGVhbHRoLnY0LlJlc3BpcmF0b3J5UmF0ZVNsZWVwU3VtbWFy", + "eUgAElsKFmRhaWx5X3Jlc3BpcmF0b3J5X3JhdGUYJiABKAsyOS5nb29nbGUu", + "ZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5EYWlseVJlc3BpcmF0b3J5", + "UmF0ZUgAEhwKD2RhdGFfcG9pbnRfbmFtZRgBIAEoCUID4EEIQgYKBGRhdGEi", + "2QsKD1JvbGx1cERhdGFQb2ludBJGCgVzdGVwcxgFIAEoCzI1Lmdvb2dsZS5k", + "ZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LlN0ZXBzUm9sbHVwVmFsdWVI", + "ABJICgZmbG9vcnMYBiABKAsyNi5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2Vz", + "LmhlYWx0aC52NC5GbG9vcnNSb2xsdXBWYWx1ZUgAEk8KCmhlYXJ0X3JhdGUY", + "ByABKAsyOS5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5I", + "ZWFydFJhdGVSb2xsdXBWYWx1ZUgAEkgKBndlaWdodBgIIAEoCzI2Lmdvb2ds", + "ZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LldlaWdodFJvbGx1cFZh", + "bHVlSAASTAoIYWx0aXR1ZGUYCSABKAsyOC5nb29nbGUuZGV2aWNlc2FuZHNl", + "cnZpY2VzLmhlYWx0aC52NC5BbHRpdHVkZVJvbGx1cFZhbHVlSAASTAoIZGlz", + "dGFuY2UYCiABKAsyOC5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0", + "aC52NC5EaXN0YW5jZVJvbGx1cFZhbHVlSAASSwoIYm9keV9mYXQYCyABKAsy", + "Ny5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5Cb2R5RmF0", + "Um9sbHVwVmFsdWVIABJXCg50b3RhbF9jYWxvcmllcxgMIAEoCzI9Lmdvb2ds", + "ZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LlRvdGFsQ2Fsb3JpZXNS", + "b2xsdXBWYWx1ZUgAEmAKE2FjdGl2ZV96b25lX21pbnV0ZXMYDSABKAsyQS5n", + "b29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5BY3RpdmVab25l", + "TWludXRlc1JvbGx1cFZhbHVlSAASWwoQc2VkZW50YXJ5X3BlcmlvZBgPIAEo", + "CzI/Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LlNlZGVu", + "dGFyeVBlcmlvZFJvbGx1cFZhbHVlSAASUAoLcnVuX3ZvMl9tYXgYECABKAsy", + "OS5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5SdW5WTzJN", + "YXhSb2xsdXBWYWx1ZUgAEm4KG2NhbG9yaWVzX2luX2hlYXJ0X3JhdGVfem9u", + "ZRgRIAEoCzJHLmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0", + "LkNhbG9yaWVzSW5IZWFydFJhdGVab25lUm9sbHVwVmFsdWVIABJXCg5hY3Rp", + "dml0eV9sZXZlbBgSIAEoCzI9Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMu", + "aGVhbHRoLnY0LkFjdGl2aXR5TGV2ZWxSb2xsdXBWYWx1ZUgAElUKDWh5ZHJh", + "dGlvbl9sb2cYFCABKAsyPC5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhl", + "YWx0aC52NC5IeWRyYXRpb25Mb2dSb2xsdXBWYWx1ZUgAEmYKF3RpbWVfaW5f", + "aGVhcnRfcmF0ZV96b25lGBUgASgLMkMuZ29vZ2xlLmRldmljZXNhbmRzZXJ2", + "aWNlcy5oZWFsdGgudjQuVGltZUluSGVhcnRSYXRlWm9uZVJvbGx1cFZhbHVl", + "SAASVwoOYWN0aXZlX21pbnV0ZXMYFiABKAsyPS5nb29nbGUuZGV2aWNlc2Fu", + "ZHNlcnZpY2VzLmhlYWx0aC52NC5BY3RpdmVNaW51dGVzUm9sbHVwVmFsdWVI", + "ABIuCgpzdGFydF90aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", + "dGFtcBIsCghlbmRfdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", + "c3RhbXBCBwoFdmFsdWUimw4KFERhaWx5Um9sbHVwRGF0YVBvaW50EkYKBXN0", + "ZXBzGAUgASgLMjUuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgu", + "djQuU3RlcHNSb2xsdXBWYWx1ZUgAEkgKBmZsb29ycxgGIAEoCzI2Lmdvb2ds", + "ZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LkZsb29yc1JvbGx1cFZh", + "bHVlSAASTwoKaGVhcnRfcmF0ZRgHIAEoCzI5Lmdvb2dsZS5kZXZpY2VzYW5k", + "c2VydmljZXMuaGVhbHRoLnY0LkhlYXJ0UmF0ZVJvbGx1cFZhbHVlSAASegoh", + "cmVzdGluZ19oZWFydF9yYXRlX3BlcnNvbmFsX3JhbmdlGAggASgLMk0uZ29v", + "Z2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuUmVzdGluZ0hlYXJ0", + "UmF0ZVBlcnNvbmFsUmFuZ2VSb2xsdXBWYWx1ZUgAEoIBCiVoZWFydF9yYXRl", + "X3ZhcmlhYmlsaXR5X3BlcnNvbmFsX3JhbmdlGAkgASgLMlEuZ29vZ2xlLmRl", + "dmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuSGVhcnRSYXRlVmFyaWFiaWxp", + "dHlQZXJzb25hbFJhbmdlUm9sbHVwVmFsdWVIABJICgZ3ZWlnaHQYCiABKAsy", + "Ni5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5XZWlnaHRS", + "b2xsdXBWYWx1ZUgAEkwKCGFsdGl0dWRlGAsgASgLMjguZ29vZ2xlLmRldmlj", + "ZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuQWx0aXR1ZGVSb2xsdXBWYWx1ZUgA", + "EkwKCGRpc3RhbmNlGAwgASgLMjguZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNl", + "cy5oZWFsdGgudjQuRGlzdGFuY2VSb2xsdXBWYWx1ZUgAEksKCGJvZHlfZmF0", + "GA0gASgLMjcuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQu", + "Qm9keUZhdFJvbGx1cFZhbHVlSAASVwoOdG90YWxfY2Fsb3JpZXMYDiABKAsy", + "PS5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5Ub3RhbENh", + "bG9yaWVzUm9sbHVwVmFsdWVIABJgChNhY3RpdmVfem9uZV9taW51dGVzGA8g", + "ASgLMkEuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuQWN0", + "aXZlWm9uZU1pbnV0ZXNSb2xsdXBWYWx1ZUgAElsKEHNlZGVudGFyeV9wZXJp", + "b2QYESABKAsyPy5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52", + "NC5TZWRlbnRhcnlQZXJpb2RSb2xsdXBWYWx1ZUgAElAKC3J1bl92bzJfbWF4", + "GBIgASgLMjkuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQu", + "UnVuVk8yTWF4Um9sbHVwVmFsdWVIABJuChtjYWxvcmllc19pbl9oZWFydF9y", + "YXRlX3pvbmUYEyABKAsyRy5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhl", + "YWx0aC52NC5DYWxvcmllc0luSGVhcnRSYXRlWm9uZVJvbGx1cFZhbHVlSAAS", + "VwoOYWN0aXZpdHlfbGV2ZWwYFCABKAsyPS5nb29nbGUuZGV2aWNlc2FuZHNl", + "cnZpY2VzLmhlYWx0aC52NC5BY3Rpdml0eUxldmVsUm9sbHVwVmFsdWVIABJV", + "Cg1oeWRyYXRpb25fbG9nGBYgASgLMjwuZ29vZ2xlLmRldmljZXNhbmRzZXJ2", + "aWNlcy5oZWFsdGgudjQuSHlkcmF0aW9uTG9nUm9sbHVwVmFsdWVIABJmChd0", + "aW1lX2luX2hlYXJ0X3JhdGVfem9uZRgXIAEoCzJDLmdvb2dsZS5kZXZpY2Vz", + "YW5kc2VydmljZXMuaGVhbHRoLnY0LlRpbWVJbkhlYXJ0UmF0ZVpvbmVSb2xs", + "dXBWYWx1ZUgAElcKDmFjdGl2ZV9taW51dGVzGBggASgLMj0uZ29vZ2xlLmRl", + "dmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuQWN0aXZlTWludXRlc1JvbGx1", + "cFZhbHVlSAASTAoQY2l2aWxfc3RhcnRfdGltZRgBIAEoCzIyLmdvb2dsZS5k", + "ZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LkNpdmlsRGF0ZVRpbWUSSgoO", + "Y2l2aWxfZW5kX3RpbWUYAiABKAsyMi5nb29nbGUuZGV2aWNlc2FuZHNlcnZp", + "Y2VzLmhlYWx0aC52NC5DaXZpbERhdGVUaW1lQgcKBXZhbHVlIpUBChVMaXN0", + "RGF0YVBvaW50c1JlcXVlc3QSNgoGcGFyZW50GAEgASgJQibgQQL6QSAKHmhl", + "YWx0aC5nb29nbGVhcGlzLmNvbS9EYXRhVHlwZRIWCglwYWdlX3NpemUYAiAB", + "KAVCA+BBARIXCgpwYWdlX3Rva2VuGAMgASgJQgPgQQESEwoGZmlsdGVyGAQg", + "ASgJQgPgQQEidgoWTGlzdERhdGFQb2ludHNSZXNwb25zZRJDCgtkYXRhX3Bv", + "aW50cxgBIAMoCzIuLmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRo", + "LnY0LkRhdGFQb2ludBIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkimgEKFkNy", + "ZWF0ZURhdGFQb2ludFJlcXVlc3QSNwoGcGFyZW50GAEgASgJQifgQQL6QSES", + "H2hlYWx0aC5nb29nbGVhcGlzLmNvbS9EYXRhUG9pbnQSRwoKZGF0YV9wb2lu", + "dBgCIAEoCzIuLmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0", + "LkRhdGFQb2ludEID4EECIiIKIENyZWF0ZURhdGFQb2ludE9wZXJhdGlvbk1l", + "dGFkYXRhImEKFlVwZGF0ZURhdGFQb2ludFJlcXVlc3QSRwoKZGF0YV9wb2lu", + "dBgBIAEoCzIuLmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0", + "LkRhdGFQb2ludEID4EECIiIKIFVwZGF0ZURhdGFQb2ludE9wZXJhdGlvbk1l", + "dGFkYXRhIo4BChxCYXRjaERlbGV0ZURhdGFQb2ludHNSZXF1ZXN0EjYKBnBh", + "cmVudBgBIAEoCUIm4EEB+kEgCh5oZWFsdGguZ29vZ2xlYXBpcy5jb20vRGF0", + "YVR5cGUSNgoFbmFtZXMYAiADKAlCJ+BBAvpBIQofaGVhbHRoLmdvb2dsZWFw", + "aXMuY29tL0RhdGFQb2ludCJkCh1CYXRjaERlbGV0ZURhdGFQb2ludHNSZXNw", + "b25zZRJDCgtkYXRhX3BvaW50cxgBIAMoCzIuLmdvb2dsZS5kZXZpY2VzYW5k", + "c2VydmljZXMuaGVhbHRoLnY0LkRhdGFQb2ludCLtAQomQmF0Y2hEZWxldGVE", + "YXRhUG9pbnRzT3BlcmF0aW9uTWV0YWRhdGESeAoPZmFpbGVkX3JlcXVlc3Rz", + "GAEgAygLMl8uZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQu", + "QmF0Y2hEZWxldGVEYXRhUG9pbnRzT3BlcmF0aW9uTWV0YWRhdGEuRmFpbGVk", + "UmVxdWVzdHNFbnRyeRpJChNGYWlsZWRSZXF1ZXN0c0VudHJ5EgsKA2tleRgB", + "IAEoBRIhCgV2YWx1ZRgCIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzOgI4ASKY", + "AQoaUmVjb25jaWxlRGF0YVBvaW50c1JlcXVlc3QSEwoGcGFyZW50GAEgASgJ", + "QgPgQQISFgoJcGFnZV9zaXplGAIgASgFQgPgQQESFwoKcGFnZV90b2tlbhgD", + "IAEoCUID4EEBEhMKBmZpbHRlchgEIAEoCUID4EEBEh8KEmRhdGFfc291cmNl", + "X2ZhbWlseRgFIAEoCUID4EEBIoUBChtSZWNvbmNpbGVEYXRhUG9pbnRzUmVz", + "cG9uc2USTQoLZGF0YV9wb2ludHMYASADKAsyOC5nb29nbGUuZGV2aWNlc2Fu", + "ZHNlcnZpY2VzLmhlYWx0aC52NC5SZWNvbmNpbGVkRGF0YVBvaW50EhcKD25l", + "eHRfcGFnZV90b2tlbhgCIAEoCSKDAgoXUm9sbFVwRGF0YVBvaW50c1JlcXVl", + "c3QSNgoGcGFyZW50GAEgASgJQibgQQL6QSAKHmhlYWx0aC5nb29nbGVhcGlz", + "LmNvbS9EYXRhVHlwZRIpCgVyYW5nZRgCIAEoCzIVLmdvb2dsZS50eXBlLklu", + "dGVydmFsQgPgQQISMwoLd2luZG93X3NpemUYAyABKAsyGS5nb29nbGUucHJv", + "dG9idWYuRHVyYXRpb25CA+BBAhIWCglwYWdlX3NpemUYBCABKAVCA+BBARIX", + "CgpwYWdlX3Rva2VuGAUgASgJQgPgQQESHwoSZGF0YV9zb3VyY2VfZmFtaWx5", + "GAcgASgJQgPgQQEihQEKGFJvbGxVcERhdGFQb2ludHNSZXNwb25zZRJQChJy", + "b2xsdXBfZGF0YV9wb2ludHMYASADKAsyNC5nb29nbGUuZGV2aWNlc2FuZHNl", + "cnZpY2VzLmhlYWx0aC52NC5Sb2xsdXBEYXRhUG9pbnQSFwoPbmV4dF9wYWdl", + "X3Rva2VuGAIgASgJIpMCChxEYWlseVJvbGxVcERhdGFQb2ludHNSZXF1ZXN0", + "EjYKBnBhcmVudBgBIAEoCUIm4EEC+kEgCh5oZWFsdGguZ29vZ2xlYXBpcy5j", + "b20vRGF0YVR5cGUSSgoFcmFuZ2UYAiABKAsyNi5nb29nbGUuZGV2aWNlc2Fu", + "ZHNlcnZpY2VzLmhlYWx0aC52NC5DaXZpbFRpbWVJbnRlcnZhbEID4EECEh0K", + "EHdpbmRvd19zaXplX2RheXMYAyABKAVCA+BBARIWCglwYWdlX3NpemUYBCAB", + "KAVCA+BBARIXCgpwYWdlX3Rva2VuGAUgASgJQgPgQQESHwoSZGF0YV9zb3Vy", + "Y2VfZmFtaWx5GAcgASgJQgPgQQEidgodRGFpbHlSb2xsVXBEYXRhUG9pbnRz", + "UmVzcG9uc2USVQoScm9sbHVwX2RhdGFfcG9pbnRzGAEgAygLMjkuZ29vZ2xl", + "LmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuRGFpbHlSb2xsdXBEYXRh", + "UG9pbnQiewoIRGF0YVR5cGUSEQoEbmFtZRgBIAEoCUID4EEIOlzqQVkKHmhl", + "YWx0aC5nb29nbGVhcGlzLmNvbS9EYXRhVHlwZRIidXNlcnMve3VzZXJ9L2Rh", + "dGFUeXBlcy97ZGF0YV90eXBlfSoJZGF0YVR5cGVzMghkYXRhVHlwZSJsChhF", + "eHBvcnRFeGVyY2lzZVRjeFJlcXVlc3QSNQoEbmFtZRgBIAEoCUIn4EEC+kEh", + "Ch9oZWFsdGguZ29vZ2xlYXBpcy5jb20vRGF0YVBvaW50EhkKDHBhcnRpYWxf", + "ZGF0YRgCIAEoCEID4EEBIi0KGUV4cG9ydEV4ZXJjaXNlVGN4UmVzcG9uc2US", + "EAoIdGN4X2RhdGEYAiABKAky5Q4KEURhdGFQb2ludHNTZXJ2aWNlEscBCg5M", + "aXN0RGF0YVBvaW50cxI6Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVh", + "bHRoLnY0Lkxpc3REYXRhUG9pbnRzUmVxdWVzdBo7Lmdvb2dsZS5kZXZpY2Vz", + "YW5kc2VydmljZXMuaGVhbHRoLnY0Lkxpc3REYXRhUG9pbnRzUmVzcG9uc2Ui", + "PNpBBnBhcmVudILT5JMCLRIrL3Y0L3twYXJlbnQ9dXNlcnMvKi9kYXRhVHlw", + "ZXMvKn0vZGF0YVBvaW50cxLzAQoPQ3JlYXRlRGF0YVBvaW50EjsuZ29vZ2xl", + "LmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuQ3JlYXRlRGF0YVBvaW50", + "UmVxdWVzdBodLmdvb2dsZS5sb25ncnVubmluZy5PcGVyYXRpb24igwHKQS0K", + "CURhdGFQb2ludBIgQ3JlYXRlRGF0YVBvaW50T3BlcmF0aW9uTWV0YWRhdGHa", + "QRFwYXJlbnQsZGF0YV9wb2ludILT5JMCOSIrL3Y0L3twYXJlbnQ9dXNlcnMv", + "Ki9kYXRhVHlwZXMvKn0vZGF0YVBvaW50czoKZGF0YV9wb2ludBL3AQoPVXBk", + "YXRlRGF0YVBvaW50EjsuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFs", + "dGgudjQuVXBkYXRlRGF0YVBvaW50UmVxdWVzdBodLmdvb2dsZS5sb25ncnVu", + "bmluZy5PcGVyYXRpb24ihwHKQS0KCURhdGFQb2ludBIgVXBkYXRlRGF0YVBv", + "aW50T3BlcmF0aW9uTWV0YWRhdGHaQQpkYXRhX3BvaW50gtPkkwJEMjYvdjQv", + "e2RhdGFfcG9pbnQubmFtZT11c2Vycy8qL2RhdGFUeXBlcy8qL2RhdGFQb2lu", + "dHMvKn06CmRhdGFfcG9pbnQSiAIKFUJhdGNoRGVsZXRlRGF0YVBvaW50cxJB", + "Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LkJhdGNoRGVs", + "ZXRlRGF0YVBvaW50c1JlcXVlc3QaHS5nb29nbGUubG9uZ3J1bm5pbmcuT3Bl", + "cmF0aW9uIowBykFHCh1CYXRjaERlbGV0ZURhdGFQb2ludHNSZXNwb25zZRIm", + "QmF0Y2hEZWxldGVEYXRhUG9pbnRzT3BlcmF0aW9uTWV0YWRhdGGC0+STAjwi", + "Ny92NC97cGFyZW50PXVzZXJzLyovZGF0YVR5cGVzLyp9L2RhdGFQb2ludHM6", + "YmF0Y2hEZWxldGU6ASoS1wEKE1JlY29uY2lsZURhdGFQb2ludHMSPy5nb29n", + "bGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5SZWNvbmNpbGVEYXRh", + "UG9pbnRzUmVxdWVzdBpALmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVh", + "bHRoLnY0LlJlY29uY2lsZURhdGFQb2ludHNSZXNwb25zZSI9gtPkkwI3EjUv", + "djQve3BhcmVudD11c2Vycy8qL2RhdGFUeXBlcy8qfS9kYXRhUG9pbnRzOnJl", + "Y29uY2lsZRLOAQoQUm9sbFVwRGF0YVBvaW50cxI8Lmdvb2dsZS5kZXZpY2Vz", + "YW5kc2VydmljZXMuaGVhbHRoLnY0LlJvbGxVcERhdGFQb2ludHNSZXF1ZXN0", + "Gj0uZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuUm9sbFVw", + "RGF0YVBvaW50c1Jlc3BvbnNlIj2C0+STAjciMi92NC97cGFyZW50PXVzZXJz", + "LyovZGF0YVR5cGVzLyp9L2RhdGFQb2ludHM6cm9sbFVwOgEqEuIBChVEYWls", + "eVJvbGxVcERhdGFQb2ludHMSQS5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2Vz", + "LmhlYWx0aC52NC5EYWlseVJvbGxVcERhdGFQb2ludHNSZXF1ZXN0GkIuZ29v", + "Z2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuRGFpbHlSb2xsVXBE", + "YXRhUG9pbnRzUmVzcG9uc2UiQoLT5JMCPCI3L3Y0L3twYXJlbnQ9dXNlcnMv", + "Ki9kYXRhVHlwZXMvKn0vZGF0YVBvaW50czpkYWlseVJvbGxVcDoBKhLgAQoR", + "RXhwb3J0RXhlcmNpc2VUY3gSPS5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2Vz", + "LmhlYWx0aC52NC5FeHBvcnRFeGVyY2lzZVRjeFJlcXVlc3QaPi5nb29nbGUu", + "ZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5FeHBvcnRFeGVyY2lzZVRj", + "eFJlc3BvbnNlIkzaQQRuYW1lgtPkkwI/Ej0vdjQve25hbWU9dXNlcnMvKi9k", + "YXRhVHlwZXMvKi9kYXRhUG9pbnRzLyp9OmV4cG9ydEV4ZXJjaXNlVGN4GhjK", + "QRVoZWFsdGguZ29vZ2xlYXBpcy5jb21ChQIKJ2NvbS5nb29nbGUuZGV2aWNl", + "c2FuZHNlcnZpY2VzLmhlYWx0aC52NEIPRGF0YVBvaW50c1Byb3RvUAFaUmdv", + "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvZGV2aWNlc2Fu", + "ZHNlcnZpY2VzL2hlYWx0aC9hcGl2NG1haW47aGVhbHRocGKqAiNHb29nbGUu", + "RGV2aWNlc0FuZFNlcnZpY2VzLkhlYWx0aC5WNMoCI0dvb2dsZVxEZXZpY2Vz", + "QW5kU2VydmljZXNcSGVhbHRoXFY06gImR29vZ2xlOjpEZXZpY2VzQW5kU2Vy", + "dmljZXM6OkhlYWx0aDo6VjRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.DevicesAndServices.Health.V4.DataCoordinatesReflection.Descriptor, global::Google.DevicesAndServices.Health.V4.DataModelReflection.Descriptor, global::Google.DevicesAndServices.Health.V4.DataSourceReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, global::Google.Type.IntervalReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DataPoint), global::Google.DevicesAndServices.Health.V4.DataPoint.Parser, new[]{ "Steps", "Floors", "HeartRate", "Sleep", "DailyRestingHeartRate", "DailyHeartRateVariability", "Exercise", "Weight", "Altitude", "Distance", "BodyFat", "ActiveZoneMinutes", "HeartRateVariability", "DailySleepTemperatureDerivations", "SedentaryPeriod", "RunVo2Max", "OxygenSaturation", "DailyOxygenSaturation", "ActivityLevel", "Vo2Max", "DailyVo2Max", "DailyHeartRateZones", "HydrationLog", "TimeInHeartRateZone", "ActiveMinutes", "RespiratoryRateSleepSummary", "DailyRespiratoryRate", "Name", "DataSource" }, new[]{ "Data" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ReconciledDataPoint), global::Google.DevicesAndServices.Health.V4.ReconciledDataPoint.Parser, new[]{ "Steps", "Floors", "HeartRate", "Sleep", "DailyRestingHeartRate", "DailyHeartRateVariability", "Exercise", "Weight", "Altitude", "Distance", "BodyFat", "ActiveZoneMinutes", "HeartRateVariability", "DailySleepTemperatureDerivations", "SedentaryPeriod", "RunVo2Max", "OxygenSaturation", "DailyOxygenSaturation", "ActivityLevel", "Vo2Max", "DailyVo2Max", "DailyHeartRateZones", "HydrationLog", "TimeInHeartRateZone", "ActiveMinutes", "RespiratoryRateSleepSummary", "DailyRespiratoryRate", "DataPointName" }, new[]{ "Data" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.RollupDataPoint), global::Google.DevicesAndServices.Health.V4.RollupDataPoint.Parser, new[]{ "Steps", "Floors", "HeartRate", "Weight", "Altitude", "Distance", "BodyFat", "TotalCalories", "ActiveZoneMinutes", "SedentaryPeriod", "RunVo2Max", "CaloriesInHeartRateZone", "ActivityLevel", "HydrationLog", "TimeInHeartRateZone", "ActiveMinutes", "StartTime", "EndTime" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DailyRollupDataPoint), global::Google.DevicesAndServices.Health.V4.DailyRollupDataPoint.Parser, new[]{ "Steps", "Floors", "HeartRate", "RestingHeartRatePersonalRange", "HeartRateVariabilityPersonalRange", "Weight", "Altitude", "Distance", "BodyFat", "TotalCalories", "ActiveZoneMinutes", "SedentaryPeriod", "RunVo2Max", "CaloriesInHeartRateZone", "ActivityLevel", "HydrationLog", "TimeInHeartRateZone", "ActiveMinutes", "CivilStartTime", "CivilEndTime" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ListDataPointsRequest), global::Google.DevicesAndServices.Health.V4.ListDataPointsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ListDataPointsResponse), global::Google.DevicesAndServices.Health.V4.ListDataPointsResponse.Parser, new[]{ "DataPoints", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.CreateDataPointRequest), global::Google.DevicesAndServices.Health.V4.CreateDataPointRequest.Parser, new[]{ "Parent", "DataPoint" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.CreateDataPointOperationMetadata), global::Google.DevicesAndServices.Health.V4.CreateDataPointOperationMetadata.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.UpdateDataPointRequest), global::Google.DevicesAndServices.Health.V4.UpdateDataPointRequest.Parser, new[]{ "DataPoint" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.UpdateDataPointOperationMetadata), global::Google.DevicesAndServices.Health.V4.UpdateDataPointOperationMetadata.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.BatchDeleteDataPointsRequest), global::Google.DevicesAndServices.Health.V4.BatchDeleteDataPointsRequest.Parser, new[]{ "Parent", "Names" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.BatchDeleteDataPointsResponse), global::Google.DevicesAndServices.Health.V4.BatchDeleteDataPointsResponse.Parser, new[]{ "DataPoints" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.BatchDeleteDataPointsOperationMetadata), global::Google.DevicesAndServices.Health.V4.BatchDeleteDataPointsOperationMetadata.Parser, new[]{ "FailedRequests" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ReconcileDataPointsRequest), global::Google.DevicesAndServices.Health.V4.ReconcileDataPointsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter", "DataSourceFamily" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ReconcileDataPointsResponse), global::Google.DevicesAndServices.Health.V4.ReconcileDataPointsResponse.Parser, new[]{ "DataPoints", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.RollUpDataPointsRequest), global::Google.DevicesAndServices.Health.V4.RollUpDataPointsRequest.Parser, new[]{ "Parent", "Range", "WindowSize", "PageSize", "PageToken", "DataSourceFamily" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.RollUpDataPointsResponse), global::Google.DevicesAndServices.Health.V4.RollUpDataPointsResponse.Parser, new[]{ "RollupDataPoints", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsRequest), global::Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsRequest.Parser, new[]{ "Parent", "Range", "WindowSizeDays", "PageSize", "PageToken", "DataSourceFamily" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsResponse), global::Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsResponse.Parser, new[]{ "RollupDataPoints" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DataType), global::Google.DevicesAndServices.Health.V4.DataType.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ExportExerciseTcxRequest), global::Google.DevicesAndServices.Health.V4.ExportExerciseTcxRequest.Parser, new[]{ "Name", "PartialData" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.ExportExerciseTcxResponse), global::Google.DevicesAndServices.Health.V4.ExportExerciseTcxResponse.Parser, new[]{ "TcxData" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// A computed or recorded metric. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DataPoint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataPoint()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataPoint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataPoint(DataPoint other) : this() { + name_ = other.name_; + dataSource_ = other.dataSource_ != null ? other.dataSource_.Clone() : null; + switch (other.DataCase) { + case DataOneofCase.Steps: + Steps = other.Steps.Clone(); + break; + case DataOneofCase.Floors: + Floors = other.Floors.Clone(); + break; + case DataOneofCase.HeartRate: + HeartRate = other.HeartRate.Clone(); + break; + case DataOneofCase.Sleep: + Sleep = other.Sleep.Clone(); + break; + case DataOneofCase.DailyRestingHeartRate: + DailyRestingHeartRate = other.DailyRestingHeartRate.Clone(); + break; + case DataOneofCase.DailyHeartRateVariability: + DailyHeartRateVariability = other.DailyHeartRateVariability.Clone(); + break; + case DataOneofCase.Exercise: + Exercise = other.Exercise.Clone(); + break; + case DataOneofCase.Weight: + Weight = other.Weight.Clone(); + break; + case DataOneofCase.Altitude: + Altitude = other.Altitude.Clone(); + break; + case DataOneofCase.Distance: + Distance = other.Distance.Clone(); + break; + case DataOneofCase.BodyFat: + BodyFat = other.BodyFat.Clone(); + break; + case DataOneofCase.ActiveZoneMinutes: + ActiveZoneMinutes = other.ActiveZoneMinutes.Clone(); + break; + case DataOneofCase.HeartRateVariability: + HeartRateVariability = other.HeartRateVariability.Clone(); + break; + case DataOneofCase.DailySleepTemperatureDerivations: + DailySleepTemperatureDerivations = other.DailySleepTemperatureDerivations.Clone(); + break; + case DataOneofCase.SedentaryPeriod: + SedentaryPeriod = other.SedentaryPeriod.Clone(); + break; + case DataOneofCase.RunVo2Max: + RunVo2Max = other.RunVo2Max.Clone(); + break; + case DataOneofCase.OxygenSaturation: + OxygenSaturation = other.OxygenSaturation.Clone(); + break; + case DataOneofCase.DailyOxygenSaturation: + DailyOxygenSaturation = other.DailyOxygenSaturation.Clone(); + break; + case DataOneofCase.ActivityLevel: + ActivityLevel = other.ActivityLevel.Clone(); + break; + case DataOneofCase.Vo2Max: + Vo2Max = other.Vo2Max.Clone(); + break; + case DataOneofCase.DailyVo2Max: + DailyVo2Max = other.DailyVo2Max.Clone(); + break; + case DataOneofCase.DailyHeartRateZones: + DailyHeartRateZones = other.DailyHeartRateZones.Clone(); + break; + case DataOneofCase.HydrationLog: + HydrationLog = other.HydrationLog.Clone(); + break; + case DataOneofCase.TimeInHeartRateZone: + TimeInHeartRateZone = other.TimeInHeartRateZone.Clone(); + break; + case DataOneofCase.ActiveMinutes: + ActiveMinutes = other.ActiveMinutes.Clone(); + break; + case DataOneofCase.RespiratoryRateSleepSummary: + RespiratoryRateSleepSummary = other.RespiratoryRateSleepSummary.Clone(); + break; + case DataOneofCase.DailyRespiratoryRate: + DailyRespiratoryRate = other.DailyRespiratoryRate.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataPoint Clone() { + return new DataPoint(this); + } + + /// Field number for the "steps" field. + public const int StepsFieldNumber = 4; + /// + /// Optional. Data for points in the `steps` interval data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Steps Steps { + get { return dataCase_ == DataOneofCase.Steps ? (global::Google.DevicesAndServices.Health.V4.Steps) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Steps; + } + } + + /// Field number for the "floors" field. + public const int FloorsFieldNumber = 5; + /// + /// Optional. Data for points in the `floors` interval data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Floors Floors { + get { return dataCase_ == DataOneofCase.Floors ? (global::Google.DevicesAndServices.Health.V4.Floors) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Floors; + } + } + + /// Field number for the "heart_rate" field. + public const int HeartRateFieldNumber = 6; + /// + /// Optional. Data for points in the `heart-rate` sample data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HeartRate HeartRate { + get { return dataCase_ == DataOneofCase.HeartRate ? (global::Google.DevicesAndServices.Health.V4.HeartRate) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.HeartRate; + } + } + + /// Field number for the "sleep" field. + public const int SleepFieldNumber = 8; + /// + /// Optional. Data for points in the `sleep` session data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Sleep Sleep { + get { return dataCase_ == DataOneofCase.Sleep ? (global::Google.DevicesAndServices.Health.V4.Sleep) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Sleep; + } + } + + /// Field number for the "daily_resting_heart_rate" field. + public const int DailyRestingHeartRateFieldNumber = 9; + /// + /// Optional. Data for points in the `daily-resting-heart-rate` daily data + /// type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate DailyRestingHeartRate { + get { return dataCase_ == DataOneofCase.DailyRestingHeartRate ? (global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.DailyRestingHeartRate; + } + } + + /// Field number for the "daily_heart_rate_variability" field. + public const int DailyHeartRateVariabilityFieldNumber = 10; + /// + /// Optional. Data for points in the `daily-heart-rate-variability` daily + /// data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability DailyHeartRateVariability { + get { return dataCase_ == DataOneofCase.DailyHeartRateVariability ? (global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.DailyHeartRateVariability; + } + } + + /// Field number for the "exercise" field. + public const int ExerciseFieldNumber = 11; + /// + /// Optional. Data for points in the `exercise` session data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Exercise Exercise { + get { return dataCase_ == DataOneofCase.Exercise ? (global::Google.DevicesAndServices.Health.V4.Exercise) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Exercise; + } + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 12; + /// + /// Optional. Data for points in the `weight` sample data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Weight Weight { + get { return dataCase_ == DataOneofCase.Weight ? (global::Google.DevicesAndServices.Health.V4.Weight) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Weight; + } + } + + /// Field number for the "altitude" field. + public const int AltitudeFieldNumber = 13; + /// + /// Optional. Data for points in the `altitude` interval data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Altitude Altitude { + get { return dataCase_ == DataOneofCase.Altitude ? (global::Google.DevicesAndServices.Health.V4.Altitude) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Altitude; + } + } + + /// Field number for the "distance" field. + public const int DistanceFieldNumber = 14; + /// + /// Optional. Data for points in the `distance` interval data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Distance Distance { + get { return dataCase_ == DataOneofCase.Distance ? (global::Google.DevicesAndServices.Health.V4.Distance) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Distance; + } + } + + /// Field number for the "body_fat" field. + public const int BodyFatFieldNumber = 15; + /// + /// Optional. Data for points in the `body-fat` sample data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.BodyFat BodyFat { + get { return dataCase_ == DataOneofCase.BodyFat ? (global::Google.DevicesAndServices.Health.V4.BodyFat) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.BodyFat; + } + } + + /// Field number for the "active_zone_minutes" field. + public const int ActiveZoneMinutesFieldNumber = 17; + /// + /// Optional. Data for points in the `active-zone-minutes` interval data type + /// collection, measured in minutes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes ActiveZoneMinutes { + get { return dataCase_ == DataOneofCase.ActiveZoneMinutes ? (global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.ActiveZoneMinutes; + } + } + + /// Field number for the "heart_rate_variability" field. + public const int HeartRateVariabilityFieldNumber = 19; + /// + /// Optional. Data for points in the `heart-rate-variability` sample data + /// type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HeartRateVariability HeartRateVariability { + get { return dataCase_ == DataOneofCase.HeartRateVariability ? (global::Google.DevicesAndServices.Health.V4.HeartRateVariability) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.HeartRateVariability; + } + } + + /// Field number for the "daily_sleep_temperature_derivations" field. + public const int DailySleepTemperatureDerivationsFieldNumber = 20; + /// + /// Optional. Data for points in the `daily-sleep-temperature-derivations` + /// daily data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations DailySleepTemperatureDerivations { + get { return dataCase_ == DataOneofCase.DailySleepTemperatureDerivations ? (global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.DailySleepTemperatureDerivations; + } + } + + /// Field number for the "sedentary_period" field. + public const int SedentaryPeriodFieldNumber = 21; + /// + /// Optional. Data for points in the `sedentary-period` interval data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.SedentaryPeriod SedentaryPeriod { + get { return dataCase_ == DataOneofCase.SedentaryPeriod ? (global::Google.DevicesAndServices.Health.V4.SedentaryPeriod) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.SedentaryPeriod; + } + } + + /// Field number for the "run_vo2_max" field. + public const int RunVo2MaxFieldNumber = 22; + /// + /// Optional. Data for points in the `run-vo2-max` sample data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.RunVO2Max RunVo2Max { + get { return dataCase_ == DataOneofCase.RunVo2Max ? (global::Google.DevicesAndServices.Health.V4.RunVO2Max) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.RunVo2Max; + } + } + + /// Field number for the "oxygen_saturation" field. + public const int OxygenSaturationFieldNumber = 24; + /// + /// Optional. Data for points in the `oxygen-saturation` sample data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.OxygenSaturation OxygenSaturation { + get { return dataCase_ == DataOneofCase.OxygenSaturation ? (global::Google.DevicesAndServices.Health.V4.OxygenSaturation) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.OxygenSaturation; + } + } + + /// Field number for the "daily_oxygen_saturation" field. + public const int DailyOxygenSaturationFieldNumber = 25; + /// + /// Optional. Data for points in the `daily-oxygen-saturation` daily data + /// type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation DailyOxygenSaturation { + get { return dataCase_ == DataOneofCase.DailyOxygenSaturation ? (global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.DailyOxygenSaturation; + } + } + + /// Field number for the "activity_level" field. + public const int ActivityLevelFieldNumber = 26; + /// + /// Optional. Data for points in the `activity-level` daily data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActivityLevel ActivityLevel { + get { return dataCase_ == DataOneofCase.ActivityLevel ? (global::Google.DevicesAndServices.Health.V4.ActivityLevel) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.ActivityLevel; + } + } + + /// Field number for the "vo2_max" field. + public const int Vo2MaxFieldNumber = 27; + /// + /// Optional. Data for points in the `vo2-max` sample data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.VO2Max Vo2Max { + get { return dataCase_ == DataOneofCase.Vo2Max ? (global::Google.DevicesAndServices.Health.V4.VO2Max) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Vo2Max; + } + } + + /// Field number for the "daily_vo2_max" field. + public const int DailyVo2MaxFieldNumber = 28; + /// + /// Optional. Data for points in the `daily-vo2-max` daily data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailyVO2Max DailyVo2Max { + get { return dataCase_ == DataOneofCase.DailyVo2Max ? (global::Google.DevicesAndServices.Health.V4.DailyVO2Max) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.DailyVo2Max; + } + } + + /// Field number for the "daily_heart_rate_zones" field. + public const int DailyHeartRateZonesFieldNumber = 32; + /// + /// Optional. Data for points in the `daily-heart-rate-zones` daily data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones DailyHeartRateZones { + get { return dataCase_ == DataOneofCase.DailyHeartRateZones ? (global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.DailyHeartRateZones; + } + } + + /// Field number for the "hydration_log" field. + public const int HydrationLogFieldNumber = 33; + /// + /// Optional. Data for points in the `hydration-log` session data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HydrationLog HydrationLog { + get { return dataCase_ == DataOneofCase.HydrationLog ? (global::Google.DevicesAndServices.Health.V4.HydrationLog) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.HydrationLog; + } + } + + /// Field number for the "time_in_heart_rate_zone" field. + public const int TimeInHeartRateZoneFieldNumber = 35; + /// + /// Optional. Data for points in the `time-in-heart-rate-zone` interval data + /// type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone TimeInHeartRateZone { + get { return dataCase_ == DataOneofCase.TimeInHeartRateZone ? (global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.TimeInHeartRateZone; + } + } + + /// Field number for the "active_minutes" field. + public const int ActiveMinutesFieldNumber = 36; + /// + /// Optional. Data for points in the `active-minutes` interval data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActiveMinutes ActiveMinutes { + get { return dataCase_ == DataOneofCase.ActiveMinutes ? (global::Google.DevicesAndServices.Health.V4.ActiveMinutes) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.ActiveMinutes; + } + } + + /// Field number for the "respiratory_rate_sleep_summary" field. + public const int RespiratoryRateSleepSummaryFieldNumber = 37; + /// + /// Optional. Data for points in the `respiratory-rate-sleep-summary` sample + /// data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary RespiratoryRateSleepSummary { + get { return dataCase_ == DataOneofCase.RespiratoryRateSleepSummary ? (global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.RespiratoryRateSleepSummary; + } + } + + /// Field number for the "daily_respiratory_rate" field. + public const int DailyRespiratoryRateFieldNumber = 38; + /// + /// Optional. Data for points in the `daily-respiratory-rate` daily data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate DailyRespiratoryRate { + get { return dataCase_ == DataOneofCase.DailyRespiratoryRate ? (global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.DailyRespiratoryRate; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Identifier. Data point name, only supported for the subset of identifiable + /// data types. For the majority of the data types, individual data points do + /// not need to be identified and this field would be empty. + /// + /// Format: `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` + /// + /// Example: + /// `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` + /// + /// The `{user}` ID is a system-generated identifier, as described in + /// [Profile.encoded_id][google.devicesandservices.health.v4.Profile.encoded_id]. + /// + /// The `{data_type}` ID corresponds to the kebab-case version of the field + /// names in the [DataPoint + /// data][google.devicesandservices.health.v4.DataPoint] union + /// field, e.g. `total-calories` for the `total_calories` field. + /// + /// The `{data_point}` ID can be client-provided or system-generated. + /// If client-provided, it must be a string of 4-63 characters, + /// containing only lowercase letters, numbers, and hyphens. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "data_source" field. + public const int DataSourceFieldNumber = 3; + private global::Google.DevicesAndServices.Health.V4.DataSource dataSource_; + /// + /// Optional. Data source information for the metric + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DataSource DataSource { + get { return dataSource_; } + set { + dataSource_ = value; + } + } + + private object data_; + /// Enum of possible cases for the "data" oneof. + public enum DataOneofCase { + None = 0, + Steps = 4, + Floors = 5, + HeartRate = 6, + Sleep = 8, + DailyRestingHeartRate = 9, + DailyHeartRateVariability = 10, + Exercise = 11, + Weight = 12, + Altitude = 13, + Distance = 14, + BodyFat = 15, + ActiveZoneMinutes = 17, + HeartRateVariability = 19, + DailySleepTemperatureDerivations = 20, + SedentaryPeriod = 21, + RunVo2Max = 22, + OxygenSaturation = 24, + DailyOxygenSaturation = 25, + ActivityLevel = 26, + Vo2Max = 27, + DailyVo2Max = 28, + DailyHeartRateZones = 32, + HydrationLog = 33, + TimeInHeartRateZone = 35, + ActiveMinutes = 36, + RespiratoryRateSleepSummary = 37, + DailyRespiratoryRate = 38, + } + private DataOneofCase dataCase_ = DataOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataOneofCase DataCase { + get { return dataCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearData() { + dataCase_ = DataOneofCase.None; + data_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DataPoint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DataPoint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Steps, other.Steps)) return false; + if (!object.Equals(Floors, other.Floors)) return false; + if (!object.Equals(HeartRate, other.HeartRate)) return false; + if (!object.Equals(Sleep, other.Sleep)) return false; + if (!object.Equals(DailyRestingHeartRate, other.DailyRestingHeartRate)) return false; + if (!object.Equals(DailyHeartRateVariability, other.DailyHeartRateVariability)) return false; + if (!object.Equals(Exercise, other.Exercise)) return false; + if (!object.Equals(Weight, other.Weight)) return false; + if (!object.Equals(Altitude, other.Altitude)) return false; + if (!object.Equals(Distance, other.Distance)) return false; + if (!object.Equals(BodyFat, other.BodyFat)) return false; + if (!object.Equals(ActiveZoneMinutes, other.ActiveZoneMinutes)) return false; + if (!object.Equals(HeartRateVariability, other.HeartRateVariability)) return false; + if (!object.Equals(DailySleepTemperatureDerivations, other.DailySleepTemperatureDerivations)) return false; + if (!object.Equals(SedentaryPeriod, other.SedentaryPeriod)) return false; + if (!object.Equals(RunVo2Max, other.RunVo2Max)) return false; + if (!object.Equals(OxygenSaturation, other.OxygenSaturation)) return false; + if (!object.Equals(DailyOxygenSaturation, other.DailyOxygenSaturation)) return false; + if (!object.Equals(ActivityLevel, other.ActivityLevel)) return false; + if (!object.Equals(Vo2Max, other.Vo2Max)) return false; + if (!object.Equals(DailyVo2Max, other.DailyVo2Max)) return false; + if (!object.Equals(DailyHeartRateZones, other.DailyHeartRateZones)) return false; + if (!object.Equals(HydrationLog, other.HydrationLog)) return false; + if (!object.Equals(TimeInHeartRateZone, other.TimeInHeartRateZone)) return false; + if (!object.Equals(ActiveMinutes, other.ActiveMinutes)) return false; + if (!object.Equals(RespiratoryRateSleepSummary, other.RespiratoryRateSleepSummary)) return false; + if (!object.Equals(DailyRespiratoryRate, other.DailyRespiratoryRate)) return false; + if (Name != other.Name) return false; + if (!object.Equals(DataSource, other.DataSource)) return false; + if (DataCase != other.DataCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (dataCase_ == DataOneofCase.Steps) hash ^= Steps.GetHashCode(); + if (dataCase_ == DataOneofCase.Floors) hash ^= Floors.GetHashCode(); + if (dataCase_ == DataOneofCase.HeartRate) hash ^= HeartRate.GetHashCode(); + if (dataCase_ == DataOneofCase.Sleep) hash ^= Sleep.GetHashCode(); + if (dataCase_ == DataOneofCase.DailyRestingHeartRate) hash ^= DailyRestingHeartRate.GetHashCode(); + if (dataCase_ == DataOneofCase.DailyHeartRateVariability) hash ^= DailyHeartRateVariability.GetHashCode(); + if (dataCase_ == DataOneofCase.Exercise) hash ^= Exercise.GetHashCode(); + if (dataCase_ == DataOneofCase.Weight) hash ^= Weight.GetHashCode(); + if (dataCase_ == DataOneofCase.Altitude) hash ^= Altitude.GetHashCode(); + if (dataCase_ == DataOneofCase.Distance) hash ^= Distance.GetHashCode(); + if (dataCase_ == DataOneofCase.BodyFat) hash ^= BodyFat.GetHashCode(); + if (dataCase_ == DataOneofCase.ActiveZoneMinutes) hash ^= ActiveZoneMinutes.GetHashCode(); + if (dataCase_ == DataOneofCase.HeartRateVariability) hash ^= HeartRateVariability.GetHashCode(); + if (dataCase_ == DataOneofCase.DailySleepTemperatureDerivations) hash ^= DailySleepTemperatureDerivations.GetHashCode(); + if (dataCase_ == DataOneofCase.SedentaryPeriod) hash ^= SedentaryPeriod.GetHashCode(); + if (dataCase_ == DataOneofCase.RunVo2Max) hash ^= RunVo2Max.GetHashCode(); + if (dataCase_ == DataOneofCase.OxygenSaturation) hash ^= OxygenSaturation.GetHashCode(); + if (dataCase_ == DataOneofCase.DailyOxygenSaturation) hash ^= DailyOxygenSaturation.GetHashCode(); + if (dataCase_ == DataOneofCase.ActivityLevel) hash ^= ActivityLevel.GetHashCode(); + if (dataCase_ == DataOneofCase.Vo2Max) hash ^= Vo2Max.GetHashCode(); + if (dataCase_ == DataOneofCase.DailyVo2Max) hash ^= DailyVo2Max.GetHashCode(); + if (dataCase_ == DataOneofCase.DailyHeartRateZones) hash ^= DailyHeartRateZones.GetHashCode(); + if (dataCase_ == DataOneofCase.HydrationLog) hash ^= HydrationLog.GetHashCode(); + if (dataCase_ == DataOneofCase.TimeInHeartRateZone) hash ^= TimeInHeartRateZone.GetHashCode(); + if (dataCase_ == DataOneofCase.ActiveMinutes) hash ^= ActiveMinutes.GetHashCode(); + if (dataCase_ == DataOneofCase.RespiratoryRateSleepSummary) hash ^= RespiratoryRateSleepSummary.GetHashCode(); + if (dataCase_ == DataOneofCase.DailyRespiratoryRate) hash ^= DailyRespiratoryRate.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (dataSource_ != null) hash ^= DataSource.GetHashCode(); + hash ^= (int) dataCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (dataSource_ != null) { + output.WriteRawTag(26); + output.WriteMessage(DataSource); + } + if (dataCase_ == DataOneofCase.Steps) { + output.WriteRawTag(34); + output.WriteMessage(Steps); + } + if (dataCase_ == DataOneofCase.Floors) { + output.WriteRawTag(42); + output.WriteMessage(Floors); + } + if (dataCase_ == DataOneofCase.HeartRate) { + output.WriteRawTag(50); + output.WriteMessage(HeartRate); + } + if (dataCase_ == DataOneofCase.Sleep) { + output.WriteRawTag(66); + output.WriteMessage(Sleep); + } + if (dataCase_ == DataOneofCase.DailyRestingHeartRate) { + output.WriteRawTag(74); + output.WriteMessage(DailyRestingHeartRate); + } + if (dataCase_ == DataOneofCase.DailyHeartRateVariability) { + output.WriteRawTag(82); + output.WriteMessage(DailyHeartRateVariability); + } + if (dataCase_ == DataOneofCase.Exercise) { + output.WriteRawTag(90); + output.WriteMessage(Exercise); + } + if (dataCase_ == DataOneofCase.Weight) { + output.WriteRawTag(98); + output.WriteMessage(Weight); + } + if (dataCase_ == DataOneofCase.Altitude) { + output.WriteRawTag(106); + output.WriteMessage(Altitude); + } + if (dataCase_ == DataOneofCase.Distance) { + output.WriteRawTag(114); + output.WriteMessage(Distance); + } + if (dataCase_ == DataOneofCase.BodyFat) { + output.WriteRawTag(122); + output.WriteMessage(BodyFat); + } + if (dataCase_ == DataOneofCase.ActiveZoneMinutes) { + output.WriteRawTag(138, 1); + output.WriteMessage(ActiveZoneMinutes); + } + if (dataCase_ == DataOneofCase.HeartRateVariability) { + output.WriteRawTag(154, 1); + output.WriteMessage(HeartRateVariability); + } + if (dataCase_ == DataOneofCase.DailySleepTemperatureDerivations) { + output.WriteRawTag(162, 1); + output.WriteMessage(DailySleepTemperatureDerivations); + } + if (dataCase_ == DataOneofCase.SedentaryPeriod) { + output.WriteRawTag(170, 1); + output.WriteMessage(SedentaryPeriod); + } + if (dataCase_ == DataOneofCase.RunVo2Max) { + output.WriteRawTag(178, 1); + output.WriteMessage(RunVo2Max); + } + if (dataCase_ == DataOneofCase.OxygenSaturation) { + output.WriteRawTag(194, 1); + output.WriteMessage(OxygenSaturation); + } + if (dataCase_ == DataOneofCase.DailyOxygenSaturation) { + output.WriteRawTag(202, 1); + output.WriteMessage(DailyOxygenSaturation); + } + if (dataCase_ == DataOneofCase.ActivityLevel) { + output.WriteRawTag(210, 1); + output.WriteMessage(ActivityLevel); + } + if (dataCase_ == DataOneofCase.Vo2Max) { + output.WriteRawTag(218, 1); + output.WriteMessage(Vo2Max); + } + if (dataCase_ == DataOneofCase.DailyVo2Max) { + output.WriteRawTag(226, 1); + output.WriteMessage(DailyVo2Max); + } + if (dataCase_ == DataOneofCase.DailyHeartRateZones) { + output.WriteRawTag(130, 2); + output.WriteMessage(DailyHeartRateZones); + } + if (dataCase_ == DataOneofCase.HydrationLog) { + output.WriteRawTag(138, 2); + output.WriteMessage(HydrationLog); + } + if (dataCase_ == DataOneofCase.TimeInHeartRateZone) { + output.WriteRawTag(154, 2); + output.WriteMessage(TimeInHeartRateZone); + } + if (dataCase_ == DataOneofCase.ActiveMinutes) { + output.WriteRawTag(162, 2); + output.WriteMessage(ActiveMinutes); + } + if (dataCase_ == DataOneofCase.RespiratoryRateSleepSummary) { + output.WriteRawTag(170, 2); + output.WriteMessage(RespiratoryRateSleepSummary); + } + if (dataCase_ == DataOneofCase.DailyRespiratoryRate) { + output.WriteRawTag(178, 2); + output.WriteMessage(DailyRespiratoryRate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (dataSource_ != null) { + output.WriteRawTag(26); + output.WriteMessage(DataSource); + } + if (dataCase_ == DataOneofCase.Steps) { + output.WriteRawTag(34); + output.WriteMessage(Steps); + } + if (dataCase_ == DataOneofCase.Floors) { + output.WriteRawTag(42); + output.WriteMessage(Floors); + } + if (dataCase_ == DataOneofCase.HeartRate) { + output.WriteRawTag(50); + output.WriteMessage(HeartRate); + } + if (dataCase_ == DataOneofCase.Sleep) { + output.WriteRawTag(66); + output.WriteMessage(Sleep); + } + if (dataCase_ == DataOneofCase.DailyRestingHeartRate) { + output.WriteRawTag(74); + output.WriteMessage(DailyRestingHeartRate); + } + if (dataCase_ == DataOneofCase.DailyHeartRateVariability) { + output.WriteRawTag(82); + output.WriteMessage(DailyHeartRateVariability); + } + if (dataCase_ == DataOneofCase.Exercise) { + output.WriteRawTag(90); + output.WriteMessage(Exercise); + } + if (dataCase_ == DataOneofCase.Weight) { + output.WriteRawTag(98); + output.WriteMessage(Weight); + } + if (dataCase_ == DataOneofCase.Altitude) { + output.WriteRawTag(106); + output.WriteMessage(Altitude); + } + if (dataCase_ == DataOneofCase.Distance) { + output.WriteRawTag(114); + output.WriteMessage(Distance); + } + if (dataCase_ == DataOneofCase.BodyFat) { + output.WriteRawTag(122); + output.WriteMessage(BodyFat); + } + if (dataCase_ == DataOneofCase.ActiveZoneMinutes) { + output.WriteRawTag(138, 1); + output.WriteMessage(ActiveZoneMinutes); + } + if (dataCase_ == DataOneofCase.HeartRateVariability) { + output.WriteRawTag(154, 1); + output.WriteMessage(HeartRateVariability); + } + if (dataCase_ == DataOneofCase.DailySleepTemperatureDerivations) { + output.WriteRawTag(162, 1); + output.WriteMessage(DailySleepTemperatureDerivations); + } + if (dataCase_ == DataOneofCase.SedentaryPeriod) { + output.WriteRawTag(170, 1); + output.WriteMessage(SedentaryPeriod); + } + if (dataCase_ == DataOneofCase.RunVo2Max) { + output.WriteRawTag(178, 1); + output.WriteMessage(RunVo2Max); + } + if (dataCase_ == DataOneofCase.OxygenSaturation) { + output.WriteRawTag(194, 1); + output.WriteMessage(OxygenSaturation); + } + if (dataCase_ == DataOneofCase.DailyOxygenSaturation) { + output.WriteRawTag(202, 1); + output.WriteMessage(DailyOxygenSaturation); + } + if (dataCase_ == DataOneofCase.ActivityLevel) { + output.WriteRawTag(210, 1); + output.WriteMessage(ActivityLevel); + } + if (dataCase_ == DataOneofCase.Vo2Max) { + output.WriteRawTag(218, 1); + output.WriteMessage(Vo2Max); + } + if (dataCase_ == DataOneofCase.DailyVo2Max) { + output.WriteRawTag(226, 1); + output.WriteMessage(DailyVo2Max); + } + if (dataCase_ == DataOneofCase.DailyHeartRateZones) { + output.WriteRawTag(130, 2); + output.WriteMessage(DailyHeartRateZones); + } + if (dataCase_ == DataOneofCase.HydrationLog) { + output.WriteRawTag(138, 2); + output.WriteMessage(HydrationLog); + } + if (dataCase_ == DataOneofCase.TimeInHeartRateZone) { + output.WriteRawTag(154, 2); + output.WriteMessage(TimeInHeartRateZone); + } + if (dataCase_ == DataOneofCase.ActiveMinutes) { + output.WriteRawTag(162, 2); + output.WriteMessage(ActiveMinutes); + } + if (dataCase_ == DataOneofCase.RespiratoryRateSleepSummary) { + output.WriteRawTag(170, 2); + output.WriteMessage(RespiratoryRateSleepSummary); + } + if (dataCase_ == DataOneofCase.DailyRespiratoryRate) { + output.WriteRawTag(178, 2); + output.WriteMessage(DailyRespiratoryRate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (dataCase_ == DataOneofCase.Steps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Steps); + } + if (dataCase_ == DataOneofCase.Floors) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Floors); + } + if (dataCase_ == DataOneofCase.HeartRate) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HeartRate); + } + if (dataCase_ == DataOneofCase.Sleep) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sleep); + } + if (dataCase_ == DataOneofCase.DailyRestingHeartRate) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DailyRestingHeartRate); + } + if (dataCase_ == DataOneofCase.DailyHeartRateVariability) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DailyHeartRateVariability); + } + if (dataCase_ == DataOneofCase.Exercise) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Exercise); + } + if (dataCase_ == DataOneofCase.Weight) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Weight); + } + if (dataCase_ == DataOneofCase.Altitude) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Altitude); + } + if (dataCase_ == DataOneofCase.Distance) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Distance); + } + if (dataCase_ == DataOneofCase.BodyFat) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BodyFat); + } + if (dataCase_ == DataOneofCase.ActiveZoneMinutes) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ActiveZoneMinutes); + } + if (dataCase_ == DataOneofCase.HeartRateVariability) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(HeartRateVariability); + } + if (dataCase_ == DataOneofCase.DailySleepTemperatureDerivations) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DailySleepTemperatureDerivations); + } + if (dataCase_ == DataOneofCase.SedentaryPeriod) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SedentaryPeriod); + } + if (dataCase_ == DataOneofCase.RunVo2Max) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RunVo2Max); + } + if (dataCase_ == DataOneofCase.OxygenSaturation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(OxygenSaturation); + } + if (dataCase_ == DataOneofCase.DailyOxygenSaturation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DailyOxygenSaturation); + } + if (dataCase_ == DataOneofCase.ActivityLevel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ActivityLevel); + } + if (dataCase_ == DataOneofCase.Vo2Max) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Vo2Max); + } + if (dataCase_ == DataOneofCase.DailyVo2Max) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DailyVo2Max); + } + if (dataCase_ == DataOneofCase.DailyHeartRateZones) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DailyHeartRateZones); + } + if (dataCase_ == DataOneofCase.HydrationLog) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(HydrationLog); + } + if (dataCase_ == DataOneofCase.TimeInHeartRateZone) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(TimeInHeartRateZone); + } + if (dataCase_ == DataOneofCase.ActiveMinutes) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ActiveMinutes); + } + if (dataCase_ == DataOneofCase.RespiratoryRateSleepSummary) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RespiratoryRateSleepSummary); + } + if (dataCase_ == DataOneofCase.DailyRespiratoryRate) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DailyRespiratoryRate); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (dataSource_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DataSource); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DataPoint other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.dataSource_ != null) { + if (dataSource_ == null) { + DataSource = new global::Google.DevicesAndServices.Health.V4.DataSource(); + } + DataSource.MergeFrom(other.DataSource); + } + switch (other.DataCase) { + case DataOneofCase.Steps: + if (Steps == null) { + Steps = new global::Google.DevicesAndServices.Health.V4.Steps(); + } + Steps.MergeFrom(other.Steps); + break; + case DataOneofCase.Floors: + if (Floors == null) { + Floors = new global::Google.DevicesAndServices.Health.V4.Floors(); + } + Floors.MergeFrom(other.Floors); + break; + case DataOneofCase.HeartRate: + if (HeartRate == null) { + HeartRate = new global::Google.DevicesAndServices.Health.V4.HeartRate(); + } + HeartRate.MergeFrom(other.HeartRate); + break; + case DataOneofCase.Sleep: + if (Sleep == null) { + Sleep = new global::Google.DevicesAndServices.Health.V4.Sleep(); + } + Sleep.MergeFrom(other.Sleep); + break; + case DataOneofCase.DailyRestingHeartRate: + if (DailyRestingHeartRate == null) { + DailyRestingHeartRate = new global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate(); + } + DailyRestingHeartRate.MergeFrom(other.DailyRestingHeartRate); + break; + case DataOneofCase.DailyHeartRateVariability: + if (DailyHeartRateVariability == null) { + DailyHeartRateVariability = new global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability(); + } + DailyHeartRateVariability.MergeFrom(other.DailyHeartRateVariability); + break; + case DataOneofCase.Exercise: + if (Exercise == null) { + Exercise = new global::Google.DevicesAndServices.Health.V4.Exercise(); + } + Exercise.MergeFrom(other.Exercise); + break; + case DataOneofCase.Weight: + if (Weight == null) { + Weight = new global::Google.DevicesAndServices.Health.V4.Weight(); + } + Weight.MergeFrom(other.Weight); + break; + case DataOneofCase.Altitude: + if (Altitude == null) { + Altitude = new global::Google.DevicesAndServices.Health.V4.Altitude(); + } + Altitude.MergeFrom(other.Altitude); + break; + case DataOneofCase.Distance: + if (Distance == null) { + Distance = new global::Google.DevicesAndServices.Health.V4.Distance(); + } + Distance.MergeFrom(other.Distance); + break; + case DataOneofCase.BodyFat: + if (BodyFat == null) { + BodyFat = new global::Google.DevicesAndServices.Health.V4.BodyFat(); + } + BodyFat.MergeFrom(other.BodyFat); + break; + case DataOneofCase.ActiveZoneMinutes: + if (ActiveZoneMinutes == null) { + ActiveZoneMinutes = new global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes(); + } + ActiveZoneMinutes.MergeFrom(other.ActiveZoneMinutes); + break; + case DataOneofCase.HeartRateVariability: + if (HeartRateVariability == null) { + HeartRateVariability = new global::Google.DevicesAndServices.Health.V4.HeartRateVariability(); + } + HeartRateVariability.MergeFrom(other.HeartRateVariability); + break; + case DataOneofCase.DailySleepTemperatureDerivations: + if (DailySleepTemperatureDerivations == null) { + DailySleepTemperatureDerivations = new global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations(); + } + DailySleepTemperatureDerivations.MergeFrom(other.DailySleepTemperatureDerivations); + break; + case DataOneofCase.SedentaryPeriod: + if (SedentaryPeriod == null) { + SedentaryPeriod = new global::Google.DevicesAndServices.Health.V4.SedentaryPeriod(); + } + SedentaryPeriod.MergeFrom(other.SedentaryPeriod); + break; + case DataOneofCase.RunVo2Max: + if (RunVo2Max == null) { + RunVo2Max = new global::Google.DevicesAndServices.Health.V4.RunVO2Max(); + } + RunVo2Max.MergeFrom(other.RunVo2Max); + break; + case DataOneofCase.OxygenSaturation: + if (OxygenSaturation == null) { + OxygenSaturation = new global::Google.DevicesAndServices.Health.V4.OxygenSaturation(); + } + OxygenSaturation.MergeFrom(other.OxygenSaturation); + break; + case DataOneofCase.DailyOxygenSaturation: + if (DailyOxygenSaturation == null) { + DailyOxygenSaturation = new global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation(); + } + DailyOxygenSaturation.MergeFrom(other.DailyOxygenSaturation); + break; + case DataOneofCase.ActivityLevel: + if (ActivityLevel == null) { + ActivityLevel = new global::Google.DevicesAndServices.Health.V4.ActivityLevel(); + } + ActivityLevel.MergeFrom(other.ActivityLevel); + break; + case DataOneofCase.Vo2Max: + if (Vo2Max == null) { + Vo2Max = new global::Google.DevicesAndServices.Health.V4.VO2Max(); + } + Vo2Max.MergeFrom(other.Vo2Max); + break; + case DataOneofCase.DailyVo2Max: + if (DailyVo2Max == null) { + DailyVo2Max = new global::Google.DevicesAndServices.Health.V4.DailyVO2Max(); + } + DailyVo2Max.MergeFrom(other.DailyVo2Max); + break; + case DataOneofCase.DailyHeartRateZones: + if (DailyHeartRateZones == null) { + DailyHeartRateZones = new global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones(); + } + DailyHeartRateZones.MergeFrom(other.DailyHeartRateZones); + break; + case DataOneofCase.HydrationLog: + if (HydrationLog == null) { + HydrationLog = new global::Google.DevicesAndServices.Health.V4.HydrationLog(); + } + HydrationLog.MergeFrom(other.HydrationLog); + break; + case DataOneofCase.TimeInHeartRateZone: + if (TimeInHeartRateZone == null) { + TimeInHeartRateZone = new global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone(); + } + TimeInHeartRateZone.MergeFrom(other.TimeInHeartRateZone); + break; + case DataOneofCase.ActiveMinutes: + if (ActiveMinutes == null) { + ActiveMinutes = new global::Google.DevicesAndServices.Health.V4.ActiveMinutes(); + } + ActiveMinutes.MergeFrom(other.ActiveMinutes); + break; + case DataOneofCase.RespiratoryRateSleepSummary: + if (RespiratoryRateSleepSummary == null) { + RespiratoryRateSleepSummary = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary(); + } + RespiratoryRateSleepSummary.MergeFrom(other.RespiratoryRateSleepSummary); + break; + case DataOneofCase.DailyRespiratoryRate: + if (DailyRespiratoryRate == null) { + DailyRespiratoryRate = new global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate(); + } + DailyRespiratoryRate.MergeFrom(other.DailyRespiratoryRate); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 26: { + if (dataSource_ == null) { + DataSource = new global::Google.DevicesAndServices.Health.V4.DataSource(); + } + input.ReadMessage(DataSource); + break; + } + case 34: { + global::Google.DevicesAndServices.Health.V4.Steps subBuilder = new global::Google.DevicesAndServices.Health.V4.Steps(); + if (dataCase_ == DataOneofCase.Steps) { + subBuilder.MergeFrom(Steps); + } + input.ReadMessage(subBuilder); + Steps = subBuilder; + break; + } + case 42: { + global::Google.DevicesAndServices.Health.V4.Floors subBuilder = new global::Google.DevicesAndServices.Health.V4.Floors(); + if (dataCase_ == DataOneofCase.Floors) { + subBuilder.MergeFrom(Floors); + } + input.ReadMessage(subBuilder); + Floors = subBuilder; + break; + } + case 50: { + global::Google.DevicesAndServices.Health.V4.HeartRate subBuilder = new global::Google.DevicesAndServices.Health.V4.HeartRate(); + if (dataCase_ == DataOneofCase.HeartRate) { + subBuilder.MergeFrom(HeartRate); + } + input.ReadMessage(subBuilder); + HeartRate = subBuilder; + break; + } + case 66: { + global::Google.DevicesAndServices.Health.V4.Sleep subBuilder = new global::Google.DevicesAndServices.Health.V4.Sleep(); + if (dataCase_ == DataOneofCase.Sleep) { + subBuilder.MergeFrom(Sleep); + } + input.ReadMessage(subBuilder); + Sleep = subBuilder; + break; + } + case 74: { + global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate(); + if (dataCase_ == DataOneofCase.DailyRestingHeartRate) { + subBuilder.MergeFrom(DailyRestingHeartRate); + } + input.ReadMessage(subBuilder); + DailyRestingHeartRate = subBuilder; + break; + } + case 82: { + global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability(); + if (dataCase_ == DataOneofCase.DailyHeartRateVariability) { + subBuilder.MergeFrom(DailyHeartRateVariability); + } + input.ReadMessage(subBuilder); + DailyHeartRateVariability = subBuilder; + break; + } + case 90: { + global::Google.DevicesAndServices.Health.V4.Exercise subBuilder = new global::Google.DevicesAndServices.Health.V4.Exercise(); + if (dataCase_ == DataOneofCase.Exercise) { + subBuilder.MergeFrom(Exercise); + } + input.ReadMessage(subBuilder); + Exercise = subBuilder; + break; + } + case 98: { + global::Google.DevicesAndServices.Health.V4.Weight subBuilder = new global::Google.DevicesAndServices.Health.V4.Weight(); + if (dataCase_ == DataOneofCase.Weight) { + subBuilder.MergeFrom(Weight); + } + input.ReadMessage(subBuilder); + Weight = subBuilder; + break; + } + case 106: { + global::Google.DevicesAndServices.Health.V4.Altitude subBuilder = new global::Google.DevicesAndServices.Health.V4.Altitude(); + if (dataCase_ == DataOneofCase.Altitude) { + subBuilder.MergeFrom(Altitude); + } + input.ReadMessage(subBuilder); + Altitude = subBuilder; + break; + } + case 114: { + global::Google.DevicesAndServices.Health.V4.Distance subBuilder = new global::Google.DevicesAndServices.Health.V4.Distance(); + if (dataCase_ == DataOneofCase.Distance) { + subBuilder.MergeFrom(Distance); + } + input.ReadMessage(subBuilder); + Distance = subBuilder; + break; + } + case 122: { + global::Google.DevicesAndServices.Health.V4.BodyFat subBuilder = new global::Google.DevicesAndServices.Health.V4.BodyFat(); + if (dataCase_ == DataOneofCase.BodyFat) { + subBuilder.MergeFrom(BodyFat); + } + input.ReadMessage(subBuilder); + BodyFat = subBuilder; + break; + } + case 138: { + global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes(); + if (dataCase_ == DataOneofCase.ActiveZoneMinutes) { + subBuilder.MergeFrom(ActiveZoneMinutes); + } + input.ReadMessage(subBuilder); + ActiveZoneMinutes = subBuilder; + break; + } + case 154: { + global::Google.DevicesAndServices.Health.V4.HeartRateVariability subBuilder = new global::Google.DevicesAndServices.Health.V4.HeartRateVariability(); + if (dataCase_ == DataOneofCase.HeartRateVariability) { + subBuilder.MergeFrom(HeartRateVariability); + } + input.ReadMessage(subBuilder); + HeartRateVariability = subBuilder; + break; + } + case 162: { + global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations subBuilder = new global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations(); + if (dataCase_ == DataOneofCase.DailySleepTemperatureDerivations) { + subBuilder.MergeFrom(DailySleepTemperatureDerivations); + } + input.ReadMessage(subBuilder); + DailySleepTemperatureDerivations = subBuilder; + break; + } + case 170: { + global::Google.DevicesAndServices.Health.V4.SedentaryPeriod subBuilder = new global::Google.DevicesAndServices.Health.V4.SedentaryPeriod(); + if (dataCase_ == DataOneofCase.SedentaryPeriod) { + subBuilder.MergeFrom(SedentaryPeriod); + } + input.ReadMessage(subBuilder); + SedentaryPeriod = subBuilder; + break; + } + case 178: { + global::Google.DevicesAndServices.Health.V4.RunVO2Max subBuilder = new global::Google.DevicesAndServices.Health.V4.RunVO2Max(); + if (dataCase_ == DataOneofCase.RunVo2Max) { + subBuilder.MergeFrom(RunVo2Max); + } + input.ReadMessage(subBuilder); + RunVo2Max = subBuilder; + break; + } + case 194: { + global::Google.DevicesAndServices.Health.V4.OxygenSaturation subBuilder = new global::Google.DevicesAndServices.Health.V4.OxygenSaturation(); + if (dataCase_ == DataOneofCase.OxygenSaturation) { + subBuilder.MergeFrom(OxygenSaturation); + } + input.ReadMessage(subBuilder); + OxygenSaturation = subBuilder; + break; + } + case 202: { + global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation(); + if (dataCase_ == DataOneofCase.DailyOxygenSaturation) { + subBuilder.MergeFrom(DailyOxygenSaturation); + } + input.ReadMessage(subBuilder); + DailyOxygenSaturation = subBuilder; + break; + } + case 210: { + global::Google.DevicesAndServices.Health.V4.ActivityLevel subBuilder = new global::Google.DevicesAndServices.Health.V4.ActivityLevel(); + if (dataCase_ == DataOneofCase.ActivityLevel) { + subBuilder.MergeFrom(ActivityLevel); + } + input.ReadMessage(subBuilder); + ActivityLevel = subBuilder; + break; + } + case 218: { + global::Google.DevicesAndServices.Health.V4.VO2Max subBuilder = new global::Google.DevicesAndServices.Health.V4.VO2Max(); + if (dataCase_ == DataOneofCase.Vo2Max) { + subBuilder.MergeFrom(Vo2Max); + } + input.ReadMessage(subBuilder); + Vo2Max = subBuilder; + break; + } + case 226: { + global::Google.DevicesAndServices.Health.V4.DailyVO2Max subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyVO2Max(); + if (dataCase_ == DataOneofCase.DailyVo2Max) { + subBuilder.MergeFrom(DailyVo2Max); + } + input.ReadMessage(subBuilder); + DailyVo2Max = subBuilder; + break; + } + case 258: { + global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones(); + if (dataCase_ == DataOneofCase.DailyHeartRateZones) { + subBuilder.MergeFrom(DailyHeartRateZones); + } + input.ReadMessage(subBuilder); + DailyHeartRateZones = subBuilder; + break; + } + case 266: { + global::Google.DevicesAndServices.Health.V4.HydrationLog subBuilder = new global::Google.DevicesAndServices.Health.V4.HydrationLog(); + if (dataCase_ == DataOneofCase.HydrationLog) { + subBuilder.MergeFrom(HydrationLog); + } + input.ReadMessage(subBuilder); + HydrationLog = subBuilder; + break; + } + case 282: { + global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone subBuilder = new global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone(); + if (dataCase_ == DataOneofCase.TimeInHeartRateZone) { + subBuilder.MergeFrom(TimeInHeartRateZone); + } + input.ReadMessage(subBuilder); + TimeInHeartRateZone = subBuilder; + break; + } + case 290: { + global::Google.DevicesAndServices.Health.V4.ActiveMinutes subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveMinutes(); + if (dataCase_ == DataOneofCase.ActiveMinutes) { + subBuilder.MergeFrom(ActiveMinutes); + } + input.ReadMessage(subBuilder); + ActiveMinutes = subBuilder; + break; + } + case 298: { + global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary subBuilder = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary(); + if (dataCase_ == DataOneofCase.RespiratoryRateSleepSummary) { + subBuilder.MergeFrom(RespiratoryRateSleepSummary); + } + input.ReadMessage(subBuilder); + RespiratoryRateSleepSummary = subBuilder; + break; + } + case 306: { + global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate(); + if (dataCase_ == DataOneofCase.DailyRespiratoryRate) { + subBuilder.MergeFrom(DailyRespiratoryRate); + } + input.ReadMessage(subBuilder); + DailyRespiratoryRate = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 26: { + if (dataSource_ == null) { + DataSource = new global::Google.DevicesAndServices.Health.V4.DataSource(); + } + input.ReadMessage(DataSource); + break; + } + case 34: { + global::Google.DevicesAndServices.Health.V4.Steps subBuilder = new global::Google.DevicesAndServices.Health.V4.Steps(); + if (dataCase_ == DataOneofCase.Steps) { + subBuilder.MergeFrom(Steps); + } + input.ReadMessage(subBuilder); + Steps = subBuilder; + break; + } + case 42: { + global::Google.DevicesAndServices.Health.V4.Floors subBuilder = new global::Google.DevicesAndServices.Health.V4.Floors(); + if (dataCase_ == DataOneofCase.Floors) { + subBuilder.MergeFrom(Floors); + } + input.ReadMessage(subBuilder); + Floors = subBuilder; + break; + } + case 50: { + global::Google.DevicesAndServices.Health.V4.HeartRate subBuilder = new global::Google.DevicesAndServices.Health.V4.HeartRate(); + if (dataCase_ == DataOneofCase.HeartRate) { + subBuilder.MergeFrom(HeartRate); + } + input.ReadMessage(subBuilder); + HeartRate = subBuilder; + break; + } + case 66: { + global::Google.DevicesAndServices.Health.V4.Sleep subBuilder = new global::Google.DevicesAndServices.Health.V4.Sleep(); + if (dataCase_ == DataOneofCase.Sleep) { + subBuilder.MergeFrom(Sleep); + } + input.ReadMessage(subBuilder); + Sleep = subBuilder; + break; + } + case 74: { + global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate(); + if (dataCase_ == DataOneofCase.DailyRestingHeartRate) { + subBuilder.MergeFrom(DailyRestingHeartRate); + } + input.ReadMessage(subBuilder); + DailyRestingHeartRate = subBuilder; + break; + } + case 82: { + global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability(); + if (dataCase_ == DataOneofCase.DailyHeartRateVariability) { + subBuilder.MergeFrom(DailyHeartRateVariability); + } + input.ReadMessage(subBuilder); + DailyHeartRateVariability = subBuilder; + break; + } + case 90: { + global::Google.DevicesAndServices.Health.V4.Exercise subBuilder = new global::Google.DevicesAndServices.Health.V4.Exercise(); + if (dataCase_ == DataOneofCase.Exercise) { + subBuilder.MergeFrom(Exercise); + } + input.ReadMessage(subBuilder); + Exercise = subBuilder; + break; + } + case 98: { + global::Google.DevicesAndServices.Health.V4.Weight subBuilder = new global::Google.DevicesAndServices.Health.V4.Weight(); + if (dataCase_ == DataOneofCase.Weight) { + subBuilder.MergeFrom(Weight); + } + input.ReadMessage(subBuilder); + Weight = subBuilder; + break; + } + case 106: { + global::Google.DevicesAndServices.Health.V4.Altitude subBuilder = new global::Google.DevicesAndServices.Health.V4.Altitude(); + if (dataCase_ == DataOneofCase.Altitude) { + subBuilder.MergeFrom(Altitude); + } + input.ReadMessage(subBuilder); + Altitude = subBuilder; + break; + } + case 114: { + global::Google.DevicesAndServices.Health.V4.Distance subBuilder = new global::Google.DevicesAndServices.Health.V4.Distance(); + if (dataCase_ == DataOneofCase.Distance) { + subBuilder.MergeFrom(Distance); + } + input.ReadMessage(subBuilder); + Distance = subBuilder; + break; + } + case 122: { + global::Google.DevicesAndServices.Health.V4.BodyFat subBuilder = new global::Google.DevicesAndServices.Health.V4.BodyFat(); + if (dataCase_ == DataOneofCase.BodyFat) { + subBuilder.MergeFrom(BodyFat); + } + input.ReadMessage(subBuilder); + BodyFat = subBuilder; + break; + } + case 138: { + global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes(); + if (dataCase_ == DataOneofCase.ActiveZoneMinutes) { + subBuilder.MergeFrom(ActiveZoneMinutes); + } + input.ReadMessage(subBuilder); + ActiveZoneMinutes = subBuilder; + break; + } + case 154: { + global::Google.DevicesAndServices.Health.V4.HeartRateVariability subBuilder = new global::Google.DevicesAndServices.Health.V4.HeartRateVariability(); + if (dataCase_ == DataOneofCase.HeartRateVariability) { + subBuilder.MergeFrom(HeartRateVariability); + } + input.ReadMessage(subBuilder); + HeartRateVariability = subBuilder; + break; + } + case 162: { + global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations subBuilder = new global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations(); + if (dataCase_ == DataOneofCase.DailySleepTemperatureDerivations) { + subBuilder.MergeFrom(DailySleepTemperatureDerivations); + } + input.ReadMessage(subBuilder); + DailySleepTemperatureDerivations = subBuilder; + break; + } + case 170: { + global::Google.DevicesAndServices.Health.V4.SedentaryPeriod subBuilder = new global::Google.DevicesAndServices.Health.V4.SedentaryPeriod(); + if (dataCase_ == DataOneofCase.SedentaryPeriod) { + subBuilder.MergeFrom(SedentaryPeriod); + } + input.ReadMessage(subBuilder); + SedentaryPeriod = subBuilder; + break; + } + case 178: { + global::Google.DevicesAndServices.Health.V4.RunVO2Max subBuilder = new global::Google.DevicesAndServices.Health.V4.RunVO2Max(); + if (dataCase_ == DataOneofCase.RunVo2Max) { + subBuilder.MergeFrom(RunVo2Max); + } + input.ReadMessage(subBuilder); + RunVo2Max = subBuilder; + break; + } + case 194: { + global::Google.DevicesAndServices.Health.V4.OxygenSaturation subBuilder = new global::Google.DevicesAndServices.Health.V4.OxygenSaturation(); + if (dataCase_ == DataOneofCase.OxygenSaturation) { + subBuilder.MergeFrom(OxygenSaturation); + } + input.ReadMessage(subBuilder); + OxygenSaturation = subBuilder; + break; + } + case 202: { + global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation(); + if (dataCase_ == DataOneofCase.DailyOxygenSaturation) { + subBuilder.MergeFrom(DailyOxygenSaturation); + } + input.ReadMessage(subBuilder); + DailyOxygenSaturation = subBuilder; + break; + } + case 210: { + global::Google.DevicesAndServices.Health.V4.ActivityLevel subBuilder = new global::Google.DevicesAndServices.Health.V4.ActivityLevel(); + if (dataCase_ == DataOneofCase.ActivityLevel) { + subBuilder.MergeFrom(ActivityLevel); + } + input.ReadMessage(subBuilder); + ActivityLevel = subBuilder; + break; + } + case 218: { + global::Google.DevicesAndServices.Health.V4.VO2Max subBuilder = new global::Google.DevicesAndServices.Health.V4.VO2Max(); + if (dataCase_ == DataOneofCase.Vo2Max) { + subBuilder.MergeFrom(Vo2Max); + } + input.ReadMessage(subBuilder); + Vo2Max = subBuilder; + break; + } + case 226: { + global::Google.DevicesAndServices.Health.V4.DailyVO2Max subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyVO2Max(); + if (dataCase_ == DataOneofCase.DailyVo2Max) { + subBuilder.MergeFrom(DailyVo2Max); + } + input.ReadMessage(subBuilder); + DailyVo2Max = subBuilder; + break; + } + case 258: { + global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones(); + if (dataCase_ == DataOneofCase.DailyHeartRateZones) { + subBuilder.MergeFrom(DailyHeartRateZones); + } + input.ReadMessage(subBuilder); + DailyHeartRateZones = subBuilder; + break; + } + case 266: { + global::Google.DevicesAndServices.Health.V4.HydrationLog subBuilder = new global::Google.DevicesAndServices.Health.V4.HydrationLog(); + if (dataCase_ == DataOneofCase.HydrationLog) { + subBuilder.MergeFrom(HydrationLog); + } + input.ReadMessage(subBuilder); + HydrationLog = subBuilder; + break; + } + case 282: { + global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone subBuilder = new global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone(); + if (dataCase_ == DataOneofCase.TimeInHeartRateZone) { + subBuilder.MergeFrom(TimeInHeartRateZone); + } + input.ReadMessage(subBuilder); + TimeInHeartRateZone = subBuilder; + break; + } + case 290: { + global::Google.DevicesAndServices.Health.V4.ActiveMinutes subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveMinutes(); + if (dataCase_ == DataOneofCase.ActiveMinutes) { + subBuilder.MergeFrom(ActiveMinutes); + } + input.ReadMessage(subBuilder); + ActiveMinutes = subBuilder; + break; + } + case 298: { + global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary subBuilder = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary(); + if (dataCase_ == DataOneofCase.RespiratoryRateSleepSummary) { + subBuilder.MergeFrom(RespiratoryRateSleepSummary); + } + input.ReadMessage(subBuilder); + RespiratoryRateSleepSummary = subBuilder; + break; + } + case 306: { + global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate(); + if (dataCase_ == DataOneofCase.DailyRespiratoryRate) { + subBuilder.MergeFrom(DailyRespiratoryRate); + } + input.ReadMessage(subBuilder); + DailyRespiratoryRate = subBuilder; + break; + } + } + } + } + #endif + + } + + /// + /// A reconciled computed or recorded metric. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ReconciledDataPoint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReconciledDataPoint()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReconciledDataPoint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReconciledDataPoint(ReconciledDataPoint other) : this() { + dataPointName_ = other.dataPointName_; + switch (other.DataCase) { + case DataOneofCase.Steps: + Steps = other.Steps.Clone(); + break; + case DataOneofCase.Floors: + Floors = other.Floors.Clone(); + break; + case DataOneofCase.HeartRate: + HeartRate = other.HeartRate.Clone(); + break; + case DataOneofCase.Sleep: + Sleep = other.Sleep.Clone(); + break; + case DataOneofCase.DailyRestingHeartRate: + DailyRestingHeartRate = other.DailyRestingHeartRate.Clone(); + break; + case DataOneofCase.DailyHeartRateVariability: + DailyHeartRateVariability = other.DailyHeartRateVariability.Clone(); + break; + case DataOneofCase.Exercise: + Exercise = other.Exercise.Clone(); + break; + case DataOneofCase.Weight: + Weight = other.Weight.Clone(); + break; + case DataOneofCase.Altitude: + Altitude = other.Altitude.Clone(); + break; + case DataOneofCase.Distance: + Distance = other.Distance.Clone(); + break; + case DataOneofCase.BodyFat: + BodyFat = other.BodyFat.Clone(); + break; + case DataOneofCase.ActiveZoneMinutes: + ActiveZoneMinutes = other.ActiveZoneMinutes.Clone(); + break; + case DataOneofCase.HeartRateVariability: + HeartRateVariability = other.HeartRateVariability.Clone(); + break; + case DataOneofCase.DailySleepTemperatureDerivations: + DailySleepTemperatureDerivations = other.DailySleepTemperatureDerivations.Clone(); + break; + case DataOneofCase.SedentaryPeriod: + SedentaryPeriod = other.SedentaryPeriod.Clone(); + break; + case DataOneofCase.RunVo2Max: + RunVo2Max = other.RunVo2Max.Clone(); + break; + case DataOneofCase.OxygenSaturation: + OxygenSaturation = other.OxygenSaturation.Clone(); + break; + case DataOneofCase.DailyOxygenSaturation: + DailyOxygenSaturation = other.DailyOxygenSaturation.Clone(); + break; + case DataOneofCase.ActivityLevel: + ActivityLevel = other.ActivityLevel.Clone(); + break; + case DataOneofCase.Vo2Max: + Vo2Max = other.Vo2Max.Clone(); + break; + case DataOneofCase.DailyVo2Max: + DailyVo2Max = other.DailyVo2Max.Clone(); + break; + case DataOneofCase.DailyHeartRateZones: + DailyHeartRateZones = other.DailyHeartRateZones.Clone(); + break; + case DataOneofCase.HydrationLog: + HydrationLog = other.HydrationLog.Clone(); + break; + case DataOneofCase.TimeInHeartRateZone: + TimeInHeartRateZone = other.TimeInHeartRateZone.Clone(); + break; + case DataOneofCase.ActiveMinutes: + ActiveMinutes = other.ActiveMinutes.Clone(); + break; + case DataOneofCase.RespiratoryRateSleepSummary: + RespiratoryRateSleepSummary = other.RespiratoryRateSleepSummary.Clone(); + break; + case DataOneofCase.DailyRespiratoryRate: + DailyRespiratoryRate = other.DailyRespiratoryRate.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReconciledDataPoint Clone() { + return new ReconciledDataPoint(this); + } + + /// Field number for the "steps" field. + public const int StepsFieldNumber = 4; + /// + /// Data for points in the `steps` interval data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Steps Steps { + get { return dataCase_ == DataOneofCase.Steps ? (global::Google.DevicesAndServices.Health.V4.Steps) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Steps; + } + } + + /// Field number for the "floors" field. + public const int FloorsFieldNumber = 5; + /// + /// Data for points in the `floors` interval data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Floors Floors { + get { return dataCase_ == DataOneofCase.Floors ? (global::Google.DevicesAndServices.Health.V4.Floors) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Floors; + } + } + + /// Field number for the "heart_rate" field. + public const int HeartRateFieldNumber = 6; + /// + /// Data for points in the `heart-rate` sample data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HeartRate HeartRate { + get { return dataCase_ == DataOneofCase.HeartRate ? (global::Google.DevicesAndServices.Health.V4.HeartRate) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.HeartRate; + } + } + + /// Field number for the "sleep" field. + public const int SleepFieldNumber = 8; + /// + /// Data for points in the `sleep` session data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Sleep Sleep { + get { return dataCase_ == DataOneofCase.Sleep ? (global::Google.DevicesAndServices.Health.V4.Sleep) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Sleep; + } + } + + /// Field number for the "daily_resting_heart_rate" field. + public const int DailyRestingHeartRateFieldNumber = 9; + /// + /// Data for points in the `daily-resting-heart-rate` daily data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate DailyRestingHeartRate { + get { return dataCase_ == DataOneofCase.DailyRestingHeartRate ? (global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.DailyRestingHeartRate; + } + } + + /// Field number for the "daily_heart_rate_variability" field. + public const int DailyHeartRateVariabilityFieldNumber = 10; + /// + /// Data for points in the `daily-heart-rate-variability` daily data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability DailyHeartRateVariability { + get { return dataCase_ == DataOneofCase.DailyHeartRateVariability ? (global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.DailyHeartRateVariability; + } + } + + /// Field number for the "exercise" field. + public const int ExerciseFieldNumber = 11; + /// + /// Data for points in the `exercise` session data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Exercise Exercise { + get { return dataCase_ == DataOneofCase.Exercise ? (global::Google.DevicesAndServices.Health.V4.Exercise) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Exercise; + } + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 12; + /// + /// Data for points in the `weight` sample data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Weight Weight { + get { return dataCase_ == DataOneofCase.Weight ? (global::Google.DevicesAndServices.Health.V4.Weight) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Weight; + } + } + + /// Field number for the "altitude" field. + public const int AltitudeFieldNumber = 13; + /// + /// Data for points in the `altitude` interval data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Altitude Altitude { + get { return dataCase_ == DataOneofCase.Altitude ? (global::Google.DevicesAndServices.Health.V4.Altitude) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Altitude; + } + } + + /// Field number for the "distance" field. + public const int DistanceFieldNumber = 14; + /// + /// Data for points in the `distance` interval data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Distance Distance { + get { return dataCase_ == DataOneofCase.Distance ? (global::Google.DevicesAndServices.Health.V4.Distance) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Distance; + } + } + + /// Field number for the "body_fat" field. + public const int BodyFatFieldNumber = 15; + /// + /// Data for points in the `body-fat` sample data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.BodyFat BodyFat { + get { return dataCase_ == DataOneofCase.BodyFat ? (global::Google.DevicesAndServices.Health.V4.BodyFat) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.BodyFat; + } + } + + /// Field number for the "active_zone_minutes" field. + public const int ActiveZoneMinutesFieldNumber = 17; + /// + /// Data for points in the `active-zone-minutes` interval data type + /// collection, measured in minutes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes ActiveZoneMinutes { + get { return dataCase_ == DataOneofCase.ActiveZoneMinutes ? (global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.ActiveZoneMinutes; + } + } + + /// Field number for the "heart_rate_variability" field. + public const int HeartRateVariabilityFieldNumber = 19; + /// + /// Data for points in the `heart-rate-variability` sample data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HeartRateVariability HeartRateVariability { + get { return dataCase_ == DataOneofCase.HeartRateVariability ? (global::Google.DevicesAndServices.Health.V4.HeartRateVariability) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.HeartRateVariability; + } + } + + /// Field number for the "daily_sleep_temperature_derivations" field. + public const int DailySleepTemperatureDerivationsFieldNumber = 20; + /// + /// Data for points in the `daily-sleep-temperature-derivations` daily data + /// type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations DailySleepTemperatureDerivations { + get { return dataCase_ == DataOneofCase.DailySleepTemperatureDerivations ? (global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.DailySleepTemperatureDerivations; + } + } + + /// Field number for the "sedentary_period" field. + public const int SedentaryPeriodFieldNumber = 21; + /// + /// Data for points in the `sedentary-period` interval data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.SedentaryPeriod SedentaryPeriod { + get { return dataCase_ == DataOneofCase.SedentaryPeriod ? (global::Google.DevicesAndServices.Health.V4.SedentaryPeriod) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.SedentaryPeriod; + } + } + + /// Field number for the "run_vo2_max" field. + public const int RunVo2MaxFieldNumber = 22; + /// + /// Data for points in the `run-vo2-max` sample data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.RunVO2Max RunVo2Max { + get { return dataCase_ == DataOneofCase.RunVo2Max ? (global::Google.DevicesAndServices.Health.V4.RunVO2Max) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.RunVo2Max; + } + } + + /// Field number for the "oxygen_saturation" field. + public const int OxygenSaturationFieldNumber = 24; + /// + /// Data for points in the `oxygen-saturation` sample data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.OxygenSaturation OxygenSaturation { + get { return dataCase_ == DataOneofCase.OxygenSaturation ? (global::Google.DevicesAndServices.Health.V4.OxygenSaturation) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.OxygenSaturation; + } + } + + /// Field number for the "daily_oxygen_saturation" field. + public const int DailyOxygenSaturationFieldNumber = 25; + /// + /// Data for points in the `daily-oxygen-saturation` daily data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation DailyOxygenSaturation { + get { return dataCase_ == DataOneofCase.DailyOxygenSaturation ? (global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.DailyOxygenSaturation; + } + } + + /// Field number for the "activity_level" field. + public const int ActivityLevelFieldNumber = 26; + /// + /// Data for points in the `activity-level` daily data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActivityLevel ActivityLevel { + get { return dataCase_ == DataOneofCase.ActivityLevel ? (global::Google.DevicesAndServices.Health.V4.ActivityLevel) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.ActivityLevel; + } + } + + /// Field number for the "vo2_max" field. + public const int Vo2MaxFieldNumber = 27; + /// + /// Data for points in the `vo2-max` sample data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.VO2Max Vo2Max { + get { return dataCase_ == DataOneofCase.Vo2Max ? (global::Google.DevicesAndServices.Health.V4.VO2Max) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Vo2Max; + } + } + + /// Field number for the "daily_vo2_max" field. + public const int DailyVo2MaxFieldNumber = 28; + /// + /// Data for points in the `daily-vo2-max` daily data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailyVO2Max DailyVo2Max { + get { return dataCase_ == DataOneofCase.DailyVo2Max ? (global::Google.DevicesAndServices.Health.V4.DailyVO2Max) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.DailyVo2Max; + } + } + + /// Field number for the "daily_heart_rate_zones" field. + public const int DailyHeartRateZonesFieldNumber = 32; + /// + /// Data for points in the `daily-heart-rate-zones` daily data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones DailyHeartRateZones { + get { return dataCase_ == DataOneofCase.DailyHeartRateZones ? (global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.DailyHeartRateZones; + } + } + + /// Field number for the "hydration_log" field. + public const int HydrationLogFieldNumber = 33; + /// + /// Data for points in the `hydration-log` session data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HydrationLog HydrationLog { + get { return dataCase_ == DataOneofCase.HydrationLog ? (global::Google.DevicesAndServices.Health.V4.HydrationLog) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.HydrationLog; + } + } + + /// Field number for the "time_in_heart_rate_zone" field. + public const int TimeInHeartRateZoneFieldNumber = 35; + /// + /// Data for points in the `time-in-heart-rate-zone` interval data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone TimeInHeartRateZone { + get { return dataCase_ == DataOneofCase.TimeInHeartRateZone ? (global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.TimeInHeartRateZone; + } + } + + /// Field number for the "active_minutes" field. + public const int ActiveMinutesFieldNumber = 36; + /// + /// Data for points in the `active-minutes` interval data type collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActiveMinutes ActiveMinutes { + get { return dataCase_ == DataOneofCase.ActiveMinutes ? (global::Google.DevicesAndServices.Health.V4.ActiveMinutes) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.ActiveMinutes; + } + } + + /// Field number for the "respiratory_rate_sleep_summary" field. + public const int RespiratoryRateSleepSummaryFieldNumber = 37; + /// + /// Data for points in the `respiratory-rate-sleep-summary` sample data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary RespiratoryRateSleepSummary { + get { return dataCase_ == DataOneofCase.RespiratoryRateSleepSummary ? (global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.RespiratoryRateSleepSummary; + } + } + + /// Field number for the "daily_respiratory_rate" field. + public const int DailyRespiratoryRateFieldNumber = 38; + /// + /// Data for points in the `daily-respiratory-rate` daily data type + /// collection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate DailyRespiratoryRate { + get { return dataCase_ == DataOneofCase.DailyRespiratoryRate ? (global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.DailyRespiratoryRate; + } + } + + /// Field number for the "data_point_name" field. + public const int DataPointNameFieldNumber = 1; + private string dataPointName_ = ""; + /// + /// Identifier. Data point name, only supported for the subset of identifiable + /// data types. For the majority of the data types, individual data points do + /// not need to be identified and this field would be empty. + /// + /// Format: `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` + /// + /// Example: + /// `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` + /// + /// The `{user}` ID is a system-generated identifier, as described in + /// [Profile.encoded_id][google.devicesandservices.health.v4.Profile.encoded_id]. + /// + /// The `{data_type}` ID corresponds to the kebab-case version of the field + /// names in the [DataPoint + /// data][google.devicesandservices.health.v4.DataPoint] union + /// field, e.g. `total-calories` for the `total_calories` field. + /// + /// The `{data_point}` ID can be client-provided or system-generated. + /// If client-provided, it must be a string of 4-63 characters, + /// containing only lowercase letters, numbers, and hyphens. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DataPointName { + get { return dataPointName_; } + set { + dataPointName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + private object data_; + /// Enum of possible cases for the "data" oneof. + public enum DataOneofCase { + None = 0, + Steps = 4, + Floors = 5, + HeartRate = 6, + Sleep = 8, + DailyRestingHeartRate = 9, + DailyHeartRateVariability = 10, + Exercise = 11, + Weight = 12, + Altitude = 13, + Distance = 14, + BodyFat = 15, + ActiveZoneMinutes = 17, + HeartRateVariability = 19, + DailySleepTemperatureDerivations = 20, + SedentaryPeriod = 21, + RunVo2Max = 22, + OxygenSaturation = 24, + DailyOxygenSaturation = 25, + ActivityLevel = 26, + Vo2Max = 27, + DailyVo2Max = 28, + DailyHeartRateZones = 32, + HydrationLog = 33, + TimeInHeartRateZone = 35, + ActiveMinutes = 36, + RespiratoryRateSleepSummary = 37, + DailyRespiratoryRate = 38, + } + private DataOneofCase dataCase_ = DataOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataOneofCase DataCase { + get { return dataCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearData() { + dataCase_ = DataOneofCase.None; + data_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReconciledDataPoint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReconciledDataPoint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Steps, other.Steps)) return false; + if (!object.Equals(Floors, other.Floors)) return false; + if (!object.Equals(HeartRate, other.HeartRate)) return false; + if (!object.Equals(Sleep, other.Sleep)) return false; + if (!object.Equals(DailyRestingHeartRate, other.DailyRestingHeartRate)) return false; + if (!object.Equals(DailyHeartRateVariability, other.DailyHeartRateVariability)) return false; + if (!object.Equals(Exercise, other.Exercise)) return false; + if (!object.Equals(Weight, other.Weight)) return false; + if (!object.Equals(Altitude, other.Altitude)) return false; + if (!object.Equals(Distance, other.Distance)) return false; + if (!object.Equals(BodyFat, other.BodyFat)) return false; + if (!object.Equals(ActiveZoneMinutes, other.ActiveZoneMinutes)) return false; + if (!object.Equals(HeartRateVariability, other.HeartRateVariability)) return false; + if (!object.Equals(DailySleepTemperatureDerivations, other.DailySleepTemperatureDerivations)) return false; + if (!object.Equals(SedentaryPeriod, other.SedentaryPeriod)) return false; + if (!object.Equals(RunVo2Max, other.RunVo2Max)) return false; + if (!object.Equals(OxygenSaturation, other.OxygenSaturation)) return false; + if (!object.Equals(DailyOxygenSaturation, other.DailyOxygenSaturation)) return false; + if (!object.Equals(ActivityLevel, other.ActivityLevel)) return false; + if (!object.Equals(Vo2Max, other.Vo2Max)) return false; + if (!object.Equals(DailyVo2Max, other.DailyVo2Max)) return false; + if (!object.Equals(DailyHeartRateZones, other.DailyHeartRateZones)) return false; + if (!object.Equals(HydrationLog, other.HydrationLog)) return false; + if (!object.Equals(TimeInHeartRateZone, other.TimeInHeartRateZone)) return false; + if (!object.Equals(ActiveMinutes, other.ActiveMinutes)) return false; + if (!object.Equals(RespiratoryRateSleepSummary, other.RespiratoryRateSleepSummary)) return false; + if (!object.Equals(DailyRespiratoryRate, other.DailyRespiratoryRate)) return false; + if (DataPointName != other.DataPointName) return false; + if (DataCase != other.DataCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (dataCase_ == DataOneofCase.Steps) hash ^= Steps.GetHashCode(); + if (dataCase_ == DataOneofCase.Floors) hash ^= Floors.GetHashCode(); + if (dataCase_ == DataOneofCase.HeartRate) hash ^= HeartRate.GetHashCode(); + if (dataCase_ == DataOneofCase.Sleep) hash ^= Sleep.GetHashCode(); + if (dataCase_ == DataOneofCase.DailyRestingHeartRate) hash ^= DailyRestingHeartRate.GetHashCode(); + if (dataCase_ == DataOneofCase.DailyHeartRateVariability) hash ^= DailyHeartRateVariability.GetHashCode(); + if (dataCase_ == DataOneofCase.Exercise) hash ^= Exercise.GetHashCode(); + if (dataCase_ == DataOneofCase.Weight) hash ^= Weight.GetHashCode(); + if (dataCase_ == DataOneofCase.Altitude) hash ^= Altitude.GetHashCode(); + if (dataCase_ == DataOneofCase.Distance) hash ^= Distance.GetHashCode(); + if (dataCase_ == DataOneofCase.BodyFat) hash ^= BodyFat.GetHashCode(); + if (dataCase_ == DataOneofCase.ActiveZoneMinutes) hash ^= ActiveZoneMinutes.GetHashCode(); + if (dataCase_ == DataOneofCase.HeartRateVariability) hash ^= HeartRateVariability.GetHashCode(); + if (dataCase_ == DataOneofCase.DailySleepTemperatureDerivations) hash ^= DailySleepTemperatureDerivations.GetHashCode(); + if (dataCase_ == DataOneofCase.SedentaryPeriod) hash ^= SedentaryPeriod.GetHashCode(); + if (dataCase_ == DataOneofCase.RunVo2Max) hash ^= RunVo2Max.GetHashCode(); + if (dataCase_ == DataOneofCase.OxygenSaturation) hash ^= OxygenSaturation.GetHashCode(); + if (dataCase_ == DataOneofCase.DailyOxygenSaturation) hash ^= DailyOxygenSaturation.GetHashCode(); + if (dataCase_ == DataOneofCase.ActivityLevel) hash ^= ActivityLevel.GetHashCode(); + if (dataCase_ == DataOneofCase.Vo2Max) hash ^= Vo2Max.GetHashCode(); + if (dataCase_ == DataOneofCase.DailyVo2Max) hash ^= DailyVo2Max.GetHashCode(); + if (dataCase_ == DataOneofCase.DailyHeartRateZones) hash ^= DailyHeartRateZones.GetHashCode(); + if (dataCase_ == DataOneofCase.HydrationLog) hash ^= HydrationLog.GetHashCode(); + if (dataCase_ == DataOneofCase.TimeInHeartRateZone) hash ^= TimeInHeartRateZone.GetHashCode(); + if (dataCase_ == DataOneofCase.ActiveMinutes) hash ^= ActiveMinutes.GetHashCode(); + if (dataCase_ == DataOneofCase.RespiratoryRateSleepSummary) hash ^= RespiratoryRateSleepSummary.GetHashCode(); + if (dataCase_ == DataOneofCase.DailyRespiratoryRate) hash ^= DailyRespiratoryRate.GetHashCode(); + if (DataPointName.Length != 0) hash ^= DataPointName.GetHashCode(); + hash ^= (int) dataCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (DataPointName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DataPointName); + } + if (dataCase_ == DataOneofCase.Steps) { + output.WriteRawTag(34); + output.WriteMessage(Steps); + } + if (dataCase_ == DataOneofCase.Floors) { + output.WriteRawTag(42); + output.WriteMessage(Floors); + } + if (dataCase_ == DataOneofCase.HeartRate) { + output.WriteRawTag(50); + output.WriteMessage(HeartRate); + } + if (dataCase_ == DataOneofCase.Sleep) { + output.WriteRawTag(66); + output.WriteMessage(Sleep); + } + if (dataCase_ == DataOneofCase.DailyRestingHeartRate) { + output.WriteRawTag(74); + output.WriteMessage(DailyRestingHeartRate); + } + if (dataCase_ == DataOneofCase.DailyHeartRateVariability) { + output.WriteRawTag(82); + output.WriteMessage(DailyHeartRateVariability); + } + if (dataCase_ == DataOneofCase.Exercise) { + output.WriteRawTag(90); + output.WriteMessage(Exercise); + } + if (dataCase_ == DataOneofCase.Weight) { + output.WriteRawTag(98); + output.WriteMessage(Weight); + } + if (dataCase_ == DataOneofCase.Altitude) { + output.WriteRawTag(106); + output.WriteMessage(Altitude); + } + if (dataCase_ == DataOneofCase.Distance) { + output.WriteRawTag(114); + output.WriteMessage(Distance); + } + if (dataCase_ == DataOneofCase.BodyFat) { + output.WriteRawTag(122); + output.WriteMessage(BodyFat); + } + if (dataCase_ == DataOneofCase.ActiveZoneMinutes) { + output.WriteRawTag(138, 1); + output.WriteMessage(ActiveZoneMinutes); + } + if (dataCase_ == DataOneofCase.HeartRateVariability) { + output.WriteRawTag(154, 1); + output.WriteMessage(HeartRateVariability); + } + if (dataCase_ == DataOneofCase.DailySleepTemperatureDerivations) { + output.WriteRawTag(162, 1); + output.WriteMessage(DailySleepTemperatureDerivations); + } + if (dataCase_ == DataOneofCase.SedentaryPeriod) { + output.WriteRawTag(170, 1); + output.WriteMessage(SedentaryPeriod); + } + if (dataCase_ == DataOneofCase.RunVo2Max) { + output.WriteRawTag(178, 1); + output.WriteMessage(RunVo2Max); + } + if (dataCase_ == DataOneofCase.OxygenSaturation) { + output.WriteRawTag(194, 1); + output.WriteMessage(OxygenSaturation); + } + if (dataCase_ == DataOneofCase.DailyOxygenSaturation) { + output.WriteRawTag(202, 1); + output.WriteMessage(DailyOxygenSaturation); + } + if (dataCase_ == DataOneofCase.ActivityLevel) { + output.WriteRawTag(210, 1); + output.WriteMessage(ActivityLevel); + } + if (dataCase_ == DataOneofCase.Vo2Max) { + output.WriteRawTag(218, 1); + output.WriteMessage(Vo2Max); + } + if (dataCase_ == DataOneofCase.DailyVo2Max) { + output.WriteRawTag(226, 1); + output.WriteMessage(DailyVo2Max); + } + if (dataCase_ == DataOneofCase.DailyHeartRateZones) { + output.WriteRawTag(130, 2); + output.WriteMessage(DailyHeartRateZones); + } + if (dataCase_ == DataOneofCase.HydrationLog) { + output.WriteRawTag(138, 2); + output.WriteMessage(HydrationLog); + } + if (dataCase_ == DataOneofCase.TimeInHeartRateZone) { + output.WriteRawTag(154, 2); + output.WriteMessage(TimeInHeartRateZone); + } + if (dataCase_ == DataOneofCase.ActiveMinutes) { + output.WriteRawTag(162, 2); + output.WriteMessage(ActiveMinutes); + } + if (dataCase_ == DataOneofCase.RespiratoryRateSleepSummary) { + output.WriteRawTag(170, 2); + output.WriteMessage(RespiratoryRateSleepSummary); + } + if (dataCase_ == DataOneofCase.DailyRespiratoryRate) { + output.WriteRawTag(178, 2); + output.WriteMessage(DailyRespiratoryRate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (DataPointName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DataPointName); + } + if (dataCase_ == DataOneofCase.Steps) { + output.WriteRawTag(34); + output.WriteMessage(Steps); + } + if (dataCase_ == DataOneofCase.Floors) { + output.WriteRawTag(42); + output.WriteMessage(Floors); + } + if (dataCase_ == DataOneofCase.HeartRate) { + output.WriteRawTag(50); + output.WriteMessage(HeartRate); + } + if (dataCase_ == DataOneofCase.Sleep) { + output.WriteRawTag(66); + output.WriteMessage(Sleep); + } + if (dataCase_ == DataOneofCase.DailyRestingHeartRate) { + output.WriteRawTag(74); + output.WriteMessage(DailyRestingHeartRate); + } + if (dataCase_ == DataOneofCase.DailyHeartRateVariability) { + output.WriteRawTag(82); + output.WriteMessage(DailyHeartRateVariability); + } + if (dataCase_ == DataOneofCase.Exercise) { + output.WriteRawTag(90); + output.WriteMessage(Exercise); + } + if (dataCase_ == DataOneofCase.Weight) { + output.WriteRawTag(98); + output.WriteMessage(Weight); + } + if (dataCase_ == DataOneofCase.Altitude) { + output.WriteRawTag(106); + output.WriteMessage(Altitude); + } + if (dataCase_ == DataOneofCase.Distance) { + output.WriteRawTag(114); + output.WriteMessage(Distance); + } + if (dataCase_ == DataOneofCase.BodyFat) { + output.WriteRawTag(122); + output.WriteMessage(BodyFat); + } + if (dataCase_ == DataOneofCase.ActiveZoneMinutes) { + output.WriteRawTag(138, 1); + output.WriteMessage(ActiveZoneMinutes); + } + if (dataCase_ == DataOneofCase.HeartRateVariability) { + output.WriteRawTag(154, 1); + output.WriteMessage(HeartRateVariability); + } + if (dataCase_ == DataOneofCase.DailySleepTemperatureDerivations) { + output.WriteRawTag(162, 1); + output.WriteMessage(DailySleepTemperatureDerivations); + } + if (dataCase_ == DataOneofCase.SedentaryPeriod) { + output.WriteRawTag(170, 1); + output.WriteMessage(SedentaryPeriod); + } + if (dataCase_ == DataOneofCase.RunVo2Max) { + output.WriteRawTag(178, 1); + output.WriteMessage(RunVo2Max); + } + if (dataCase_ == DataOneofCase.OxygenSaturation) { + output.WriteRawTag(194, 1); + output.WriteMessage(OxygenSaturation); + } + if (dataCase_ == DataOneofCase.DailyOxygenSaturation) { + output.WriteRawTag(202, 1); + output.WriteMessage(DailyOxygenSaturation); + } + if (dataCase_ == DataOneofCase.ActivityLevel) { + output.WriteRawTag(210, 1); + output.WriteMessage(ActivityLevel); + } + if (dataCase_ == DataOneofCase.Vo2Max) { + output.WriteRawTag(218, 1); + output.WriteMessage(Vo2Max); + } + if (dataCase_ == DataOneofCase.DailyVo2Max) { + output.WriteRawTag(226, 1); + output.WriteMessage(DailyVo2Max); + } + if (dataCase_ == DataOneofCase.DailyHeartRateZones) { + output.WriteRawTag(130, 2); + output.WriteMessage(DailyHeartRateZones); + } + if (dataCase_ == DataOneofCase.HydrationLog) { + output.WriteRawTag(138, 2); + output.WriteMessage(HydrationLog); + } + if (dataCase_ == DataOneofCase.TimeInHeartRateZone) { + output.WriteRawTag(154, 2); + output.WriteMessage(TimeInHeartRateZone); + } + if (dataCase_ == DataOneofCase.ActiveMinutes) { + output.WriteRawTag(162, 2); + output.WriteMessage(ActiveMinutes); + } + if (dataCase_ == DataOneofCase.RespiratoryRateSleepSummary) { + output.WriteRawTag(170, 2); + output.WriteMessage(RespiratoryRateSleepSummary); + } + if (dataCase_ == DataOneofCase.DailyRespiratoryRate) { + output.WriteRawTag(178, 2); + output.WriteMessage(DailyRespiratoryRate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (dataCase_ == DataOneofCase.Steps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Steps); + } + if (dataCase_ == DataOneofCase.Floors) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Floors); + } + if (dataCase_ == DataOneofCase.HeartRate) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HeartRate); + } + if (dataCase_ == DataOneofCase.Sleep) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sleep); + } + if (dataCase_ == DataOneofCase.DailyRestingHeartRate) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DailyRestingHeartRate); + } + if (dataCase_ == DataOneofCase.DailyHeartRateVariability) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DailyHeartRateVariability); + } + if (dataCase_ == DataOneofCase.Exercise) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Exercise); + } + if (dataCase_ == DataOneofCase.Weight) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Weight); + } + if (dataCase_ == DataOneofCase.Altitude) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Altitude); + } + if (dataCase_ == DataOneofCase.Distance) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Distance); + } + if (dataCase_ == DataOneofCase.BodyFat) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BodyFat); + } + if (dataCase_ == DataOneofCase.ActiveZoneMinutes) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ActiveZoneMinutes); + } + if (dataCase_ == DataOneofCase.HeartRateVariability) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(HeartRateVariability); + } + if (dataCase_ == DataOneofCase.DailySleepTemperatureDerivations) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DailySleepTemperatureDerivations); + } + if (dataCase_ == DataOneofCase.SedentaryPeriod) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SedentaryPeriod); + } + if (dataCase_ == DataOneofCase.RunVo2Max) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RunVo2Max); + } + if (dataCase_ == DataOneofCase.OxygenSaturation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(OxygenSaturation); + } + if (dataCase_ == DataOneofCase.DailyOxygenSaturation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DailyOxygenSaturation); + } + if (dataCase_ == DataOneofCase.ActivityLevel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ActivityLevel); + } + if (dataCase_ == DataOneofCase.Vo2Max) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Vo2Max); + } + if (dataCase_ == DataOneofCase.DailyVo2Max) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DailyVo2Max); + } + if (dataCase_ == DataOneofCase.DailyHeartRateZones) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DailyHeartRateZones); + } + if (dataCase_ == DataOneofCase.HydrationLog) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(HydrationLog); + } + if (dataCase_ == DataOneofCase.TimeInHeartRateZone) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(TimeInHeartRateZone); + } + if (dataCase_ == DataOneofCase.ActiveMinutes) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ActiveMinutes); + } + if (dataCase_ == DataOneofCase.RespiratoryRateSleepSummary) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RespiratoryRateSleepSummary); + } + if (dataCase_ == DataOneofCase.DailyRespiratoryRate) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DailyRespiratoryRate); + } + if (DataPointName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DataPointName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReconciledDataPoint other) { + if (other == null) { + return; + } + if (other.DataPointName.Length != 0) { + DataPointName = other.DataPointName; + } + switch (other.DataCase) { + case DataOneofCase.Steps: + if (Steps == null) { + Steps = new global::Google.DevicesAndServices.Health.V4.Steps(); + } + Steps.MergeFrom(other.Steps); + break; + case DataOneofCase.Floors: + if (Floors == null) { + Floors = new global::Google.DevicesAndServices.Health.V4.Floors(); + } + Floors.MergeFrom(other.Floors); + break; + case DataOneofCase.HeartRate: + if (HeartRate == null) { + HeartRate = new global::Google.DevicesAndServices.Health.V4.HeartRate(); + } + HeartRate.MergeFrom(other.HeartRate); + break; + case DataOneofCase.Sleep: + if (Sleep == null) { + Sleep = new global::Google.DevicesAndServices.Health.V4.Sleep(); + } + Sleep.MergeFrom(other.Sleep); + break; + case DataOneofCase.DailyRestingHeartRate: + if (DailyRestingHeartRate == null) { + DailyRestingHeartRate = new global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate(); + } + DailyRestingHeartRate.MergeFrom(other.DailyRestingHeartRate); + break; + case DataOneofCase.DailyHeartRateVariability: + if (DailyHeartRateVariability == null) { + DailyHeartRateVariability = new global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability(); + } + DailyHeartRateVariability.MergeFrom(other.DailyHeartRateVariability); + break; + case DataOneofCase.Exercise: + if (Exercise == null) { + Exercise = new global::Google.DevicesAndServices.Health.V4.Exercise(); + } + Exercise.MergeFrom(other.Exercise); + break; + case DataOneofCase.Weight: + if (Weight == null) { + Weight = new global::Google.DevicesAndServices.Health.V4.Weight(); + } + Weight.MergeFrom(other.Weight); + break; + case DataOneofCase.Altitude: + if (Altitude == null) { + Altitude = new global::Google.DevicesAndServices.Health.V4.Altitude(); + } + Altitude.MergeFrom(other.Altitude); + break; + case DataOneofCase.Distance: + if (Distance == null) { + Distance = new global::Google.DevicesAndServices.Health.V4.Distance(); + } + Distance.MergeFrom(other.Distance); + break; + case DataOneofCase.BodyFat: + if (BodyFat == null) { + BodyFat = new global::Google.DevicesAndServices.Health.V4.BodyFat(); + } + BodyFat.MergeFrom(other.BodyFat); + break; + case DataOneofCase.ActiveZoneMinutes: + if (ActiveZoneMinutes == null) { + ActiveZoneMinutes = new global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes(); + } + ActiveZoneMinutes.MergeFrom(other.ActiveZoneMinutes); + break; + case DataOneofCase.HeartRateVariability: + if (HeartRateVariability == null) { + HeartRateVariability = new global::Google.DevicesAndServices.Health.V4.HeartRateVariability(); + } + HeartRateVariability.MergeFrom(other.HeartRateVariability); + break; + case DataOneofCase.DailySleepTemperatureDerivations: + if (DailySleepTemperatureDerivations == null) { + DailySleepTemperatureDerivations = new global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations(); + } + DailySleepTemperatureDerivations.MergeFrom(other.DailySleepTemperatureDerivations); + break; + case DataOneofCase.SedentaryPeriod: + if (SedentaryPeriod == null) { + SedentaryPeriod = new global::Google.DevicesAndServices.Health.V4.SedentaryPeriod(); + } + SedentaryPeriod.MergeFrom(other.SedentaryPeriod); + break; + case DataOneofCase.RunVo2Max: + if (RunVo2Max == null) { + RunVo2Max = new global::Google.DevicesAndServices.Health.V4.RunVO2Max(); + } + RunVo2Max.MergeFrom(other.RunVo2Max); + break; + case DataOneofCase.OxygenSaturation: + if (OxygenSaturation == null) { + OxygenSaturation = new global::Google.DevicesAndServices.Health.V4.OxygenSaturation(); + } + OxygenSaturation.MergeFrom(other.OxygenSaturation); + break; + case DataOneofCase.DailyOxygenSaturation: + if (DailyOxygenSaturation == null) { + DailyOxygenSaturation = new global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation(); + } + DailyOxygenSaturation.MergeFrom(other.DailyOxygenSaturation); + break; + case DataOneofCase.ActivityLevel: + if (ActivityLevel == null) { + ActivityLevel = new global::Google.DevicesAndServices.Health.V4.ActivityLevel(); + } + ActivityLevel.MergeFrom(other.ActivityLevel); + break; + case DataOneofCase.Vo2Max: + if (Vo2Max == null) { + Vo2Max = new global::Google.DevicesAndServices.Health.V4.VO2Max(); + } + Vo2Max.MergeFrom(other.Vo2Max); + break; + case DataOneofCase.DailyVo2Max: + if (DailyVo2Max == null) { + DailyVo2Max = new global::Google.DevicesAndServices.Health.V4.DailyVO2Max(); + } + DailyVo2Max.MergeFrom(other.DailyVo2Max); + break; + case DataOneofCase.DailyHeartRateZones: + if (DailyHeartRateZones == null) { + DailyHeartRateZones = new global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones(); + } + DailyHeartRateZones.MergeFrom(other.DailyHeartRateZones); + break; + case DataOneofCase.HydrationLog: + if (HydrationLog == null) { + HydrationLog = new global::Google.DevicesAndServices.Health.V4.HydrationLog(); + } + HydrationLog.MergeFrom(other.HydrationLog); + break; + case DataOneofCase.TimeInHeartRateZone: + if (TimeInHeartRateZone == null) { + TimeInHeartRateZone = new global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone(); + } + TimeInHeartRateZone.MergeFrom(other.TimeInHeartRateZone); + break; + case DataOneofCase.ActiveMinutes: + if (ActiveMinutes == null) { + ActiveMinutes = new global::Google.DevicesAndServices.Health.V4.ActiveMinutes(); + } + ActiveMinutes.MergeFrom(other.ActiveMinutes); + break; + case DataOneofCase.RespiratoryRateSleepSummary: + if (RespiratoryRateSleepSummary == null) { + RespiratoryRateSleepSummary = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary(); + } + RespiratoryRateSleepSummary.MergeFrom(other.RespiratoryRateSleepSummary); + break; + case DataOneofCase.DailyRespiratoryRate: + if (DailyRespiratoryRate == null) { + DailyRespiratoryRate = new global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate(); + } + DailyRespiratoryRate.MergeFrom(other.DailyRespiratoryRate); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + DataPointName = input.ReadString(); + break; + } + case 34: { + global::Google.DevicesAndServices.Health.V4.Steps subBuilder = new global::Google.DevicesAndServices.Health.V4.Steps(); + if (dataCase_ == DataOneofCase.Steps) { + subBuilder.MergeFrom(Steps); + } + input.ReadMessage(subBuilder); + Steps = subBuilder; + break; + } + case 42: { + global::Google.DevicesAndServices.Health.V4.Floors subBuilder = new global::Google.DevicesAndServices.Health.V4.Floors(); + if (dataCase_ == DataOneofCase.Floors) { + subBuilder.MergeFrom(Floors); + } + input.ReadMessage(subBuilder); + Floors = subBuilder; + break; + } + case 50: { + global::Google.DevicesAndServices.Health.V4.HeartRate subBuilder = new global::Google.DevicesAndServices.Health.V4.HeartRate(); + if (dataCase_ == DataOneofCase.HeartRate) { + subBuilder.MergeFrom(HeartRate); + } + input.ReadMessage(subBuilder); + HeartRate = subBuilder; + break; + } + case 66: { + global::Google.DevicesAndServices.Health.V4.Sleep subBuilder = new global::Google.DevicesAndServices.Health.V4.Sleep(); + if (dataCase_ == DataOneofCase.Sleep) { + subBuilder.MergeFrom(Sleep); + } + input.ReadMessage(subBuilder); + Sleep = subBuilder; + break; + } + case 74: { + global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate(); + if (dataCase_ == DataOneofCase.DailyRestingHeartRate) { + subBuilder.MergeFrom(DailyRestingHeartRate); + } + input.ReadMessage(subBuilder); + DailyRestingHeartRate = subBuilder; + break; + } + case 82: { + global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability(); + if (dataCase_ == DataOneofCase.DailyHeartRateVariability) { + subBuilder.MergeFrom(DailyHeartRateVariability); + } + input.ReadMessage(subBuilder); + DailyHeartRateVariability = subBuilder; + break; + } + case 90: { + global::Google.DevicesAndServices.Health.V4.Exercise subBuilder = new global::Google.DevicesAndServices.Health.V4.Exercise(); + if (dataCase_ == DataOneofCase.Exercise) { + subBuilder.MergeFrom(Exercise); + } + input.ReadMessage(subBuilder); + Exercise = subBuilder; + break; + } + case 98: { + global::Google.DevicesAndServices.Health.V4.Weight subBuilder = new global::Google.DevicesAndServices.Health.V4.Weight(); + if (dataCase_ == DataOneofCase.Weight) { + subBuilder.MergeFrom(Weight); + } + input.ReadMessage(subBuilder); + Weight = subBuilder; + break; + } + case 106: { + global::Google.DevicesAndServices.Health.V4.Altitude subBuilder = new global::Google.DevicesAndServices.Health.V4.Altitude(); + if (dataCase_ == DataOneofCase.Altitude) { + subBuilder.MergeFrom(Altitude); + } + input.ReadMessage(subBuilder); + Altitude = subBuilder; + break; + } + case 114: { + global::Google.DevicesAndServices.Health.V4.Distance subBuilder = new global::Google.DevicesAndServices.Health.V4.Distance(); + if (dataCase_ == DataOneofCase.Distance) { + subBuilder.MergeFrom(Distance); + } + input.ReadMessage(subBuilder); + Distance = subBuilder; + break; + } + case 122: { + global::Google.DevicesAndServices.Health.V4.BodyFat subBuilder = new global::Google.DevicesAndServices.Health.V4.BodyFat(); + if (dataCase_ == DataOneofCase.BodyFat) { + subBuilder.MergeFrom(BodyFat); + } + input.ReadMessage(subBuilder); + BodyFat = subBuilder; + break; + } + case 138: { + global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes(); + if (dataCase_ == DataOneofCase.ActiveZoneMinutes) { + subBuilder.MergeFrom(ActiveZoneMinutes); + } + input.ReadMessage(subBuilder); + ActiveZoneMinutes = subBuilder; + break; + } + case 154: { + global::Google.DevicesAndServices.Health.V4.HeartRateVariability subBuilder = new global::Google.DevicesAndServices.Health.V4.HeartRateVariability(); + if (dataCase_ == DataOneofCase.HeartRateVariability) { + subBuilder.MergeFrom(HeartRateVariability); + } + input.ReadMessage(subBuilder); + HeartRateVariability = subBuilder; + break; + } + case 162: { + global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations subBuilder = new global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations(); + if (dataCase_ == DataOneofCase.DailySleepTemperatureDerivations) { + subBuilder.MergeFrom(DailySleepTemperatureDerivations); + } + input.ReadMessage(subBuilder); + DailySleepTemperatureDerivations = subBuilder; + break; + } + case 170: { + global::Google.DevicesAndServices.Health.V4.SedentaryPeriod subBuilder = new global::Google.DevicesAndServices.Health.V4.SedentaryPeriod(); + if (dataCase_ == DataOneofCase.SedentaryPeriod) { + subBuilder.MergeFrom(SedentaryPeriod); + } + input.ReadMessage(subBuilder); + SedentaryPeriod = subBuilder; + break; + } + case 178: { + global::Google.DevicesAndServices.Health.V4.RunVO2Max subBuilder = new global::Google.DevicesAndServices.Health.V4.RunVO2Max(); + if (dataCase_ == DataOneofCase.RunVo2Max) { + subBuilder.MergeFrom(RunVo2Max); + } + input.ReadMessage(subBuilder); + RunVo2Max = subBuilder; + break; + } + case 194: { + global::Google.DevicesAndServices.Health.V4.OxygenSaturation subBuilder = new global::Google.DevicesAndServices.Health.V4.OxygenSaturation(); + if (dataCase_ == DataOneofCase.OxygenSaturation) { + subBuilder.MergeFrom(OxygenSaturation); + } + input.ReadMessage(subBuilder); + OxygenSaturation = subBuilder; + break; + } + case 202: { + global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation(); + if (dataCase_ == DataOneofCase.DailyOxygenSaturation) { + subBuilder.MergeFrom(DailyOxygenSaturation); + } + input.ReadMessage(subBuilder); + DailyOxygenSaturation = subBuilder; + break; + } + case 210: { + global::Google.DevicesAndServices.Health.V4.ActivityLevel subBuilder = new global::Google.DevicesAndServices.Health.V4.ActivityLevel(); + if (dataCase_ == DataOneofCase.ActivityLevel) { + subBuilder.MergeFrom(ActivityLevel); + } + input.ReadMessage(subBuilder); + ActivityLevel = subBuilder; + break; + } + case 218: { + global::Google.DevicesAndServices.Health.V4.VO2Max subBuilder = new global::Google.DevicesAndServices.Health.V4.VO2Max(); + if (dataCase_ == DataOneofCase.Vo2Max) { + subBuilder.MergeFrom(Vo2Max); + } + input.ReadMessage(subBuilder); + Vo2Max = subBuilder; + break; + } + case 226: { + global::Google.DevicesAndServices.Health.V4.DailyVO2Max subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyVO2Max(); + if (dataCase_ == DataOneofCase.DailyVo2Max) { + subBuilder.MergeFrom(DailyVo2Max); + } + input.ReadMessage(subBuilder); + DailyVo2Max = subBuilder; + break; + } + case 258: { + global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones(); + if (dataCase_ == DataOneofCase.DailyHeartRateZones) { + subBuilder.MergeFrom(DailyHeartRateZones); + } + input.ReadMessage(subBuilder); + DailyHeartRateZones = subBuilder; + break; + } + case 266: { + global::Google.DevicesAndServices.Health.V4.HydrationLog subBuilder = new global::Google.DevicesAndServices.Health.V4.HydrationLog(); + if (dataCase_ == DataOneofCase.HydrationLog) { + subBuilder.MergeFrom(HydrationLog); + } + input.ReadMessage(subBuilder); + HydrationLog = subBuilder; + break; + } + case 282: { + global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone subBuilder = new global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone(); + if (dataCase_ == DataOneofCase.TimeInHeartRateZone) { + subBuilder.MergeFrom(TimeInHeartRateZone); + } + input.ReadMessage(subBuilder); + TimeInHeartRateZone = subBuilder; + break; + } + case 290: { + global::Google.DevicesAndServices.Health.V4.ActiveMinutes subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveMinutes(); + if (dataCase_ == DataOneofCase.ActiveMinutes) { + subBuilder.MergeFrom(ActiveMinutes); + } + input.ReadMessage(subBuilder); + ActiveMinutes = subBuilder; + break; + } + case 298: { + global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary subBuilder = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary(); + if (dataCase_ == DataOneofCase.RespiratoryRateSleepSummary) { + subBuilder.MergeFrom(RespiratoryRateSleepSummary); + } + input.ReadMessage(subBuilder); + RespiratoryRateSleepSummary = subBuilder; + break; + } + case 306: { + global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate(); + if (dataCase_ == DataOneofCase.DailyRespiratoryRate) { + subBuilder.MergeFrom(DailyRespiratoryRate); + } + input.ReadMessage(subBuilder); + DailyRespiratoryRate = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + DataPointName = input.ReadString(); + break; + } + case 34: { + global::Google.DevicesAndServices.Health.V4.Steps subBuilder = new global::Google.DevicesAndServices.Health.V4.Steps(); + if (dataCase_ == DataOneofCase.Steps) { + subBuilder.MergeFrom(Steps); + } + input.ReadMessage(subBuilder); + Steps = subBuilder; + break; + } + case 42: { + global::Google.DevicesAndServices.Health.V4.Floors subBuilder = new global::Google.DevicesAndServices.Health.V4.Floors(); + if (dataCase_ == DataOneofCase.Floors) { + subBuilder.MergeFrom(Floors); + } + input.ReadMessage(subBuilder); + Floors = subBuilder; + break; + } + case 50: { + global::Google.DevicesAndServices.Health.V4.HeartRate subBuilder = new global::Google.DevicesAndServices.Health.V4.HeartRate(); + if (dataCase_ == DataOneofCase.HeartRate) { + subBuilder.MergeFrom(HeartRate); + } + input.ReadMessage(subBuilder); + HeartRate = subBuilder; + break; + } + case 66: { + global::Google.DevicesAndServices.Health.V4.Sleep subBuilder = new global::Google.DevicesAndServices.Health.V4.Sleep(); + if (dataCase_ == DataOneofCase.Sleep) { + subBuilder.MergeFrom(Sleep); + } + input.ReadMessage(subBuilder); + Sleep = subBuilder; + break; + } + case 74: { + global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyRestingHeartRate(); + if (dataCase_ == DataOneofCase.DailyRestingHeartRate) { + subBuilder.MergeFrom(DailyRestingHeartRate); + } + input.ReadMessage(subBuilder); + DailyRestingHeartRate = subBuilder; + break; + } + case 82: { + global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyHeartRateVariability(); + if (dataCase_ == DataOneofCase.DailyHeartRateVariability) { + subBuilder.MergeFrom(DailyHeartRateVariability); + } + input.ReadMessage(subBuilder); + DailyHeartRateVariability = subBuilder; + break; + } + case 90: { + global::Google.DevicesAndServices.Health.V4.Exercise subBuilder = new global::Google.DevicesAndServices.Health.V4.Exercise(); + if (dataCase_ == DataOneofCase.Exercise) { + subBuilder.MergeFrom(Exercise); + } + input.ReadMessage(subBuilder); + Exercise = subBuilder; + break; + } + case 98: { + global::Google.DevicesAndServices.Health.V4.Weight subBuilder = new global::Google.DevicesAndServices.Health.V4.Weight(); + if (dataCase_ == DataOneofCase.Weight) { + subBuilder.MergeFrom(Weight); + } + input.ReadMessage(subBuilder); + Weight = subBuilder; + break; + } + case 106: { + global::Google.DevicesAndServices.Health.V4.Altitude subBuilder = new global::Google.DevicesAndServices.Health.V4.Altitude(); + if (dataCase_ == DataOneofCase.Altitude) { + subBuilder.MergeFrom(Altitude); + } + input.ReadMessage(subBuilder); + Altitude = subBuilder; + break; + } + case 114: { + global::Google.DevicesAndServices.Health.V4.Distance subBuilder = new global::Google.DevicesAndServices.Health.V4.Distance(); + if (dataCase_ == DataOneofCase.Distance) { + subBuilder.MergeFrom(Distance); + } + input.ReadMessage(subBuilder); + Distance = subBuilder; + break; + } + case 122: { + global::Google.DevicesAndServices.Health.V4.BodyFat subBuilder = new global::Google.DevicesAndServices.Health.V4.BodyFat(); + if (dataCase_ == DataOneofCase.BodyFat) { + subBuilder.MergeFrom(BodyFat); + } + input.ReadMessage(subBuilder); + BodyFat = subBuilder; + break; + } + case 138: { + global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutes(); + if (dataCase_ == DataOneofCase.ActiveZoneMinutes) { + subBuilder.MergeFrom(ActiveZoneMinutes); + } + input.ReadMessage(subBuilder); + ActiveZoneMinutes = subBuilder; + break; + } + case 154: { + global::Google.DevicesAndServices.Health.V4.HeartRateVariability subBuilder = new global::Google.DevicesAndServices.Health.V4.HeartRateVariability(); + if (dataCase_ == DataOneofCase.HeartRateVariability) { + subBuilder.MergeFrom(HeartRateVariability); + } + input.ReadMessage(subBuilder); + HeartRateVariability = subBuilder; + break; + } + case 162: { + global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations subBuilder = new global::Google.DevicesAndServices.Health.V4.DailySleepTemperatureDerivations(); + if (dataCase_ == DataOneofCase.DailySleepTemperatureDerivations) { + subBuilder.MergeFrom(DailySleepTemperatureDerivations); + } + input.ReadMessage(subBuilder); + DailySleepTemperatureDerivations = subBuilder; + break; + } + case 170: { + global::Google.DevicesAndServices.Health.V4.SedentaryPeriod subBuilder = new global::Google.DevicesAndServices.Health.V4.SedentaryPeriod(); + if (dataCase_ == DataOneofCase.SedentaryPeriod) { + subBuilder.MergeFrom(SedentaryPeriod); + } + input.ReadMessage(subBuilder); + SedentaryPeriod = subBuilder; + break; + } + case 178: { + global::Google.DevicesAndServices.Health.V4.RunVO2Max subBuilder = new global::Google.DevicesAndServices.Health.V4.RunVO2Max(); + if (dataCase_ == DataOneofCase.RunVo2Max) { + subBuilder.MergeFrom(RunVo2Max); + } + input.ReadMessage(subBuilder); + RunVo2Max = subBuilder; + break; + } + case 194: { + global::Google.DevicesAndServices.Health.V4.OxygenSaturation subBuilder = new global::Google.DevicesAndServices.Health.V4.OxygenSaturation(); + if (dataCase_ == DataOneofCase.OxygenSaturation) { + subBuilder.MergeFrom(OxygenSaturation); + } + input.ReadMessage(subBuilder); + OxygenSaturation = subBuilder; + break; + } + case 202: { + global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyOxygenSaturation(); + if (dataCase_ == DataOneofCase.DailyOxygenSaturation) { + subBuilder.MergeFrom(DailyOxygenSaturation); + } + input.ReadMessage(subBuilder); + DailyOxygenSaturation = subBuilder; + break; + } + case 210: { + global::Google.DevicesAndServices.Health.V4.ActivityLevel subBuilder = new global::Google.DevicesAndServices.Health.V4.ActivityLevel(); + if (dataCase_ == DataOneofCase.ActivityLevel) { + subBuilder.MergeFrom(ActivityLevel); + } + input.ReadMessage(subBuilder); + ActivityLevel = subBuilder; + break; + } + case 218: { + global::Google.DevicesAndServices.Health.V4.VO2Max subBuilder = new global::Google.DevicesAndServices.Health.V4.VO2Max(); + if (dataCase_ == DataOneofCase.Vo2Max) { + subBuilder.MergeFrom(Vo2Max); + } + input.ReadMessage(subBuilder); + Vo2Max = subBuilder; + break; + } + case 226: { + global::Google.DevicesAndServices.Health.V4.DailyVO2Max subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyVO2Max(); + if (dataCase_ == DataOneofCase.DailyVo2Max) { + subBuilder.MergeFrom(DailyVo2Max); + } + input.ReadMessage(subBuilder); + DailyVo2Max = subBuilder; + break; + } + case 258: { + global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyHeartRateZones(); + if (dataCase_ == DataOneofCase.DailyHeartRateZones) { + subBuilder.MergeFrom(DailyHeartRateZones); + } + input.ReadMessage(subBuilder); + DailyHeartRateZones = subBuilder; + break; + } + case 266: { + global::Google.DevicesAndServices.Health.V4.HydrationLog subBuilder = new global::Google.DevicesAndServices.Health.V4.HydrationLog(); + if (dataCase_ == DataOneofCase.HydrationLog) { + subBuilder.MergeFrom(HydrationLog); + } + input.ReadMessage(subBuilder); + HydrationLog = subBuilder; + break; + } + case 282: { + global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone subBuilder = new global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZone(); + if (dataCase_ == DataOneofCase.TimeInHeartRateZone) { + subBuilder.MergeFrom(TimeInHeartRateZone); + } + input.ReadMessage(subBuilder); + TimeInHeartRateZone = subBuilder; + break; + } + case 290: { + global::Google.DevicesAndServices.Health.V4.ActiveMinutes subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveMinutes(); + if (dataCase_ == DataOneofCase.ActiveMinutes) { + subBuilder.MergeFrom(ActiveMinutes); + } + input.ReadMessage(subBuilder); + ActiveMinutes = subBuilder; + break; + } + case 298: { + global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary subBuilder = new global::Google.DevicesAndServices.Health.V4.RespiratoryRateSleepSummary(); + if (dataCase_ == DataOneofCase.RespiratoryRateSleepSummary) { + subBuilder.MergeFrom(RespiratoryRateSleepSummary); + } + input.ReadMessage(subBuilder); + RespiratoryRateSleepSummary = subBuilder; + break; + } + case 306: { + global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate subBuilder = new global::Google.DevicesAndServices.Health.V4.DailyRespiratoryRate(); + if (dataCase_ == DataOneofCase.DailyRespiratoryRate) { + subBuilder.MergeFrom(DailyRespiratoryRate); + } + input.ReadMessage(subBuilder); + DailyRespiratoryRate = subBuilder; + break; + } + } + } + } + #endif + + } + + /// + /// Value of a rollup for a single physical time interval (aggregation window) + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RollupDataPoint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RollupDataPoint()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RollupDataPoint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RollupDataPoint(RollupDataPoint other) : this() { + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + switch (other.ValueCase) { + case ValueOneofCase.Steps: + Steps = other.Steps.Clone(); + break; + case ValueOneofCase.Floors: + Floors = other.Floors.Clone(); + break; + case ValueOneofCase.HeartRate: + HeartRate = other.HeartRate.Clone(); + break; + case ValueOneofCase.Weight: + Weight = other.Weight.Clone(); + break; + case ValueOneofCase.Altitude: + Altitude = other.Altitude.Clone(); + break; + case ValueOneofCase.Distance: + Distance = other.Distance.Clone(); + break; + case ValueOneofCase.BodyFat: + BodyFat = other.BodyFat.Clone(); + break; + case ValueOneofCase.TotalCalories: + TotalCalories = other.TotalCalories.Clone(); + break; + case ValueOneofCase.ActiveZoneMinutes: + ActiveZoneMinutes = other.ActiveZoneMinutes.Clone(); + break; + case ValueOneofCase.SedentaryPeriod: + SedentaryPeriod = other.SedentaryPeriod.Clone(); + break; + case ValueOneofCase.RunVo2Max: + RunVo2Max = other.RunVo2Max.Clone(); + break; + case ValueOneofCase.CaloriesInHeartRateZone: + CaloriesInHeartRateZone = other.CaloriesInHeartRateZone.Clone(); + break; + case ValueOneofCase.ActivityLevel: + ActivityLevel = other.ActivityLevel.Clone(); + break; + case ValueOneofCase.HydrationLog: + HydrationLog = other.HydrationLog.Clone(); + break; + case ValueOneofCase.TimeInHeartRateZone: + TimeInHeartRateZone = other.TimeInHeartRateZone.Clone(); + break; + case ValueOneofCase.ActiveMinutes: + ActiveMinutes = other.ActiveMinutes.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RollupDataPoint Clone() { + return new RollupDataPoint(this); + } + + /// Field number for the "steps" field. + public const int StepsFieldNumber = 5; + /// + /// Returned by default when rolling up data points from the `steps` data + /// type, or when requested explicitly using the `steps` rollup type + /// identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.StepsRollupValue Steps { + get { return valueCase_ == ValueOneofCase.Steps ? (global::Google.DevicesAndServices.Health.V4.StepsRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Steps; + } + } + + /// Field number for the "floors" field. + public const int FloorsFieldNumber = 6; + /// + /// Returned by default when rolling up data points from the `floors` data + /// type, or when requested explicitly using the `floors` rollup type + /// identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.FloorsRollupValue Floors { + get { return valueCase_ == ValueOneofCase.Floors ? (global::Google.DevicesAndServices.Health.V4.FloorsRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Floors; + } + } + + /// Field number for the "heart_rate" field. + public const int HeartRateFieldNumber = 7; + /// + /// Returned by default when rolling up data points from the `heart-rate` + /// data type, or when requested explicitly using the `heart-rate` rollup + /// type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue HeartRate { + get { return valueCase_ == ValueOneofCase.HeartRate ? (global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.HeartRate; + } + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 8; + /// + /// Returned by default when rolling up data points from the `weight` data + /// type, or when requested explicitly using the `weight` rollup type + /// identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.WeightRollupValue Weight { + get { return valueCase_ == ValueOneofCase.Weight ? (global::Google.DevicesAndServices.Health.V4.WeightRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Weight; + } + } + + /// Field number for the "altitude" field. + public const int AltitudeFieldNumber = 9; + /// + /// Returned by default when rolling up data points from the `altitude` data + /// type, or when requested explicitly using the `altitude` rollup type + /// identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue Altitude { + get { return valueCase_ == ValueOneofCase.Altitude ? (global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Altitude; + } + } + + /// Field number for the "distance" field. + public const int DistanceFieldNumber = 10; + /// + /// Returned by default when rolling up data points from the `distance` data + /// type, or when requested explicitly using the `distance` rollup type + /// identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DistanceRollupValue Distance { + get { return valueCase_ == ValueOneofCase.Distance ? (global::Google.DevicesAndServices.Health.V4.DistanceRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Distance; + } + } + + /// Field number for the "body_fat" field. + public const int BodyFatFieldNumber = 11; + /// + /// Returned by default when rolling up data points from the `body-fat` data + /// type, or when requested explicitly using the `body-fat` rollup type + /// identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue BodyFat { + get { return valueCase_ == ValueOneofCase.BodyFat ? (global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BodyFat; + } + } + + /// Field number for the "total_calories" field. + public const int TotalCaloriesFieldNumber = 12; + /// + /// Returned by default when rolling up data points from the `total-calories` + /// data type, or when requested explicitly using the `total-calories` + /// rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue TotalCalories { + get { return valueCase_ == ValueOneofCase.TotalCalories ? (global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.TotalCalories; + } + } + + /// Field number for the "active_zone_minutes" field. + public const int ActiveZoneMinutesFieldNumber = 13; + /// + /// Returned by default when rolling up data points from the + /// `active-zone-minutes` data type, or when requested explicitly using the + /// `active-zone-minutes` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue ActiveZoneMinutes { + get { return valueCase_ == ValueOneofCase.ActiveZoneMinutes ? (global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ActiveZoneMinutes; + } + } + + /// Field number for the "sedentary_period" field. + public const int SedentaryPeriodFieldNumber = 15; + /// + /// Returned by default when rolling up data points from the + /// `sedentary-period` data type, or when requested explicitly using the + /// `sedentary-period` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue SedentaryPeriod { + get { return valueCase_ == ValueOneofCase.SedentaryPeriod ? (global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SedentaryPeriod; + } + } + + /// Field number for the "run_vo2_max" field. + public const int RunVo2MaxFieldNumber = 16; + /// + /// Returned by default when rolling up data points from the + /// `run-vo2-max` data type, or when requested explicitly using the + /// `run-vo2-max` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue RunVo2Max { + get { return valueCase_ == ValueOneofCase.RunVo2Max ? (global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.RunVo2Max; + } + } + + /// Field number for the "calories_in_heart_rate_zone" field. + public const int CaloriesInHeartRateZoneFieldNumber = 17; + /// + /// Returned by default when rolling up data points from the + /// `calories-in-heart-rate-zone` data type, or when requested explicitly + /// using the `calories-in-heart-rate-zone` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue CaloriesInHeartRateZone { + get { return valueCase_ == ValueOneofCase.CaloriesInHeartRateZone ? (global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CaloriesInHeartRateZone; + } + } + + /// Field number for the "activity_level" field. + public const int ActivityLevelFieldNumber = 18; + /// + /// Returned by default when rolling up data points from the + /// `activity-level` data type, or when requested explicitly using the + /// `activity-level` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue ActivityLevel { + get { return valueCase_ == ValueOneofCase.ActivityLevel ? (global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ActivityLevel; + } + } + + /// Field number for the "hydration_log" field. + public const int HydrationLogFieldNumber = 20; + /// + /// Returned by default when rolling up data points from the + /// `hydration-log` data type, or when requested explicitly using the + /// `hydration-log` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue HydrationLog { + get { return valueCase_ == ValueOneofCase.HydrationLog ? (global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.HydrationLog; + } + } + + /// Field number for the "time_in_heart_rate_zone" field. + public const int TimeInHeartRateZoneFieldNumber = 21; + /// + /// Returned by default when rolling up data points from the + /// `time-in-heart-rate-zone` data type, or when requested explicitly using + /// the `time-in-heart-rate-zone` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue TimeInHeartRateZone { + get { return valueCase_ == ValueOneofCase.TimeInHeartRateZone ? (global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.TimeInHeartRateZone; + } + } + + /// Field number for the "active_minutes" field. + public const int ActiveMinutesFieldNumber = 22; + /// + /// Returned by default when rolling up data points from the + /// `active-minutes` data type, or when requested explicitly using the + /// `active-minutes` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue ActiveMinutes { + get { return valueCase_ == ValueOneofCase.ActiveMinutes ? (global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ActiveMinutes; + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// Start time of the window this value aggregates over + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// End time of the window this value aggregates over + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Steps = 5, + Floors = 6, + HeartRate = 7, + Weight = 8, + Altitude = 9, + Distance = 10, + BodyFat = 11, + TotalCalories = 12, + ActiveZoneMinutes = 13, + SedentaryPeriod = 15, + RunVo2Max = 16, + CaloriesInHeartRateZone = 17, + ActivityLevel = 18, + HydrationLog = 20, + TimeInHeartRateZone = 21, + ActiveMinutes = 22, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RollupDataPoint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RollupDataPoint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Steps, other.Steps)) return false; + if (!object.Equals(Floors, other.Floors)) return false; + if (!object.Equals(HeartRate, other.HeartRate)) return false; + if (!object.Equals(Weight, other.Weight)) return false; + if (!object.Equals(Altitude, other.Altitude)) return false; + if (!object.Equals(Distance, other.Distance)) return false; + if (!object.Equals(BodyFat, other.BodyFat)) return false; + if (!object.Equals(TotalCalories, other.TotalCalories)) return false; + if (!object.Equals(ActiveZoneMinutes, other.ActiveZoneMinutes)) return false; + if (!object.Equals(SedentaryPeriod, other.SedentaryPeriod)) return false; + if (!object.Equals(RunVo2Max, other.RunVo2Max)) return false; + if (!object.Equals(CaloriesInHeartRateZone, other.CaloriesInHeartRateZone)) return false; + if (!object.Equals(ActivityLevel, other.ActivityLevel)) return false; + if (!object.Equals(HydrationLog, other.HydrationLog)) return false; + if (!object.Equals(TimeInHeartRateZone, other.TimeInHeartRateZone)) return false; + if (!object.Equals(ActiveMinutes, other.ActiveMinutes)) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Steps) hash ^= Steps.GetHashCode(); + if (valueCase_ == ValueOneofCase.Floors) hash ^= Floors.GetHashCode(); + if (valueCase_ == ValueOneofCase.HeartRate) hash ^= HeartRate.GetHashCode(); + if (valueCase_ == ValueOneofCase.Weight) hash ^= Weight.GetHashCode(); + if (valueCase_ == ValueOneofCase.Altitude) hash ^= Altitude.GetHashCode(); + if (valueCase_ == ValueOneofCase.Distance) hash ^= Distance.GetHashCode(); + if (valueCase_ == ValueOneofCase.BodyFat) hash ^= BodyFat.GetHashCode(); + if (valueCase_ == ValueOneofCase.TotalCalories) hash ^= TotalCalories.GetHashCode(); + if (valueCase_ == ValueOneofCase.ActiveZoneMinutes) hash ^= ActiveZoneMinutes.GetHashCode(); + if (valueCase_ == ValueOneofCase.SedentaryPeriod) hash ^= SedentaryPeriod.GetHashCode(); + if (valueCase_ == ValueOneofCase.RunVo2Max) hash ^= RunVo2Max.GetHashCode(); + if (valueCase_ == ValueOneofCase.CaloriesInHeartRateZone) hash ^= CaloriesInHeartRateZone.GetHashCode(); + if (valueCase_ == ValueOneofCase.ActivityLevel) hash ^= ActivityLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.HydrationLog) hash ^= HydrationLog.GetHashCode(); + if (valueCase_ == ValueOneofCase.TimeInHeartRateZone) hash ^= TimeInHeartRateZone.GetHashCode(); + if (valueCase_ == ValueOneofCase.ActiveMinutes) hash ^= ActiveMinutes.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (valueCase_ == ValueOneofCase.Steps) { + output.WriteRawTag(42); + output.WriteMessage(Steps); + } + if (valueCase_ == ValueOneofCase.Floors) { + output.WriteRawTag(50); + output.WriteMessage(Floors); + } + if (valueCase_ == ValueOneofCase.HeartRate) { + output.WriteRawTag(58); + output.WriteMessage(HeartRate); + } + if (valueCase_ == ValueOneofCase.Weight) { + output.WriteRawTag(66); + output.WriteMessage(Weight); + } + if (valueCase_ == ValueOneofCase.Altitude) { + output.WriteRawTag(74); + output.WriteMessage(Altitude); + } + if (valueCase_ == ValueOneofCase.Distance) { + output.WriteRawTag(82); + output.WriteMessage(Distance); + } + if (valueCase_ == ValueOneofCase.BodyFat) { + output.WriteRawTag(90); + output.WriteMessage(BodyFat); + } + if (valueCase_ == ValueOneofCase.TotalCalories) { + output.WriteRawTag(98); + output.WriteMessage(TotalCalories); + } + if (valueCase_ == ValueOneofCase.ActiveZoneMinutes) { + output.WriteRawTag(106); + output.WriteMessage(ActiveZoneMinutes); + } + if (valueCase_ == ValueOneofCase.SedentaryPeriod) { + output.WriteRawTag(122); + output.WriteMessage(SedentaryPeriod); + } + if (valueCase_ == ValueOneofCase.RunVo2Max) { + output.WriteRawTag(130, 1); + output.WriteMessage(RunVo2Max); + } + if (valueCase_ == ValueOneofCase.CaloriesInHeartRateZone) { + output.WriteRawTag(138, 1); + output.WriteMessage(CaloriesInHeartRateZone); + } + if (valueCase_ == ValueOneofCase.ActivityLevel) { + output.WriteRawTag(146, 1); + output.WriteMessage(ActivityLevel); + } + if (valueCase_ == ValueOneofCase.HydrationLog) { + output.WriteRawTag(162, 1); + output.WriteMessage(HydrationLog); + } + if (valueCase_ == ValueOneofCase.TimeInHeartRateZone) { + output.WriteRawTag(170, 1); + output.WriteMessage(TimeInHeartRateZone); + } + if (valueCase_ == ValueOneofCase.ActiveMinutes) { + output.WriteRawTag(178, 1); + output.WriteMessage(ActiveMinutes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (startTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (valueCase_ == ValueOneofCase.Steps) { + output.WriteRawTag(42); + output.WriteMessage(Steps); + } + if (valueCase_ == ValueOneofCase.Floors) { + output.WriteRawTag(50); + output.WriteMessage(Floors); + } + if (valueCase_ == ValueOneofCase.HeartRate) { + output.WriteRawTag(58); + output.WriteMessage(HeartRate); + } + if (valueCase_ == ValueOneofCase.Weight) { + output.WriteRawTag(66); + output.WriteMessage(Weight); + } + if (valueCase_ == ValueOneofCase.Altitude) { + output.WriteRawTag(74); + output.WriteMessage(Altitude); + } + if (valueCase_ == ValueOneofCase.Distance) { + output.WriteRawTag(82); + output.WriteMessage(Distance); + } + if (valueCase_ == ValueOneofCase.BodyFat) { + output.WriteRawTag(90); + output.WriteMessage(BodyFat); + } + if (valueCase_ == ValueOneofCase.TotalCalories) { + output.WriteRawTag(98); + output.WriteMessage(TotalCalories); + } + if (valueCase_ == ValueOneofCase.ActiveZoneMinutes) { + output.WriteRawTag(106); + output.WriteMessage(ActiveZoneMinutes); + } + if (valueCase_ == ValueOneofCase.SedentaryPeriod) { + output.WriteRawTag(122); + output.WriteMessage(SedentaryPeriod); + } + if (valueCase_ == ValueOneofCase.RunVo2Max) { + output.WriteRawTag(130, 1); + output.WriteMessage(RunVo2Max); + } + if (valueCase_ == ValueOneofCase.CaloriesInHeartRateZone) { + output.WriteRawTag(138, 1); + output.WriteMessage(CaloriesInHeartRateZone); + } + if (valueCase_ == ValueOneofCase.ActivityLevel) { + output.WriteRawTag(146, 1); + output.WriteMessage(ActivityLevel); + } + if (valueCase_ == ValueOneofCase.HydrationLog) { + output.WriteRawTag(162, 1); + output.WriteMessage(HydrationLog); + } + if (valueCase_ == ValueOneofCase.TimeInHeartRateZone) { + output.WriteRawTag(170, 1); + output.WriteMessage(TimeInHeartRateZone); + } + if (valueCase_ == ValueOneofCase.ActiveMinutes) { + output.WriteRawTag(178, 1); + output.WriteMessage(ActiveMinutes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Steps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Steps); + } + if (valueCase_ == ValueOneofCase.Floors) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Floors); + } + if (valueCase_ == ValueOneofCase.HeartRate) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HeartRate); + } + if (valueCase_ == ValueOneofCase.Weight) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Weight); + } + if (valueCase_ == ValueOneofCase.Altitude) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Altitude); + } + if (valueCase_ == ValueOneofCase.Distance) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Distance); + } + if (valueCase_ == ValueOneofCase.BodyFat) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BodyFat); + } + if (valueCase_ == ValueOneofCase.TotalCalories) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TotalCalories); + } + if (valueCase_ == ValueOneofCase.ActiveZoneMinutes) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActiveZoneMinutes); + } + if (valueCase_ == ValueOneofCase.SedentaryPeriod) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SedentaryPeriod); + } + if (valueCase_ == ValueOneofCase.RunVo2Max) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RunVo2Max); + } + if (valueCase_ == ValueOneofCase.CaloriesInHeartRateZone) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CaloriesInHeartRateZone); + } + if (valueCase_ == ValueOneofCase.ActivityLevel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ActivityLevel); + } + if (valueCase_ == ValueOneofCase.HydrationLog) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(HydrationLog); + } + if (valueCase_ == ValueOneofCase.TimeInHeartRateZone) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(TimeInHeartRateZone); + } + if (valueCase_ == ValueOneofCase.ActiveMinutes) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ActiveMinutes); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RollupDataPoint other) { + if (other == null) { + return; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + switch (other.ValueCase) { + case ValueOneofCase.Steps: + if (Steps == null) { + Steps = new global::Google.DevicesAndServices.Health.V4.StepsRollupValue(); + } + Steps.MergeFrom(other.Steps); + break; + case ValueOneofCase.Floors: + if (Floors == null) { + Floors = new global::Google.DevicesAndServices.Health.V4.FloorsRollupValue(); + } + Floors.MergeFrom(other.Floors); + break; + case ValueOneofCase.HeartRate: + if (HeartRate == null) { + HeartRate = new global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue(); + } + HeartRate.MergeFrom(other.HeartRate); + break; + case ValueOneofCase.Weight: + if (Weight == null) { + Weight = new global::Google.DevicesAndServices.Health.V4.WeightRollupValue(); + } + Weight.MergeFrom(other.Weight); + break; + case ValueOneofCase.Altitude: + if (Altitude == null) { + Altitude = new global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue(); + } + Altitude.MergeFrom(other.Altitude); + break; + case ValueOneofCase.Distance: + if (Distance == null) { + Distance = new global::Google.DevicesAndServices.Health.V4.DistanceRollupValue(); + } + Distance.MergeFrom(other.Distance); + break; + case ValueOneofCase.BodyFat: + if (BodyFat == null) { + BodyFat = new global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue(); + } + BodyFat.MergeFrom(other.BodyFat); + break; + case ValueOneofCase.TotalCalories: + if (TotalCalories == null) { + TotalCalories = new global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue(); + } + TotalCalories.MergeFrom(other.TotalCalories); + break; + case ValueOneofCase.ActiveZoneMinutes: + if (ActiveZoneMinutes == null) { + ActiveZoneMinutes = new global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue(); + } + ActiveZoneMinutes.MergeFrom(other.ActiveZoneMinutes); + break; + case ValueOneofCase.SedentaryPeriod: + if (SedentaryPeriod == null) { + SedentaryPeriod = new global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue(); + } + SedentaryPeriod.MergeFrom(other.SedentaryPeriod); + break; + case ValueOneofCase.RunVo2Max: + if (RunVo2Max == null) { + RunVo2Max = new global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue(); + } + RunVo2Max.MergeFrom(other.RunVo2Max); + break; + case ValueOneofCase.CaloriesInHeartRateZone: + if (CaloriesInHeartRateZone == null) { + CaloriesInHeartRateZone = new global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue(); + } + CaloriesInHeartRateZone.MergeFrom(other.CaloriesInHeartRateZone); + break; + case ValueOneofCase.ActivityLevel: + if (ActivityLevel == null) { + ActivityLevel = new global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue(); + } + ActivityLevel.MergeFrom(other.ActivityLevel); + break; + case ValueOneofCase.HydrationLog: + if (HydrationLog == null) { + HydrationLog = new global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue(); + } + HydrationLog.MergeFrom(other.HydrationLog); + break; + case ValueOneofCase.TimeInHeartRateZone: + if (TimeInHeartRateZone == null) { + TimeInHeartRateZone = new global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue(); + } + TimeInHeartRateZone.MergeFrom(other.TimeInHeartRateZone); + break; + case ValueOneofCase.ActiveMinutes: + if (ActiveMinutes == null) { + ActiveMinutes = new global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue(); + } + ActiveMinutes.MergeFrom(other.ActiveMinutes); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 42: { + global::Google.DevicesAndServices.Health.V4.StepsRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.StepsRollupValue(); + if (valueCase_ == ValueOneofCase.Steps) { + subBuilder.MergeFrom(Steps); + } + input.ReadMessage(subBuilder); + Steps = subBuilder; + break; + } + case 50: { + global::Google.DevicesAndServices.Health.V4.FloorsRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.FloorsRollupValue(); + if (valueCase_ == ValueOneofCase.Floors) { + subBuilder.MergeFrom(Floors); + } + input.ReadMessage(subBuilder); + Floors = subBuilder; + break; + } + case 58: { + global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue(); + if (valueCase_ == ValueOneofCase.HeartRate) { + subBuilder.MergeFrom(HeartRate); + } + input.ReadMessage(subBuilder); + HeartRate = subBuilder; + break; + } + case 66: { + global::Google.DevicesAndServices.Health.V4.WeightRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.WeightRollupValue(); + if (valueCase_ == ValueOneofCase.Weight) { + subBuilder.MergeFrom(Weight); + } + input.ReadMessage(subBuilder); + Weight = subBuilder; + break; + } + case 74: { + global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue(); + if (valueCase_ == ValueOneofCase.Altitude) { + subBuilder.MergeFrom(Altitude); + } + input.ReadMessage(subBuilder); + Altitude = subBuilder; + break; + } + case 82: { + global::Google.DevicesAndServices.Health.V4.DistanceRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.DistanceRollupValue(); + if (valueCase_ == ValueOneofCase.Distance) { + subBuilder.MergeFrom(Distance); + } + input.ReadMessage(subBuilder); + Distance = subBuilder; + break; + } + case 90: { + global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue(); + if (valueCase_ == ValueOneofCase.BodyFat) { + subBuilder.MergeFrom(BodyFat); + } + input.ReadMessage(subBuilder); + BodyFat = subBuilder; + break; + } + case 98: { + global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue(); + if (valueCase_ == ValueOneofCase.TotalCalories) { + subBuilder.MergeFrom(TotalCalories); + } + input.ReadMessage(subBuilder); + TotalCalories = subBuilder; + break; + } + case 106: { + global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue(); + if (valueCase_ == ValueOneofCase.ActiveZoneMinutes) { + subBuilder.MergeFrom(ActiveZoneMinutes); + } + input.ReadMessage(subBuilder); + ActiveZoneMinutes = subBuilder; + break; + } + case 122: { + global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue(); + if (valueCase_ == ValueOneofCase.SedentaryPeriod) { + subBuilder.MergeFrom(SedentaryPeriod); + } + input.ReadMessage(subBuilder); + SedentaryPeriod = subBuilder; + break; + } + case 130: { + global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue(); + if (valueCase_ == ValueOneofCase.RunVo2Max) { + subBuilder.MergeFrom(RunVo2Max); + } + input.ReadMessage(subBuilder); + RunVo2Max = subBuilder; + break; + } + case 138: { + global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue(); + if (valueCase_ == ValueOneofCase.CaloriesInHeartRateZone) { + subBuilder.MergeFrom(CaloriesInHeartRateZone); + } + input.ReadMessage(subBuilder); + CaloriesInHeartRateZone = subBuilder; + break; + } + case 146: { + global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue(); + if (valueCase_ == ValueOneofCase.ActivityLevel) { + subBuilder.MergeFrom(ActivityLevel); + } + input.ReadMessage(subBuilder); + ActivityLevel = subBuilder; + break; + } + case 162: { + global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue(); + if (valueCase_ == ValueOneofCase.HydrationLog) { + subBuilder.MergeFrom(HydrationLog); + } + input.ReadMessage(subBuilder); + HydrationLog = subBuilder; + break; + } + case 170: { + global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue(); + if (valueCase_ == ValueOneofCase.TimeInHeartRateZone) { + subBuilder.MergeFrom(TimeInHeartRateZone); + } + input.ReadMessage(subBuilder); + TimeInHeartRateZone = subBuilder; + break; + } + case 178: { + global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue(); + if (valueCase_ == ValueOneofCase.ActiveMinutes) { + subBuilder.MergeFrom(ActiveMinutes); + } + input.ReadMessage(subBuilder); + ActiveMinutes = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 42: { + global::Google.DevicesAndServices.Health.V4.StepsRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.StepsRollupValue(); + if (valueCase_ == ValueOneofCase.Steps) { + subBuilder.MergeFrom(Steps); + } + input.ReadMessage(subBuilder); + Steps = subBuilder; + break; + } + case 50: { + global::Google.DevicesAndServices.Health.V4.FloorsRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.FloorsRollupValue(); + if (valueCase_ == ValueOneofCase.Floors) { + subBuilder.MergeFrom(Floors); + } + input.ReadMessage(subBuilder); + Floors = subBuilder; + break; + } + case 58: { + global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue(); + if (valueCase_ == ValueOneofCase.HeartRate) { + subBuilder.MergeFrom(HeartRate); + } + input.ReadMessage(subBuilder); + HeartRate = subBuilder; + break; + } + case 66: { + global::Google.DevicesAndServices.Health.V4.WeightRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.WeightRollupValue(); + if (valueCase_ == ValueOneofCase.Weight) { + subBuilder.MergeFrom(Weight); + } + input.ReadMessage(subBuilder); + Weight = subBuilder; + break; + } + case 74: { + global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue(); + if (valueCase_ == ValueOneofCase.Altitude) { + subBuilder.MergeFrom(Altitude); + } + input.ReadMessage(subBuilder); + Altitude = subBuilder; + break; + } + case 82: { + global::Google.DevicesAndServices.Health.V4.DistanceRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.DistanceRollupValue(); + if (valueCase_ == ValueOneofCase.Distance) { + subBuilder.MergeFrom(Distance); + } + input.ReadMessage(subBuilder); + Distance = subBuilder; + break; + } + case 90: { + global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue(); + if (valueCase_ == ValueOneofCase.BodyFat) { + subBuilder.MergeFrom(BodyFat); + } + input.ReadMessage(subBuilder); + BodyFat = subBuilder; + break; + } + case 98: { + global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue(); + if (valueCase_ == ValueOneofCase.TotalCalories) { + subBuilder.MergeFrom(TotalCalories); + } + input.ReadMessage(subBuilder); + TotalCalories = subBuilder; + break; + } + case 106: { + global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue(); + if (valueCase_ == ValueOneofCase.ActiveZoneMinutes) { + subBuilder.MergeFrom(ActiveZoneMinutes); + } + input.ReadMessage(subBuilder); + ActiveZoneMinutes = subBuilder; + break; + } + case 122: { + global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue(); + if (valueCase_ == ValueOneofCase.SedentaryPeriod) { + subBuilder.MergeFrom(SedentaryPeriod); + } + input.ReadMessage(subBuilder); + SedentaryPeriod = subBuilder; + break; + } + case 130: { + global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue(); + if (valueCase_ == ValueOneofCase.RunVo2Max) { + subBuilder.MergeFrom(RunVo2Max); + } + input.ReadMessage(subBuilder); + RunVo2Max = subBuilder; + break; + } + case 138: { + global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue(); + if (valueCase_ == ValueOneofCase.CaloriesInHeartRateZone) { + subBuilder.MergeFrom(CaloriesInHeartRateZone); + } + input.ReadMessage(subBuilder); + CaloriesInHeartRateZone = subBuilder; + break; + } + case 146: { + global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue(); + if (valueCase_ == ValueOneofCase.ActivityLevel) { + subBuilder.MergeFrom(ActivityLevel); + } + input.ReadMessage(subBuilder); + ActivityLevel = subBuilder; + break; + } + case 162: { + global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue(); + if (valueCase_ == ValueOneofCase.HydrationLog) { + subBuilder.MergeFrom(HydrationLog); + } + input.ReadMessage(subBuilder); + HydrationLog = subBuilder; + break; + } + case 170: { + global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue(); + if (valueCase_ == ValueOneofCase.TimeInHeartRateZone) { + subBuilder.MergeFrom(TimeInHeartRateZone); + } + input.ReadMessage(subBuilder); + TimeInHeartRateZone = subBuilder; + break; + } + case 178: { + global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue(); + if (valueCase_ == ValueOneofCase.ActiveMinutes) { + subBuilder.MergeFrom(ActiveMinutes); + } + input.ReadMessage(subBuilder); + ActiveMinutes = subBuilder; + break; + } + } + } + } + #endif + + } + + /// + /// Value of a daily rollup for a single civil time interval (aggregation window) + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyRollupDataPoint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyRollupDataPoint()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRollupDataPoint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRollupDataPoint(DailyRollupDataPoint other) : this() { + civilStartTime_ = other.civilStartTime_ != null ? other.civilStartTime_.Clone() : null; + civilEndTime_ = other.civilEndTime_ != null ? other.civilEndTime_.Clone() : null; + switch (other.ValueCase) { + case ValueOneofCase.Steps: + Steps = other.Steps.Clone(); + break; + case ValueOneofCase.Floors: + Floors = other.Floors.Clone(); + break; + case ValueOneofCase.HeartRate: + HeartRate = other.HeartRate.Clone(); + break; + case ValueOneofCase.RestingHeartRatePersonalRange: + RestingHeartRatePersonalRange = other.RestingHeartRatePersonalRange.Clone(); + break; + case ValueOneofCase.HeartRateVariabilityPersonalRange: + HeartRateVariabilityPersonalRange = other.HeartRateVariabilityPersonalRange.Clone(); + break; + case ValueOneofCase.Weight: + Weight = other.Weight.Clone(); + break; + case ValueOneofCase.Altitude: + Altitude = other.Altitude.Clone(); + break; + case ValueOneofCase.Distance: + Distance = other.Distance.Clone(); + break; + case ValueOneofCase.BodyFat: + BodyFat = other.BodyFat.Clone(); + break; + case ValueOneofCase.TotalCalories: + TotalCalories = other.TotalCalories.Clone(); + break; + case ValueOneofCase.ActiveZoneMinutes: + ActiveZoneMinutes = other.ActiveZoneMinutes.Clone(); + break; + case ValueOneofCase.SedentaryPeriod: + SedentaryPeriod = other.SedentaryPeriod.Clone(); + break; + case ValueOneofCase.RunVo2Max: + RunVo2Max = other.RunVo2Max.Clone(); + break; + case ValueOneofCase.CaloriesInHeartRateZone: + CaloriesInHeartRateZone = other.CaloriesInHeartRateZone.Clone(); + break; + case ValueOneofCase.ActivityLevel: + ActivityLevel = other.ActivityLevel.Clone(); + break; + case ValueOneofCase.HydrationLog: + HydrationLog = other.HydrationLog.Clone(); + break; + case ValueOneofCase.TimeInHeartRateZone: + TimeInHeartRateZone = other.TimeInHeartRateZone.Clone(); + break; + case ValueOneofCase.ActiveMinutes: + ActiveMinutes = other.ActiveMinutes.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRollupDataPoint Clone() { + return new DailyRollupDataPoint(this); + } + + /// Field number for the "steps" field. + public const int StepsFieldNumber = 5; + /// + /// Returned by default when rolling up data points from the `steps` data + /// type, or when requested explicitly using the `steps` rollup type + /// identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.StepsRollupValue Steps { + get { return valueCase_ == ValueOneofCase.Steps ? (global::Google.DevicesAndServices.Health.V4.StepsRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Steps; + } + } + + /// Field number for the "floors" field. + public const int FloorsFieldNumber = 6; + /// + /// Returned by default when rolling up data points from the `floors` data + /// type, or when requested explicitly using the `floors` rollup type + /// identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.FloorsRollupValue Floors { + get { return valueCase_ == ValueOneofCase.Floors ? (global::Google.DevicesAndServices.Health.V4.FloorsRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Floors; + } + } + + /// Field number for the "heart_rate" field. + public const int HeartRateFieldNumber = 7; + /// + /// Returned by default when rolling up data points from the `heart-rate` + /// data type, or when requested explicitly using the `heart-rate` rollup + /// type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue HeartRate { + get { return valueCase_ == ValueOneofCase.HeartRate ? (global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.HeartRate; + } + } + + /// Field number for the "resting_heart_rate_personal_range" field. + public const int RestingHeartRatePersonalRangeFieldNumber = 8; + /// + /// Returned by default when rolling up data points from the + /// `daily-resting-heart-rate` data type, or when requested + /// explicitly using the `resting-heart-rate-personal-range` rollup type + /// identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.RestingHeartRatePersonalRangeRollupValue RestingHeartRatePersonalRange { + get { return valueCase_ == ValueOneofCase.RestingHeartRatePersonalRange ? (global::Google.DevicesAndServices.Health.V4.RestingHeartRatePersonalRangeRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.RestingHeartRatePersonalRange; + } + } + + /// Field number for the "heart_rate_variability_personal_range" field. + public const int HeartRateVariabilityPersonalRangeFieldNumber = 9; + /// + /// Returned by default when rolling up data points from the + /// `daily-heart-rate-variability` data type, or when requested explicitly + /// using the `heart-rate-variability-personal-range` rollup type + /// identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HeartRateVariabilityPersonalRangeRollupValue HeartRateVariabilityPersonalRange { + get { return valueCase_ == ValueOneofCase.HeartRateVariabilityPersonalRange ? (global::Google.DevicesAndServices.Health.V4.HeartRateVariabilityPersonalRangeRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.HeartRateVariabilityPersonalRange; + } + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 10; + /// + /// Returned by default when rolling up data points from the `weight` data + /// type, or when requested explicitly using the `weight` rollup type + /// identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.WeightRollupValue Weight { + get { return valueCase_ == ValueOneofCase.Weight ? (global::Google.DevicesAndServices.Health.V4.WeightRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Weight; + } + } + + /// Field number for the "altitude" field. + public const int AltitudeFieldNumber = 11; + /// + /// Returned by default when rolling up data points from the `altitude` data + /// type, or when requested explicitly using the `altitude` rollup type + /// identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue Altitude { + get { return valueCase_ == ValueOneofCase.Altitude ? (global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Altitude; + } + } + + /// Field number for the "distance" field. + public const int DistanceFieldNumber = 12; + /// + /// Returned by default when rolling up data points from the `distance` data + /// type, or when requested explicitly using the `distance` rollup type + /// identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DistanceRollupValue Distance { + get { return valueCase_ == ValueOneofCase.Distance ? (global::Google.DevicesAndServices.Health.V4.DistanceRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Distance; + } + } + + /// Field number for the "body_fat" field. + public const int BodyFatFieldNumber = 13; + /// + /// Returned by default when rolling up data points from the `body-fat` data + /// type, or when requested explicitly using the `body-fat` rollup type + /// identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue BodyFat { + get { return valueCase_ == ValueOneofCase.BodyFat ? (global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BodyFat; + } + } + + /// Field number for the "total_calories" field. + public const int TotalCaloriesFieldNumber = 14; + /// + /// Returned by default when rolling up data points from the `total-calories` + /// data type, or when requested explicitly using the `total-calories` + /// rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue TotalCalories { + get { return valueCase_ == ValueOneofCase.TotalCalories ? (global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.TotalCalories; + } + } + + /// Field number for the "active_zone_minutes" field. + public const int ActiveZoneMinutesFieldNumber = 15; + /// + /// Returned by default when rolling up data points from the + /// `active-zone-minutes` data type, or when requested explicitly using the + /// `active-zone-minutes` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue ActiveZoneMinutes { + get { return valueCase_ == ValueOneofCase.ActiveZoneMinutes ? (global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ActiveZoneMinutes; + } + } + + /// Field number for the "sedentary_period" field. + public const int SedentaryPeriodFieldNumber = 17; + /// + /// Returned by default when rolling up data points from the + /// `sedentary-period` data type, or when requested explicitly using the + /// `sedentary-period` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue SedentaryPeriod { + get { return valueCase_ == ValueOneofCase.SedentaryPeriod ? (global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SedentaryPeriod; + } + } + + /// Field number for the "run_vo2_max" field. + public const int RunVo2MaxFieldNumber = 18; + /// + /// Returned by default when rolling up data points from the + /// `run-vo2-max` data type, or when requested explicitly using the + /// `run-vo2-max` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue RunVo2Max { + get { return valueCase_ == ValueOneofCase.RunVo2Max ? (global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.RunVo2Max; + } + } + + /// Field number for the "calories_in_heart_rate_zone" field. + public const int CaloriesInHeartRateZoneFieldNumber = 19; + /// + /// Returned by default when rolling up data points from the + /// `calories-in-heart-rate-zone` data type, or when requested explicitly + /// using the `calories-in-heart-rate-zone` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue CaloriesInHeartRateZone { + get { return valueCase_ == ValueOneofCase.CaloriesInHeartRateZone ? (global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CaloriesInHeartRateZone; + } + } + + /// Field number for the "activity_level" field. + public const int ActivityLevelFieldNumber = 20; + /// + /// Returned by default when rolling up data points from the + /// `activity-level` data type, or when requested explicitly using the + /// `activity-level` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue ActivityLevel { + get { return valueCase_ == ValueOneofCase.ActivityLevel ? (global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ActivityLevel; + } + } + + /// Field number for the "hydration_log" field. + public const int HydrationLogFieldNumber = 22; + /// + /// Returned by default when rolling up data points from the + /// `hydration-log` data type, or when requested explicitly using the + /// `hydration-log` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue HydrationLog { + get { return valueCase_ == ValueOneofCase.HydrationLog ? (global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.HydrationLog; + } + } + + /// Field number for the "time_in_heart_rate_zone" field. + public const int TimeInHeartRateZoneFieldNumber = 23; + /// + /// Returned by default when rolling up data points from the + /// `time-in-heart-rate-zone` data type, or when requested explicitly using + /// the `time-in-heart-rate-zone` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue TimeInHeartRateZone { + get { return valueCase_ == ValueOneofCase.TimeInHeartRateZone ? (global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.TimeInHeartRateZone; + } + } + + /// Field number for the "active_minutes" field. + public const int ActiveMinutesFieldNumber = 24; + /// + /// Returned by default when rolling up data points from the + /// `active-minutes` data type, or when requested explicitly using the + /// `active-minutes` rollup type identifier. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue ActiveMinutes { + get { return valueCase_ == ValueOneofCase.ActiveMinutes ? (global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ActiveMinutes; + } + } + + /// Field number for the "civil_start_time" field. + public const int CivilStartTimeFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.CivilDateTime civilStartTime_; + /// + /// Start time of the window this value aggregates over + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.CivilDateTime CivilStartTime { + get { return civilStartTime_; } + set { + civilStartTime_ = value; + } + } + + /// Field number for the "civil_end_time" field. + public const int CivilEndTimeFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.CivilDateTime civilEndTime_; + /// + /// End time of the window this value aggregates over + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.CivilDateTime CivilEndTime { + get { return civilEndTime_; } + set { + civilEndTime_ = value; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Steps = 5, + Floors = 6, + HeartRate = 7, + RestingHeartRatePersonalRange = 8, + HeartRateVariabilityPersonalRange = 9, + Weight = 10, + Altitude = 11, + Distance = 12, + BodyFat = 13, + TotalCalories = 14, + ActiveZoneMinutes = 15, + SedentaryPeriod = 17, + RunVo2Max = 18, + CaloriesInHeartRateZone = 19, + ActivityLevel = 20, + HydrationLog = 22, + TimeInHeartRateZone = 23, + ActiveMinutes = 24, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyRollupDataPoint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyRollupDataPoint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Steps, other.Steps)) return false; + if (!object.Equals(Floors, other.Floors)) return false; + if (!object.Equals(HeartRate, other.HeartRate)) return false; + if (!object.Equals(RestingHeartRatePersonalRange, other.RestingHeartRatePersonalRange)) return false; + if (!object.Equals(HeartRateVariabilityPersonalRange, other.HeartRateVariabilityPersonalRange)) return false; + if (!object.Equals(Weight, other.Weight)) return false; + if (!object.Equals(Altitude, other.Altitude)) return false; + if (!object.Equals(Distance, other.Distance)) return false; + if (!object.Equals(BodyFat, other.BodyFat)) return false; + if (!object.Equals(TotalCalories, other.TotalCalories)) return false; + if (!object.Equals(ActiveZoneMinutes, other.ActiveZoneMinutes)) return false; + if (!object.Equals(SedentaryPeriod, other.SedentaryPeriod)) return false; + if (!object.Equals(RunVo2Max, other.RunVo2Max)) return false; + if (!object.Equals(CaloriesInHeartRateZone, other.CaloriesInHeartRateZone)) return false; + if (!object.Equals(ActivityLevel, other.ActivityLevel)) return false; + if (!object.Equals(HydrationLog, other.HydrationLog)) return false; + if (!object.Equals(TimeInHeartRateZone, other.TimeInHeartRateZone)) return false; + if (!object.Equals(ActiveMinutes, other.ActiveMinutes)) return false; + if (!object.Equals(CivilStartTime, other.CivilStartTime)) return false; + if (!object.Equals(CivilEndTime, other.CivilEndTime)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Steps) hash ^= Steps.GetHashCode(); + if (valueCase_ == ValueOneofCase.Floors) hash ^= Floors.GetHashCode(); + if (valueCase_ == ValueOneofCase.HeartRate) hash ^= HeartRate.GetHashCode(); + if (valueCase_ == ValueOneofCase.RestingHeartRatePersonalRange) hash ^= RestingHeartRatePersonalRange.GetHashCode(); + if (valueCase_ == ValueOneofCase.HeartRateVariabilityPersonalRange) hash ^= HeartRateVariabilityPersonalRange.GetHashCode(); + if (valueCase_ == ValueOneofCase.Weight) hash ^= Weight.GetHashCode(); + if (valueCase_ == ValueOneofCase.Altitude) hash ^= Altitude.GetHashCode(); + if (valueCase_ == ValueOneofCase.Distance) hash ^= Distance.GetHashCode(); + if (valueCase_ == ValueOneofCase.BodyFat) hash ^= BodyFat.GetHashCode(); + if (valueCase_ == ValueOneofCase.TotalCalories) hash ^= TotalCalories.GetHashCode(); + if (valueCase_ == ValueOneofCase.ActiveZoneMinutes) hash ^= ActiveZoneMinutes.GetHashCode(); + if (valueCase_ == ValueOneofCase.SedentaryPeriod) hash ^= SedentaryPeriod.GetHashCode(); + if (valueCase_ == ValueOneofCase.RunVo2Max) hash ^= RunVo2Max.GetHashCode(); + if (valueCase_ == ValueOneofCase.CaloriesInHeartRateZone) hash ^= CaloriesInHeartRateZone.GetHashCode(); + if (valueCase_ == ValueOneofCase.ActivityLevel) hash ^= ActivityLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.HydrationLog) hash ^= HydrationLog.GetHashCode(); + if (valueCase_ == ValueOneofCase.TimeInHeartRateZone) hash ^= TimeInHeartRateZone.GetHashCode(); + if (valueCase_ == ValueOneofCase.ActiveMinutes) hash ^= ActiveMinutes.GetHashCode(); + if (civilStartTime_ != null) hash ^= CivilStartTime.GetHashCode(); + if (civilEndTime_ != null) hash ^= CivilEndTime.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (civilStartTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CivilStartTime); + } + if (civilEndTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CivilEndTime); + } + if (valueCase_ == ValueOneofCase.Steps) { + output.WriteRawTag(42); + output.WriteMessage(Steps); + } + if (valueCase_ == ValueOneofCase.Floors) { + output.WriteRawTag(50); + output.WriteMessage(Floors); + } + if (valueCase_ == ValueOneofCase.HeartRate) { + output.WriteRawTag(58); + output.WriteMessage(HeartRate); + } + if (valueCase_ == ValueOneofCase.RestingHeartRatePersonalRange) { + output.WriteRawTag(66); + output.WriteMessage(RestingHeartRatePersonalRange); + } + if (valueCase_ == ValueOneofCase.HeartRateVariabilityPersonalRange) { + output.WriteRawTag(74); + output.WriteMessage(HeartRateVariabilityPersonalRange); + } + if (valueCase_ == ValueOneofCase.Weight) { + output.WriteRawTag(82); + output.WriteMessage(Weight); + } + if (valueCase_ == ValueOneofCase.Altitude) { + output.WriteRawTag(90); + output.WriteMessage(Altitude); + } + if (valueCase_ == ValueOneofCase.Distance) { + output.WriteRawTag(98); + output.WriteMessage(Distance); + } + if (valueCase_ == ValueOneofCase.BodyFat) { + output.WriteRawTag(106); + output.WriteMessage(BodyFat); + } + if (valueCase_ == ValueOneofCase.TotalCalories) { + output.WriteRawTag(114); + output.WriteMessage(TotalCalories); + } + if (valueCase_ == ValueOneofCase.ActiveZoneMinutes) { + output.WriteRawTag(122); + output.WriteMessage(ActiveZoneMinutes); + } + if (valueCase_ == ValueOneofCase.SedentaryPeriod) { + output.WriteRawTag(138, 1); + output.WriteMessage(SedentaryPeriod); + } + if (valueCase_ == ValueOneofCase.RunVo2Max) { + output.WriteRawTag(146, 1); + output.WriteMessage(RunVo2Max); + } + if (valueCase_ == ValueOneofCase.CaloriesInHeartRateZone) { + output.WriteRawTag(154, 1); + output.WriteMessage(CaloriesInHeartRateZone); + } + if (valueCase_ == ValueOneofCase.ActivityLevel) { + output.WriteRawTag(162, 1); + output.WriteMessage(ActivityLevel); + } + if (valueCase_ == ValueOneofCase.HydrationLog) { + output.WriteRawTag(178, 1); + output.WriteMessage(HydrationLog); + } + if (valueCase_ == ValueOneofCase.TimeInHeartRateZone) { + output.WriteRawTag(186, 1); + output.WriteMessage(TimeInHeartRateZone); + } + if (valueCase_ == ValueOneofCase.ActiveMinutes) { + output.WriteRawTag(194, 1); + output.WriteMessage(ActiveMinutes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (civilStartTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CivilStartTime); + } + if (civilEndTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CivilEndTime); + } + if (valueCase_ == ValueOneofCase.Steps) { + output.WriteRawTag(42); + output.WriteMessage(Steps); + } + if (valueCase_ == ValueOneofCase.Floors) { + output.WriteRawTag(50); + output.WriteMessage(Floors); + } + if (valueCase_ == ValueOneofCase.HeartRate) { + output.WriteRawTag(58); + output.WriteMessage(HeartRate); + } + if (valueCase_ == ValueOneofCase.RestingHeartRatePersonalRange) { + output.WriteRawTag(66); + output.WriteMessage(RestingHeartRatePersonalRange); + } + if (valueCase_ == ValueOneofCase.HeartRateVariabilityPersonalRange) { + output.WriteRawTag(74); + output.WriteMessage(HeartRateVariabilityPersonalRange); + } + if (valueCase_ == ValueOneofCase.Weight) { + output.WriteRawTag(82); + output.WriteMessage(Weight); + } + if (valueCase_ == ValueOneofCase.Altitude) { + output.WriteRawTag(90); + output.WriteMessage(Altitude); + } + if (valueCase_ == ValueOneofCase.Distance) { + output.WriteRawTag(98); + output.WriteMessage(Distance); + } + if (valueCase_ == ValueOneofCase.BodyFat) { + output.WriteRawTag(106); + output.WriteMessage(BodyFat); + } + if (valueCase_ == ValueOneofCase.TotalCalories) { + output.WriteRawTag(114); + output.WriteMessage(TotalCalories); + } + if (valueCase_ == ValueOneofCase.ActiveZoneMinutes) { + output.WriteRawTag(122); + output.WriteMessage(ActiveZoneMinutes); + } + if (valueCase_ == ValueOneofCase.SedentaryPeriod) { + output.WriteRawTag(138, 1); + output.WriteMessage(SedentaryPeriod); + } + if (valueCase_ == ValueOneofCase.RunVo2Max) { + output.WriteRawTag(146, 1); + output.WriteMessage(RunVo2Max); + } + if (valueCase_ == ValueOneofCase.CaloriesInHeartRateZone) { + output.WriteRawTag(154, 1); + output.WriteMessage(CaloriesInHeartRateZone); + } + if (valueCase_ == ValueOneofCase.ActivityLevel) { + output.WriteRawTag(162, 1); + output.WriteMessage(ActivityLevel); + } + if (valueCase_ == ValueOneofCase.HydrationLog) { + output.WriteRawTag(178, 1); + output.WriteMessage(HydrationLog); + } + if (valueCase_ == ValueOneofCase.TimeInHeartRateZone) { + output.WriteRawTag(186, 1); + output.WriteMessage(TimeInHeartRateZone); + } + if (valueCase_ == ValueOneofCase.ActiveMinutes) { + output.WriteRawTag(194, 1); + output.WriteMessage(ActiveMinutes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Steps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Steps); + } + if (valueCase_ == ValueOneofCase.Floors) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Floors); + } + if (valueCase_ == ValueOneofCase.HeartRate) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HeartRate); + } + if (valueCase_ == ValueOneofCase.RestingHeartRatePersonalRange) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RestingHeartRatePersonalRange); + } + if (valueCase_ == ValueOneofCase.HeartRateVariabilityPersonalRange) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HeartRateVariabilityPersonalRange); + } + if (valueCase_ == ValueOneofCase.Weight) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Weight); + } + if (valueCase_ == ValueOneofCase.Altitude) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Altitude); + } + if (valueCase_ == ValueOneofCase.Distance) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Distance); + } + if (valueCase_ == ValueOneofCase.BodyFat) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BodyFat); + } + if (valueCase_ == ValueOneofCase.TotalCalories) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TotalCalories); + } + if (valueCase_ == ValueOneofCase.ActiveZoneMinutes) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActiveZoneMinutes); + } + if (valueCase_ == ValueOneofCase.SedentaryPeriod) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SedentaryPeriod); + } + if (valueCase_ == ValueOneofCase.RunVo2Max) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RunVo2Max); + } + if (valueCase_ == ValueOneofCase.CaloriesInHeartRateZone) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CaloriesInHeartRateZone); + } + if (valueCase_ == ValueOneofCase.ActivityLevel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ActivityLevel); + } + if (valueCase_ == ValueOneofCase.HydrationLog) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(HydrationLog); + } + if (valueCase_ == ValueOneofCase.TimeInHeartRateZone) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(TimeInHeartRateZone); + } + if (valueCase_ == ValueOneofCase.ActiveMinutes) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ActiveMinutes); + } + if (civilStartTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CivilStartTime); + } + if (civilEndTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CivilEndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyRollupDataPoint other) { + if (other == null) { + return; + } + if (other.civilStartTime_ != null) { + if (civilStartTime_ == null) { + CivilStartTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + CivilStartTime.MergeFrom(other.CivilStartTime); + } + if (other.civilEndTime_ != null) { + if (civilEndTime_ == null) { + CivilEndTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + CivilEndTime.MergeFrom(other.CivilEndTime); + } + switch (other.ValueCase) { + case ValueOneofCase.Steps: + if (Steps == null) { + Steps = new global::Google.DevicesAndServices.Health.V4.StepsRollupValue(); + } + Steps.MergeFrom(other.Steps); + break; + case ValueOneofCase.Floors: + if (Floors == null) { + Floors = new global::Google.DevicesAndServices.Health.V4.FloorsRollupValue(); + } + Floors.MergeFrom(other.Floors); + break; + case ValueOneofCase.HeartRate: + if (HeartRate == null) { + HeartRate = new global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue(); + } + HeartRate.MergeFrom(other.HeartRate); + break; + case ValueOneofCase.RestingHeartRatePersonalRange: + if (RestingHeartRatePersonalRange == null) { + RestingHeartRatePersonalRange = new global::Google.DevicesAndServices.Health.V4.RestingHeartRatePersonalRangeRollupValue(); + } + RestingHeartRatePersonalRange.MergeFrom(other.RestingHeartRatePersonalRange); + break; + case ValueOneofCase.HeartRateVariabilityPersonalRange: + if (HeartRateVariabilityPersonalRange == null) { + HeartRateVariabilityPersonalRange = new global::Google.DevicesAndServices.Health.V4.HeartRateVariabilityPersonalRangeRollupValue(); + } + HeartRateVariabilityPersonalRange.MergeFrom(other.HeartRateVariabilityPersonalRange); + break; + case ValueOneofCase.Weight: + if (Weight == null) { + Weight = new global::Google.DevicesAndServices.Health.V4.WeightRollupValue(); + } + Weight.MergeFrom(other.Weight); + break; + case ValueOneofCase.Altitude: + if (Altitude == null) { + Altitude = new global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue(); + } + Altitude.MergeFrom(other.Altitude); + break; + case ValueOneofCase.Distance: + if (Distance == null) { + Distance = new global::Google.DevicesAndServices.Health.V4.DistanceRollupValue(); + } + Distance.MergeFrom(other.Distance); + break; + case ValueOneofCase.BodyFat: + if (BodyFat == null) { + BodyFat = new global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue(); + } + BodyFat.MergeFrom(other.BodyFat); + break; + case ValueOneofCase.TotalCalories: + if (TotalCalories == null) { + TotalCalories = new global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue(); + } + TotalCalories.MergeFrom(other.TotalCalories); + break; + case ValueOneofCase.ActiveZoneMinutes: + if (ActiveZoneMinutes == null) { + ActiveZoneMinutes = new global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue(); + } + ActiveZoneMinutes.MergeFrom(other.ActiveZoneMinutes); + break; + case ValueOneofCase.SedentaryPeriod: + if (SedentaryPeriod == null) { + SedentaryPeriod = new global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue(); + } + SedentaryPeriod.MergeFrom(other.SedentaryPeriod); + break; + case ValueOneofCase.RunVo2Max: + if (RunVo2Max == null) { + RunVo2Max = new global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue(); + } + RunVo2Max.MergeFrom(other.RunVo2Max); + break; + case ValueOneofCase.CaloriesInHeartRateZone: + if (CaloriesInHeartRateZone == null) { + CaloriesInHeartRateZone = new global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue(); + } + CaloriesInHeartRateZone.MergeFrom(other.CaloriesInHeartRateZone); + break; + case ValueOneofCase.ActivityLevel: + if (ActivityLevel == null) { + ActivityLevel = new global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue(); + } + ActivityLevel.MergeFrom(other.ActivityLevel); + break; + case ValueOneofCase.HydrationLog: + if (HydrationLog == null) { + HydrationLog = new global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue(); + } + HydrationLog.MergeFrom(other.HydrationLog); + break; + case ValueOneofCase.TimeInHeartRateZone: + if (TimeInHeartRateZone == null) { + TimeInHeartRateZone = new global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue(); + } + TimeInHeartRateZone.MergeFrom(other.TimeInHeartRateZone); + break; + case ValueOneofCase.ActiveMinutes: + if (ActiveMinutes == null) { + ActiveMinutes = new global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue(); + } + ActiveMinutes.MergeFrom(other.ActiveMinutes); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (civilStartTime_ == null) { + CivilStartTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(CivilStartTime); + break; + } + case 18: { + if (civilEndTime_ == null) { + CivilEndTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(CivilEndTime); + break; + } + case 42: { + global::Google.DevicesAndServices.Health.V4.StepsRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.StepsRollupValue(); + if (valueCase_ == ValueOneofCase.Steps) { + subBuilder.MergeFrom(Steps); + } + input.ReadMessage(subBuilder); + Steps = subBuilder; + break; + } + case 50: { + global::Google.DevicesAndServices.Health.V4.FloorsRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.FloorsRollupValue(); + if (valueCase_ == ValueOneofCase.Floors) { + subBuilder.MergeFrom(Floors); + } + input.ReadMessage(subBuilder); + Floors = subBuilder; + break; + } + case 58: { + global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue(); + if (valueCase_ == ValueOneofCase.HeartRate) { + subBuilder.MergeFrom(HeartRate); + } + input.ReadMessage(subBuilder); + HeartRate = subBuilder; + break; + } + case 66: { + global::Google.DevicesAndServices.Health.V4.RestingHeartRatePersonalRangeRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.RestingHeartRatePersonalRangeRollupValue(); + if (valueCase_ == ValueOneofCase.RestingHeartRatePersonalRange) { + subBuilder.MergeFrom(RestingHeartRatePersonalRange); + } + input.ReadMessage(subBuilder); + RestingHeartRatePersonalRange = subBuilder; + break; + } + case 74: { + global::Google.DevicesAndServices.Health.V4.HeartRateVariabilityPersonalRangeRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.HeartRateVariabilityPersonalRangeRollupValue(); + if (valueCase_ == ValueOneofCase.HeartRateVariabilityPersonalRange) { + subBuilder.MergeFrom(HeartRateVariabilityPersonalRange); + } + input.ReadMessage(subBuilder); + HeartRateVariabilityPersonalRange = subBuilder; + break; + } + case 82: { + global::Google.DevicesAndServices.Health.V4.WeightRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.WeightRollupValue(); + if (valueCase_ == ValueOneofCase.Weight) { + subBuilder.MergeFrom(Weight); + } + input.ReadMessage(subBuilder); + Weight = subBuilder; + break; + } + case 90: { + global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue(); + if (valueCase_ == ValueOneofCase.Altitude) { + subBuilder.MergeFrom(Altitude); + } + input.ReadMessage(subBuilder); + Altitude = subBuilder; + break; + } + case 98: { + global::Google.DevicesAndServices.Health.V4.DistanceRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.DistanceRollupValue(); + if (valueCase_ == ValueOneofCase.Distance) { + subBuilder.MergeFrom(Distance); + } + input.ReadMessage(subBuilder); + Distance = subBuilder; + break; + } + case 106: { + global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue(); + if (valueCase_ == ValueOneofCase.BodyFat) { + subBuilder.MergeFrom(BodyFat); + } + input.ReadMessage(subBuilder); + BodyFat = subBuilder; + break; + } + case 114: { + global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue(); + if (valueCase_ == ValueOneofCase.TotalCalories) { + subBuilder.MergeFrom(TotalCalories); + } + input.ReadMessage(subBuilder); + TotalCalories = subBuilder; + break; + } + case 122: { + global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue(); + if (valueCase_ == ValueOneofCase.ActiveZoneMinutes) { + subBuilder.MergeFrom(ActiveZoneMinutes); + } + input.ReadMessage(subBuilder); + ActiveZoneMinutes = subBuilder; + break; + } + case 138: { + global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue(); + if (valueCase_ == ValueOneofCase.SedentaryPeriod) { + subBuilder.MergeFrom(SedentaryPeriod); + } + input.ReadMessage(subBuilder); + SedentaryPeriod = subBuilder; + break; + } + case 146: { + global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue(); + if (valueCase_ == ValueOneofCase.RunVo2Max) { + subBuilder.MergeFrom(RunVo2Max); + } + input.ReadMessage(subBuilder); + RunVo2Max = subBuilder; + break; + } + case 154: { + global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue(); + if (valueCase_ == ValueOneofCase.CaloriesInHeartRateZone) { + subBuilder.MergeFrom(CaloriesInHeartRateZone); + } + input.ReadMessage(subBuilder); + CaloriesInHeartRateZone = subBuilder; + break; + } + case 162: { + global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue(); + if (valueCase_ == ValueOneofCase.ActivityLevel) { + subBuilder.MergeFrom(ActivityLevel); + } + input.ReadMessage(subBuilder); + ActivityLevel = subBuilder; + break; + } + case 178: { + global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue(); + if (valueCase_ == ValueOneofCase.HydrationLog) { + subBuilder.MergeFrom(HydrationLog); + } + input.ReadMessage(subBuilder); + HydrationLog = subBuilder; + break; + } + case 186: { + global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue(); + if (valueCase_ == ValueOneofCase.TimeInHeartRateZone) { + subBuilder.MergeFrom(TimeInHeartRateZone); + } + input.ReadMessage(subBuilder); + TimeInHeartRateZone = subBuilder; + break; + } + case 194: { + global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue(); + if (valueCase_ == ValueOneofCase.ActiveMinutes) { + subBuilder.MergeFrom(ActiveMinutes); + } + input.ReadMessage(subBuilder); + ActiveMinutes = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (civilStartTime_ == null) { + CivilStartTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(CivilStartTime); + break; + } + case 18: { + if (civilEndTime_ == null) { + CivilEndTime = new global::Google.DevicesAndServices.Health.V4.CivilDateTime(); + } + input.ReadMessage(CivilEndTime); + break; + } + case 42: { + global::Google.DevicesAndServices.Health.V4.StepsRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.StepsRollupValue(); + if (valueCase_ == ValueOneofCase.Steps) { + subBuilder.MergeFrom(Steps); + } + input.ReadMessage(subBuilder); + Steps = subBuilder; + break; + } + case 50: { + global::Google.DevicesAndServices.Health.V4.FloorsRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.FloorsRollupValue(); + if (valueCase_ == ValueOneofCase.Floors) { + subBuilder.MergeFrom(Floors); + } + input.ReadMessage(subBuilder); + Floors = subBuilder; + break; + } + case 58: { + global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.HeartRateRollupValue(); + if (valueCase_ == ValueOneofCase.HeartRate) { + subBuilder.MergeFrom(HeartRate); + } + input.ReadMessage(subBuilder); + HeartRate = subBuilder; + break; + } + case 66: { + global::Google.DevicesAndServices.Health.V4.RestingHeartRatePersonalRangeRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.RestingHeartRatePersonalRangeRollupValue(); + if (valueCase_ == ValueOneofCase.RestingHeartRatePersonalRange) { + subBuilder.MergeFrom(RestingHeartRatePersonalRange); + } + input.ReadMessage(subBuilder); + RestingHeartRatePersonalRange = subBuilder; + break; + } + case 74: { + global::Google.DevicesAndServices.Health.V4.HeartRateVariabilityPersonalRangeRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.HeartRateVariabilityPersonalRangeRollupValue(); + if (valueCase_ == ValueOneofCase.HeartRateVariabilityPersonalRange) { + subBuilder.MergeFrom(HeartRateVariabilityPersonalRange); + } + input.ReadMessage(subBuilder); + HeartRateVariabilityPersonalRange = subBuilder; + break; + } + case 82: { + global::Google.DevicesAndServices.Health.V4.WeightRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.WeightRollupValue(); + if (valueCase_ == ValueOneofCase.Weight) { + subBuilder.MergeFrom(Weight); + } + input.ReadMessage(subBuilder); + Weight = subBuilder; + break; + } + case 90: { + global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.AltitudeRollupValue(); + if (valueCase_ == ValueOneofCase.Altitude) { + subBuilder.MergeFrom(Altitude); + } + input.ReadMessage(subBuilder); + Altitude = subBuilder; + break; + } + case 98: { + global::Google.DevicesAndServices.Health.V4.DistanceRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.DistanceRollupValue(); + if (valueCase_ == ValueOneofCase.Distance) { + subBuilder.MergeFrom(Distance); + } + input.ReadMessage(subBuilder); + Distance = subBuilder; + break; + } + case 106: { + global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.BodyFatRollupValue(); + if (valueCase_ == ValueOneofCase.BodyFat) { + subBuilder.MergeFrom(BodyFat); + } + input.ReadMessage(subBuilder); + BodyFat = subBuilder; + break; + } + case 114: { + global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.TotalCaloriesRollupValue(); + if (valueCase_ == ValueOneofCase.TotalCalories) { + subBuilder.MergeFrom(TotalCalories); + } + input.ReadMessage(subBuilder); + TotalCalories = subBuilder; + break; + } + case 122: { + global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveZoneMinutesRollupValue(); + if (valueCase_ == ValueOneofCase.ActiveZoneMinutes) { + subBuilder.MergeFrom(ActiveZoneMinutes); + } + input.ReadMessage(subBuilder); + ActiveZoneMinutes = subBuilder; + break; + } + case 138: { + global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.SedentaryPeriodRollupValue(); + if (valueCase_ == ValueOneofCase.SedentaryPeriod) { + subBuilder.MergeFrom(SedentaryPeriod); + } + input.ReadMessage(subBuilder); + SedentaryPeriod = subBuilder; + break; + } + case 146: { + global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.RunVO2MaxRollupValue(); + if (valueCase_ == ValueOneofCase.RunVo2Max) { + subBuilder.MergeFrom(RunVo2Max); + } + input.ReadMessage(subBuilder); + RunVo2Max = subBuilder; + break; + } + case 154: { + global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.CaloriesInHeartRateZoneRollupValue(); + if (valueCase_ == ValueOneofCase.CaloriesInHeartRateZone) { + subBuilder.MergeFrom(CaloriesInHeartRateZone); + } + input.ReadMessage(subBuilder); + CaloriesInHeartRateZone = subBuilder; + break; + } + case 162: { + global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.ActivityLevelRollupValue(); + if (valueCase_ == ValueOneofCase.ActivityLevel) { + subBuilder.MergeFrom(ActivityLevel); + } + input.ReadMessage(subBuilder); + ActivityLevel = subBuilder; + break; + } + case 178: { + global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.HydrationLogRollupValue(); + if (valueCase_ == ValueOneofCase.HydrationLog) { + subBuilder.MergeFrom(HydrationLog); + } + input.ReadMessage(subBuilder); + HydrationLog = subBuilder; + break; + } + case 186: { + global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.TimeInHeartRateZoneRollupValue(); + if (valueCase_ == ValueOneofCase.TimeInHeartRateZone) { + subBuilder.MergeFrom(TimeInHeartRateZone); + } + input.ReadMessage(subBuilder); + TimeInHeartRateZone = subBuilder; + break; + } + case 194: { + global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue subBuilder = new global::Google.DevicesAndServices.Health.V4.ActiveMinutesRollupValue(); + if (valueCase_ == ValueOneofCase.ActiveMinutes) { + subBuilder.MergeFrom(ActiveMinutes); + } + input.ReadMessage(subBuilder); + ActiveMinutes = subBuilder; + break; + } + } + } + } + #endif + + } + + /// + /// Request for listing raw data points + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListDataPointsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDataPointsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDataPointsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDataPointsRequest(ListDataPointsRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + filter_ = other.filter_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDataPointsRequest Clone() { + return new ListDataPointsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. Parent data type of the Data Point collection. + /// + /// Format: `users/me/dataTypes/{data_type}`, e.g.: + /// + /// - `users/me/dataTypes/steps` + /// - `users/me/dataTypes/weight` + /// + /// For a list of the supported data types see the [DataPoint + /// data][google.devicesandservices.health.v4.DataPoint] union + /// field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// Optional. The maximum number of data points to return. + /// If unspecified, at most 1440 data points will be returned. + /// The maximum page size is 10000; values above that will be truncated + /// accordingly. + /// For `exercise` and `sleep` the default page size is 25. + /// The maximum page size for `exercise` and `sleep` is 25. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 3; + private string pageToken_ = ""; + /// + /// Optional. The `next_page_token` from a previous request, if any. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "filter" field. + public const int FilterFieldNumber = 4; + private string filter_ = ""; + /// + /// Optional. Filter expression following https://google.aip.dev/160. + /// + /// A time range (either physical or civil) can be specified. + /// + /// The supported filter fields are: + /// + /// - Interval start time: + /// - Pattern: `{interval_data_type}.interval.start_time` + /// - Supported comparison operators: `>=`, `<` + /// - Timestamp literal expected in RFC-3339 format + /// - Supported logical operators: `AND` + /// - Example: + /// - `steps.interval.start_time >= "2023-11-24T00:00:00Z" AND + /// steps.interval.start_time < "2023-11-25T00:00:00Z"` + /// - `distance.interval.start_time >= "2024-08-14T12:34:56Z"` + /// + /// - Interval civil start time: + /// - Pattern: `{interval_data_type}.interval.civil_start_time` + /// - Supported comparison operators: `>=`, `<` + /// - Date with optional time literal expected in ISO 8601 + /// `YYYY-MM-DD[THH:mm:ss]` format + /// - Supported logical operators: `AND` + /// - Example: + /// - `steps.interval.civil_start_time >= "2023-11-24" AND + /// steps.interval.civil_start_time < "2023-11-25"` + /// - `distance.interval.civil_start_time >= "2024-08-14T12:34:56"` + /// + /// - Sample observation physical time: + /// - Pattern: `{sample_data_type}.sample_time.physical_time` + /// - Supported comparison operators: `>=`, `<` + /// - Timestamp literal expected in RFC-3339 format + /// - Supported logical operators: `AND` + /// - Example: + /// - `weight.sample_time.physical_time >= "2023-11-24T00:00:00Z" + /// AND weight.sample_time.physical_time < "2023-11-25T00:00:00Z"` + /// - `weight.sample_time.physical_time >= + /// "2024-08-14T12:34:56Z"` + /// + /// - Sample observation civil time: + /// - Pattern: `{sample_data_type}.sample_time.civil_time` + /// - Supported comparison operators: `>=`, `<` + /// - Date with optional time literal expected in ISO 8601 + /// `YYYY-MM-DD[THH:mm:ss]` format + /// - Supported logical operators: `AND` + /// - Example: + /// - `weight.sample_time.civil_time >= "2023-11-24" AND + /// weight.sample_time.civil_time < "2023-11-25"` + /// - `weight.sample_time.civil_time >= "2024-08-14T12:34:56"` + /// + /// - Daily summary date: + /// - Pattern: `{daily_summary_data_type}.date` + /// - Supported comparison operators: `>=`, `<` + /// - Date literal expected in ISO 8601 `YYYY-MM-DD` format + /// - Supported logical operators: `AND` + /// - Example: + /// - `daily_resting_heart_rate.date >= "2024-08-14"` + /// - `daily_heart_rate_variability.date < "2024-08-15"` + /// + /// - Session civil start time (**Excluding Sleep**): + /// - Pattern: `{session_data_type}.interval.civil_start_time` + /// - Supported comparison operators: `>=`, `<` + /// - Date with optional time literal expected in ISO 8601 + /// `YYYY-MM-DD[THH:mm:ss]` format + /// - Supported logical operators: `AND` + /// - Example: + /// - `exercise.interval.civil_start_time >= "2023-11-24" AND + /// exercise.interval.civil_start_time < "2023-11-25"` + /// - `exercise.interval.civil_start_time >= "2024-08-14T12:34:56"` + /// + /// - Session end time (**Sleep specific**): + /// - Pattern: `sleep.interval.end_time` + /// - Supported comparison operators: `>=`, `<` + /// - Timestamp literal expected in RFC-3339 format + /// - Supported logical operators: `AND`, `OR` + /// - Example: + /// - `sleep.interval.end_time >= "2023-11-24T00:00:00Z" AND + /// sleep.interval.end_time < "2023-11-25T00:00:00Z"` + /// + /// - Session civil end time (**Sleep specific**): + /// - Pattern: `sleep.interval.civil_end_time` + /// - Supported comparison operators: `>=`, `<` + /// - Date with optional time literal expected in ISO 8601 + /// `YYYY-MM-DD[THH:mm:ss]` format + /// - Supported logical operators: `AND`, `OR` + /// - Example: + /// - `sleep.interval.civil_end_time >= "2023-11-24" AND + /// sleep.interval.civil_end_time < "2023-11-25"` + /// + /// Data points in the response will be ordered by the interval start time in + /// descending order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListDataPointsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDataPointsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + if (Filter != other.Filter) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (Filter.Length != 0) hash ^= Filter.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (Filter.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Filter); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (Filter.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Filter); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (Filter.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Filter); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListDataPointsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + if (other.Filter.Length != 0) { + Filter = other.Filter; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 34: { + Filter = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 34: { + Filter = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response containing raw data points matching the query + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListDataPointsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDataPointsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDataPointsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDataPointsResponse(ListDataPointsResponse other) : this() { + dataPoints_ = other.dataPoints_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDataPointsResponse Clone() { + return new ListDataPointsResponse(this); + } + + /// Field number for the "data_points" field. + public const int DataPointsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataPoints_codec + = pb::FieldCodec.ForMessage(10, global::Google.DevicesAndServices.Health.V4.DataPoint.Parser); + private readonly pbc::RepeatedField dataPoints_ = new pbc::RepeatedField(); + /// + /// Data points matching the query + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataPoints { + get { return dataPoints_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// Next page token, empty if the response is complete + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListDataPointsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDataPointsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataPoints_.Equals(other.dataPoints_)) return false; + if (NextPageToken != other.NextPageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataPoints_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataPoints_.WriteTo(output, _repeated_dataPoints_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataPoints_.WriteTo(ref output, _repeated_dataPoints_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataPoints_.CalculateSize(_repeated_dataPoints_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListDataPointsResponse other) { + if (other == null) { + return; + } + dataPoints_.Add(other.dataPoints_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataPoints_.AddEntriesFrom(input, _repeated_dataPoints_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataPoints_.AddEntriesFrom(ref input, _repeated_dataPoints_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request to create an identifiable data point. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateDataPointRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDataPointRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDataPointRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDataPointRequest(CreateDataPointRequest other) : this() { + parent_ = other.parent_; + dataPoint_ = other.dataPoint_ != null ? other.dataPoint_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDataPointRequest Clone() { + return new CreateDataPointRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The parent resource name where the data point will be created. + /// Format: `users/{user}/dataTypes/{data_type}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "data_point" field. + public const int DataPointFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.DataPoint dataPoint_; + /// + /// Required. The data point to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DataPoint DataPoint { + get { return dataPoint_; } + set { + dataPoint_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateDataPointRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateDataPointRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (!object.Equals(DataPoint, other.DataPoint)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (dataPoint_ != null) hash ^= DataPoint.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (dataPoint_ != null) { + output.WriteRawTag(18); + output.WriteMessage(DataPoint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (dataPoint_ != null) { + output.WriteRawTag(18); + output.WriteMessage(DataPoint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (dataPoint_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DataPoint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateDataPointRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.dataPoint_ != null) { + if (dataPoint_ == null) { + DataPoint = new global::Google.DevicesAndServices.Health.V4.DataPoint(); + } + DataPoint.MergeFrom(other.DataPoint); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (dataPoint_ == null) { + DataPoint = new global::Google.DevicesAndServices.Health.V4.DataPoint(); + } + input.ReadMessage(DataPoint); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (dataPoint_ == null) { + DataPoint = new global::Google.DevicesAndServices.Health.V4.DataPoint(); + } + input.ReadMessage(DataPoint); + break; + } + } + } + } + #endif + + } + + /// + /// Metadata for a create data point operation. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateDataPointOperationMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDataPointOperationMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDataPointOperationMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDataPointOperationMetadata(CreateDataPointOperationMetadata other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateDataPointOperationMetadata Clone() { + return new CreateDataPointOperationMetadata(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateDataPointOperationMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateDataPointOperationMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateDataPointOperationMetadata other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// Request to update an identifiable data point. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateDataPointRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateDataPointRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateDataPointRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateDataPointRequest(UpdateDataPointRequest other) : this() { + dataPoint_ = other.dataPoint_ != null ? other.dataPoint_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateDataPointRequest Clone() { + return new UpdateDataPointRequest(this); + } + + /// Field number for the "data_point" field. + public const int DataPointFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.DataPoint dataPoint_; + /// + /// Required. The data point to update + /// + /// The data point's `name` field is used to identify the data point to update. + /// + /// Format: `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DataPoint DataPoint { + get { return dataPoint_; } + set { + dataPoint_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateDataPointRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateDataPointRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DataPoint, other.DataPoint)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (dataPoint_ != null) hash ^= DataPoint.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (dataPoint_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DataPoint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (dataPoint_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DataPoint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (dataPoint_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DataPoint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateDataPointRequest other) { + if (other == null) { + return; + } + if (other.dataPoint_ != null) { + if (dataPoint_ == null) { + DataPoint = new global::Google.DevicesAndServices.Health.V4.DataPoint(); + } + DataPoint.MergeFrom(other.DataPoint); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (dataPoint_ == null) { + DataPoint = new global::Google.DevicesAndServices.Health.V4.DataPoint(); + } + input.ReadMessage(DataPoint); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (dataPoint_ == null) { + DataPoint = new global::Google.DevicesAndServices.Health.V4.DataPoint(); + } + input.ReadMessage(DataPoint); + break; + } + } + } + } + #endif + + } + + /// + /// Metadata for an update data point operation. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateDataPointOperationMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateDataPointOperationMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateDataPointOperationMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateDataPointOperationMetadata(UpdateDataPointOperationMetadata other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateDataPointOperationMetadata Clone() { + return new UpdateDataPointOperationMetadata(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateDataPointOperationMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateDataPointOperationMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateDataPointOperationMetadata other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// Request to delete a batch of identifiable data points. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BatchDeleteDataPointsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchDeleteDataPointsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchDeleteDataPointsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchDeleteDataPointsRequest(BatchDeleteDataPointsRequest other) : this() { + parent_ = other.parent_; + names_ = other.names_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchDeleteDataPointsRequest Clone() { + return new BatchDeleteDataPointsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Optional. Parent (data type) for the Data Point collection + /// Format: `users/me/dataTypes/{data_type}`, e.g.: + /// + /// - `users/me/dataTypes/steps` + /// - `users/me/dataTypes/-` + /// + /// For a list of the supported data types see the + /// [DataPoint + /// data][google.devicesandservices.health.v4.DataPoint] union + /// field. + /// + /// Deleting data points across multiple data type collections is supported + /// following https://aip.dev/159. + /// + /// If this is set, the parent of all of the data points specified in `names` + /// must match this field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "names" field. + public const int NamesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_names_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField names_ = new pbc::RepeatedField(); + /// + /// Required. The names of the DataPoints to delete. + /// A maximum of 10000 data points can be deleted in a single request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Names { + get { return names_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BatchDeleteDataPointsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BatchDeleteDataPointsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if(!names_.Equals(other.names_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + hash ^= names_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + names_.WriteTo(output, _repeated_names_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + names_.WriteTo(ref output, _repeated_names_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + size += names_.CalculateSize(_repeated_names_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BatchDeleteDataPointsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + names_.Add(other.names_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + names_.AddEntriesFrom(input, _repeated_names_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + names_.AddEntriesFrom(ref input, _repeated_names_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Response containing the list of possibly soft-deleted DataPoints. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BatchDeleteDataPointsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchDeleteDataPointsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchDeleteDataPointsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchDeleteDataPointsResponse(BatchDeleteDataPointsResponse other) : this() { + dataPoints_ = other.dataPoints_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchDeleteDataPointsResponse Clone() { + return new BatchDeleteDataPointsResponse(this); + } + + /// Field number for the "data_points" field. + public const int DataPointsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataPoints_codec + = pb::FieldCodec.ForMessage(10, global::Google.DevicesAndServices.Health.V4.DataPoint.Parser); + private readonly pbc::RepeatedField dataPoints_ = new pbc::RepeatedField(); + /// + /// The list of soft-deleted DataPoints, if the data type supports only soft + /// deletion. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataPoints { + get { return dataPoints_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BatchDeleteDataPointsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BatchDeleteDataPointsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataPoints_.Equals(other.dataPoints_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataPoints_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataPoints_.WriteTo(output, _repeated_dataPoints_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataPoints_.WriteTo(ref output, _repeated_dataPoints_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataPoints_.CalculateSize(_repeated_dataPoints_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BatchDeleteDataPointsResponse other) { + if (other == null) { + return; + } + dataPoints_.Add(other.dataPoints_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataPoints_.AddEntriesFrom(input, _repeated_dataPoints_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataPoints_.AddEntriesFrom(ref input, _repeated_dataPoints_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Metadata for a batch delete data points operation. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BatchDeleteDataPointsOperationMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchDeleteDataPointsOperationMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchDeleteDataPointsOperationMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchDeleteDataPointsOperationMetadata(BatchDeleteDataPointsOperationMetadata other) : this() { + failedRequests_ = other.failedRequests_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchDeleteDataPointsOperationMetadata Clone() { + return new BatchDeleteDataPointsOperationMetadata(this); + } + + /// Field number for the "failed_requests" field. + public const int FailedRequestsFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_failedRequests_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Rpc.Status.Parser), 10); + private readonly pbc::MapField failedRequests_ = new pbc::MapField(); + /// + /// The key in this map is the index of the request in the `requests` field in + /// the batch request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField FailedRequests { + get { return failedRequests_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BatchDeleteDataPointsOperationMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BatchDeleteDataPointsOperationMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!FailedRequests.Equals(other.FailedRequests)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= FailedRequests.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + failedRequests_.WriteTo(output, _map_failedRequests_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + failedRequests_.WriteTo(ref output, _map_failedRequests_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += failedRequests_.CalculateSize(_map_failedRequests_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BatchDeleteDataPointsOperationMetadata other) { + if (other == null) { + return; + } + failedRequests_.MergeFrom(other.failedRequests_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + failedRequests_.AddEntriesFrom(input, _map_failedRequests_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + failedRequests_.AddEntriesFrom(ref input, _map_failedRequests_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Request to reconcile data points from multiple data sources. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ReconcileDataPointsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReconcileDataPointsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReconcileDataPointsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReconcileDataPointsRequest(ReconcileDataPointsRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + filter_ = other.filter_; + dataSourceFamily_ = other.dataSourceFamily_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReconcileDataPointsRequest Clone() { + return new ReconcileDataPointsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. Parent data type of the Data Point collection. + /// + /// Format: `users/me/dataTypes/{data_type}`, e.g.: + /// + /// - `users/me/dataTypes/steps` + /// - `users/me/dataTypes/heart-rate` + /// + /// For a list of the supported data types see the + /// [DataPoint + /// data][google.devicesandservices.health.v4.DataPoint] union + /// field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// Optional. The maximum number of data points to return. + /// If unspecified, at most 1440 data points will be returned. + /// The maximum page size is 10000; values above that will be truncated + /// accordingly. + /// For `exercise` and `sleep` the default page size is 25. + /// The maximum page size for `exercise` and `sleep` is 25. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 3; + private string pageToken_ = ""; + /// + /// Optional. The `next_page_token` from a previous request, if any. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "filter" field. + public const int FilterFieldNumber = 4; + private string filter_ = ""; + /// + /// Optional. Filter expression based on https://aip.dev/160. + /// + /// A time range, either physical or civil, can be specified. + /// See the + /// [ListDataPointsRequest.filter][google.devicesandservices.health.v4.ListDataPointsRequest.filter] + /// for the supported fields and syntax. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "data_source_family" field. + public const int DataSourceFamilyFieldNumber = 5; + private string dataSourceFamily_ = ""; + /// + /// Optional. The data source family name to reconcile. + /// + /// If empty, data points from all data sources will be reconciled. + /// + /// Format: `users/me/dataSourceFamilies/{data_source_family}` + /// + /// The supported values are: + /// + /// - `users/me/dataSourceFamilies/all-sources` - default value + /// - `users/me/dataSourceFamilies/google-wearables` - tracker devices + /// - `users/me/dataSourceFamilies/google-sources` - Google first party + /// sources + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DataSourceFamily { + get { return dataSourceFamily_; } + set { + dataSourceFamily_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReconcileDataPointsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReconcileDataPointsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + if (Filter != other.Filter) return false; + if (DataSourceFamily != other.DataSourceFamily) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (Filter.Length != 0) hash ^= Filter.GetHashCode(); + if (DataSourceFamily.Length != 0) hash ^= DataSourceFamily.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (Filter.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Filter); + } + if (DataSourceFamily.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DataSourceFamily); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (Filter.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Filter); + } + if (DataSourceFamily.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DataSourceFamily); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (Filter.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Filter); + } + if (DataSourceFamily.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DataSourceFamily); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReconcileDataPointsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + if (other.Filter.Length != 0) { + Filter = other.Filter; + } + if (other.DataSourceFamily.Length != 0) { + DataSourceFamily = other.DataSourceFamily; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 34: { + Filter = input.ReadString(); + break; + } + case 42: { + DataSourceFamily = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 34: { + Filter = input.ReadString(); + break; + } + case 42: { + DataSourceFamily = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response containing the list of reconciled DataPoints. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ReconcileDataPointsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReconcileDataPointsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReconcileDataPointsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReconcileDataPointsResponse(ReconcileDataPointsResponse other) : this() { + dataPoints_ = other.dataPoints_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReconcileDataPointsResponse Clone() { + return new ReconcileDataPointsResponse(this); + } + + /// Field number for the "data_points" field. + public const int DataPointsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataPoints_codec + = pb::FieldCodec.ForMessage(10, global::Google.DevicesAndServices.Health.V4.ReconciledDataPoint.Parser); + private readonly pbc::RepeatedField dataPoints_ = new pbc::RepeatedField(); + /// + /// Data points matching the query + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataPoints { + get { return dataPoints_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// Next page token, empty if the response is complete + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReconcileDataPointsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReconcileDataPointsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataPoints_.Equals(other.dataPoints_)) return false; + if (NextPageToken != other.NextPageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataPoints_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataPoints_.WriteTo(output, _repeated_dataPoints_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataPoints_.WriteTo(ref output, _repeated_dataPoints_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataPoints_.CalculateSize(_repeated_dataPoints_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReconcileDataPointsResponse other) { + if (other == null) { + return; + } + dataPoints_.Add(other.dataPoints_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataPoints_.AddEntriesFrom(input, _repeated_dataPoints_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataPoints_.AddEntriesFrom(ref input, _repeated_dataPoints_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request to roll up data points by physical time intervals. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RollUpDataPointsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RollUpDataPointsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RollUpDataPointsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RollUpDataPointsRequest(RollUpDataPointsRequest other) : this() { + parent_ = other.parent_; + range_ = other.range_ != null ? other.range_.Clone() : null; + windowSize_ = other.windowSize_ != null ? other.windowSize_.Clone() : null; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + dataSourceFamily_ = other.dataSourceFamily_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RollUpDataPointsRequest Clone() { + return new RollUpDataPointsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. Parent data type of the Data Point collection. + /// + /// Format: `users/{user}/dataTypes/{data_type}`, e.g.: + /// + /// - `users/me/dataTypes/steps` + /// - `users/me/dataTypes/distance` + /// + /// For a list of the supported data types see the [RollupDataPoint + /// value][google.devicesandservices.health.v4.RollupDataPoint] + /// union field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "range" field. + public const int RangeFieldNumber = 2; + private global::Google.Type.Interval range_; + /// + /// Required. Closed-open range of data points that will be rolled up. + /// The maximum range for `calories-in-heart-rate-zone`, `heart-rate`, + /// `active-minutes` and `total-calories` is 14 days. + /// The maximum range for all other data types is 90 days. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.Interval Range { + get { return range_; } + set { + range_ = value; + } + } + + /// Field number for the "window_size" field. + public const int WindowSizeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Duration windowSize_; + /// + /// Required. The size of the time window to group data points into before + /// applying the aggregation functions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration WindowSize { + get { return windowSize_; } + set { + windowSize_ = value; + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 4; + private int pageSize_; + /// + /// Optional. The maximum number of data points to return. + /// If unspecified, at most 1440 data points will be returned. + /// The maximum page size is 10000; values above that will be truncated + /// accordingly. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 5; + private string pageToken_ = ""; + /// + /// Optional. The next_page_token from a previous request, if any. + /// All other request fields need to be the same as in the initial request + /// when the page token is specified. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "data_source_family" field. + public const int DataSourceFamilyFieldNumber = 7; + private string dataSourceFamily_ = ""; + /// + /// Optional. The data source family name to roll up. + /// + /// If empty, data points from all available data sources will be rolled up. + /// + /// Format: `users/me/dataSourceFamilies/{data_source_family}` + /// + /// The supported values are: + /// + /// - `users/me/dataSourceFamilies/all-sources` - default value + /// - `users/me/dataSourceFamilies/google-wearables` - tracker devices + /// - `users/me/dataSourceFamilies/google-sources` - Google first party + /// sources + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DataSourceFamily { + get { return dataSourceFamily_; } + set { + dataSourceFamily_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RollUpDataPointsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RollUpDataPointsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (!object.Equals(Range, other.Range)) return false; + if (!object.Equals(WindowSize, other.WindowSize)) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + if (DataSourceFamily != other.DataSourceFamily) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (range_ != null) hash ^= Range.GetHashCode(); + if (windowSize_ != null) hash ^= WindowSize.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (DataSourceFamily.Length != 0) hash ^= DataSourceFamily.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (range_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Range); + } + if (windowSize_ != null) { + output.WriteRawTag(26); + output.WriteMessage(WindowSize); + } + if (PageSize != 0) { + output.WriteRawTag(32); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PageToken); + } + if (DataSourceFamily.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DataSourceFamily); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (range_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Range); + } + if (windowSize_ != null) { + output.WriteRawTag(26); + output.WriteMessage(WindowSize); + } + if (PageSize != 0) { + output.WriteRawTag(32); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PageToken); + } + if (DataSourceFamily.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DataSourceFamily); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (range_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Range); + } + if (windowSize_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WindowSize); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (DataSourceFamily.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DataSourceFamily); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RollUpDataPointsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.range_ != null) { + if (range_ == null) { + Range = new global::Google.Type.Interval(); + } + Range.MergeFrom(other.Range); + } + if (other.windowSize_ != null) { + if (windowSize_ == null) { + WindowSize = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + WindowSize.MergeFrom(other.WindowSize); + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + if (other.DataSourceFamily.Length != 0) { + DataSourceFamily = other.DataSourceFamily; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (range_ == null) { + Range = new global::Google.Type.Interval(); + } + input.ReadMessage(Range); + break; + } + case 26: { + if (windowSize_ == null) { + WindowSize = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(WindowSize); + break; + } + case 32: { + PageSize = input.ReadInt32(); + break; + } + case 42: { + PageToken = input.ReadString(); + break; + } + case 58: { + DataSourceFamily = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (range_ == null) { + Range = new global::Google.Type.Interval(); + } + input.ReadMessage(Range); + break; + } + case 26: { + if (windowSize_ == null) { + WindowSize = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(WindowSize); + break; + } + case 32: { + PageSize = input.ReadInt32(); + break; + } + case 42: { + PageToken = input.ReadString(); + break; + } + case 58: { + DataSourceFamily = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response containing the list of rolled up data points. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RollUpDataPointsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RollUpDataPointsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RollUpDataPointsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RollUpDataPointsResponse(RollUpDataPointsResponse other) : this() { + rollupDataPoints_ = other.rollupDataPoints_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RollUpDataPointsResponse Clone() { + return new RollUpDataPointsResponse(this); + } + + /// Field number for the "rollup_data_points" field. + public const int RollupDataPointsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_rollupDataPoints_codec + = pb::FieldCodec.ForMessage(10, global::Google.DevicesAndServices.Health.V4.RollupDataPoint.Parser); + private readonly pbc::RepeatedField rollupDataPoints_ = new pbc::RepeatedField(); + /// + /// Values for each aggregation time window. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RollupDataPoints { + get { return rollupDataPoints_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token, which can be sent as `page_token` to retrieve the next page. + /// If this field is omitted, there are no subsequent pages. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RollUpDataPointsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RollUpDataPointsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!rollupDataPoints_.Equals(other.rollupDataPoints_)) return false; + if (NextPageToken != other.NextPageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= rollupDataPoints_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + rollupDataPoints_.WriteTo(output, _repeated_rollupDataPoints_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + rollupDataPoints_.WriteTo(ref output, _repeated_rollupDataPoints_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += rollupDataPoints_.CalculateSize(_repeated_rollupDataPoints_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RollUpDataPointsResponse other) { + if (other == null) { + return; + } + rollupDataPoints_.Add(other.rollupDataPoints_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + rollupDataPoints_.AddEntriesFrom(input, _repeated_rollupDataPoints_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + rollupDataPoints_.AddEntriesFrom(ref input, _repeated_rollupDataPoints_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request to roll up data points by civil time intervals. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyRollUpDataPointsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyRollUpDataPointsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRollUpDataPointsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRollUpDataPointsRequest(DailyRollUpDataPointsRequest other) : this() { + parent_ = other.parent_; + range_ = other.range_ != null ? other.range_.Clone() : null; + windowSizeDays_ = other.windowSizeDays_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + dataSourceFamily_ = other.dataSourceFamily_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRollUpDataPointsRequest Clone() { + return new DailyRollUpDataPointsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. Parent data type of the Data Point collection. + /// + /// Format: `users/{user}/dataTypes/{data_type}`, e.g.: + /// + /// - `users/me/dataTypes/steps` + /// - `users/me/dataTypes/distance` + /// + /// For a list of the supported data types see the [DailyRollupDataPoint + /// value][google.devicesandservices.health.v4.DailyRollupDataPoint] + /// union field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "range" field. + public const int RangeFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.CivilTimeInterval range_; + /// + /// Required. Closed-open range of data points that will be rolled up. + /// The start time must be aligned with the aggregation window. + /// The maximum range for `calories-in-heart-rate-zone`, `heart-rate`, + /// `active-minutes` and `total-calories` is 14 days. + /// The maximum range for all other data types is 90 days. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.CivilTimeInterval Range { + get { return range_; } + set { + range_ = value; + } + } + + /// Field number for the "window_size_days" field. + public const int WindowSizeDaysFieldNumber = 3; + private int windowSizeDays_; + /// + /// Optional. Aggregation window size, in number of days. Defaults to 1 if not + /// specified. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WindowSizeDays { + get { return windowSizeDays_; } + set { + windowSizeDays_ = value; + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 4; + private int pageSize_; + /// + /// Optional. The maximum number of data points to return. + /// If unspecified, at most 1440 data points will be returned. + /// The maximum page size is 10000; values above that will be truncated + /// accordingly. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 5; + private string pageToken_ = ""; + /// + /// Optional. The `next_page_token` from a previous request, if any. + /// All other request fields need to be the same as in the initial request + /// when the page token is specified. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "data_source_family" field. + public const int DataSourceFamilyFieldNumber = 7; + private string dataSourceFamily_ = ""; + /// + /// Optional. The data source family name to roll up. + /// If empty, data points from all available data sources will be rolled up. + /// + /// Format: `users/me/dataSourceFamilies/{data_source_family}` + /// + /// The supported values are: + /// + /// - `users/me/dataSourceFamilies/all-sources` - default value + /// - `users/me/dataSourceFamilies/google-wearables` - tracker devices + /// - `users/me/dataSourceFamilies/google-sources` - Google first party + /// sources + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DataSourceFamily { + get { return dataSourceFamily_; } + set { + dataSourceFamily_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyRollUpDataPointsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyRollUpDataPointsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (!object.Equals(Range, other.Range)) return false; + if (WindowSizeDays != other.WindowSizeDays) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + if (DataSourceFamily != other.DataSourceFamily) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (range_ != null) hash ^= Range.GetHashCode(); + if (WindowSizeDays != 0) hash ^= WindowSizeDays.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (DataSourceFamily.Length != 0) hash ^= DataSourceFamily.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (range_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Range); + } + if (WindowSizeDays != 0) { + output.WriteRawTag(24); + output.WriteInt32(WindowSizeDays); + } + if (PageSize != 0) { + output.WriteRawTag(32); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PageToken); + } + if (DataSourceFamily.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DataSourceFamily); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (range_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Range); + } + if (WindowSizeDays != 0) { + output.WriteRawTag(24); + output.WriteInt32(WindowSizeDays); + } + if (PageSize != 0) { + output.WriteRawTag(32); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PageToken); + } + if (DataSourceFamily.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DataSourceFamily); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (range_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Range); + } + if (WindowSizeDays != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WindowSizeDays); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (DataSourceFamily.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DataSourceFamily); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyRollUpDataPointsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.range_ != null) { + if (range_ == null) { + Range = new global::Google.DevicesAndServices.Health.V4.CivilTimeInterval(); + } + Range.MergeFrom(other.Range); + } + if (other.WindowSizeDays != 0) { + WindowSizeDays = other.WindowSizeDays; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + if (other.DataSourceFamily.Length != 0) { + DataSourceFamily = other.DataSourceFamily; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (range_ == null) { + Range = new global::Google.DevicesAndServices.Health.V4.CivilTimeInterval(); + } + input.ReadMessage(Range); + break; + } + case 24: { + WindowSizeDays = input.ReadInt32(); + break; + } + case 32: { + PageSize = input.ReadInt32(); + break; + } + case 42: { + PageToken = input.ReadString(); + break; + } + case 58: { + DataSourceFamily = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (range_ == null) { + Range = new global::Google.DevicesAndServices.Health.V4.CivilTimeInterval(); + } + input.ReadMessage(Range); + break; + } + case 24: { + WindowSizeDays = input.ReadInt32(); + break; + } + case 32: { + PageSize = input.ReadInt32(); + break; + } + case 42: { + PageToken = input.ReadString(); + break; + } + case 58: { + DataSourceFamily = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response containing the list of rolled up data points. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyRollUpDataPointsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyRollUpDataPointsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRollUpDataPointsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRollUpDataPointsResponse(DailyRollUpDataPointsResponse other) : this() { + rollupDataPoints_ = other.rollupDataPoints_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyRollUpDataPointsResponse Clone() { + return new DailyRollUpDataPointsResponse(this); + } + + /// Field number for the "rollup_data_points" field. + public const int RollupDataPointsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_rollupDataPoints_codec + = pb::FieldCodec.ForMessage(10, global::Google.DevicesAndServices.Health.V4.DailyRollupDataPoint.Parser); + private readonly pbc::RepeatedField rollupDataPoints_ = new pbc::RepeatedField(); + /// + /// Values for each aggregation time window. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RollupDataPoints { + get { return rollupDataPoints_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyRollUpDataPointsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyRollUpDataPointsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!rollupDataPoints_.Equals(other.rollupDataPoints_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= rollupDataPoints_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + rollupDataPoints_.WriteTo(output, _repeated_rollupDataPoints_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + rollupDataPoints_.WriteTo(ref output, _repeated_rollupDataPoints_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += rollupDataPoints_.CalculateSize(_repeated_rollupDataPoints_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyRollUpDataPointsResponse other) { + if (other == null) { + return; + } + rollupDataPoints_.Add(other.rollupDataPoints_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + rollupDataPoints_.AddEntriesFrom(input, _repeated_rollupDataPoints_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + rollupDataPoints_.AddEntriesFrom(ref input, _repeated_rollupDataPoints_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a type of health data a user can have data points recorded for. + /// It matches the parent resource of collection containing data points of the + /// given type. + /// + /// Clients currently do not need to interact with this resource directly. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DataType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataType(DataType other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataType Clone() { + return new DataType(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Identifier. The resource name of the data type. + /// + /// Format: `users/{user}/dataTypes/{data_type}` + /// + /// See + /// [DataPoint.name][google.devicesandservices.health.v4.DataPoint.name] + /// for examples and possible values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DataType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DataType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DataType other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a request to export exercise data in TCX format. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExportExerciseTcxRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExportExerciseTcxRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExportExerciseTcxRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExportExerciseTcxRequest(ExportExerciseTcxRequest other) : this() { + name_ = other.name_; + partialData_ = other.partialData_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExportExerciseTcxRequest Clone() { + return new ExportExerciseTcxRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name of the exercise data point to export. + /// + /// Format: `users/{user}/dataTypes/exercise/dataPoints/{data_point}` + /// Example: `users/me/dataTypes/exercise/dataPoints/2026443605080188808` + /// + /// The `{user}` is the alias `"me"` currently. Future versions may support + /// user IDs. + /// The `{data_point}` ID maps to the exercise ID, which is a long integer. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "partial_data" field. + public const int PartialDataFieldNumber = 2; + private bool partialData_; + /// + /// Optional. Indicates whether to include the TCX data points when the GPS + /// data is not available. If not specified, defaults to `false` and partial + /// data will not be included. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PartialData { + get { return partialData_; } + set { + partialData_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExportExerciseTcxRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExportExerciseTcxRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (PartialData != other.PartialData) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (PartialData != false) hash ^= PartialData.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (PartialData != false) { + output.WriteRawTag(16); + output.WriteBool(PartialData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (PartialData != false) { + output.WriteRawTag(16); + output.WriteBool(PartialData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (PartialData != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExportExerciseTcxRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.PartialData != false) { + PartialData = other.PartialData; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + PartialData = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + PartialData = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a Response for exporting exercise data in TCX format. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExportExerciseTcxResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExportExerciseTcxResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExportExerciseTcxResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExportExerciseTcxResponse(ExportExerciseTcxResponse other) : this() { + tcxData_ = other.tcxData_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExportExerciseTcxResponse Clone() { + return new ExportExerciseTcxResponse(this); + } + + /// Field number for the "tcx_data" field. + public const int TcxDataFieldNumber = 2; + private string tcxData_ = ""; + /// + /// Contains the exported TCX data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TcxData { + get { return tcxData_; } + set { + tcxData_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExportExerciseTcxResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExportExerciseTcxResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TcxData != other.TcxData) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TcxData.Length != 0) hash ^= TcxData.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TcxData.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TcxData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TcxData.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TcxData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TcxData.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TcxData); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExportExerciseTcxResponse other) { + if (other == null) { + return; + } + if (other.TcxData.Length != 0) { + TcxData = other.TcxData; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + TcxData = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + TcxData = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPointsGrpc.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPointsGrpc.g.cs new file mode 100644 index 000000000000..c3e32258a198 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPointsGrpc.g.cs @@ -0,0 +1,757 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devicesandservices/health/v4/data_points.proto +// +// Original file comments: +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#pragma warning disable 0414, 1591, 8981, 0612 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Google.DevicesAndServices.Health.V4 { + /// + /// Data Points Service exposing the user's health and fitness measured and + /// derived data. + /// + public static partial class DataPointsService + { + static readonly string __ServiceName = "google.devicesandservices.health.v4.DataPointsService"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_ListDataPointsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.ListDataPointsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_ListDataPointsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.ListDataPointsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_CreateDataPointRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.CreateDataPointRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_longrunning_Operation = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.LongRunning.Operation.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_UpdateDataPointRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.UpdateDataPointRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_BatchDeleteDataPointsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.BatchDeleteDataPointsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_ReconcileDataPointsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.ReconcileDataPointsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_ReconcileDataPointsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.ReconcileDataPointsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_RollUpDataPointsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.RollUpDataPointsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_RollUpDataPointsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.RollUpDataPointsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_DailyRollUpDataPointsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_DailyRollUpDataPointsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_ExportExerciseTcxRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.ExportExerciseTcxRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_ExportExerciseTcxResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.ExportExerciseTcxResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListDataPoints = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListDataPoints", + __Marshaller_google_devicesandservices_health_v4_ListDataPointsRequest, + __Marshaller_google_devicesandservices_health_v4_ListDataPointsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateDataPoint = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateDataPoint", + __Marshaller_google_devicesandservices_health_v4_CreateDataPointRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateDataPoint = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateDataPoint", + __Marshaller_google_devicesandservices_health_v4_UpdateDataPointRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_BatchDeleteDataPoints = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "BatchDeleteDataPoints", + __Marshaller_google_devicesandservices_health_v4_BatchDeleteDataPointsRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ReconcileDataPoints = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ReconcileDataPoints", + __Marshaller_google_devicesandservices_health_v4_ReconcileDataPointsRequest, + __Marshaller_google_devicesandservices_health_v4_ReconcileDataPointsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_RollUpDataPoints = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "RollUpDataPoints", + __Marshaller_google_devicesandservices_health_v4_RollUpDataPointsRequest, + __Marshaller_google_devicesandservices_health_v4_RollUpDataPointsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DailyRollUpDataPoints = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DailyRollUpDataPoints", + __Marshaller_google_devicesandservices_health_v4_DailyRollUpDataPointsRequest, + __Marshaller_google_devicesandservices_health_v4_DailyRollUpDataPointsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ExportExerciseTcx = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ExportExerciseTcx", + __Marshaller_google_devicesandservices_health_v4_ExportExerciseTcxRequest, + __Marshaller_google_devicesandservices_health_v4_ExportExerciseTcxResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Google.DevicesAndServices.Health.V4.DataPointsReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of DataPointsService + [grpc::BindServiceMethod(typeof(DataPointsService), "BindService")] + public abstract partial class DataPointsServiceBase + { + /// + /// Query user health and fitness data points. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListDataPoints(global::Google.DevicesAndServices.Health.V4.ListDataPointsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Creates a single identifiable data point. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateDataPoint(global::Google.DevicesAndServices.Health.V4.CreateDataPointRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates a single identifiable data point. If a data point with the + /// specified `name` is not found, the request will fail. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateDataPoint(global::Google.DevicesAndServices.Health.V4.UpdateDataPointRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete a batch of identifyable data points. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task BatchDeleteDataPoints(global::Google.DevicesAndServices.Health.V4.BatchDeleteDataPointsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Reconcile data points from multiple data sources into a single data stream. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ReconcileDataPoints(global::Google.DevicesAndServices.Health.V4.ReconcileDataPointsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Roll up data points over physical time intervals for supported data types. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task RollUpDataPoints(global::Google.DevicesAndServices.Health.V4.RollUpDataPointsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Roll up data points over civil time intervals for supported data types. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DailyRollUpDataPoints(global::Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Exports exercise data in TCX format. + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ExportExerciseTcx(global::Google.DevicesAndServices.Health.V4.ExportExerciseTcxRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for DataPointsService + public partial class DataPointsServiceClient : grpc::ClientBase + { + /// Creates a new client for DataPointsService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public DataPointsServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for DataPointsService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public DataPointsServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected DataPointsServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected DataPointsServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Query user health and fitness data points. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.ListDataPointsResponse ListDataPoints(global::Google.DevicesAndServices.Health.V4.ListDataPointsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListDataPoints(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Query user health and fitness data points. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.ListDataPointsResponse ListDataPoints(global::Google.DevicesAndServices.Health.V4.ListDataPointsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListDataPoints, null, options, request); + } + /// + /// Query user health and fitness data points. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListDataPointsAsync(global::Google.DevicesAndServices.Health.V4.ListDataPointsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListDataPointsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Query user health and fitness data points. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListDataPointsAsync(global::Google.DevicesAndServices.Health.V4.ListDataPointsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListDataPoints, null, options, request); + } + /// + /// Creates a single identifiable data point. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateDataPoint(global::Google.DevicesAndServices.Health.V4.CreateDataPointRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateDataPoint(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a single identifiable data point. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateDataPoint(global::Google.DevicesAndServices.Health.V4.CreateDataPointRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateDataPoint, null, options, request); + } + /// + /// Creates a single identifiable data point. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateDataPointAsync(global::Google.DevicesAndServices.Health.V4.CreateDataPointRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateDataPointAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a single identifiable data point. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateDataPointAsync(global::Google.DevicesAndServices.Health.V4.CreateDataPointRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateDataPoint, null, options, request); + } + /// + /// Updates a single identifiable data point. If a data point with the + /// specified `name` is not found, the request will fail. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateDataPoint(global::Google.DevicesAndServices.Health.V4.UpdateDataPointRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateDataPoint(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates a single identifiable data point. If a data point with the + /// specified `name` is not found, the request will fail. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateDataPoint(global::Google.DevicesAndServices.Health.V4.UpdateDataPointRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateDataPoint, null, options, request); + } + /// + /// Updates a single identifiable data point. If a data point with the + /// specified `name` is not found, the request will fail. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateDataPointAsync(global::Google.DevicesAndServices.Health.V4.UpdateDataPointRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateDataPointAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates a single identifiable data point. If a data point with the + /// specified `name` is not found, the request will fail. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateDataPointAsync(global::Google.DevicesAndServices.Health.V4.UpdateDataPointRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateDataPoint, null, options, request); + } + /// + /// Delete a batch of identifyable data points. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation BatchDeleteDataPoints(global::Google.DevicesAndServices.Health.V4.BatchDeleteDataPointsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return BatchDeleteDataPoints(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete a batch of identifyable data points. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation BatchDeleteDataPoints(global::Google.DevicesAndServices.Health.V4.BatchDeleteDataPointsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_BatchDeleteDataPoints, null, options, request); + } + /// + /// Delete a batch of identifyable data points. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall BatchDeleteDataPointsAsync(global::Google.DevicesAndServices.Health.V4.BatchDeleteDataPointsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return BatchDeleteDataPointsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete a batch of identifyable data points. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall BatchDeleteDataPointsAsync(global::Google.DevicesAndServices.Health.V4.BatchDeleteDataPointsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_BatchDeleteDataPoints, null, options, request); + } + /// + /// Reconcile data points from multiple data sources into a single data stream. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.ReconcileDataPointsResponse ReconcileDataPoints(global::Google.DevicesAndServices.Health.V4.ReconcileDataPointsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ReconcileDataPoints(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Reconcile data points from multiple data sources into a single data stream. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.ReconcileDataPointsResponse ReconcileDataPoints(global::Google.DevicesAndServices.Health.V4.ReconcileDataPointsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ReconcileDataPoints, null, options, request); + } + /// + /// Reconcile data points from multiple data sources into a single data stream. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ReconcileDataPointsAsync(global::Google.DevicesAndServices.Health.V4.ReconcileDataPointsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ReconcileDataPointsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Reconcile data points from multiple data sources into a single data stream. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ReconcileDataPointsAsync(global::Google.DevicesAndServices.Health.V4.ReconcileDataPointsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ReconcileDataPoints, null, options, request); + } + /// + /// Roll up data points over physical time intervals for supported data types. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.RollUpDataPointsResponse RollUpDataPoints(global::Google.DevicesAndServices.Health.V4.RollUpDataPointsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RollUpDataPoints(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Roll up data points over physical time intervals for supported data types. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.RollUpDataPointsResponse RollUpDataPoints(global::Google.DevicesAndServices.Health.V4.RollUpDataPointsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_RollUpDataPoints, null, options, request); + } + /// + /// Roll up data points over physical time intervals for supported data types. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall RollUpDataPointsAsync(global::Google.DevicesAndServices.Health.V4.RollUpDataPointsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RollUpDataPointsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Roll up data points over physical time intervals for supported data types. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall RollUpDataPointsAsync(global::Google.DevicesAndServices.Health.V4.RollUpDataPointsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_RollUpDataPoints, null, options, request); + } + /// + /// Roll up data points over civil time intervals for supported data types. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsResponse DailyRollUpDataPoints(global::Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DailyRollUpDataPoints(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Roll up data points over civil time intervals for supported data types. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsResponse DailyRollUpDataPoints(global::Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DailyRollUpDataPoints, null, options, request); + } + /// + /// Roll up data points over civil time intervals for supported data types. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DailyRollUpDataPointsAsync(global::Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DailyRollUpDataPointsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Roll up data points over civil time intervals for supported data types. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DailyRollUpDataPointsAsync(global::Google.DevicesAndServices.Health.V4.DailyRollUpDataPointsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DailyRollUpDataPoints, null, options, request); + } + /// + /// Exports exercise data in TCX format. + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.ExportExerciseTcxResponse ExportExerciseTcx(global::Google.DevicesAndServices.Health.V4.ExportExerciseTcxRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ExportExerciseTcx(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Exports exercise data in TCX format. + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.ExportExerciseTcxResponse ExportExerciseTcx(global::Google.DevicesAndServices.Health.V4.ExportExerciseTcxRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ExportExerciseTcx, null, options, request); + } + /// + /// Exports exercise data in TCX format. + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ExportExerciseTcxAsync(global::Google.DevicesAndServices.Health.V4.ExportExerciseTcxRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ExportExerciseTcxAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Exports exercise data in TCX format. + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ExportExerciseTcxAsync(global::Google.DevicesAndServices.Health.V4.ExportExerciseTcxRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ExportExerciseTcx, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override DataPointsServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new DataPointsServiceClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(DataPointsServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_ListDataPoints, serviceImpl.ListDataPoints) + .AddMethod(__Method_CreateDataPoint, serviceImpl.CreateDataPoint) + .AddMethod(__Method_UpdateDataPoint, serviceImpl.UpdateDataPoint) + .AddMethod(__Method_BatchDeleteDataPoints, serviceImpl.BatchDeleteDataPoints) + .AddMethod(__Method_ReconcileDataPoints, serviceImpl.ReconcileDataPoints) + .AddMethod(__Method_RollUpDataPoints, serviceImpl.RollUpDataPoints) + .AddMethod(__Method_DailyRollUpDataPoints, serviceImpl.DailyRollUpDataPoints) + .AddMethod(__Method_ExportExerciseTcx, serviceImpl.ExportExerciseTcx).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, DataPointsServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_ListDataPoints, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListDataPoints)); + serviceBinder.AddMethod(__Method_CreateDataPoint, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateDataPoint)); + serviceBinder.AddMethod(__Method_UpdateDataPoint, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateDataPoint)); + serviceBinder.AddMethod(__Method_BatchDeleteDataPoints, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.BatchDeleteDataPoints)); + serviceBinder.AddMethod(__Method_ReconcileDataPoints, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ReconcileDataPoints)); + serviceBinder.AddMethod(__Method_RollUpDataPoints, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.RollUpDataPoints)); + serviceBinder.AddMethod(__Method_DailyRollUpDataPoints, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DailyRollUpDataPoints)); + serviceBinder.AddMethod(__Method_ExportExerciseTcx, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ExportExerciseTcx)); + } + + } +} +#endregion diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPointsResourceNames.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPointsResourceNames.g.cs new file mode 100644 index 000000000000..a72668b616f8 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPointsResourceNames.g.cs @@ -0,0 +1,597 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gax = Google.Api.Gax; +using gdhv = Google.DevicesAndServices.Health.V4; +using sys = System; + +namespace Google.DevicesAndServices.Health.V4 +{ + /// Resource name for the DataPoint resource. + public sealed partial class DataPointName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern users/{user}/dataTypes/{data_type}/dataPoints/{data_point}. + /// + UserDataTypeDataPoint = 1, + } + + private static gax::PathTemplate s_userDataTypeDataPoint = new gax::PathTemplate("users/{user}/dataTypes/{data_type}/dataPoints/{data_point}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static DataPointName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new DataPointName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// users/{user}/dataTypes/{data_type}/dataPoints/{data_point}. + /// + /// The User ID. Must not be null or empty. + /// The DataType ID. Must not be null or empty. + /// The DataPoint ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static DataPointName FromUserDataTypeDataPoint(string userId, string dataTypeId, string dataPointId) => + new DataPointName(ResourceNameType.UserDataTypeDataPoint, userId: gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId)), dataTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(dataTypeId, nameof(dataTypeId)), dataPointId: gax::GaxPreconditions.CheckNotNullOrEmpty(dataPointId, nameof(dataPointId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// users/{user}/dataTypes/{data_type}/dataPoints/{data_point}. + /// + /// The User ID. Must not be null or empty. + /// The DataType ID. Must not be null or empty. + /// The DataPoint ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// users/{user}/dataTypes/{data_type}/dataPoints/{data_point}. + /// + public static string Format(string userId, string dataTypeId, string dataPointId) => + FormatUserDataTypeDataPoint(userId, dataTypeId, dataPointId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// users/{user}/dataTypes/{data_type}/dataPoints/{data_point}. + /// + /// The User ID. Must not be null or empty. + /// The DataType ID. Must not be null or empty. + /// The DataPoint ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// users/{user}/dataTypes/{data_type}/dataPoints/{data_point}. + /// + public static string FormatUserDataTypeDataPoint(string userId, string dataTypeId, string dataPointId) => + s_userDataTypeDataPoint.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId)), gax::GaxPreconditions.CheckNotNullOrEmpty(dataTypeId, nameof(dataTypeId)), gax::GaxPreconditions.CheckNotNullOrEmpty(dataPointId, nameof(dataPointId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// users/{user}/dataTypes/{data_type}/dataPoints/{data_point} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static DataPointName Parse(string dataPointName) => Parse(dataPointName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing + /// an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// users/{user}/dataTypes/{data_type}/dataPoints/{data_point} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static DataPointName Parse(string dataPointName, bool allowUnparsed) => + TryParse(dataPointName, allowUnparsed, out DataPointName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// users/{user}/dataTypes/{data_type}/dataPoints/{data_point} + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string dataPointName, out DataPointName result) => TryParse(dataPointName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// users/{user}/dataTypes/{data_type}/dataPoints/{data_point} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string dataPointName, bool allowUnparsed, out DataPointName result) + { + gax::GaxPreconditions.CheckNotNull(dataPointName, nameof(dataPointName)); + gax::TemplatedResourceName resourceName; + if (s_userDataTypeDataPoint.TryParseName(dataPointName, out resourceName)) + { + result = FromUserDataTypeDataPoint(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(dataPointName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private DataPointName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string dataPointId = null, string dataTypeId = null, string userId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + DataPointId = dataPointId; + DataTypeId = dataTypeId; + UserId = userId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// users/{user}/dataTypes/{data_type}/dataPoints/{data_point} + /// + /// The User ID. Must not be null or empty. + /// The DataType ID. Must not be null or empty. + /// The DataPoint ID. Must not be null or empty. + public DataPointName(string userId, string dataTypeId, string dataPointId) : this(ResourceNameType.UserDataTypeDataPoint, userId: gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId)), dataTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(dataTypeId, nameof(dataTypeId)), dataPointId: gax::GaxPreconditions.CheckNotNullOrEmpty(dataPointId, nameof(dataPointId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The DataPoint ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string DataPointId { get; } + + /// + /// The DataType ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string DataTypeId { get; } + + /// + /// The User ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string UserId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.UserDataTypeDataPoint: return s_userDataTypeDataPoint.Expand(UserId, DataTypeId, DataPointId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as DataPointName); + + /// + public bool Equals(DataPointName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(DataPointName a, DataPointName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(DataPointName a, DataPointName b) => !(a == b); + } + + /// Resource name for the DataType resource. + public sealed partial class DataTypeName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// A resource name with pattern users/{user}/dataTypes/{data_type}. + UserDataType = 1, + } + + private static gax::PathTemplate s_userDataType = new gax::PathTemplate("users/{user}/dataTypes/{data_type}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static DataTypeName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new DataTypeName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern users/{user}/dataTypes/{data_type}. + /// + /// The User ID. Must not be null or empty. + /// The DataType ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static DataTypeName FromUserDataType(string userId, string dataTypeId) => + new DataTypeName(ResourceNameType.UserDataType, userId: gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId)), dataTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(dataTypeId, nameof(dataTypeId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// users/{user}/dataTypes/{data_type}. + /// + /// The User ID. Must not be null or empty. + /// The DataType ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// users/{user}/dataTypes/{data_type}. + /// + public static string Format(string userId, string dataTypeId) => FormatUserDataType(userId, dataTypeId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// users/{user}/dataTypes/{data_type}. + /// + /// The User ID. Must not be null or empty. + /// The DataType ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// users/{user}/dataTypes/{data_type}. + /// + public static string FormatUserDataType(string userId, string dataTypeId) => + s_userDataType.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId)), gax::GaxPreconditions.CheckNotNullOrEmpty(dataTypeId, nameof(dataTypeId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// users/{user}/dataTypes/{data_type} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static DataTypeName Parse(string dataTypeName) => Parse(dataTypeName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing an + /// unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// users/{user}/dataTypes/{data_type} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static DataTypeName Parse(string dataTypeName, bool allowUnparsed) => + TryParse(dataTypeName, allowUnparsed, out DataTypeName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// users/{user}/dataTypes/{data_type} + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string dataTypeName, out DataTypeName result) => TryParse(dataTypeName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// users/{user}/dataTypes/{data_type} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string dataTypeName, bool allowUnparsed, out DataTypeName result) + { + gax::GaxPreconditions.CheckNotNull(dataTypeName, nameof(dataTypeName)); + gax::TemplatedResourceName resourceName; + if (s_userDataType.TryParseName(dataTypeName, out resourceName)) + { + result = FromUserDataType(resourceName[0], resourceName[1]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(dataTypeName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private DataTypeName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string dataTypeId = null, string userId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + DataTypeId = dataTypeId; + UserId = userId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// users/{user}/dataTypes/{data_type} + /// + /// The User ID. Must not be null or empty. + /// The DataType ID. Must not be null or empty. + public DataTypeName(string userId, string dataTypeId) : this(ResourceNameType.UserDataType, userId: gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId)), dataTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(dataTypeId, nameof(dataTypeId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The DataType ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string DataTypeId { get; } + + /// + /// The User ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string UserId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.UserDataType: return s_userDataType.Expand(UserId, DataTypeId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as DataTypeName); + + /// + public bool Equals(DataTypeName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(DataTypeName a, DataTypeName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(DataTypeName a, DataTypeName b) => !(a == b); + } + + public partial class DataPoint + { + /// + /// -typed view over the resource name property. + /// + public gdhv::DataPointName DataPointName + { + get => string.IsNullOrEmpty(Name) ? null : gdhv::DataPointName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListDataPointsRequest + { + /// + /// -typed view over the resource name property. + /// + public DataTypeName ParentAsDataTypeName + { + get => string.IsNullOrEmpty(Parent) ? null : DataTypeName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class CreateDataPointRequest + { + /// + /// -typed view over the resource name property. + /// + public DataTypeName ParentAsDataTypeName + { + get => string.IsNullOrEmpty(Parent) ? null : DataTypeName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class BatchDeleteDataPointsRequest + { + /// + /// -typed view over the resource name property. + /// + public DataTypeName ParentAsDataTypeName + { + get => string.IsNullOrEmpty(Parent) ? null : DataTypeName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public gax::ResourceNameList DataPointNames + { + get => new gax::ResourceNameList(Names, s => string.IsNullOrEmpty(s) ? null : DataPointName.Parse(s, allowUnparsed: true)); + } + } + + public partial class RollUpDataPointsRequest + { + /// + /// -typed view over the resource name property. + /// + public DataTypeName ParentAsDataTypeName + { + get => string.IsNullOrEmpty(Parent) ? null : DataTypeName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class DailyRollUpDataPointsRequest + { + /// + /// -typed view over the resource name property. + /// + public DataTypeName ParentAsDataTypeName + { + get => string.IsNullOrEmpty(Parent) ? null : DataTypeName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class DataType + { + /// + /// -typed view over the resource name property. + /// + public gdhv::DataTypeName DataTypeName + { + get => string.IsNullOrEmpty(Name) ? null : gdhv::DataTypeName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ExportExerciseTcxRequest + { + /// + /// -typed view over the resource name property. + /// + public gdhv::DataPointName DataPointName + { + get => string.IsNullOrEmpty(Name) ? null : gdhv::DataPointName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPointsServiceClient.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPointsServiceClient.g.cs new file mode 100644 index 000000000000..967e1503add4 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataPointsServiceClient.g.cs @@ -0,0 +1,1545 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gax = Google.Api.Gax; +using gaxgrpc = Google.Api.Gax.Grpc; +using grpccore = Grpc.Core; +using grpcinter = Grpc.Core.Interceptors; +using lro = Google.LongRunning; +using mel = Microsoft.Extensions.Logging; +using proto = Google.Protobuf; +using sc = System.Collections; +using scg = System.Collections.Generic; +using sco = System.Collections.ObjectModel; +using st = System.Threading; +using stt = System.Threading.Tasks; +using sys = System; + +namespace Google.DevicesAndServices.Health.V4 +{ + /// Settings for instances. + public sealed partial class DataPointsServiceSettings : gaxgrpc::ServiceSettingsBase + { + /// Get a new instance of the default . + /// A new instance of the default . + public static DataPointsServiceSettings GetDefault() => new DataPointsServiceSettings(); + + /// Constructs a new object with default settings. + public DataPointsServiceSettings() + { + } + + private DataPointsServiceSettings(DataPointsServiceSettings existing) : base(existing) + { + gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); + ListDataPointsSettings = existing.ListDataPointsSettings; + CreateDataPointSettings = existing.CreateDataPointSettings; + CreateDataPointOperationsSettings = existing.CreateDataPointOperationsSettings.Clone(); + UpdateDataPointSettings = existing.UpdateDataPointSettings; + UpdateDataPointOperationsSettings = existing.UpdateDataPointOperationsSettings.Clone(); + BatchDeleteDataPointsSettings = existing.BatchDeleteDataPointsSettings; + BatchDeleteDataPointsOperationsSettings = existing.BatchDeleteDataPointsOperationsSettings.Clone(); + ReconcileDataPointsSettings = existing.ReconcileDataPointsSettings; + RollUpDataPointsSettings = existing.RollUpDataPointsSettings; + DailyRollUpDataPointsSettings = existing.DailyRollUpDataPointsSettings; + ExportExerciseTcxSettings = existing.ExportExerciseTcxSettings; + OnCopy(existing); + } + + partial void OnCopy(DataPointsServiceSettings existing); + + /// + /// for synchronous and asynchronous calls to + /// DataPointsServiceClient.ListDataPoints and DataPointsServiceClient.ListDataPointsAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListDataPointsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// DataPointsServiceClient.CreateDataPoint and DataPointsServiceClient.CreateDataPointAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings CreateDataPointSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// Long Running Operation settings for calls to DataPointsServiceClient.CreateDataPoint and + /// DataPointsServiceClient.CreateDataPointAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings CreateDataPointOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// DataPointsServiceClient.UpdateDataPoint and DataPointsServiceClient.UpdateDataPointAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateDataPointSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// Long Running Operation settings for calls to DataPointsServiceClient.UpdateDataPoint and + /// DataPointsServiceClient.UpdateDataPointAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings UpdateDataPointOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// DataPointsServiceClient.BatchDeleteDataPoints and + /// DataPointsServiceClient.BatchDeleteDataPointsAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings BatchDeleteDataPointsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// Long Running Operation settings for calls to DataPointsServiceClient.BatchDeleteDataPoints and + /// DataPointsServiceClient.BatchDeleteDataPointsAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings BatchDeleteDataPointsOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// DataPointsServiceClient.ReconcileDataPoints and DataPointsServiceClient.ReconcileDataPointsAsync + /// . + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ReconcileDataPointsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// DataPointsServiceClient.RollUpDataPoints and DataPointsServiceClient.RollUpDataPointsAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings RollUpDataPointsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// DataPointsServiceClient.DailyRollUpDataPoints and + /// DataPointsServiceClient.DailyRollUpDataPointsAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings DailyRollUpDataPointsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// DataPointsServiceClient.ExportExerciseTcx and DataPointsServiceClient.ExportExerciseTcxAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ExportExerciseTcxSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// Creates a deep clone of this object, with all the same property values. + /// A deep clone of this object. + public DataPointsServiceSettings Clone() => new DataPointsServiceSettings(this); + } + + /// + /// Builder class for to provide simple configuration of credentials, endpoint + /// etc. + /// + public sealed partial class DataPointsServiceClientBuilder : gaxgrpc::ClientBuilderBase + { + /// The settings to use for RPCs, or null for the default settings. + public DataPointsServiceSettings Settings { get; set; } + + /// Creates a new builder with default settings. + public DataPointsServiceClientBuilder() : base(DataPointsServiceClient.ServiceMetadata) + { + } + + partial void InterceptBuild(ref DataPointsServiceClient client); + + partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); + + /// Builds the resulting client. + public override DataPointsServiceClient Build() + { + DataPointsServiceClient client = null; + InterceptBuild(ref client); + return client ?? BuildImpl(); + } + + /// Builds the resulting client asynchronously. + public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) + { + stt::Task task = null; + InterceptBuildAsync(cancellationToken, ref task); + return task ?? BuildAsyncImpl(cancellationToken); + } + + private DataPointsServiceClient BuildImpl() + { + Validate(); + grpccore::CallInvoker callInvoker = CreateCallInvoker(); + return DataPointsServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) + { + Validate(); + grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); + return DataPointsServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + /// Returns the channel pool to use when no other options are specified. + protected override gaxgrpc::ChannelPool GetChannelPool() => DataPointsServiceClient.ChannelPool; + } + + /// DataPointsService client wrapper, for convenient use. + /// + /// Data Points Service exposing the user's health and fitness measured and + /// derived data. + /// + public abstract partial class DataPointsServiceClient + { + /// + /// The default endpoint for the DataPointsService service, which is a host of "health.googleapis.com" and a + /// port of 443. + /// + public static string DefaultEndpoint { get; } = "health.googleapis.com:443"; + + /// The default DataPointsService scopes. + /// The default DataPointsService scopes are: + public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] { }); + + /// The service metadata associated with this client type. + public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(DataPointsService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc | gax::ApiTransports.Rest, PackageApiMetadata.ApiMetadata); + + internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); + + /// + /// Asynchronously creates a using the default credentials, endpoint and + /// settings. To specify custom credentials or other settings, use . + /// + /// + /// The to use while creating the client. + /// + /// The task representing the created . + public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => + new DataPointsServiceClientBuilder().BuildAsync(cancellationToken); + + /// + /// Synchronously creates a using the default credentials, endpoint and + /// settings. To specify custom credentials or other settings, use . + /// + /// The created . + public static DataPointsServiceClient Create() => new DataPointsServiceClientBuilder().Build(); + + /// + /// Creates a which uses the specified call invoker for remote operations. + /// + /// + /// The for remote operations. Must not be null. + /// + /// Optional . + /// Optional . + /// The created . + internal static DataPointsServiceClient Create(grpccore::CallInvoker callInvoker, DataPointsServiceSettings settings = null, mel::ILogger logger = null) + { + gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); + grpcinter::Interceptor interceptor = settings?.Interceptor; + if (interceptor != null) + { + callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); + } + DataPointsService.DataPointsServiceClient grpcClient = new DataPointsService.DataPointsServiceClient(callInvoker); + return new DataPointsServiceClientImpl(grpcClient, settings, logger); + } + + /// + /// Shuts down any channels automatically created by and + /// . Channels which weren't automatically created are not + /// affected. + /// + /// + /// After calling this method, further calls to and + /// will create new channels, which could in turn be shut down + /// by another call to this method. + /// + /// A task representing the asynchronous shutdown operation. + public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); + + /// The underlying gRPC DataPointsService client + public virtual DataPointsService.DataPointsServiceClient GrpcClient => throw new sys::NotImplementedException(); + + /// + /// Query user health and fitness data points. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListDataPoints(ListDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Query user health and fitness data points. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListDataPointsAsync(ListDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Query user health and fitness data points. + /// + /// + /// Required. Parent data type of the Data Point collection. + /// + /// Format: `users/me/dataTypes/{data_type}`, e.g.: + /// + /// - `users/me/dataTypes/steps` + /// - `users/me/dataTypes/weight` + /// + /// For a list of the supported data types see the [DataPoint + /// data][google.devicesandservices.health.v4.DataPoint] union + /// field. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListDataPoints(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListDataPointsRequest request = new ListDataPointsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListDataPoints(request, callSettings); + } + + /// + /// Query user health and fitness data points. + /// + /// + /// Required. Parent data type of the Data Point collection. + /// + /// Format: `users/me/dataTypes/{data_type}`, e.g.: + /// + /// - `users/me/dataTypes/steps` + /// - `users/me/dataTypes/weight` + /// + /// For a list of the supported data types see the [DataPoint + /// data][google.devicesandservices.health.v4.DataPoint] union + /// field. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListDataPointsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListDataPointsRequest request = new ListDataPointsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListDataPointsAsync(request, callSettings); + } + + /// + /// Query user health and fitness data points. + /// + /// + /// Required. Parent data type of the Data Point collection. + /// + /// Format: `users/me/dataTypes/{data_type}`, e.g.: + /// + /// - `users/me/dataTypes/steps` + /// - `users/me/dataTypes/weight` + /// + /// For a list of the supported data types see the [DataPoint + /// data][google.devicesandservices.health.v4.DataPoint] union + /// field. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListDataPoints(DataTypeName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListDataPointsRequest request = new ListDataPointsRequest + { + ParentAsDataTypeName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListDataPoints(request, callSettings); + } + + /// + /// Query user health and fitness data points. + /// + /// + /// Required. Parent data type of the Data Point collection. + /// + /// Format: `users/me/dataTypes/{data_type}`, e.g.: + /// + /// - `users/me/dataTypes/steps` + /// - `users/me/dataTypes/weight` + /// + /// For a list of the supported data types see the [DataPoint + /// data][google.devicesandservices.health.v4.DataPoint] union + /// field. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListDataPointsAsync(DataTypeName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListDataPointsRequest request = new ListDataPointsRequest + { + ParentAsDataTypeName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListDataPointsAsync(request, callSettings); + } + + /// + /// Creates a single identifiable data point. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateDataPoint(CreateDataPointRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a single identifiable data point. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateDataPointAsync(CreateDataPointRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a single identifiable data point. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateDataPointAsync(CreateDataPointRequest request, st::CancellationToken cancellationToken) => + CreateDataPointAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for CreateDataPoint. + public virtual lro::OperationsClient CreateDataPointOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of CreateDataPoint. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceCreateDataPoint(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateDataPointOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// CreateDataPoint. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceCreateDataPointAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateDataPointOperationsClient, callSettings); + + /// + /// Creates a single identifiable data point. + /// + /// + /// Required. The parent resource name where the data point will be created. + /// Format: `users/{user}/dataTypes/{data_type}` + /// + /// + /// Required. The data point to create. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateDataPoint(string parent, DataPoint dataPoint, gaxgrpc::CallSettings callSettings = null) => + CreateDataPoint(new CreateDataPointRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + DataPoint = gax::GaxPreconditions.CheckNotNull(dataPoint, nameof(dataPoint)), + }, callSettings); + + /// + /// Creates a single identifiable data point. + /// + /// + /// Required. The parent resource name where the data point will be created. + /// Format: `users/{user}/dataTypes/{data_type}` + /// + /// + /// Required. The data point to create. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateDataPointAsync(string parent, DataPoint dataPoint, gaxgrpc::CallSettings callSettings = null) => + CreateDataPointAsync(new CreateDataPointRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + DataPoint = gax::GaxPreconditions.CheckNotNull(dataPoint, nameof(dataPoint)), + }, callSettings); + + /// + /// Creates a single identifiable data point. + /// + /// + /// Required. The parent resource name where the data point will be created. + /// Format: `users/{user}/dataTypes/{data_type}` + /// + /// + /// Required. The data point to create. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateDataPointAsync(string parent, DataPoint dataPoint, st::CancellationToken cancellationToken) => + CreateDataPointAsync(parent, dataPoint, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a single identifiable data point. + /// + /// + /// Required. The parent resource name where the data point will be created. + /// Format: `users/{user}/dataTypes/{data_type}` + /// + /// + /// Required. The data point to create. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateDataPoint(DataTypeName parent, DataPoint dataPoint, gaxgrpc::CallSettings callSettings = null) => + CreateDataPoint(new CreateDataPointRequest + { + ParentAsDataTypeName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + DataPoint = gax::GaxPreconditions.CheckNotNull(dataPoint, nameof(dataPoint)), + }, callSettings); + + /// + /// Creates a single identifiable data point. + /// + /// + /// Required. The parent resource name where the data point will be created. + /// Format: `users/{user}/dataTypes/{data_type}` + /// + /// + /// Required. The data point to create. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateDataPointAsync(DataTypeName parent, DataPoint dataPoint, gaxgrpc::CallSettings callSettings = null) => + CreateDataPointAsync(new CreateDataPointRequest + { + ParentAsDataTypeName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + DataPoint = gax::GaxPreconditions.CheckNotNull(dataPoint, nameof(dataPoint)), + }, callSettings); + + /// + /// Creates a single identifiable data point. + /// + /// + /// Required. The parent resource name where the data point will be created. + /// Format: `users/{user}/dataTypes/{data_type}` + /// + /// + /// Required. The data point to create. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateDataPointAsync(DataTypeName parent, DataPoint dataPoint, st::CancellationToken cancellationToken) => + CreateDataPointAsync(parent, dataPoint, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates a single identifiable data point. If a data point with the + /// specified `name` is not found, the request will fail. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateDataPoint(UpdateDataPointRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates a single identifiable data point. If a data point with the + /// specified `name` is not found, the request will fail. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateDataPointAsync(UpdateDataPointRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates a single identifiable data point. If a data point with the + /// specified `name` is not found, the request will fail. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateDataPointAsync(UpdateDataPointRequest request, st::CancellationToken cancellationToken) => + UpdateDataPointAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for UpdateDataPoint. + public virtual lro::OperationsClient UpdateDataPointOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of UpdateDataPoint. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceUpdateDataPoint(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateDataPointOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// UpdateDataPoint. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceUpdateDataPointAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateDataPointOperationsClient, callSettings); + + /// + /// Updates a single identifiable data point. If a data point with the + /// specified `name` is not found, the request will fail. + /// + /// + /// Required. The data point to update + /// + /// The data point's `name` field is used to identify the data point to update. + /// + /// Format: `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateDataPoint(DataPoint dataPoint, gaxgrpc::CallSettings callSettings = null) => + UpdateDataPoint(new UpdateDataPointRequest + { + DataPoint = gax::GaxPreconditions.CheckNotNull(dataPoint, nameof(dataPoint)), + }, callSettings); + + /// + /// Updates a single identifiable data point. If a data point with the + /// specified `name` is not found, the request will fail. + /// + /// + /// Required. The data point to update + /// + /// The data point's `name` field is used to identify the data point to update. + /// + /// Format: `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateDataPointAsync(DataPoint dataPoint, gaxgrpc::CallSettings callSettings = null) => + UpdateDataPointAsync(new UpdateDataPointRequest + { + DataPoint = gax::GaxPreconditions.CheckNotNull(dataPoint, nameof(dataPoint)), + }, callSettings); + + /// + /// Updates a single identifiable data point. If a data point with the + /// specified `name` is not found, the request will fail. + /// + /// + /// Required. The data point to update + /// + /// The data point's `name` field is used to identify the data point to update. + /// + /// Format: `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateDataPointAsync(DataPoint dataPoint, st::CancellationToken cancellationToken) => + UpdateDataPointAsync(dataPoint, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Delete a batch of identifyable data points. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation BatchDeleteDataPoints(BatchDeleteDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Delete a batch of identifyable data points. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> BatchDeleteDataPointsAsync(BatchDeleteDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Delete a batch of identifyable data points. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> BatchDeleteDataPointsAsync(BatchDeleteDataPointsRequest request, st::CancellationToken cancellationToken) => + BatchDeleteDataPointsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for BatchDeleteDataPoints. + public virtual lro::OperationsClient BatchDeleteDataPointsOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of BatchDeleteDataPoints + /// . + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceBatchDeleteDataPoints(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), BatchDeleteDataPointsOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// BatchDeleteDataPoints. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceBatchDeleteDataPointsAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), BatchDeleteDataPointsOperationsClient, callSettings); + + /// + /// Reconcile data points from multiple data sources into a single data stream. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ReconcileDataPoints(ReconcileDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Reconcile data points from multiple data sources into a single data stream. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ReconcileDataPointsAsync(ReconcileDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Roll up data points over physical time intervals for supported data types. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable RollUpDataPoints(RollUpDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Roll up data points over physical time intervals for supported data types. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable RollUpDataPointsAsync(RollUpDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Roll up data points over civil time intervals for supported data types. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual DailyRollUpDataPointsResponse DailyRollUpDataPoints(DailyRollUpDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Roll up data points over civil time intervals for supported data types. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DailyRollUpDataPointsAsync(DailyRollUpDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Roll up data points over civil time intervals for supported data types. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DailyRollUpDataPointsAsync(DailyRollUpDataPointsRequest request, st::CancellationToken cancellationToken) => + DailyRollUpDataPointsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Exports exercise data in TCX format. + /// + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ExportExerciseTcxResponse ExportExerciseTcx(ExportExerciseTcxRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Exports exercise data in TCX format. + /// + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task ExportExerciseTcxAsync(ExportExerciseTcxRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Exports exercise data in TCX format. + /// + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task ExportExerciseTcxAsync(ExportExerciseTcxRequest request, st::CancellationToken cancellationToken) => + ExportExerciseTcxAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Exports exercise data in TCX format. + /// + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// + /// Required. The resource name of the exercise data point to export. + /// + /// Format: `users/{user}/dataTypes/exercise/dataPoints/{data_point}` + /// Example: `users/me/dataTypes/exercise/dataPoints/2026443605080188808` + /// + /// The `{user}` is the alias `"me"` currently. Future versions may support + /// user IDs. + /// The `{data_point}` ID maps to the exercise ID, which is a long integer. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ExportExerciseTcxResponse ExportExerciseTcx(string name, gaxgrpc::CallSettings callSettings = null) => + ExportExerciseTcx(new ExportExerciseTcxRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Exports exercise data in TCX format. + /// + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// + /// Required. The resource name of the exercise data point to export. + /// + /// Format: `users/{user}/dataTypes/exercise/dataPoints/{data_point}` + /// Example: `users/me/dataTypes/exercise/dataPoints/2026443605080188808` + /// + /// The `{user}` is the alias `"me"` currently. Future versions may support + /// user IDs. + /// The `{data_point}` ID maps to the exercise ID, which is a long integer. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task ExportExerciseTcxAsync(string name, gaxgrpc::CallSettings callSettings = null) => + ExportExerciseTcxAsync(new ExportExerciseTcxRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Exports exercise data in TCX format. + /// + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// + /// Required. The resource name of the exercise data point to export. + /// + /// Format: `users/{user}/dataTypes/exercise/dataPoints/{data_point}` + /// Example: `users/me/dataTypes/exercise/dataPoints/2026443605080188808` + /// + /// The `{user}` is the alias `"me"` currently. Future versions may support + /// user IDs. + /// The `{data_point}` ID maps to the exercise ID, which is a long integer. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task ExportExerciseTcxAsync(string name, st::CancellationToken cancellationToken) => + ExportExerciseTcxAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Exports exercise data in TCX format. + /// + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// + /// Required. The resource name of the exercise data point to export. + /// + /// Format: `users/{user}/dataTypes/exercise/dataPoints/{data_point}` + /// Example: `users/me/dataTypes/exercise/dataPoints/2026443605080188808` + /// + /// The `{user}` is the alias `"me"` currently. Future versions may support + /// user IDs. + /// The `{data_point}` ID maps to the exercise ID, which is a long integer. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ExportExerciseTcxResponse ExportExerciseTcx(DataPointName name, gaxgrpc::CallSettings callSettings = null) => + ExportExerciseTcx(new ExportExerciseTcxRequest + { + DataPointName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Exports exercise data in TCX format. + /// + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// + /// Required. The resource name of the exercise data point to export. + /// + /// Format: `users/{user}/dataTypes/exercise/dataPoints/{data_point}` + /// Example: `users/me/dataTypes/exercise/dataPoints/2026443605080188808` + /// + /// The `{user}` is the alias `"me"` currently. Future versions may support + /// user IDs. + /// The `{data_point}` ID maps to the exercise ID, which is a long integer. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task ExportExerciseTcxAsync(DataPointName name, gaxgrpc::CallSettings callSettings = null) => + ExportExerciseTcxAsync(new ExportExerciseTcxRequest + { + DataPointName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Exports exercise data in TCX format. + /// + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// + /// Required. The resource name of the exercise data point to export. + /// + /// Format: `users/{user}/dataTypes/exercise/dataPoints/{data_point}` + /// Example: `users/me/dataTypes/exercise/dataPoints/2026443605080188808` + /// + /// The `{user}` is the alias `"me"` currently. Future versions may support + /// user IDs. + /// The `{data_point}` ID maps to the exercise ID, which is a long integer. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task ExportExerciseTcxAsync(DataPointName name, st::CancellationToken cancellationToken) => + ExportExerciseTcxAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + } + + /// DataPointsService client wrapper implementation, for convenient use. + /// + /// Data Points Service exposing the user's health and fitness measured and + /// derived data. + /// + public sealed partial class DataPointsServiceClientImpl : DataPointsServiceClient + { + private readonly gaxgrpc::ApiCall _callListDataPoints; + + private readonly gaxgrpc::ApiCall _callCreateDataPoint; + + private readonly gaxgrpc::ApiCall _callUpdateDataPoint; + + private readonly gaxgrpc::ApiCall _callBatchDeleteDataPoints; + + private readonly gaxgrpc::ApiCall _callReconcileDataPoints; + + private readonly gaxgrpc::ApiCall _callRollUpDataPoints; + + private readonly gaxgrpc::ApiCall _callDailyRollUpDataPoints; + + private readonly gaxgrpc::ApiCall _callExportExerciseTcx; + + /// + /// Constructs a client wrapper for the DataPointsService service, with the specified gRPC client and settings. + /// + /// The underlying gRPC client. + /// The base used within this client. + /// Optional to use within this client. + public DataPointsServiceClientImpl(DataPointsService.DataPointsServiceClient grpcClient, DataPointsServiceSettings settings, mel::ILogger logger) + { + GrpcClient = grpcClient; + DataPointsServiceSettings effectiveSettings = settings ?? DataPointsServiceSettings.GetDefault(); + gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(new gaxgrpc::ClientHelper.Options + { + Settings = effectiveSettings, + Logger = logger, + }); + CreateDataPointOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateDataPointOperationsSettings, logger); + UpdateDataPointOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UpdateDataPointOperationsSettings, logger); + BatchDeleteDataPointsOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.BatchDeleteDataPointsOperationsSettings, logger); + _callListDataPoints = clientHelper.BuildApiCall("ListDataPoints", grpcClient.ListDataPointsAsync, grpcClient.ListDataPoints, effectiveSettings.ListDataPointsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListDataPoints); + Modify_ListDataPointsApiCall(ref _callListDataPoints); + _callCreateDataPoint = clientHelper.BuildApiCall("CreateDataPoint", grpcClient.CreateDataPointAsync, grpcClient.CreateDataPoint, effectiveSettings.CreateDataPointSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateDataPoint); + Modify_CreateDataPointApiCall(ref _callCreateDataPoint); + _callUpdateDataPoint = clientHelper.BuildApiCall("UpdateDataPoint", grpcClient.UpdateDataPointAsync, grpcClient.UpdateDataPoint, effectiveSettings.UpdateDataPointSettings).WithGoogleRequestParam("data_point.name", request => request.DataPoint?.Name); + Modify_ApiCall(ref _callUpdateDataPoint); + Modify_UpdateDataPointApiCall(ref _callUpdateDataPoint); + _callBatchDeleteDataPoints = clientHelper.BuildApiCall("BatchDeleteDataPoints", grpcClient.BatchDeleteDataPointsAsync, grpcClient.BatchDeleteDataPoints, effectiveSettings.BatchDeleteDataPointsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callBatchDeleteDataPoints); + Modify_BatchDeleteDataPointsApiCall(ref _callBatchDeleteDataPoints); + _callReconcileDataPoints = clientHelper.BuildApiCall("ReconcileDataPoints", grpcClient.ReconcileDataPointsAsync, grpcClient.ReconcileDataPoints, effectiveSettings.ReconcileDataPointsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callReconcileDataPoints); + Modify_ReconcileDataPointsApiCall(ref _callReconcileDataPoints); + _callRollUpDataPoints = clientHelper.BuildApiCall("RollUpDataPoints", grpcClient.RollUpDataPointsAsync, grpcClient.RollUpDataPoints, effectiveSettings.RollUpDataPointsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callRollUpDataPoints); + Modify_RollUpDataPointsApiCall(ref _callRollUpDataPoints); + _callDailyRollUpDataPoints = clientHelper.BuildApiCall("DailyRollUpDataPoints", grpcClient.DailyRollUpDataPointsAsync, grpcClient.DailyRollUpDataPoints, effectiveSettings.DailyRollUpDataPointsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callDailyRollUpDataPoints); + Modify_DailyRollUpDataPointsApiCall(ref _callDailyRollUpDataPoints); + _callExportExerciseTcx = clientHelper.BuildApiCall("ExportExerciseTcx", grpcClient.ExportExerciseTcxAsync, grpcClient.ExportExerciseTcx, effectiveSettings.ExportExerciseTcxSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callExportExerciseTcx); + Modify_ExportExerciseTcxApiCall(ref _callExportExerciseTcx); + OnConstruction(grpcClient, effectiveSettings, clientHelper); + } + + partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; + + partial void Modify_ListDataPointsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateDataPointApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateDataPointApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_BatchDeleteDataPointsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ReconcileDataPointsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_RollUpDataPointsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DailyRollUpDataPointsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ExportExerciseTcxApiCall(ref gaxgrpc::ApiCall call); + + partial void OnConstruction(DataPointsService.DataPointsServiceClient grpcClient, DataPointsServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); + + /// The underlying gRPC DataPointsService client + public override DataPointsService.DataPointsServiceClient GrpcClient { get; } + + partial void Modify_ListDataPointsRequest(ref ListDataPointsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CreateDataPointRequest(ref CreateDataPointRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateDataPointRequest(ref UpdateDataPointRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_BatchDeleteDataPointsRequest(ref BatchDeleteDataPointsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ReconcileDataPointsRequest(ref ReconcileDataPointsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_RollUpDataPointsRequest(ref RollUpDataPointsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DailyRollUpDataPointsRequest(ref DailyRollUpDataPointsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ExportExerciseTcxRequest(ref ExportExerciseTcxRequest request, ref gaxgrpc::CallSettings settings); + + /// + /// Query user health and fitness data points. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable ListDataPoints(ListDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListDataPointsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListDataPoints, request, callSettings); + } + + /// + /// Query user health and fitness data points. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ListDataPointsAsync(ListDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListDataPointsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListDataPoints, request, callSettings); + } + + /// The long-running operations client for CreateDataPoint. + public override lro::OperationsClient CreateDataPointOperationsClient { get; } + + /// + /// Creates a single identifiable data point. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation CreateDataPoint(CreateDataPointRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateDataPointRequest(ref request, ref callSettings); + return new lro::Operation(_callCreateDataPoint.Sync(request, callSettings), CreateDataPointOperationsClient); + } + + /// + /// Creates a single identifiable data point. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> CreateDataPointAsync(CreateDataPointRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateDataPointRequest(ref request, ref callSettings); + return new lro::Operation(await _callCreateDataPoint.Async(request, callSettings).ConfigureAwait(false), CreateDataPointOperationsClient); + } + + /// The long-running operations client for UpdateDataPoint. + public override lro::OperationsClient UpdateDataPointOperationsClient { get; } + + /// + /// Updates a single identifiable data point. If a data point with the + /// specified `name` is not found, the request will fail. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation UpdateDataPoint(UpdateDataPointRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateDataPointRequest(ref request, ref callSettings); + return new lro::Operation(_callUpdateDataPoint.Sync(request, callSettings), UpdateDataPointOperationsClient); + } + + /// + /// Updates a single identifiable data point. If a data point with the + /// specified `name` is not found, the request will fail. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> UpdateDataPointAsync(UpdateDataPointRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateDataPointRequest(ref request, ref callSettings); + return new lro::Operation(await _callUpdateDataPoint.Async(request, callSettings).ConfigureAwait(false), UpdateDataPointOperationsClient); + } + + /// The long-running operations client for BatchDeleteDataPoints. + public override lro::OperationsClient BatchDeleteDataPointsOperationsClient { get; } + + /// + /// Delete a batch of identifyable data points. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation BatchDeleteDataPoints(BatchDeleteDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_BatchDeleteDataPointsRequest(ref request, ref callSettings); + return new lro::Operation(_callBatchDeleteDataPoints.Sync(request, callSettings), BatchDeleteDataPointsOperationsClient); + } + + /// + /// Delete a batch of identifyable data points. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> BatchDeleteDataPointsAsync(BatchDeleteDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_BatchDeleteDataPointsRequest(ref request, ref callSettings); + return new lro::Operation(await _callBatchDeleteDataPoints.Async(request, callSettings).ConfigureAwait(false), BatchDeleteDataPointsOperationsClient); + } + + /// + /// Reconcile data points from multiple data sources into a single data stream. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable ReconcileDataPoints(ReconcileDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ReconcileDataPointsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callReconcileDataPoints, request, callSettings); + } + + /// + /// Reconcile data points from multiple data sources into a single data stream. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ReconcileDataPointsAsync(ReconcileDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ReconcileDataPointsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callReconcileDataPoints, request, callSettings); + } + + /// + /// Roll up data points over physical time intervals for supported data types. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable RollUpDataPoints(RollUpDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_RollUpDataPointsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callRollUpDataPoints, request, callSettings); + } + + /// + /// Roll up data points over physical time intervals for supported data types. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable RollUpDataPointsAsync(RollUpDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_RollUpDataPointsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callRollUpDataPoints, request, callSettings); + } + + /// + /// Roll up data points over civil time intervals for supported data types. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override DailyRollUpDataPointsResponse DailyRollUpDataPoints(DailyRollUpDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DailyRollUpDataPointsRequest(ref request, ref callSettings); + return _callDailyRollUpDataPoints.Sync(request, callSettings); + } + + /// + /// Roll up data points over civil time intervals for supported data types. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DailyRollUpDataPointsAsync(DailyRollUpDataPointsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DailyRollUpDataPointsRequest(ref request, ref callSettings); + return _callDailyRollUpDataPoints.Async(request, callSettings); + } + + /// + /// Exports exercise data in TCX format. + /// + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override ExportExerciseTcxResponse ExportExerciseTcx(ExportExerciseTcxRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ExportExerciseTcxRequest(ref request, ref callSettings); + return _callExportExerciseTcx.Sync(request, callSettings); + } + + /// + /// Exports exercise data in TCX format. + /// + /// + /// Note: While the Authorization section below states that any one of the + /// listed scopes is accepted, this specific method requires the user to + /// provide both one of the `activity_and_fitness` scopes (`normal` or + /// `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in + /// their access token to succeed. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task ExportExerciseTcxAsync(ExportExerciseTcxRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ExportExerciseTcxRequest(ref request, ref callSettings); + return _callExportExerciseTcx.Async(request, callSettings); + } + } + + public partial class ListDataPointsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ReconcileDataPointsRequest : gaxgrpc::IPageRequest + { + } + + public partial class RollUpDataPointsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListDataPointsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => DataPoints.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class ReconcileDataPointsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => DataPoints.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class RollUpDataPointsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => RollupDataPoints.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public static partial class DataPointsService + { + public partial class DataPointsServiceClient + { + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// A new Operations client for the same target as this client. + public virtual lro::Operations.OperationsClient CreateOperationsClient() => + new lro::Operations.OperationsClient(CallInvoker); + } + } +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataSource.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataSource.g.cs new file mode 100644 index 000000000000..ea04e9ba7c94 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/DataSource.g.cs @@ -0,0 +1,1148 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devicesandservices/health/v4/data_source.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Google.DevicesAndServices.Health.V4 { + + /// Holder for reflection information generated from google/devicesandservices/health/v4/data_source.proto + public static partial class DataSourceReflection { + + #region Descriptor + /// File descriptor for google/devicesandservices/health/v4/data_source.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DataSourceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjVnb29nbGUvZGV2aWNlc2FuZHNlcnZpY2VzL2hlYWx0aC92NC9kYXRhX3Nv", + "dXJjZS5wcm90bxIjZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgu", + "djQaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8i0AgKCkRhdGFT", + "b3VyY2USXgoQcmVjb3JkaW5nX21ldGhvZBgBIAEoDjI/Lmdvb2dsZS5kZXZp", + "Y2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LkRhdGFTb3VyY2UuUmVjb3JkaW5n", + "TWV0aG9kQgPgQQESSwoGZGV2aWNlGAIgASgLMjYuZ29vZ2xlLmRldmljZXNh", + "bmRzZXJ2aWNlcy5oZWFsdGgudjQuRGF0YVNvdXJjZS5EZXZpY2VCA+BBARJV", + "CgthcHBsaWNhdGlvbhgDIAEoCzI7Lmdvb2dsZS5kZXZpY2VzYW5kc2Vydmlj", + "ZXMuaGVhbHRoLnY0LkRhdGFTb3VyY2UuQXBwbGljYXRpb25CA+BBAxJPCghw", + "bGF0Zm9ybRgEIAEoDjI4Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVh", + "bHRoLnY0LkRhdGFTb3VyY2UuUGxhdGZvcm1CA+BBAxrGAgoGRGV2aWNlElsK", + "C2Zvcm1fZmFjdG9yGAEgASgOMkEuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNl", + "cy5oZWFsdGgudjQuRGF0YVNvdXJjZS5EZXZpY2UuRm9ybUZhY3RvckID4EEB", + "EhkKDG1hbnVmYWN0dXJlchgCIAEoCUID4EEBEhkKDGRpc3BsYXlfbmFtZRgD", + "IAEoCUID4EEBIqgBCgpGb3JtRmFjdG9yEhsKF0ZPUk1fRkFDVE9SX1VOU1BF", + "Q0lGSUVEEAASEAoMRklUTkVTU19CQU5EEAESCQoFV0FUQ0gQAhIJCgVQSE9O", + "RRADEggKBFJJTkcQBBIPCgtDSEVTVF9TVFJBUBAFEgkKBVNDQUxFEAYSCgoG", + "VEFCTEVUEAcSEAoMSEVBRF9NT1VOVEVEEAgSEQoNU01BUlRfRElTUExBWRAJ", + "GmcKC0FwcGxpY2F0aW9uEhkKDHBhY2thZ2VfbmFtZRgBIAEoCUID4EEDEhoK", + "DXdlYl9jbGllbnRfaWQYAiABKAlCA+BBAxIhChRnb29nbGVfd2ViX2NsaWVu", + "dF9pZBgDIAEoCUID4EEDIogBCg9SZWNvcmRpbmdNZXRob2QSIAocUkVDT1JE", + "SU5HX01FVEhPRF9VTlNQRUNJRklFRBAAEgoKBk1BTlVBTBABEhYKElBBU1NJ", + "VkVMWV9NRUFTVVJFRBACEgsKB0RFUklWRUQQAxIVChFBQ1RJVkVMWV9NRUFT", + "VVJFRBAEEgsKB1VOS05PV04QBSKvAQoIUGxhdGZvcm0SGAoUUExBVEZPUk1f", + "VU5TUEVDSUZJRUQQABIKCgZGSVRCSVQQARISCg5IRUFMVEhfQ09OTkVDVBAC", + "Eg4KCkhFQUxUSF9LSVQQAxIHCgNGSVQQBBISCg5GSVRCSVRfV0VCX0FQSRAF", + "EggKBE5FU1QQBhISCg5HT09HTEVfV0VCX0FQSRAHEh4KGkdPT0dMRV9QQVJU", + "TkVSX0lOVEVHUkFUSU9OEAhChQIKJ2NvbS5nb29nbGUuZGV2aWNlc2FuZHNl", + "cnZpY2VzLmhlYWx0aC52NEIPRGF0YVNvdXJjZVByb3RvUAFaUmdvb2dsZS5n", + "b2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvZGV2aWNlc2FuZHNlcnZp", + "Y2VzL2hlYWx0aC9hcGl2NG1haW47aGVhbHRocGKqAiNHb29nbGUuRGV2aWNl", + "c0FuZFNlcnZpY2VzLkhlYWx0aC5WNMoCI0dvb2dsZVxEZXZpY2VzQW5kU2Vy", + "dmljZXNcSGVhbHRoXFY06gImR29vZ2xlOjpEZXZpY2VzQW5kU2VydmljZXM6", + "OkhlYWx0aDo6VjRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DataSource), global::Google.DevicesAndServices.Health.V4.DataSource.Parser, new[]{ "RecordingMethod", "Device", "Application", "Platform" }, null, new[]{ typeof(global::Google.DevicesAndServices.Health.V4.DataSource.Types.RecordingMethod), typeof(global::Google.DevicesAndServices.Health.V4.DataSource.Types.Platform) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device), global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device.Parser, new[]{ "FormFactor", "Manufacturer", "DisplayName" }, null, new[]{ typeof(global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device.Types.FormFactor) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.DataSource.Types.Application), global::Google.DevicesAndServices.Health.V4.DataSource.Types.Application.Parser, new[]{ "PackageName", "WebClientId", "GoogleWebClientId" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Messages + /// + /// Data Source definition to track the origin of data. + /// + /// Each health data point, regardless of the complexity or data model (whether a + /// simple step count or a detailed sleep session) must retain information about + /// its source of origin (e.g. the device or app that collected it). + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DataSource : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataSource()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataSourceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataSource() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataSource(DataSource other) : this() { + recordingMethod_ = other.recordingMethod_; + device_ = other.device_ != null ? other.device_.Clone() : null; + application_ = other.application_ != null ? other.application_.Clone() : null; + platform_ = other.platform_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataSource Clone() { + return new DataSource(this); + } + + /// Field number for the "recording_method" field. + public const int RecordingMethodFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.DataSource.Types.RecordingMethod recordingMethod_ = global::Google.DevicesAndServices.Health.V4.DataSource.Types.RecordingMethod.Unspecified; + /// + /// Optional. Captures how the data was recorded. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DataSource.Types.RecordingMethod RecordingMethod { + get { return recordingMethod_; } + set { + recordingMethod_ = value; + } + } + + /// Field number for the "device" field. + public const int DeviceFieldNumber = 2; + private global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device device_; + /// + /// Optional. Captures metadata for raw data points originating from devices. + /// We expect this data source to be used for data points written on + /// device sync. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device Device { + get { return device_; } + set { + device_ = value; + } + } + + /// Field number for the "application" field. + public const int ApplicationFieldNumber = 3; + private global::Google.DevicesAndServices.Health.V4.DataSource.Types.Application application_; + /// + /// Output only. Captures metadata for the application that provided this data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DataSource.Types.Application Application { + get { return application_; } + set { + application_ = value; + } + } + + /// Field number for the "platform" field. + public const int PlatformFieldNumber = 4; + private global::Google.DevicesAndServices.Health.V4.DataSource.Types.Platform platform_ = global::Google.DevicesAndServices.Health.V4.DataSource.Types.Platform.Unspecified; + /// + /// Output only. Captures the platform that uploaded the data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DataSource.Types.Platform Platform { + get { return platform_; } + set { + platform_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DataSource); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DataSource other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RecordingMethod != other.RecordingMethod) return false; + if (!object.Equals(Device, other.Device)) return false; + if (!object.Equals(Application, other.Application)) return false; + if (Platform != other.Platform) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RecordingMethod != global::Google.DevicesAndServices.Health.V4.DataSource.Types.RecordingMethod.Unspecified) hash ^= RecordingMethod.GetHashCode(); + if (device_ != null) hash ^= Device.GetHashCode(); + if (application_ != null) hash ^= Application.GetHashCode(); + if (Platform != global::Google.DevicesAndServices.Health.V4.DataSource.Types.Platform.Unspecified) hash ^= Platform.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RecordingMethod != global::Google.DevicesAndServices.Health.V4.DataSource.Types.RecordingMethod.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) RecordingMethod); + } + if (device_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Device); + } + if (application_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Application); + } + if (Platform != global::Google.DevicesAndServices.Health.V4.DataSource.Types.Platform.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) Platform); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RecordingMethod != global::Google.DevicesAndServices.Health.V4.DataSource.Types.RecordingMethod.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) RecordingMethod); + } + if (device_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Device); + } + if (application_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Application); + } + if (Platform != global::Google.DevicesAndServices.Health.V4.DataSource.Types.Platform.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) Platform); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RecordingMethod != global::Google.DevicesAndServices.Health.V4.DataSource.Types.RecordingMethod.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RecordingMethod); + } + if (device_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device); + } + if (application_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Application); + } + if (Platform != global::Google.DevicesAndServices.Health.V4.DataSource.Types.Platform.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Platform); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DataSource other) { + if (other == null) { + return; + } + if (other.RecordingMethod != global::Google.DevicesAndServices.Health.V4.DataSource.Types.RecordingMethod.Unspecified) { + RecordingMethod = other.RecordingMethod; + } + if (other.device_ != null) { + if (device_ == null) { + Device = new global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device(); + } + Device.MergeFrom(other.Device); + } + if (other.application_ != null) { + if (application_ == null) { + Application = new global::Google.DevicesAndServices.Health.V4.DataSource.Types.Application(); + } + Application.MergeFrom(other.Application); + } + if (other.Platform != global::Google.DevicesAndServices.Health.V4.DataSource.Types.Platform.Unspecified) { + Platform = other.Platform; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + RecordingMethod = (global::Google.DevicesAndServices.Health.V4.DataSource.Types.RecordingMethod) input.ReadEnum(); + break; + } + case 18: { + if (device_ == null) { + Device = new global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device(); + } + input.ReadMessage(Device); + break; + } + case 26: { + if (application_ == null) { + Application = new global::Google.DevicesAndServices.Health.V4.DataSource.Types.Application(); + } + input.ReadMessage(Application); + break; + } + case 32: { + Platform = (global::Google.DevicesAndServices.Health.V4.DataSource.Types.Platform) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + RecordingMethod = (global::Google.DevicesAndServices.Health.V4.DataSource.Types.RecordingMethod) input.ReadEnum(); + break; + } + case 18: { + if (device_ == null) { + Device = new global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device(); + } + input.ReadMessage(Device); + break; + } + case 26: { + if (application_ == null) { + Application = new global::Google.DevicesAndServices.Health.V4.DataSource.Types.Application(); + } + input.ReadMessage(Application); + break; + } + case 32: { + Platform = (global::Google.DevicesAndServices.Health.V4.DataSource.Types.Platform) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the DataSource message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The method by which the data was recorded. + /// + public enum RecordingMethod { + /// + /// The recording method is unspecified. + /// + [pbr::OriginalName("RECORDING_METHOD_UNSPECIFIED")] Unspecified = 0, + /// + /// The data was manually entered by the user. + /// + [pbr::OriginalName("MANUAL")] Manual = 1, + /// + /// The data was passively measured by a device. + /// + [pbr::OriginalName("PASSIVELY_MEASURED")] PassivelyMeasured = 2, + /// + /// The data was derived from other data, e.g., by an algorithm in the + /// backend. + /// + [pbr::OriginalName("DERIVED")] Derived = 3, + /// + /// The data was actively measured by a device. + /// + [pbr::OriginalName("ACTIVELY_MEASURED")] ActivelyMeasured = 4, + /// + /// The recording method is unknown. This is set when the data is uploaded + /// from a third party app that does not provide this information. + /// + [pbr::OriginalName("UNKNOWN")] Unknown = 5, + } + + /// + /// The platform that uploaded the data. + /// Additional values may be added in the future. Clients should be prepared to + /// handle unknown values gracefully. + /// + public enum Platform { + /// + /// The platform is unspecified. + /// + [pbr::OriginalName("PLATFORM_UNSPECIFIED")] Unspecified = 0, + /// + /// The data was uploaded from Fitbit. + /// + [pbr::OriginalName("FITBIT")] Fitbit = 1, + /// + /// The data was uploaded from Health Connect. + /// + [pbr::OriginalName("HEALTH_CONNECT")] HealthConnect = 2, + /// + /// The data was uploaded from Health Kit. + /// + [pbr::OriginalName("HEALTH_KIT")] HealthKit = 3, + /// + /// The data was uploaded from Google Fit. + /// + [pbr::OriginalName("FIT")] Fit = 4, + /// + /// The data was uploaded from Fitbit legacy Web API. + /// + [pbr::OriginalName("FITBIT_WEB_API")] FitbitWebApi = 5, + /// + /// The data was uploaded from Nest devices. + /// + [pbr::OriginalName("NEST")] Nest = 6, + /// + /// The data was uploaded from Google Health API. + /// + [pbr::OriginalName("GOOGLE_WEB_API")] GoogleWebApi = 7, + /// + /// The data was uploaded from Google Partner Integrations. + /// + [pbr::OriginalName("GOOGLE_PARTNER_INTEGRATION")] GooglePartnerIntegration = 8, + } + + /// + /// Captures metadata about the device that recorded the measurement. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Device : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Device()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataSource.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Device() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Device(Device other) : this() { + formFactor_ = other.formFactor_; + manufacturer_ = other.manufacturer_; + displayName_ = other.displayName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Device Clone() { + return new Device(this); + } + + /// Field number for the "form_factor" field. + public const int FormFactorFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device.Types.FormFactor formFactor_ = global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device.Types.FormFactor.Unspecified; + /// + /// Optional. Captures the form factor of the device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device.Types.FormFactor FormFactor { + get { return formFactor_; } + set { + formFactor_ = value; + } + } + + /// Field number for the "manufacturer" field. + public const int ManufacturerFieldNumber = 2; + private string manufacturer_ = ""; + /// + /// Optional. An optional manufacturer of the device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Manufacturer { + get { return manufacturer_; } + set { + manufacturer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 3; + private string displayName_ = ""; + /// + /// Optional. An optional name for the device. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Device); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Device other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FormFactor != other.FormFactor) return false; + if (Manufacturer != other.Manufacturer) return false; + if (DisplayName != other.DisplayName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (FormFactor != global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device.Types.FormFactor.Unspecified) hash ^= FormFactor.GetHashCode(); + if (Manufacturer.Length != 0) hash ^= Manufacturer.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (FormFactor != global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device.Types.FormFactor.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) FormFactor); + } + if (Manufacturer.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Manufacturer); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DisplayName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FormFactor != global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device.Types.FormFactor.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) FormFactor); + } + if (Manufacturer.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Manufacturer); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DisplayName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FormFactor != global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device.Types.FormFactor.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FormFactor); + } + if (Manufacturer.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Manufacturer); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Device other) { + if (other == null) { + return; + } + if (other.FormFactor != global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device.Types.FormFactor.Unspecified) { + FormFactor = other.FormFactor; + } + if (other.Manufacturer.Length != 0) { + Manufacturer = other.Manufacturer; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + FormFactor = (global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device.Types.FormFactor) input.ReadEnum(); + break; + } + case 18: { + Manufacturer = input.ReadString(); + break; + } + case 26: { + DisplayName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + FormFactor = (global::Google.DevicesAndServices.Health.V4.DataSource.Types.Device.Types.FormFactor) input.ReadEnum(); + break; + } + case 18: { + Manufacturer = input.ReadString(); + break; + } + case 26: { + DisplayName = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Device message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Form factor of the device, e.g. phone, watch, band, etc. + /// + public enum FormFactor { + /// + /// The form factor is unspecified. + /// + [pbr::OriginalName("FORM_FACTOR_UNSPECIFIED")] Unspecified = 0, + /// + /// The device is a fitness band. + /// + [pbr::OriginalName("FITNESS_BAND")] FitnessBand = 1, + /// + /// The device is a watch. + /// + [pbr::OriginalName("WATCH")] Watch = 2, + /// + /// The device is a phone. + /// + [pbr::OriginalName("PHONE")] Phone = 3, + /// + /// The device is a ring. + /// + [pbr::OriginalName("RING")] Ring = 4, + /// + /// The device is a chest strap. + /// + [pbr::OriginalName("CHEST_STRAP")] ChestStrap = 5, + /// + /// The device is a scale. + /// + [pbr::OriginalName("SCALE")] Scale = 6, + /// + /// The device is a tablet. + /// + [pbr::OriginalName("TABLET")] Tablet = 7, + /// + /// The device is a head mounted device. + /// + [pbr::OriginalName("HEAD_MOUNTED")] HeadMounted = 8, + /// + /// The device is a smart display. + /// + [pbr::OriginalName("SMART_DISPLAY")] SmartDisplay = 9, + } + + } + #endregion + + } + + /// + /// Optional metadata for the application that provided this data. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Application : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Application()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.DataSource.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Application() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Application(Application other) : this() { + packageName_ = other.packageName_; + webClientId_ = other.webClientId_; + googleWebClientId_ = other.googleWebClientId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Application Clone() { + return new Application(this); + } + + /// Field number for the "package_name" field. + public const int PackageNameFieldNumber = 1; + private string packageName_ = ""; + /// + /// Output only. A unique identifier for the mobile application + /// that was the source of the data. + /// + /// This is typically the application's package name on Android (e.g., + /// `com.google.fitbit`) or the bundle ID on iOS. This field is informational + /// and helps trace data origin. This field is system-populated when the data + /// is uploaded from the Fitbit mobile application, Health Connect or Health + /// Kit. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PackageName { + get { return packageName_; } + set { + packageName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "web_client_id" field. + public const int WebClientIdFieldNumber = 2; + private string webClientId_ = ""; + /// + /// Output only. The client ID of the application that recorded the data. + /// + /// This ID is a legacy Fitbit API client ID, which is different from a + /// Google OAuth client ID. Example format: `ABC123`. + /// This field is system-populated and used for tracing data from + /// legacy Fitbit API integrations. This field is system-populated when + /// the data is uploaded from a legacy Fitbit API integration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string WebClientId { + get { return webClientId_; } + set { + webClientId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "google_web_client_id" field. + public const int GoogleWebClientIdFieldNumber = 3; + private string googleWebClientId_ = ""; + /// + /// Output only. The Google OAuth 2.0 client ID of the web application or + /// service that recorded the data. + /// + /// This is the client ID used during the Google OAuth + /// flow to obtain user credentials. This field is system-populated when + /// the data is uploaded from Google Web API. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GoogleWebClientId { + get { return googleWebClientId_; } + set { + googleWebClientId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Application); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Application other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PackageName != other.PackageName) return false; + if (WebClientId != other.WebClientId) return false; + if (GoogleWebClientId != other.GoogleWebClientId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (PackageName.Length != 0) hash ^= PackageName.GetHashCode(); + if (WebClientId.Length != 0) hash ^= WebClientId.GetHashCode(); + if (GoogleWebClientId.Length != 0) hash ^= GoogleWebClientId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PackageName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PackageName); + } + if (WebClientId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(WebClientId); + } + if (GoogleWebClientId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GoogleWebClientId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PackageName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PackageName); + } + if (WebClientId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(WebClientId); + } + if (GoogleWebClientId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GoogleWebClientId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (PackageName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PackageName); + } + if (WebClientId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(WebClientId); + } + if (GoogleWebClientId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GoogleWebClientId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Application other) { + if (other == null) { + return; + } + if (other.PackageName.Length != 0) { + PackageName = other.PackageName; + } + if (other.WebClientId.Length != 0) { + WebClientId = other.WebClientId; + } + if (other.GoogleWebClientId.Length != 0) { + GoogleWebClientId = other.GoogleWebClientId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + PackageName = input.ReadString(); + break; + } + case 18: { + WebClientId = input.ReadString(); + break; + } + case 26: { + GoogleWebClientId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + PackageName = input.ReadString(); + break; + } + case 18: { + WebClientId = input.ReadString(); + break; + } + case 26: { + GoogleWebClientId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.csproj b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.csproj new file mode 100644 index 000000000000..1c2613d79e76 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4.csproj @@ -0,0 +1,16 @@ + + + + 1.0.0-beta00 + netstandard2.0;net462 + true + The Google Health API lets you view and manage health and fitness metrics and measurement data. + Google;Cloud + + + + + + + + \ No newline at end of file diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfile.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfile.g.cs new file mode 100644 index 000000000000..892fdf74eefb --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfile.g.cs @@ -0,0 +1,3071 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devicesandservices/health/v4/health_profile.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Google.DevicesAndServices.Health.V4 { + + /// Holder for reflection information generated from google/devicesandservices/health/v4/health_profile.proto + public static partial class HealthProfileReflection { + + #region Descriptor + /// File descriptor for google/devicesandservices/health/v4/health_profile.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static HealthProfileReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cjhnb29nbGUvZGV2aWNlc2FuZHNlcnZpY2VzL2hlYWx0aC92NC9oZWFsdGhf", + "cHJvZmlsZS5wcm90bxIjZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFs", + "dGgudjQaHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9h", + "cGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnBy", + "b3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvGh5nb29nbGUvcHJvdG9i", + "dWYvZHVyYXRpb24ucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNr", + "LnByb3RvGhZnb29nbGUvdHlwZS9kYXRlLnByb3RvIqoECgdQcm9maWxlEhEK", + "BG5hbWUYASABKAlCA+BBCBIQCgNhZ2UYBiABKAVCA+BBARI1ChVtZW1iZXJz", + "aGlwX3N0YXJ0X2RhdGUYCSABKAsyES5nb29nbGUudHlwZS5EYXRlQgPgQQMS", + "OgoodXNlcl9jb25maWd1cmVkX3dhbGtpbmdfc3RyaWRlX2xlbmd0aF9tbRgN", + "IAEoBUID4EEBSACIAQESOgoodXNlcl9jb25maWd1cmVkX3J1bm5pbmdfc3Ry", + "aWRlX2xlbmd0aF9tbRgOIAEoBUID4EEBSAGIAQESLwodYXV0b193YWxraW5n", + "X3N0cmlkZV9sZW5ndGhfbW0YDyABKAVCA+BBA0gCiAEBEi8KHWF1dG9fcnVu", + "bmluZ19zdHJpZGVfbGVuZ3RoX21tGBAgASgFQgPgQQNIA4gBATpL6kFICh1o", + "ZWFsdGguZ29vZ2xlYXBpcy5jb20vUHJvZmlsZRIUdXNlcnMve3VzZXJ9L3By", + "b2ZpbGUqCHByb2ZpbGVzMgdwcm9maWxlQisKKV91c2VyX2NvbmZpZ3VyZWRf", + "d2Fsa2luZ19zdHJpZGVfbGVuZ3RoX21tQisKKV91c2VyX2NvbmZpZ3VyZWRf", + "cnVubmluZ19zdHJpZGVfbGVuZ3RoX21tQiAKHl9hdXRvX3dhbGtpbmdfc3Ry", + "aWRlX2xlbmd0aF9tbUIgCh5fYXV0b19ydW5uaW5nX3N0cmlkZV9sZW5ndGhf", + "bW0i+w4KCFNldHRpbmdzEhEKBG5hbWUYASABKAlCA+BBCBIgChNhdXRvX3N0", + "cmlkZV9lbmFibGVkGAIgASgIQgPgQQESVgoNZGlzdGFuY2VfdW5pdBgFIAEo", + "DjI6Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LlNldHRp", + "bmdzLkRpc3RhbmNlVW5pdEID4EEBElQKDGdsdWNvc2VfdW5pdBgHIAEoDjI5", + "Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LlNldHRpbmdz", + "LkdsdWNvc2VVbml0QgPgQQESUgoLaGVpZ2h0X3VuaXQYCCABKA4yOC5nb29n", + "bGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5TZXR0aW5ncy5IZWln", + "aHRVbml0QgPgQQESHAoPbGFuZ3VhZ2VfbG9jYWxlGAkgASgJQgPgQQESMgoK", + "dXRjX29mZnNldBgKIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbkID", + "4EEBEmcKGnN0cmlkZV9sZW5ndGhfd2Fsa2luZ190eXBlGA0gASgOMj4uZ29v", + "Z2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuU2V0dGluZ3MuU3Ry", + "aWRlTGVuZ3RoVHlwZUID4EEBEmcKGnN0cmlkZV9sZW5ndGhfcnVubmluZ190", + "eXBlGA4gASgOMj4uZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgu", + "djQuU2V0dGluZ3MuU3RyaWRlTGVuZ3RoVHlwZUID4EEBEk4KCXN3aW1fdW5p", + "dBgPIAEoDjI2Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0", + "LlNldHRpbmdzLlN3aW1Vbml0QgPgQQESXAoQdGVtcGVyYXR1cmVfdW5pdBgQ", + "IAEoDjI9Lmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LlNl", + "dHRpbmdzLlRlbXBlcmF0dXJlVW5pdEID4EEBEhYKCXRpbWVfem9uZRgRIAEo", + "CUID4EEBElIKC3dlaWdodF91bml0GBIgASgOMjguZ29vZ2xlLmRldmljZXNh", + "bmRzZXJ2aWNlcy5oZWFsdGgudjQuU2V0dGluZ3MuV2VpZ2h0VW5pdEID4EEB", + "ElAKCndhdGVyX3VuaXQYEyABKA4yNy5nb29nbGUuZGV2aWNlc2FuZHNlcnZp", + "Y2VzLmhlYWx0aC52NC5TZXR0aW5ncy5XYXRlclVuaXRCA+BBASJkCgxEaXN0", + "YW5jZVVuaXQSHQoZRElTVEFOQ0VfVU5JVF9VTlNQRUNJRklFRBAAEhcKE0RJ", + "U1RBTkNFX1VOSVRfTUlMRVMQARIcChhESVNUQU5DRV9VTklUX0tJTE9NRVRF", + "UlMQAiJcCgtHbHVjb3NlVW5pdBIcChhHTFVDT1NFX1VOSVRfVU5TUEVDSUZJ", + "RUQQABIWChJHTFVDT1NFX1VOSVRfTUdfREwQARIXChNHTFVDT1NFX1VOSVRf", + "TU1PTF9MEAIiXgoKSGVpZ2h0VW5pdBIbChdIRUlHSFRfVU5JVF9VTlNQRUNJ", + "RklFRBAAEhYKEkhFSUdIVF9VTklUX0lOQ0hFUxABEhsKF0hFSUdIVF9VTklU", + "X0NFTlRJTUVURVJTEAIikgEKEFN0cmlkZUxlbmd0aFR5cGUSIgoeU1RSSURF", + "X0xFTkdUSF9UWVBFX1VOU1BFQ0lGSUVEEAASHgoaU1RSSURFX0xFTkdUSF9U", + "WVBFX0RFRkFVTFQQARIdChlTVFJJREVfTEVOR1RIX1RZUEVfTUFOVUFMEAIS", + "GwoXU1RSSURFX0xFTkdUSF9UWVBFX0FVVE8QAyJQCghTd2ltVW5pdBIZChVT", + "V0lNX1VOSVRfVU5TUEVDSUZJRUQQABIUChBTV0lNX1VOSVRfTUVURVJTEAES", + "EwoPU1dJTV9VTklUX1lBUkRTEAIicgoPVGVtcGVyYXR1cmVVbml0EiAKHFRF", + "TVBFUkFUVVJFX1VOSVRfVU5TUEVDSUZJRUQQABIcChhURU1QRVJBVFVSRV9V", + "TklUX0NFTFNJVVMQARIfChtURU1QRVJBVFVSRV9VTklUX0ZBSFJFTkhFSVQQ", + "AiJzCgpXZWlnaHRVbml0EhsKF1dFSUdIVF9VTklUX1VOU1BFQ0lGSUVEEAAS", + "FgoSV0VJR0hUX1VOSVRfUE9VTkRTEAESFQoRV0VJR0hUX1VOSVRfU1RPTkUQ", + "AhIZChVXRUlHSFRfVU5JVF9LSUxPR1JBTVMQAyJkCglXYXRlclVuaXQSGgoW", + "V0FURVJfVU5JVF9VTlNQRUNJRklFRBAAEhEKDVdBVEVSX1VOSVRfTUwQARIU", + "ChBXQVRFUl9VTklUX0ZMX09aEAISEgoOV0FURVJfVU5JVF9DVVAQAzpO6kFL", + "Ch5oZWFsdGguZ29vZ2xlYXBpcy5jb20vU2V0dGluZ3MSFXVzZXJzL3t1c2Vy", + "fS9zZXR0aW5ncyoIc2V0dGluZ3MyCHNldHRpbmdzIqkBCghJZGVudGl0eRIR", + "CgRuYW1lGAEgASgJQgPgQQgSGwoObGVnYWN5X3VzZXJfaWQYAiABKAlCA+BB", + "AxIbCg5oZWFsdGhfdXNlcl9pZBgDIAEoCUID4EEDOlDqQU0KHmhlYWx0aC5n", + "b29nbGVhcGlzLmNvbS9JZGVudGl0eRIVdXNlcnMve3VzZXJ9L2lkZW50aXR5", + "KgppZGVudGl0aWVzMghpZGVudGl0eSJIChFHZXRQcm9maWxlUmVxdWVzdBIz", + "CgRuYW1lGAEgASgJQiXgQQL6QR8KHWhlYWx0aC5nb29nbGVhcGlzLmNvbS9Q", + "cm9maWxlIpABChRVcGRhdGVQcm9maWxlUmVxdWVzdBJCCgdwcm9maWxlGAEg", + "ASgLMiwuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuUHJv", + "ZmlsZUID4EECEjQKC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3Rv", + "YnVmLkZpZWxkTWFza0ID4EEBIkoKEkdldFNldHRpbmdzUmVxdWVzdBI0CgRu", + "YW1lGAEgASgJQibgQQL6QSAKHmhlYWx0aC5nb29nbGVhcGlzLmNvbS9TZXR0", + "aW5ncyKTAQoVVXBkYXRlU2V0dGluZ3NSZXF1ZXN0EkQKCHNldHRpbmdzGAEg", + "ASgLMi0uZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuU2V0", + "dGluZ3NCA+BBAhI0Cgt1cGRhdGVfbWFzaxgCIAEoCzIaLmdvb2dsZS5wcm90", + "b2J1Zi5GaWVsZE1hc2tCA+BBASJKChJHZXRJZGVudGl0eVJlcXVlc3QSNAoE", + "bmFtZRgBIAEoCUIm4EEC+kEgCh5oZWFsdGguZ29vZ2xlYXBpcy5jb20vSWRl", + "bnRpdHkyqwcKFEhlYWx0aFByb2ZpbGVTZXJ2aWNlEp0BCgpHZXRQcm9maWxl", + "EjYuZ29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuR2V0UHJv", + "ZmlsZVJlcXVlc3QaLC5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0", + "aC52NC5Qcm9maWxlIinaQQRuYW1lgtPkkwIcEhovdjQve25hbWU9dXNlcnMv", + "Ki9wcm9maWxlfRLDAQoNVXBkYXRlUHJvZmlsZRI5Lmdvb2dsZS5kZXZpY2Vz", + "YW5kc2VydmljZXMuaGVhbHRoLnY0LlVwZGF0ZVByb2ZpbGVSZXF1ZXN0Giwu", + "Z29vZ2xlLmRldmljZXNhbmRzZXJ2aWNlcy5oZWFsdGgudjQuUHJvZmlsZSJJ", + "2kETcHJvZmlsZSx1cGRhdGVfbWFza4LT5JMCLTIiL3Y0L3twcm9maWxlLm5h", + "bWU9dXNlcnMvKi9wcm9maWxlfToHcHJvZmlsZRKhAQoLR2V0U2V0dGluZ3MS", + "Ny5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52NC5HZXRTZXR0", + "aW5nc1JlcXVlc3QaLS5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0", + "aC52NC5TZXR0aW5ncyIq2kEEbmFtZYLT5JMCHRIbL3Y0L3tuYW1lPXVzZXJz", + "Lyovc2V0dGluZ3N9EsoBCg5VcGRhdGVTZXR0aW5ncxI6Lmdvb2dsZS5kZXZp", + "Y2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LlVwZGF0ZVNldHRpbmdzUmVxdWVz", + "dBotLmdvb2dsZS5kZXZpY2VzYW5kc2VydmljZXMuaGVhbHRoLnY0LlNldHRp", + "bmdzIk3aQRRzZXR0aW5ncyx1cGRhdGVfbWFza4LT5JMCMDIkL3Y0L3tzZXR0", + "aW5ncy5uYW1lPXVzZXJzLyovc2V0dGluZ3N9OghzZXR0aW5ncxKhAQoLR2V0", + "SWRlbnRpdHkSNy5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52", + "NC5HZXRJZGVudGl0eVJlcXVlc3QaLS5nb29nbGUuZGV2aWNlc2FuZHNlcnZp", + "Y2VzLmhlYWx0aC52NC5JZGVudGl0eSIq2kEEbmFtZYLT5JMCHRIbL3Y0L3tu", + "YW1lPXVzZXJzLyovaWRlbnRpdHl9GhjKQRVoZWFsdGguZ29vZ2xlYXBpcy5j", + "b21CiAIKJ2NvbS5nb29nbGUuZGV2aWNlc2FuZHNlcnZpY2VzLmhlYWx0aC52", + "NEISSGVhbHRoUHJvZmlsZVByb3RvUAFaUmdvb2dsZS5nb2xhbmcub3JnL2dl", + "bnByb3RvL2dvb2dsZWFwaXMvZGV2aWNlc2FuZHNlcnZpY2VzL2hlYWx0aC9h", + "cGl2NG1haW47aGVhbHRocGKqAiNHb29nbGUuRGV2aWNlc0FuZFNlcnZpY2Vz", + "LkhlYWx0aC5WNMoCI0dvb2dsZVxEZXZpY2VzQW5kU2VydmljZXNcSGVhbHRo", + "XFY06gImR29vZ2xlOjpEZXZpY2VzQW5kU2VydmljZXM6OkhlYWx0aDo6VjRi", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Type.DateReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Profile), global::Google.DevicesAndServices.Health.V4.Profile.Parser, new[]{ "Name", "Age", "MembershipStartDate", "UserConfiguredWalkingStrideLengthMm", "UserConfiguredRunningStrideLengthMm", "AutoWalkingStrideLengthMm", "AutoRunningStrideLengthMm" }, new[]{ "UserConfiguredWalkingStrideLengthMm", "UserConfiguredRunningStrideLengthMm", "AutoWalkingStrideLengthMm", "AutoRunningStrideLengthMm" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Settings), global::Google.DevicesAndServices.Health.V4.Settings.Parser, new[]{ "Name", "AutoStrideEnabled", "DistanceUnit", "GlucoseUnit", "HeightUnit", "LanguageLocale", "UtcOffset", "StrideLengthWalkingType", "StrideLengthRunningType", "SwimUnit", "TemperatureUnit", "TimeZone", "WeightUnit", "WaterUnit" }, null, new[]{ typeof(global::Google.DevicesAndServices.Health.V4.Settings.Types.DistanceUnit), typeof(global::Google.DevicesAndServices.Health.V4.Settings.Types.GlucoseUnit), typeof(global::Google.DevicesAndServices.Health.V4.Settings.Types.HeightUnit), typeof(global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType), typeof(global::Google.DevicesAndServices.Health.V4.Settings.Types.SwimUnit), typeof(global::Google.DevicesAndServices.Health.V4.Settings.Types.TemperatureUnit), typeof(global::Google.DevicesAndServices.Health.V4.Settings.Types.WeightUnit), typeof(global::Google.DevicesAndServices.Health.V4.Settings.Types.WaterUnit) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.Identity), global::Google.DevicesAndServices.Health.V4.Identity.Parser, new[]{ "Name", "LegacyUserId", "HealthUserId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.GetProfileRequest), global::Google.DevicesAndServices.Health.V4.GetProfileRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.UpdateProfileRequest), global::Google.DevicesAndServices.Health.V4.UpdateProfileRequest.Parser, new[]{ "Profile", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.GetSettingsRequest), global::Google.DevicesAndServices.Health.V4.GetSettingsRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.UpdateSettingsRequest), global::Google.DevicesAndServices.Health.V4.UpdateSettingsRequest.Parser, new[]{ "Settings", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.DevicesAndServices.Health.V4.GetIdentityRequest), global::Google.DevicesAndServices.Health.V4.GetIdentityRequest.Parser, new[]{ "Name" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Profile details. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Profile : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Profile()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.HealthProfileReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Profile() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Profile(Profile other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + age_ = other.age_; + membershipStartDate_ = other.membershipStartDate_ != null ? other.membershipStartDate_.Clone() : null; + userConfiguredWalkingStrideLengthMm_ = other.userConfiguredWalkingStrideLengthMm_; + userConfiguredRunningStrideLengthMm_ = other.userConfiguredRunningStrideLengthMm_; + autoWalkingStrideLengthMm_ = other.autoWalkingStrideLengthMm_; + autoRunningStrideLengthMm_ = other.autoRunningStrideLengthMm_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Profile Clone() { + return new Profile(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Identifier. The resource name of this Profile resource. + /// + /// Format: `users/{user}/profile` + /// Example: `users/1234567890/profile` or `users/me/profile` + /// The {user} ID is a system-generated Google Health API user ID, a string of + /// 1-63 characters consisting of lowercase and uppercase letters, numbers, and + /// hyphens. The literal `me` can also be used to refer to the authenticated + /// user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "age" field. + public const int AgeFieldNumber = 6; + private int age_; + /// + /// Optional. The age in years based on the user's birth date. + /// + /// Updates to this field are currently not supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Age { + get { return age_; } + set { + age_ = value; + } + } + + /// Field number for the "membership_start_date" field. + public const int MembershipStartDateFieldNumber = 9; + private global::Google.Type.Date membershipStartDate_; + /// + /// Output only. The date the user created their account. + /// + /// Updates to this field are currently not supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.Date MembershipStartDate { + get { return membershipStartDate_; } + set { + membershipStartDate_ = value; + } + } + + /// Field number for the "user_configured_walking_stride_length_mm" field. + public const int UserConfiguredWalkingStrideLengthMmFieldNumber = 13; + private readonly static int UserConfiguredWalkingStrideLengthMmDefaultValue = 0; + + private int userConfiguredWalkingStrideLengthMm_; + /// + /// Optional. The user's user configured walking stride length, in millimeters. + /// + /// The user must consent to + /// one of the following access scopes to access this field: + /// + /// - + /// `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` + /// - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UserConfiguredWalkingStrideLengthMm { + get { if ((_hasBits0 & 1) != 0) { return userConfiguredWalkingStrideLengthMm_; } else { return UserConfiguredWalkingStrideLengthMmDefaultValue; } } + set { + _hasBits0 |= 1; + userConfiguredWalkingStrideLengthMm_ = value; + } + } + /// Gets whether the "user_configured_walking_stride_length_mm" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUserConfiguredWalkingStrideLengthMm { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "user_configured_walking_stride_length_mm" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUserConfiguredWalkingStrideLengthMm() { + _hasBits0 &= ~1; + } + + /// Field number for the "user_configured_running_stride_length_mm" field. + public const int UserConfiguredRunningStrideLengthMmFieldNumber = 14; + private readonly static int UserConfiguredRunningStrideLengthMmDefaultValue = 0; + + private int userConfiguredRunningStrideLengthMm_; + /// + /// Optional. The user's user configured running stride length, in millimeters. + /// + /// The user must consent to + /// one of the following access scopes to access this field: + /// + /// - + /// `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` + /// - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UserConfiguredRunningStrideLengthMm { + get { if ((_hasBits0 & 2) != 0) { return userConfiguredRunningStrideLengthMm_; } else { return UserConfiguredRunningStrideLengthMmDefaultValue; } } + set { + _hasBits0 |= 2; + userConfiguredRunningStrideLengthMm_ = value; + } + } + /// Gets whether the "user_configured_running_stride_length_mm" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUserConfiguredRunningStrideLengthMm { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "user_configured_running_stride_length_mm" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUserConfiguredRunningStrideLengthMm() { + _hasBits0 &= ~2; + } + + /// Field number for the "auto_walking_stride_length_mm" field. + public const int AutoWalkingStrideLengthMmFieldNumber = 15; + private readonly static int AutoWalkingStrideLengthMmDefaultValue = 0; + + private int autoWalkingStrideLengthMm_; + /// + /// Output only. The automatically calculated walking stride length, in + /// millimeters. + /// + /// The user must consent to + /// one of the following access scopes to access this field: + /// + /// - + /// `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` + /// - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AutoWalkingStrideLengthMm { + get { if ((_hasBits0 & 4) != 0) { return autoWalkingStrideLengthMm_; } else { return AutoWalkingStrideLengthMmDefaultValue; } } + set { + _hasBits0 |= 4; + autoWalkingStrideLengthMm_ = value; + } + } + /// Gets whether the "auto_walking_stride_length_mm" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAutoWalkingStrideLengthMm { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "auto_walking_stride_length_mm" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAutoWalkingStrideLengthMm() { + _hasBits0 &= ~4; + } + + /// Field number for the "auto_running_stride_length_mm" field. + public const int AutoRunningStrideLengthMmFieldNumber = 16; + private readonly static int AutoRunningStrideLengthMmDefaultValue = 0; + + private int autoRunningStrideLengthMm_; + /// + /// Output only. The automatically calculated running stride length, in + /// millimeters. + /// + /// The user must consent to + /// one of the following access scopes to access this field: + /// + /// - + /// `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` + /// - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AutoRunningStrideLengthMm { + get { if ((_hasBits0 & 8) != 0) { return autoRunningStrideLengthMm_; } else { return AutoRunningStrideLengthMmDefaultValue; } } + set { + _hasBits0 |= 8; + autoRunningStrideLengthMm_ = value; + } + } + /// Gets whether the "auto_running_stride_length_mm" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAutoRunningStrideLengthMm { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "auto_running_stride_length_mm" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAutoRunningStrideLengthMm() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Profile); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Profile other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Age != other.Age) return false; + if (!object.Equals(MembershipStartDate, other.MembershipStartDate)) return false; + if (UserConfiguredWalkingStrideLengthMm != other.UserConfiguredWalkingStrideLengthMm) return false; + if (UserConfiguredRunningStrideLengthMm != other.UserConfiguredRunningStrideLengthMm) return false; + if (AutoWalkingStrideLengthMm != other.AutoWalkingStrideLengthMm) return false; + if (AutoRunningStrideLengthMm != other.AutoRunningStrideLengthMm) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Age != 0) hash ^= Age.GetHashCode(); + if (membershipStartDate_ != null) hash ^= MembershipStartDate.GetHashCode(); + if (HasUserConfiguredWalkingStrideLengthMm) hash ^= UserConfiguredWalkingStrideLengthMm.GetHashCode(); + if (HasUserConfiguredRunningStrideLengthMm) hash ^= UserConfiguredRunningStrideLengthMm.GetHashCode(); + if (HasAutoWalkingStrideLengthMm) hash ^= AutoWalkingStrideLengthMm.GetHashCode(); + if (HasAutoRunningStrideLengthMm) hash ^= AutoRunningStrideLengthMm.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Age != 0) { + output.WriteRawTag(48); + output.WriteInt32(Age); + } + if (membershipStartDate_ != null) { + output.WriteRawTag(74); + output.WriteMessage(MembershipStartDate); + } + if (HasUserConfiguredWalkingStrideLengthMm) { + output.WriteRawTag(104); + output.WriteInt32(UserConfiguredWalkingStrideLengthMm); + } + if (HasUserConfiguredRunningStrideLengthMm) { + output.WriteRawTag(112); + output.WriteInt32(UserConfiguredRunningStrideLengthMm); + } + if (HasAutoWalkingStrideLengthMm) { + output.WriteRawTag(120); + output.WriteInt32(AutoWalkingStrideLengthMm); + } + if (HasAutoRunningStrideLengthMm) { + output.WriteRawTag(128, 1); + output.WriteInt32(AutoRunningStrideLengthMm); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Age != 0) { + output.WriteRawTag(48); + output.WriteInt32(Age); + } + if (membershipStartDate_ != null) { + output.WriteRawTag(74); + output.WriteMessage(MembershipStartDate); + } + if (HasUserConfiguredWalkingStrideLengthMm) { + output.WriteRawTag(104); + output.WriteInt32(UserConfiguredWalkingStrideLengthMm); + } + if (HasUserConfiguredRunningStrideLengthMm) { + output.WriteRawTag(112); + output.WriteInt32(UserConfiguredRunningStrideLengthMm); + } + if (HasAutoWalkingStrideLengthMm) { + output.WriteRawTag(120); + output.WriteInt32(AutoWalkingStrideLengthMm); + } + if (HasAutoRunningStrideLengthMm) { + output.WriteRawTag(128, 1); + output.WriteInt32(AutoRunningStrideLengthMm); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Age != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Age); + } + if (membershipStartDate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MembershipStartDate); + } + if (HasUserConfiguredWalkingStrideLengthMm) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserConfiguredWalkingStrideLengthMm); + } + if (HasUserConfiguredRunningStrideLengthMm) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserConfiguredRunningStrideLengthMm); + } + if (HasAutoWalkingStrideLengthMm) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AutoWalkingStrideLengthMm); + } + if (HasAutoRunningStrideLengthMm) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AutoRunningStrideLengthMm); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Profile other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Age != 0) { + Age = other.Age; + } + if (other.membershipStartDate_ != null) { + if (membershipStartDate_ == null) { + MembershipStartDate = new global::Google.Type.Date(); + } + MembershipStartDate.MergeFrom(other.MembershipStartDate); + } + if (other.HasUserConfiguredWalkingStrideLengthMm) { + UserConfiguredWalkingStrideLengthMm = other.UserConfiguredWalkingStrideLengthMm; + } + if (other.HasUserConfiguredRunningStrideLengthMm) { + UserConfiguredRunningStrideLengthMm = other.UserConfiguredRunningStrideLengthMm; + } + if (other.HasAutoWalkingStrideLengthMm) { + AutoWalkingStrideLengthMm = other.AutoWalkingStrideLengthMm; + } + if (other.HasAutoRunningStrideLengthMm) { + AutoRunningStrideLengthMm = other.AutoRunningStrideLengthMm; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 48: { + Age = input.ReadInt32(); + break; + } + case 74: { + if (membershipStartDate_ == null) { + MembershipStartDate = new global::Google.Type.Date(); + } + input.ReadMessage(MembershipStartDate); + break; + } + case 104: { + UserConfiguredWalkingStrideLengthMm = input.ReadInt32(); + break; + } + case 112: { + UserConfiguredRunningStrideLengthMm = input.ReadInt32(); + break; + } + case 120: { + AutoWalkingStrideLengthMm = input.ReadInt32(); + break; + } + case 128: { + AutoRunningStrideLengthMm = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 48: { + Age = input.ReadInt32(); + break; + } + case 74: { + if (membershipStartDate_ == null) { + MembershipStartDate = new global::Google.Type.Date(); + } + input.ReadMessage(MembershipStartDate); + break; + } + case 104: { + UserConfiguredWalkingStrideLengthMm = input.ReadInt32(); + break; + } + case 112: { + UserConfiguredRunningStrideLengthMm = input.ReadInt32(); + break; + } + case 120: { + AutoWalkingStrideLengthMm = input.ReadInt32(); + break; + } + case 128: { + AutoRunningStrideLengthMm = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// Settings details. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Settings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Settings()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.HealthProfileReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Settings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Settings(Settings other) : this() { + name_ = other.name_; + autoStrideEnabled_ = other.autoStrideEnabled_; + distanceUnit_ = other.distanceUnit_; + glucoseUnit_ = other.glucoseUnit_; + heightUnit_ = other.heightUnit_; + languageLocale_ = other.languageLocale_; + utcOffset_ = other.utcOffset_ != null ? other.utcOffset_.Clone() : null; + strideLengthWalkingType_ = other.strideLengthWalkingType_; + strideLengthRunningType_ = other.strideLengthRunningType_; + swimUnit_ = other.swimUnit_; + temperatureUnit_ = other.temperatureUnit_; + timeZone_ = other.timeZone_; + weightUnit_ = other.weightUnit_; + waterUnit_ = other.waterUnit_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Settings Clone() { + return new Settings(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Identifier. The resource name of this Settings resource. + /// + /// Format: `users/{user}/settings` + /// Example: `users/1234567890/settings` or `users/me/settings` + /// The {user} ID is a system-generated Google Health API user ID, a string of + /// 1-63 characters consisting of lowercase and uppercase letters, numbers, and + /// hyphens. The literal `me` can also be used to refer to the authenticated + /// user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "auto_stride_enabled" field. + public const int AutoStrideEnabledFieldNumber = 2; + private bool autoStrideEnabled_; + /// + /// Optional. True if the user's stride length is determined automatically. + /// + /// Updates to this field are currently not supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AutoStrideEnabled { + get { return autoStrideEnabled_; } + set { + autoStrideEnabled_ = value; + } + } + + /// Field number for the "distance_unit" field. + public const int DistanceUnitFieldNumber = 5; + private global::Google.DevicesAndServices.Health.V4.Settings.Types.DistanceUnit distanceUnit_ = global::Google.DevicesAndServices.Health.V4.Settings.Types.DistanceUnit.Unspecified; + /// + /// Optional. The measurement unit defined in the user's account settings. + /// + /// Updates to this field are currently not supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Settings.Types.DistanceUnit DistanceUnit { + get { return distanceUnit_; } + set { + distanceUnit_ = value; + } + } + + /// Field number for the "glucose_unit" field. + public const int GlucoseUnitFieldNumber = 7; + private global::Google.DevicesAndServices.Health.V4.Settings.Types.GlucoseUnit glucoseUnit_ = global::Google.DevicesAndServices.Health.V4.Settings.Types.GlucoseUnit.Unspecified; + /// + /// Optional. The measurement unit defined in the user's account settings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Settings.Types.GlucoseUnit GlucoseUnit { + get { return glucoseUnit_; } + set { + glucoseUnit_ = value; + } + } + + /// Field number for the "height_unit" field. + public const int HeightUnitFieldNumber = 8; + private global::Google.DevicesAndServices.Health.V4.Settings.Types.HeightUnit heightUnit_ = global::Google.DevicesAndServices.Health.V4.Settings.Types.HeightUnit.Unspecified; + /// + /// Optional. The measurement unit defined in the user's account settings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Settings.Types.HeightUnit HeightUnit { + get { return heightUnit_; } + set { + heightUnit_ = value; + } + } + + /// Field number for the "language_locale" field. + public const int LanguageLocaleFieldNumber = 9; + private string languageLocale_ = ""; + /// + /// Optional. The locale defined in the user's account settings. + /// + /// Updates to this field are currently not supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LanguageLocale { + get { return languageLocale_; } + set { + languageLocale_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "utc_offset" field. + public const int UtcOffsetFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Duration utcOffset_; + /// + /// Optional. The user's timezone offset relative to UTC. + /// + /// Updates to this field are currently not supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration UtcOffset { + get { return utcOffset_; } + set { + utcOffset_ = value; + } + } + + /// Field number for the "stride_length_walking_type" field. + public const int StrideLengthWalkingTypeFieldNumber = 13; + private global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType strideLengthWalkingType_ = global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType.Unspecified; + /// + /// Optional. The stride length type defined in the user's account settings for + /// walking. + /// + /// Updates to this field are currently not supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType StrideLengthWalkingType { + get { return strideLengthWalkingType_; } + set { + strideLengthWalkingType_ = value; + } + } + + /// Field number for the "stride_length_running_type" field. + public const int StrideLengthRunningTypeFieldNumber = 14; + private global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType strideLengthRunningType_ = global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType.Unspecified; + /// + /// Optional. The stride length type defined in the user's account settings for + /// running. + /// + /// Updates to this field are currently not supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType StrideLengthRunningType { + get { return strideLengthRunningType_; } + set { + strideLengthRunningType_ = value; + } + } + + /// Field number for the "swim_unit" field. + public const int SwimUnitFieldNumber = 15; + private global::Google.DevicesAndServices.Health.V4.Settings.Types.SwimUnit swimUnit_ = global::Google.DevicesAndServices.Health.V4.Settings.Types.SwimUnit.Unspecified; + /// + /// Optional. The measurement unit defined in the user's account settings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Settings.Types.SwimUnit SwimUnit { + get { return swimUnit_; } + set { + swimUnit_ = value; + } + } + + /// Field number for the "temperature_unit" field. + public const int TemperatureUnitFieldNumber = 16; + private global::Google.DevicesAndServices.Health.V4.Settings.Types.TemperatureUnit temperatureUnit_ = global::Google.DevicesAndServices.Health.V4.Settings.Types.TemperatureUnit.Unspecified; + /// + /// Optional. The measurement unit defined in the user's account settings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Settings.Types.TemperatureUnit TemperatureUnit { + get { return temperatureUnit_; } + set { + temperatureUnit_ = value; + } + } + + /// Field number for the "time_zone" field. + public const int TimeZoneFieldNumber = 17; + private string timeZone_ = ""; + /// + /// Optional. The timezone defined in the user's account settings. This follows + /// the IANA [Time Zone Database](https://www.iana.org/time-zones). + /// + /// Updates to this field are currently not supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TimeZone { + get { return timeZone_; } + set { + timeZone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "weight_unit" field. + public const int WeightUnitFieldNumber = 18; + private global::Google.DevicesAndServices.Health.V4.Settings.Types.WeightUnit weightUnit_ = global::Google.DevicesAndServices.Health.V4.Settings.Types.WeightUnit.Unspecified; + /// + /// Optional. The measurement unit defined in the user's account settings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Settings.Types.WeightUnit WeightUnit { + get { return weightUnit_; } + set { + weightUnit_ = value; + } + } + + /// Field number for the "water_unit" field. + public const int WaterUnitFieldNumber = 19; + private global::Google.DevicesAndServices.Health.V4.Settings.Types.WaterUnit waterUnit_ = global::Google.DevicesAndServices.Health.V4.Settings.Types.WaterUnit.Unspecified; + /// + /// Optional. The measurement unit defined in the user's account settings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Settings.Types.WaterUnit WaterUnit { + get { return waterUnit_; } + set { + waterUnit_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Settings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Settings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (AutoStrideEnabled != other.AutoStrideEnabled) return false; + if (DistanceUnit != other.DistanceUnit) return false; + if (GlucoseUnit != other.GlucoseUnit) return false; + if (HeightUnit != other.HeightUnit) return false; + if (LanguageLocale != other.LanguageLocale) return false; + if (!object.Equals(UtcOffset, other.UtcOffset)) return false; + if (StrideLengthWalkingType != other.StrideLengthWalkingType) return false; + if (StrideLengthRunningType != other.StrideLengthRunningType) return false; + if (SwimUnit != other.SwimUnit) return false; + if (TemperatureUnit != other.TemperatureUnit) return false; + if (TimeZone != other.TimeZone) return false; + if (WeightUnit != other.WeightUnit) return false; + if (WaterUnit != other.WaterUnit) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (AutoStrideEnabled != false) hash ^= AutoStrideEnabled.GetHashCode(); + if (DistanceUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.DistanceUnit.Unspecified) hash ^= DistanceUnit.GetHashCode(); + if (GlucoseUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.GlucoseUnit.Unspecified) hash ^= GlucoseUnit.GetHashCode(); + if (HeightUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.HeightUnit.Unspecified) hash ^= HeightUnit.GetHashCode(); + if (LanguageLocale.Length != 0) hash ^= LanguageLocale.GetHashCode(); + if (utcOffset_ != null) hash ^= UtcOffset.GetHashCode(); + if (StrideLengthWalkingType != global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType.Unspecified) hash ^= StrideLengthWalkingType.GetHashCode(); + if (StrideLengthRunningType != global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType.Unspecified) hash ^= StrideLengthRunningType.GetHashCode(); + if (SwimUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.SwimUnit.Unspecified) hash ^= SwimUnit.GetHashCode(); + if (TemperatureUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.TemperatureUnit.Unspecified) hash ^= TemperatureUnit.GetHashCode(); + if (TimeZone.Length != 0) hash ^= TimeZone.GetHashCode(); + if (WeightUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.WeightUnit.Unspecified) hash ^= WeightUnit.GetHashCode(); + if (WaterUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.WaterUnit.Unspecified) hash ^= WaterUnit.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (AutoStrideEnabled != false) { + output.WriteRawTag(16); + output.WriteBool(AutoStrideEnabled); + } + if (DistanceUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.DistanceUnit.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) DistanceUnit); + } + if (GlucoseUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.GlucoseUnit.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) GlucoseUnit); + } + if (HeightUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.HeightUnit.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) HeightUnit); + } + if (LanguageLocale.Length != 0) { + output.WriteRawTag(74); + output.WriteString(LanguageLocale); + } + if (utcOffset_ != null) { + output.WriteRawTag(82); + output.WriteMessage(UtcOffset); + } + if (StrideLengthWalkingType != global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType.Unspecified) { + output.WriteRawTag(104); + output.WriteEnum((int) StrideLengthWalkingType); + } + if (StrideLengthRunningType != global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType.Unspecified) { + output.WriteRawTag(112); + output.WriteEnum((int) StrideLengthRunningType); + } + if (SwimUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.SwimUnit.Unspecified) { + output.WriteRawTag(120); + output.WriteEnum((int) SwimUnit); + } + if (TemperatureUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.TemperatureUnit.Unspecified) { + output.WriteRawTag(128, 1); + output.WriteEnum((int) TemperatureUnit); + } + if (TimeZone.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(TimeZone); + } + if (WeightUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.WeightUnit.Unspecified) { + output.WriteRawTag(144, 1); + output.WriteEnum((int) WeightUnit); + } + if (WaterUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.WaterUnit.Unspecified) { + output.WriteRawTag(152, 1); + output.WriteEnum((int) WaterUnit); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (AutoStrideEnabled != false) { + output.WriteRawTag(16); + output.WriteBool(AutoStrideEnabled); + } + if (DistanceUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.DistanceUnit.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) DistanceUnit); + } + if (GlucoseUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.GlucoseUnit.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) GlucoseUnit); + } + if (HeightUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.HeightUnit.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) HeightUnit); + } + if (LanguageLocale.Length != 0) { + output.WriteRawTag(74); + output.WriteString(LanguageLocale); + } + if (utcOffset_ != null) { + output.WriteRawTag(82); + output.WriteMessage(UtcOffset); + } + if (StrideLengthWalkingType != global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType.Unspecified) { + output.WriteRawTag(104); + output.WriteEnum((int) StrideLengthWalkingType); + } + if (StrideLengthRunningType != global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType.Unspecified) { + output.WriteRawTag(112); + output.WriteEnum((int) StrideLengthRunningType); + } + if (SwimUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.SwimUnit.Unspecified) { + output.WriteRawTag(120); + output.WriteEnum((int) SwimUnit); + } + if (TemperatureUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.TemperatureUnit.Unspecified) { + output.WriteRawTag(128, 1); + output.WriteEnum((int) TemperatureUnit); + } + if (TimeZone.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(TimeZone); + } + if (WeightUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.WeightUnit.Unspecified) { + output.WriteRawTag(144, 1); + output.WriteEnum((int) WeightUnit); + } + if (WaterUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.WaterUnit.Unspecified) { + output.WriteRawTag(152, 1); + output.WriteEnum((int) WaterUnit); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (AutoStrideEnabled != false) { + size += 1 + 1; + } + if (DistanceUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.DistanceUnit.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DistanceUnit); + } + if (GlucoseUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.GlucoseUnit.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GlucoseUnit); + } + if (HeightUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.HeightUnit.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HeightUnit); + } + if (LanguageLocale.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LanguageLocale); + } + if (utcOffset_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UtcOffset); + } + if (StrideLengthWalkingType != global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StrideLengthWalkingType); + } + if (StrideLengthRunningType != global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StrideLengthRunningType); + } + if (SwimUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.SwimUnit.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SwimUnit); + } + if (TemperatureUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.TemperatureUnit.Unspecified) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) TemperatureUnit); + } + if (TimeZone.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TimeZone); + } + if (WeightUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.WeightUnit.Unspecified) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) WeightUnit); + } + if (WaterUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.WaterUnit.Unspecified) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) WaterUnit); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Settings other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.AutoStrideEnabled != false) { + AutoStrideEnabled = other.AutoStrideEnabled; + } + if (other.DistanceUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.DistanceUnit.Unspecified) { + DistanceUnit = other.DistanceUnit; + } + if (other.GlucoseUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.GlucoseUnit.Unspecified) { + GlucoseUnit = other.GlucoseUnit; + } + if (other.HeightUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.HeightUnit.Unspecified) { + HeightUnit = other.HeightUnit; + } + if (other.LanguageLocale.Length != 0) { + LanguageLocale = other.LanguageLocale; + } + if (other.utcOffset_ != null) { + if (utcOffset_ == null) { + UtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + UtcOffset.MergeFrom(other.UtcOffset); + } + if (other.StrideLengthWalkingType != global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType.Unspecified) { + StrideLengthWalkingType = other.StrideLengthWalkingType; + } + if (other.StrideLengthRunningType != global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType.Unspecified) { + StrideLengthRunningType = other.StrideLengthRunningType; + } + if (other.SwimUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.SwimUnit.Unspecified) { + SwimUnit = other.SwimUnit; + } + if (other.TemperatureUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.TemperatureUnit.Unspecified) { + TemperatureUnit = other.TemperatureUnit; + } + if (other.TimeZone.Length != 0) { + TimeZone = other.TimeZone; + } + if (other.WeightUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.WeightUnit.Unspecified) { + WeightUnit = other.WeightUnit; + } + if (other.WaterUnit != global::Google.DevicesAndServices.Health.V4.Settings.Types.WaterUnit.Unspecified) { + WaterUnit = other.WaterUnit; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + AutoStrideEnabled = input.ReadBool(); + break; + } + case 40: { + DistanceUnit = (global::Google.DevicesAndServices.Health.V4.Settings.Types.DistanceUnit) input.ReadEnum(); + break; + } + case 56: { + GlucoseUnit = (global::Google.DevicesAndServices.Health.V4.Settings.Types.GlucoseUnit) input.ReadEnum(); + break; + } + case 64: { + HeightUnit = (global::Google.DevicesAndServices.Health.V4.Settings.Types.HeightUnit) input.ReadEnum(); + break; + } + case 74: { + LanguageLocale = input.ReadString(); + break; + } + case 82: { + if (utcOffset_ == null) { + UtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(UtcOffset); + break; + } + case 104: { + StrideLengthWalkingType = (global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType) input.ReadEnum(); + break; + } + case 112: { + StrideLengthRunningType = (global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType) input.ReadEnum(); + break; + } + case 120: { + SwimUnit = (global::Google.DevicesAndServices.Health.V4.Settings.Types.SwimUnit) input.ReadEnum(); + break; + } + case 128: { + TemperatureUnit = (global::Google.DevicesAndServices.Health.V4.Settings.Types.TemperatureUnit) input.ReadEnum(); + break; + } + case 138: { + TimeZone = input.ReadString(); + break; + } + case 144: { + WeightUnit = (global::Google.DevicesAndServices.Health.V4.Settings.Types.WeightUnit) input.ReadEnum(); + break; + } + case 152: { + WaterUnit = (global::Google.DevicesAndServices.Health.V4.Settings.Types.WaterUnit) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + AutoStrideEnabled = input.ReadBool(); + break; + } + case 40: { + DistanceUnit = (global::Google.DevicesAndServices.Health.V4.Settings.Types.DistanceUnit) input.ReadEnum(); + break; + } + case 56: { + GlucoseUnit = (global::Google.DevicesAndServices.Health.V4.Settings.Types.GlucoseUnit) input.ReadEnum(); + break; + } + case 64: { + HeightUnit = (global::Google.DevicesAndServices.Health.V4.Settings.Types.HeightUnit) input.ReadEnum(); + break; + } + case 74: { + LanguageLocale = input.ReadString(); + break; + } + case 82: { + if (utcOffset_ == null) { + UtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(UtcOffset); + break; + } + case 104: { + StrideLengthWalkingType = (global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType) input.ReadEnum(); + break; + } + case 112: { + StrideLengthRunningType = (global::Google.DevicesAndServices.Health.V4.Settings.Types.StrideLengthType) input.ReadEnum(); + break; + } + case 120: { + SwimUnit = (global::Google.DevicesAndServices.Health.V4.Settings.Types.SwimUnit) input.ReadEnum(); + break; + } + case 128: { + TemperatureUnit = (global::Google.DevicesAndServices.Health.V4.Settings.Types.TemperatureUnit) input.ReadEnum(); + break; + } + case 138: { + TimeZone = input.ReadString(); + break; + } + case 144: { + WeightUnit = (global::Google.DevicesAndServices.Health.V4.Settings.Types.WeightUnit) input.ReadEnum(); + break; + } + case 152: { + WaterUnit = (global::Google.DevicesAndServices.Health.V4.Settings.Types.WaterUnit) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Settings message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The measurement unit defined in the user's account settings. + /// + public enum DistanceUnit { + /// + /// Distance unit is not specified. + /// + [pbr::OriginalName("DISTANCE_UNIT_UNSPECIFIED")] Unspecified = 0, + /// + /// Distance unit is miles. + /// + [pbr::OriginalName("DISTANCE_UNIT_MILES")] Miles = 1, + /// + /// Distance unit is kilometers. + /// + [pbr::OriginalName("DISTANCE_UNIT_KILOMETERS")] Kilometers = 2, + } + + /// + /// The measurement unit defined in the user's account settings. + /// + public enum GlucoseUnit { + /// + /// Glucose unit is not specified. + /// + [pbr::OriginalName("GLUCOSE_UNIT_UNSPECIFIED")] Unspecified = 0, + /// + /// Glucose unit is mg/dL. + /// + [pbr::OriginalName("GLUCOSE_UNIT_MG_DL")] MgDl = 1, + /// + /// Glucose unit is mmol/l. + /// + [pbr::OriginalName("GLUCOSE_UNIT_MMOL_L")] MmolL = 2, + } + + /// + /// The measurement unit defined in the user's account settings. + /// + public enum HeightUnit { + /// + /// Height unit is not specified. + /// + [pbr::OriginalName("HEIGHT_UNIT_UNSPECIFIED")] Unspecified = 0, + /// + /// Height unit is inches. + /// + [pbr::OriginalName("HEIGHT_UNIT_INCHES")] Inches = 1, + /// + /// Height unit is cm. + /// + [pbr::OriginalName("HEIGHT_UNIT_CENTIMETERS")] Centimeters = 2, + } + + /// + /// The stride length type defined in the user's account settings. Specifies if + /// the user's stride length is determined automatically (default) or manually + /// as defined in the user's account settings. + /// + public enum StrideLengthType { + /// + /// Stride length type is not specified. + /// + [pbr::OriginalName("STRIDE_LENGTH_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Stride length type is computed based on the user's gender and height. + /// + [pbr::OriginalName("STRIDE_LENGTH_TYPE_DEFAULT")] Default = 1, + /// + /// Stride length type is manually set by the user. + /// + [pbr::OriginalName("STRIDE_LENGTH_TYPE_MANUAL")] Manual = 2, + /// + /// Stride length type is determined automatically. + /// + [pbr::OriginalName("STRIDE_LENGTH_TYPE_AUTO")] Auto = 3, + } + + /// + /// The swim unit defined in the user's account settings. + /// + public enum SwimUnit { + /// + /// Swim unit is not specified. + /// + [pbr::OriginalName("SWIM_UNIT_UNSPECIFIED")] Unspecified = 0, + /// + /// Swim unit is meters. + /// + [pbr::OriginalName("SWIM_UNIT_METERS")] Meters = 1, + /// + /// Swim unit is yards. + /// + [pbr::OriginalName("SWIM_UNIT_YARDS")] Yards = 2, + } + + /// + /// The measurement unit defined in the user's account settings. + /// + public enum TemperatureUnit { + /// + /// Temperature unit is not specified. + /// + [pbr::OriginalName("TEMPERATURE_UNIT_UNSPECIFIED")] Unspecified = 0, + /// + /// Temperature unit is Celsius. + /// + [pbr::OriginalName("TEMPERATURE_UNIT_CELSIUS")] Celsius = 1, + /// + /// Temperature unit is Fahrenheit. + /// + [pbr::OriginalName("TEMPERATURE_UNIT_FAHRENHEIT")] Fahrenheit = 2, + } + + /// + /// The measurement unit defined in the user's account settings. + /// + public enum WeightUnit { + /// + /// Weight unit is not specified. + /// + [pbr::OriginalName("WEIGHT_UNIT_UNSPECIFIED")] Unspecified = 0, + /// + /// Weight unit is pounds. + /// + [pbr::OriginalName("WEIGHT_UNIT_POUNDS")] Pounds = 1, + /// + /// Weight unit is stones. + /// + [pbr::OriginalName("WEIGHT_UNIT_STONE")] Stone = 2, + /// + /// Weight unit is kilograms. + /// + [pbr::OriginalName("WEIGHT_UNIT_KILOGRAMS")] Kilograms = 3, + } + + /// + /// The water measurement unit defined in the user's account settings. + /// + public enum WaterUnit { + /// + /// Water unit is not specified. + /// + [pbr::OriginalName("WATER_UNIT_UNSPECIFIED")] Unspecified = 0, + /// + /// Water unit is milliliters. + /// + [pbr::OriginalName("WATER_UNIT_ML")] Ml = 1, + /// + /// Water unit is fluid ounces. + /// + [pbr::OriginalName("WATER_UNIT_FL_OZ")] FlOz = 2, + /// + /// Water unit is cups. + /// + [pbr::OriginalName("WATER_UNIT_CUP")] Cup = 3, + } + + } + #endregion + + } + + /// + /// Represents details about the Google user's identity. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Identity : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Identity()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.HealthProfileReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Identity() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Identity(Identity other) : this() { + name_ = other.name_; + legacyUserId_ = other.legacyUserId_; + healthUserId_ = other.healthUserId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Identity Clone() { + return new Identity(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Identifier. The resource name of this Identity resource. + /// Format: `users/me/identity` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "legacy_user_id" field. + public const int LegacyUserIdFieldNumber = 2; + private string legacyUserId_ = ""; + /// + /// Output only. The legacy Fitbit User identifier. This is the Fitbit ID used + /// in the legacy Fitbit APIs (v1-v3). It can be referenced by clients + /// migrating from the legacy Fitbit APIs to map their existing identifiers to + /// the new Google user ID. + /// + /// It **must not** be used for any other purpose. It is not of any use for new + /// clients using only the Google Health APIs. + /// + /// Valid values are strings of 1-63 characters, and valid characters are + /// lowercase and uppercase letters, numbers, and hyphens. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LegacyUserId { + get { return legacyUserId_; } + set { + legacyUserId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "health_user_id" field. + public const int HealthUserIdFieldNumber = 3; + private string healthUserId_ = ""; + /// + /// Output only. The Google User Identifier in the Google Health APIs. It + /// matches the + /// `{user}` resource ID segment in the resource name paths, e.g. + /// `users/{user}/dataTypes/steps`. + /// + /// Valid values are strings of 1-63 characters, and valid characters are + /// lowercase and uppercase letters, numbers, and hyphens. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HealthUserId { + get { return healthUserId_; } + set { + healthUserId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Identity); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Identity other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (LegacyUserId != other.LegacyUserId) return false; + if (HealthUserId != other.HealthUserId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (LegacyUserId.Length != 0) hash ^= LegacyUserId.GetHashCode(); + if (HealthUserId.Length != 0) hash ^= HealthUserId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (LegacyUserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(LegacyUserId); + } + if (HealthUserId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(HealthUserId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (LegacyUserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(LegacyUserId); + } + if (HealthUserId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(HealthUserId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (LegacyUserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LegacyUserId); + } + if (HealthUserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HealthUserId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Identity other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.LegacyUserId.Length != 0) { + LegacyUserId = other.LegacyUserId; + } + if (other.HealthUserId.Length != 0) { + HealthUserId = other.HealthUserId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + LegacyUserId = input.ReadString(); + break; + } + case 26: { + HealthUserId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + LegacyUserId = input.ReadString(); + break; + } + case 26: { + HealthUserId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for getting Profile details. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.HealthProfileReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetProfileRequest(GetProfileRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetProfileRequest Clone() { + return new GetProfileRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The name of the Profile. + /// Format: `users/me/profile`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetProfileRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for updating Profile details. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.HealthProfileReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateProfileRequest(UpdateProfileRequest other) : this() { + profile_ = other.profile_ != null ? other.profile_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateProfileRequest Clone() { + return new UpdateProfileRequest(this); + } + + /// Field number for the "profile" field. + public const int ProfileFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.Profile profile_; + /// + /// Required. Profile details. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Profile Profile { + get { return profile_; } + set { + profile_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Optional. The list of fields to be updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Profile, other.Profile)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (profile_ != null) hash ^= Profile.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (profile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Profile); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (profile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Profile); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (profile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Profile); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateProfileRequest other) { + if (other == null) { + return; + } + if (other.profile_ != null) { + if (profile_ == null) { + Profile = new global::Google.DevicesAndServices.Health.V4.Profile(); + } + Profile.MergeFrom(other.Profile); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (profile_ == null) { + Profile = new global::Google.DevicesAndServices.Health.V4.Profile(); + } + input.ReadMessage(Profile); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (profile_ == null) { + Profile = new global::Google.DevicesAndServices.Health.V4.Profile(); + } + input.ReadMessage(Profile); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for getting Settings details. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetSettingsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSettingsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.HealthProfileReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSettingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSettingsRequest(GetSettingsRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSettingsRequest Clone() { + return new GetSettingsRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The name of the Settings. + /// Format: `users/me/settings`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetSettingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSettingsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetSettingsRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for updating Settings details. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateSettingsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateSettingsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.HealthProfileReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateSettingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateSettingsRequest(UpdateSettingsRequest other) : this() { + settings_ = other.settings_ != null ? other.settings_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateSettingsRequest Clone() { + return new UpdateSettingsRequest(this); + } + + /// Field number for the "settings" field. + public const int SettingsFieldNumber = 1; + private global::Google.DevicesAndServices.Health.V4.Settings settings_; + /// + /// Required. Settings details + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.DevicesAndServices.Health.V4.Settings Settings { + get { return settings_; } + set { + settings_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Optional. The list of fields to be updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateSettingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateSettingsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Settings, other.Settings)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (settings_ != null) hash ^= Settings.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (settings_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Settings); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (settings_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Settings); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (settings_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Settings); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateSettingsRequest other) { + if (other == null) { + return; + } + if (other.settings_ != null) { + if (settings_ == null) { + Settings = new global::Google.DevicesAndServices.Health.V4.Settings(); + } + Settings.MergeFrom(other.Settings); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (settings_ == null) { + Settings = new global::Google.DevicesAndServices.Health.V4.Settings(); + } + input.ReadMessage(Settings); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (settings_ == null) { + Settings = new global::Google.DevicesAndServices.Health.V4.Settings(); + } + input.ReadMessage(Settings); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for getting Identity details. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetIdentityRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetIdentityRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.DevicesAndServices.Health.V4.HealthProfileReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetIdentityRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetIdentityRequest(GetIdentityRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetIdentityRequest Clone() { + return new GetIdentityRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name of the Identity. + /// Format: `users/me/identity` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetIdentityRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetIdentityRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetIdentityRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfileGrpc.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfileGrpc.g.cs new file mode 100644 index 000000000000..5610c20b86b9 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfileGrpc.g.cs @@ -0,0 +1,514 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devicesandservices/health/v4/health_profile.proto +// +// Original file comments: +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#pragma warning disable 0414, 1591, 8981, 0612 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Google.DevicesAndServices.Health.V4 { + /// + /// Health Profile Service + /// + public static partial class HealthProfileService + { + static readonly string __ServiceName = "google.devicesandservices.health.v4.HealthProfileService"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_GetProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.GetProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_Profile = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.Profile.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_UpdateProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.UpdateProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_GetSettingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.GetSettingsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_Settings = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.Settings.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_UpdateSettingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.UpdateSettingsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_GetIdentityRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.GetIdentityRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_devicesandservices_health_v4_Identity = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.DevicesAndServices.Health.V4.Identity.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetProfile", + __Marshaller_google_devicesandservices_health_v4_GetProfileRequest, + __Marshaller_google_devicesandservices_health_v4_Profile); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateProfile", + __Marshaller_google_devicesandservices_health_v4_UpdateProfileRequest, + __Marshaller_google_devicesandservices_health_v4_Profile); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetSettings = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetSettings", + __Marshaller_google_devicesandservices_health_v4_GetSettingsRequest, + __Marshaller_google_devicesandservices_health_v4_Settings); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateSettings = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateSettings", + __Marshaller_google_devicesandservices_health_v4_UpdateSettingsRequest, + __Marshaller_google_devicesandservices_health_v4_Settings); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetIdentity = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetIdentity", + __Marshaller_google_devicesandservices_health_v4_GetIdentityRequest, + __Marshaller_google_devicesandservices_health_v4_Identity); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Google.DevicesAndServices.Health.V4.HealthProfileReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of HealthProfileService + [grpc::BindServiceMethod(typeof(HealthProfileService), "BindService")] + public abstract partial class HealthProfileServiceBase + { + /// + /// Returns user Profile details. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetProfile(global::Google.DevicesAndServices.Health.V4.GetProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates the user's profile details. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateProfile(global::Google.DevicesAndServices.Health.V4.UpdateProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Returns user settings details. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetSettings(global::Google.DevicesAndServices.Health.V4.GetSettingsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates the user's settings details. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateSettings(global::Google.DevicesAndServices.Health.V4.UpdateSettingsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetIdentity(global::Google.DevicesAndServices.Health.V4.GetIdentityRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for HealthProfileService + public partial class HealthProfileServiceClient : grpc::ClientBase + { + /// Creates a new client for HealthProfileService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public HealthProfileServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for HealthProfileService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public HealthProfileServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected HealthProfileServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected HealthProfileServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Returns user Profile details. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.Profile GetProfile(global::Google.DevicesAndServices.Health.V4.GetProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns user Profile details. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.Profile GetProfile(global::Google.DevicesAndServices.Health.V4.GetProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetProfile, null, options, request); + } + /// + /// Returns user Profile details. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetProfileAsync(global::Google.DevicesAndServices.Health.V4.GetProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns user Profile details. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetProfileAsync(global::Google.DevicesAndServices.Health.V4.GetProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetProfile, null, options, request); + } + /// + /// Updates the user's profile details. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.Profile UpdateProfile(global::Google.DevicesAndServices.Health.V4.UpdateProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates the user's profile details. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.Profile UpdateProfile(global::Google.DevicesAndServices.Health.V4.UpdateProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateProfile, null, options, request); + } + /// + /// Updates the user's profile details. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateProfileAsync(global::Google.DevicesAndServices.Health.V4.UpdateProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates the user's profile details. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateProfileAsync(global::Google.DevicesAndServices.Health.V4.UpdateProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateProfile, null, options, request); + } + /// + /// Returns user settings details. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.Settings GetSettings(global::Google.DevicesAndServices.Health.V4.GetSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetSettings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns user settings details. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.Settings GetSettings(global::Google.DevicesAndServices.Health.V4.GetSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetSettings, null, options, request); + } + /// + /// Returns user settings details. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetSettingsAsync(global::Google.DevicesAndServices.Health.V4.GetSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetSettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns user settings details. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetSettingsAsync(global::Google.DevicesAndServices.Health.V4.GetSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetSettings, null, options, request); + } + /// + /// Updates the user's settings details. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.Settings UpdateSettings(global::Google.DevicesAndServices.Health.V4.UpdateSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateSettings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates the user's settings details. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.Settings UpdateSettings(global::Google.DevicesAndServices.Health.V4.UpdateSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateSettings, null, options, request); + } + /// + /// Updates the user's settings details. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateSettingsAsync(global::Google.DevicesAndServices.Health.V4.UpdateSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateSettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates the user's settings details. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateSettingsAsync(global::Google.DevicesAndServices.Health.V4.UpdateSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateSettings, null, options, request); + } + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.Identity GetIdentity(global::Google.DevicesAndServices.Health.V4.GetIdentityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetIdentity(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.DevicesAndServices.Health.V4.Identity GetIdentity(global::Google.DevicesAndServices.Health.V4.GetIdentityRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetIdentity, null, options, request); + } + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetIdentityAsync(global::Google.DevicesAndServices.Health.V4.GetIdentityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetIdentityAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetIdentityAsync(global::Google.DevicesAndServices.Health.V4.GetIdentityRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetIdentity, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override HealthProfileServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new HealthProfileServiceClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(HealthProfileServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_GetProfile, serviceImpl.GetProfile) + .AddMethod(__Method_UpdateProfile, serviceImpl.UpdateProfile) + .AddMethod(__Method_GetSettings, serviceImpl.GetSettings) + .AddMethod(__Method_UpdateSettings, serviceImpl.UpdateSettings) + .AddMethod(__Method_GetIdentity, serviceImpl.GetIdentity).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, HealthProfileServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_GetProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetProfile)); + serviceBinder.AddMethod(__Method_UpdateProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateProfile)); + serviceBinder.AddMethod(__Method_GetSettings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetSettings)); + serviceBinder.AddMethod(__Method_UpdateSettings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateSettings)); + serviceBinder.AddMethod(__Method_GetIdentity, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetIdentity)); + } + + } +} +#endregion diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfileResourceNames.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfileResourceNames.g.cs new file mode 100644 index 000000000000..47d23c37a48f --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfileResourceNames.g.cs @@ -0,0 +1,712 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gax = Google.Api.Gax; +using gdhv = Google.DevicesAndServices.Health.V4; +using sys = System; + +namespace Google.DevicesAndServices.Health.V4 +{ + /// Resource name for the Profile resource. + public sealed partial class ProfileName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// A resource name with pattern users/{user}/profile. + User = 1, + } + + private static gax::PathTemplate s_user = new gax::PathTemplate("users/{user}/profile"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided . + /// + public static ProfileName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new ProfileName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// Creates a with the pattern users/{user}/profile. + /// The User ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static ProfileName FromUser(string userId) => + new ProfileName(ResourceNameType.User, userId: gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// users/{user}/profile. + /// + /// The User ID. Must not be null or empty. + /// + /// The string representation of this with pattern users/{user}/profile. + /// + public static string Format(string userId) => FormatUser(userId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// users/{user}/profile. + /// + /// The User ID. Must not be null or empty. + /// + /// The string representation of this with pattern users/{user}/profile. + /// + public static string FormatUser(string userId) => + s_user.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// users/{user}/profile + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static ProfileName Parse(string profileName) => Parse(profileName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing an + /// unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// users/{user}/profile + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static ProfileName Parse(string profileName, bool allowUnparsed) => + TryParse(profileName, allowUnparsed, out ProfileName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// users/{user}/profile + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string profileName, out ProfileName result) => TryParse(profileName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// users/{user}/profile + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string profileName, bool allowUnparsed, out ProfileName result) + { + gax::GaxPreconditions.CheckNotNull(profileName, nameof(profileName)); + gax::TemplatedResourceName resourceName; + if (s_user.TryParseName(profileName, out resourceName)) + { + result = FromUser(resourceName[0]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(profileName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private ProfileName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string userId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + UserId = userId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// users/{user}/profile + /// + /// The User ID. Must not be null or empty. + public ProfileName(string userId) : this(ResourceNameType.User, userId: gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The User ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string UserId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.User: return s_user.Expand(UserId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as ProfileName); + + /// + public bool Equals(ProfileName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(ProfileName a, ProfileName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(ProfileName a, ProfileName b) => !(a == b); + } + + /// Resource name for the Settings resource. + public sealed partial class SettingsName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// A resource name with pattern users/{user}/settings. + User = 1, + } + + private static gax::PathTemplate s_user = new gax::PathTemplate("users/{user}/settings"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static SettingsName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new SettingsName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// Creates a with the pattern users/{user}/settings. + /// The User ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static SettingsName FromUser(string userId) => + new SettingsName(ResourceNameType.User, userId: gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// users/{user}/settings. + /// + /// The User ID. Must not be null or empty. + /// + /// The string representation of this with pattern users/{user}/settings. + /// + public static string Format(string userId) => FormatUser(userId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// users/{user}/settings. + /// + /// The User ID. Must not be null or empty. + /// + /// The string representation of this with pattern users/{user}/settings. + /// + public static string FormatUser(string userId) => + s_user.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// users/{user}/settings + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static SettingsName Parse(string settingsName) => Parse(settingsName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing an + /// unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// users/{user}/settings + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static SettingsName Parse(string settingsName, bool allowUnparsed) => + TryParse(settingsName, allowUnparsed, out SettingsName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// users/{user}/settings + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string settingsName, out SettingsName result) => TryParse(settingsName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// users/{user}/settings + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string settingsName, bool allowUnparsed, out SettingsName result) + { + gax::GaxPreconditions.CheckNotNull(settingsName, nameof(settingsName)); + gax::TemplatedResourceName resourceName; + if (s_user.TryParseName(settingsName, out resourceName)) + { + result = FromUser(resourceName[0]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(settingsName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private SettingsName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string userId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + UserId = userId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// users/{user}/settings + /// + /// The User ID. Must not be null or empty. + public SettingsName(string userId) : this(ResourceNameType.User, userId: gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The User ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string UserId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.User: return s_user.Expand(UserId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as SettingsName); + + /// + public bool Equals(SettingsName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(SettingsName a, SettingsName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(SettingsName a, SettingsName b) => !(a == b); + } + + /// Resource name for the Identity resource. + public sealed partial class IdentityName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// A resource name with pattern users/{user}/identity. + User = 1, + } + + private static gax::PathTemplate s_user = new gax::PathTemplate("users/{user}/identity"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static IdentityName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new IdentityName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// Creates a with the pattern users/{user}/identity. + /// The User ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static IdentityName FromUser(string userId) => + new IdentityName(ResourceNameType.User, userId: gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// users/{user}/identity. + /// + /// The User ID. Must not be null or empty. + /// + /// The string representation of this with pattern users/{user}/identity. + /// + public static string Format(string userId) => FormatUser(userId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// users/{user}/identity. + /// + /// The User ID. Must not be null or empty. + /// + /// The string representation of this with pattern users/{user}/identity. + /// + public static string FormatUser(string userId) => + s_user.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// users/{user}/identity + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static IdentityName Parse(string identityName) => Parse(identityName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing an + /// unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// users/{user}/identity + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static IdentityName Parse(string identityName, bool allowUnparsed) => + TryParse(identityName, allowUnparsed, out IdentityName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// users/{user}/identity + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string identityName, out IdentityName result) => TryParse(identityName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// users/{user}/identity + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string identityName, bool allowUnparsed, out IdentityName result) + { + gax::GaxPreconditions.CheckNotNull(identityName, nameof(identityName)); + gax::TemplatedResourceName resourceName; + if (s_user.TryParseName(identityName, out resourceName)) + { + result = FromUser(resourceName[0]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(identityName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private IdentityName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string userId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + UserId = userId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// users/{user}/identity + /// + /// The User ID. Must not be null or empty. + public IdentityName(string userId) : this(ResourceNameType.User, userId: gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The User ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string UserId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.User: return s_user.Expand(UserId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as IdentityName); + + /// + public bool Equals(IdentityName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(IdentityName a, IdentityName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(IdentityName a, IdentityName b) => !(a == b); + } + + public partial class Profile + { + /// + /// -typed view over the resource name property. + /// + public gdhv::ProfileName ProfileName + { + get => string.IsNullOrEmpty(Name) ? null : gdhv::ProfileName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class Settings + { + /// + /// -typed view over the resource name property. + /// + public gdhv::SettingsName SettingsName + { + get => string.IsNullOrEmpty(Name) ? null : gdhv::SettingsName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class Identity + { + /// + /// -typed view over the resource name property. + /// + public gdhv::IdentityName IdentityName + { + get => string.IsNullOrEmpty(Name) ? null : gdhv::IdentityName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class GetProfileRequest + { + /// + /// -typed view over the resource name property. + /// + public gdhv::ProfileName ProfileName + { + get => string.IsNullOrEmpty(Name) ? null : gdhv::ProfileName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class GetSettingsRequest + { + /// + /// -typed view over the resource name property. + /// + public gdhv::SettingsName SettingsName + { + get => string.IsNullOrEmpty(Name) ? null : gdhv::SettingsName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class GetIdentityRequest + { + /// + /// -typed view over the resource name property. + /// + public gdhv::IdentityName IdentityName + { + get => string.IsNullOrEmpty(Name) ? null : gdhv::IdentityName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfileServiceClient.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfileServiceClient.g.cs new file mode 100644 index 000000000000..0c77db2dce61 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/HealthProfileServiceClient.g.cs @@ -0,0 +1,984 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gax = Google.Api.Gax; +using gaxgrpc = Google.Api.Gax.Grpc; +using grpccore = Grpc.Core; +using grpcinter = Grpc.Core.Interceptors; +using mel = Microsoft.Extensions.Logging; +using proto = Google.Protobuf; +using scg = System.Collections.Generic; +using sco = System.Collections.ObjectModel; +using st = System.Threading; +using stt = System.Threading.Tasks; +using sys = System; +using wkt = Google.Protobuf.WellKnownTypes; + +namespace Google.DevicesAndServices.Health.V4 +{ + /// Settings for instances. + public sealed partial class HealthProfileServiceSettings : gaxgrpc::ServiceSettingsBase + { + /// Get a new instance of the default . + /// A new instance of the default . + public static HealthProfileServiceSettings GetDefault() => new HealthProfileServiceSettings(); + + /// Constructs a new object with default settings. + public HealthProfileServiceSettings() + { + } + + private HealthProfileServiceSettings(HealthProfileServiceSettings existing) : base(existing) + { + gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); + GetProfileSettings = existing.GetProfileSettings; + UpdateProfileSettings = existing.UpdateProfileSettings; + GetSettingsSettings = existing.GetSettingsSettings; + UpdateSettingsSettings = existing.UpdateSettingsSettings; + GetIdentitySettings = existing.GetIdentitySettings; + OnCopy(existing); + } + + partial void OnCopy(HealthProfileServiceSettings existing); + + /// + /// for synchronous and asynchronous calls to + /// HealthProfileServiceClient.GetProfile and HealthProfileServiceClient.GetProfileAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetProfileSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// HealthProfileServiceClient.UpdateProfile and HealthProfileServiceClient.UpdateProfileAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateProfileSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// HealthProfileServiceClient.GetSettings and HealthProfileServiceClient.GetSettingsAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetSettingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// HealthProfileServiceClient.UpdateSettings and HealthProfileServiceClient.UpdateSettingsAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateSettingsSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// HealthProfileServiceClient.GetIdentity and HealthProfileServiceClient.GetIdentityAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings GetIdentitySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// Creates a deep clone of this object, with all the same property values. + /// A deep clone of this object. + public HealthProfileServiceSettings Clone() => new HealthProfileServiceSettings(this); + } + + /// + /// Builder class for to provide simple configuration of credentials, + /// endpoint etc. + /// + public sealed partial class HealthProfileServiceClientBuilder : gaxgrpc::ClientBuilderBase + { + /// The settings to use for RPCs, or null for the default settings. + public HealthProfileServiceSettings Settings { get; set; } + + /// Creates a new builder with default settings. + public HealthProfileServiceClientBuilder() : base(HealthProfileServiceClient.ServiceMetadata) + { + } + + partial void InterceptBuild(ref HealthProfileServiceClient client); + + partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); + + /// Builds the resulting client. + public override HealthProfileServiceClient Build() + { + HealthProfileServiceClient client = null; + InterceptBuild(ref client); + return client ?? BuildImpl(); + } + + /// Builds the resulting client asynchronously. + public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) + { + stt::Task task = null; + InterceptBuildAsync(cancellationToken, ref task); + return task ?? BuildAsyncImpl(cancellationToken); + } + + private HealthProfileServiceClient BuildImpl() + { + Validate(); + grpccore::CallInvoker callInvoker = CreateCallInvoker(); + return HealthProfileServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) + { + Validate(); + grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); + return HealthProfileServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + /// Returns the channel pool to use when no other options are specified. + protected override gaxgrpc::ChannelPool GetChannelPool() => HealthProfileServiceClient.ChannelPool; + } + + /// HealthProfileService client wrapper, for convenient use. + /// + /// Health Profile Service + /// + public abstract partial class HealthProfileServiceClient + { + /// + /// The default endpoint for the HealthProfileService service, which is a host of "health.googleapis.com" and a + /// port of 443. + /// + public static string DefaultEndpoint { get; } = "health.googleapis.com:443"; + + /// The default HealthProfileService scopes. + /// The default HealthProfileService scopes are: + public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] { }); + + /// The service metadata associated with this client type. + public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(HealthProfileService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc | gax::ApiTransports.Rest, PackageApiMetadata.ApiMetadata); + + internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); + + /// + /// Asynchronously creates a using the default credentials, endpoint + /// and settings. To specify custom credentials or other settings, use + /// . + /// + /// + /// The to use while creating the client. + /// + /// The task representing the created . + public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => + new HealthProfileServiceClientBuilder().BuildAsync(cancellationToken); + + /// + /// Synchronously creates a using the default credentials, endpoint and + /// settings. To specify custom credentials or other settings, use + /// . + /// + /// The created . + public static HealthProfileServiceClient Create() => new HealthProfileServiceClientBuilder().Build(); + + /// + /// Creates a which uses the specified call invoker for remote + /// operations. + /// + /// + /// The for remote operations. Must not be null. + /// + /// Optional . + /// Optional . + /// The created . + internal static HealthProfileServiceClient Create(grpccore::CallInvoker callInvoker, HealthProfileServiceSettings settings = null, mel::ILogger logger = null) + { + gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); + grpcinter::Interceptor interceptor = settings?.Interceptor; + if (interceptor != null) + { + callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); + } + HealthProfileService.HealthProfileServiceClient grpcClient = new HealthProfileService.HealthProfileServiceClient(callInvoker); + return new HealthProfileServiceClientImpl(grpcClient, settings, logger); + } + + /// + /// Shuts down any channels automatically created by and + /// . Channels which weren't automatically created are not + /// affected. + /// + /// + /// After calling this method, further calls to and + /// will create new channels, which could in turn be shut down + /// by another call to this method. + /// + /// A task representing the asynchronous shutdown operation. + public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); + + /// The underlying gRPC HealthProfileService client + public virtual HealthProfileService.HealthProfileServiceClient GrpcClient => throw new sys::NotImplementedException(); + + /// + /// Returns user Profile details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Profile GetProfile(GetProfileRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns user Profile details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetProfileAsync(GetProfileRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns user Profile details. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetProfileAsync(GetProfileRequest request, st::CancellationToken cancellationToken) => + GetProfileAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns user Profile details. + /// + /// + /// Required. The name of the Profile. + /// Format: `users/me/profile`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Profile GetProfile(string name, gaxgrpc::CallSettings callSettings = null) => + GetProfile(new GetProfileRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Returns user Profile details. + /// + /// + /// Required. The name of the Profile. + /// Format: `users/me/profile`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetProfileAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetProfileAsync(new GetProfileRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Returns user Profile details. + /// + /// + /// Required. The name of the Profile. + /// Format: `users/me/profile`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetProfileAsync(string name, st::CancellationToken cancellationToken) => + GetProfileAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns user Profile details. + /// + /// + /// Required. The name of the Profile. + /// Format: `users/me/profile`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Profile GetProfile(ProfileName name, gaxgrpc::CallSettings callSettings = null) => + GetProfile(new GetProfileRequest + { + ProfileName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns user Profile details. + /// + /// + /// Required. The name of the Profile. + /// Format: `users/me/profile`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetProfileAsync(ProfileName name, gaxgrpc::CallSettings callSettings = null) => + GetProfileAsync(new GetProfileRequest + { + ProfileName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns user Profile details. + /// + /// + /// Required. The name of the Profile. + /// Format: `users/me/profile`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetProfileAsync(ProfileName name, st::CancellationToken cancellationToken) => + GetProfileAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates the user's profile details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Profile UpdateProfile(UpdateProfileRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates the user's profile details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateProfileAsync(UpdateProfileRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates the user's profile details. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateProfileAsync(UpdateProfileRequest request, st::CancellationToken cancellationToken) => + UpdateProfileAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates the user's profile details. + /// + /// + /// Required. Profile details. + /// + /// + /// Optional. The list of fields to be updated. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Profile UpdateProfile(Profile profile, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateProfile(new UpdateProfileRequest + { + Profile = gax::GaxPreconditions.CheckNotNull(profile, nameof(profile)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates the user's profile details. + /// + /// + /// Required. Profile details. + /// + /// + /// Optional. The list of fields to be updated. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateProfileAsync(Profile profile, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateProfileAsync(new UpdateProfileRequest + { + Profile = gax::GaxPreconditions.CheckNotNull(profile, nameof(profile)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates the user's profile details. + /// + /// + /// Required. Profile details. + /// + /// + /// Optional. The list of fields to be updated. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateProfileAsync(Profile profile, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateProfileAsync(profile, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns user settings details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Settings GetSettings(GetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns user settings details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetSettingsAsync(GetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns user settings details. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetSettingsAsync(GetSettingsRequest request, st::CancellationToken cancellationToken) => + GetSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns user settings details. + /// + /// + /// Required. The name of the Settings. + /// Format: `users/me/settings`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Settings GetSettings(string name, gaxgrpc::CallSettings callSettings = null) => + GetSettings(new GetSettingsRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Returns user settings details. + /// + /// + /// Required. The name of the Settings. + /// Format: `users/me/settings`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetSettingsAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetSettingsAsync(new GetSettingsRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Returns user settings details. + /// + /// + /// Required. The name of the Settings. + /// Format: `users/me/settings`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetSettingsAsync(string name, st::CancellationToken cancellationToken) => + GetSettingsAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns user settings details. + /// + /// + /// Required. The name of the Settings. + /// Format: `users/me/settings`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Settings GetSettings(SettingsName name, gaxgrpc::CallSettings callSettings = null) => + GetSettings(new GetSettingsRequest + { + SettingsName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns user settings details. + /// + /// + /// Required. The name of the Settings. + /// Format: `users/me/settings`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetSettingsAsync(SettingsName name, gaxgrpc::CallSettings callSettings = null) => + GetSettingsAsync(new GetSettingsRequest + { + SettingsName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns user settings details. + /// + /// + /// Required. The name of the Settings. + /// Format: `users/me/settings`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetSettingsAsync(SettingsName name, st::CancellationToken cancellationToken) => + GetSettingsAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates the user's settings details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Settings UpdateSettings(UpdateSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates the user's settings details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateSettingsAsync(UpdateSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates the user's settings details. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateSettingsAsync(UpdateSettingsRequest request, st::CancellationToken cancellationToken) => + UpdateSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates the user's settings details. + /// + /// + /// Required. Settings details + /// + /// + /// Optional. The list of fields to be updated. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Settings UpdateSettings(Settings settings, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateSettings(new UpdateSettingsRequest + { + Settings = gax::GaxPreconditions.CheckNotNull(settings, nameof(settings)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates the user's settings details. + /// + /// + /// Required. Settings details + /// + /// + /// Optional. The list of fields to be updated. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateSettingsAsync(Settings settings, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateSettingsAsync(new UpdateSettingsRequest + { + Settings = gax::GaxPreconditions.CheckNotNull(settings, nameof(settings)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates the user's settings details. + /// + /// + /// Required. Settings details + /// + /// + /// Optional. The list of fields to be updated. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateSettingsAsync(Settings settings, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateSettingsAsync(settings, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Identity GetIdentity(GetIdentityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetIdentityAsync(GetIdentityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetIdentityAsync(GetIdentityRequest request, st::CancellationToken cancellationToken) => + GetIdentityAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// + /// Required. The resource name of the Identity. + /// Format: `users/me/identity` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Identity GetIdentity(string name, gaxgrpc::CallSettings callSettings = null) => + GetIdentity(new GetIdentityRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// + /// Required. The resource name of the Identity. + /// Format: `users/me/identity` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetIdentityAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetIdentityAsync(new GetIdentityRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// + /// Required. The resource name of the Identity. + /// Format: `users/me/identity` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetIdentityAsync(string name, st::CancellationToken cancellationToken) => + GetIdentityAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// + /// Required. The resource name of the Identity. + /// Format: `users/me/identity` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Identity GetIdentity(IdentityName name, gaxgrpc::CallSettings callSettings = null) => + GetIdentity(new GetIdentityRequest + { + IdentityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// + /// Required. The resource name of the Identity. + /// Format: `users/me/identity` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetIdentityAsync(IdentityName name, gaxgrpc::CallSettings callSettings = null) => + GetIdentityAsync(new GetIdentityRequest + { + IdentityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// + /// Required. The resource name of the Identity. + /// Format: `users/me/identity` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetIdentityAsync(IdentityName name, st::CancellationToken cancellationToken) => + GetIdentityAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + } + + /// HealthProfileService client wrapper implementation, for convenient use. + /// + /// Health Profile Service + /// + public sealed partial class HealthProfileServiceClientImpl : HealthProfileServiceClient + { + private readonly gaxgrpc::ApiCall _callGetProfile; + + private readonly gaxgrpc::ApiCall _callUpdateProfile; + + private readonly gaxgrpc::ApiCall _callGetSettings; + + private readonly gaxgrpc::ApiCall _callUpdateSettings; + + private readonly gaxgrpc::ApiCall _callGetIdentity; + + /// + /// Constructs a client wrapper for the HealthProfileService service, with the specified gRPC client and + /// settings. + /// + /// The underlying gRPC client. + /// The base used within this client. + /// Optional to use within this client. + public HealthProfileServiceClientImpl(HealthProfileService.HealthProfileServiceClient grpcClient, HealthProfileServiceSettings settings, mel::ILogger logger) + { + GrpcClient = grpcClient; + HealthProfileServiceSettings effectiveSettings = settings ?? HealthProfileServiceSettings.GetDefault(); + gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(new gaxgrpc::ClientHelper.Options + { + Settings = effectiveSettings, + Logger = logger, + }); + _callGetProfile = clientHelper.BuildApiCall("GetProfile", grpcClient.GetProfileAsync, grpcClient.GetProfile, effectiveSettings.GetProfileSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetProfile); + Modify_GetProfileApiCall(ref _callGetProfile); + _callUpdateProfile = clientHelper.BuildApiCall("UpdateProfile", grpcClient.UpdateProfileAsync, grpcClient.UpdateProfile, effectiveSettings.UpdateProfileSettings).WithGoogleRequestParam("profile.name", request => request.Profile?.Name); + Modify_ApiCall(ref _callUpdateProfile); + Modify_UpdateProfileApiCall(ref _callUpdateProfile); + _callGetSettings = clientHelper.BuildApiCall("GetSettings", grpcClient.GetSettingsAsync, grpcClient.GetSettings, effectiveSettings.GetSettingsSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetSettings); + Modify_GetSettingsApiCall(ref _callGetSettings); + _callUpdateSettings = clientHelper.BuildApiCall("UpdateSettings", grpcClient.UpdateSettingsAsync, grpcClient.UpdateSettings, effectiveSettings.UpdateSettingsSettings).WithGoogleRequestParam("settings.name", request => request.Settings?.Name); + Modify_ApiCall(ref _callUpdateSettings); + Modify_UpdateSettingsApiCall(ref _callUpdateSettings); + _callGetIdentity = clientHelper.BuildApiCall("GetIdentity", grpcClient.GetIdentityAsync, grpcClient.GetIdentity, effectiveSettings.GetIdentitySettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetIdentity); + Modify_GetIdentityApiCall(ref _callGetIdentity); + OnConstruction(grpcClient, effectiveSettings, clientHelper); + } + + partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; + + partial void Modify_GetProfileApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateProfileApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetSettingsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateSettingsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetIdentityApiCall(ref gaxgrpc::ApiCall call); + + partial void OnConstruction(HealthProfileService.HealthProfileServiceClient grpcClient, HealthProfileServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); + + /// The underlying gRPC HealthProfileService client + public override HealthProfileService.HealthProfileServiceClient GrpcClient { get; } + + partial void Modify_GetProfileRequest(ref GetProfileRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateProfileRequest(ref UpdateProfileRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetSettingsRequest(ref GetSettingsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateSettingsRequest(ref UpdateSettingsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetIdentityRequest(ref GetIdentityRequest request, ref gaxgrpc::CallSettings settings); + + /// + /// Returns user Profile details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Profile GetProfile(GetProfileRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetProfileRequest(ref request, ref callSettings); + return _callGetProfile.Sync(request, callSettings); + } + + /// + /// Returns user Profile details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetProfileAsync(GetProfileRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetProfileRequest(ref request, ref callSettings); + return _callGetProfile.Async(request, callSettings); + } + + /// + /// Updates the user's profile details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Profile UpdateProfile(UpdateProfileRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateProfileRequest(ref request, ref callSettings); + return _callUpdateProfile.Sync(request, callSettings); + } + + /// + /// Updates the user's profile details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task UpdateProfileAsync(UpdateProfileRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateProfileRequest(ref request, ref callSettings); + return _callUpdateProfile.Async(request, callSettings); + } + + /// + /// Returns user settings details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Settings GetSettings(GetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetSettingsRequest(ref request, ref callSettings); + return _callGetSettings.Sync(request, callSettings); + } + + /// + /// Returns user settings details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetSettingsAsync(GetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetSettingsRequest(ref request, ref callSettings); + return _callGetSettings.Async(request, callSettings); + } + + /// + /// Updates the user's settings details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Settings UpdateSettings(UpdateSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateSettingsRequest(ref request, ref callSettings); + return _callUpdateSettings.Sync(request, callSettings); + } + + /// + /// Updates the user's settings details. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task UpdateSettingsAsync(UpdateSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateSettingsRequest(ref request, ref callSettings); + return _callUpdateSettings.Async(request, callSettings); + } + + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Identity GetIdentity(GetIdentityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetIdentityRequest(ref request, ref callSettings); + return _callGetIdentity.Sync(request, callSettings); + } + + /// + /// Gets the user's identity. + /// + /// It includes the legacy Fitbit user ID and the Google user ID and it can be + /// used by migrating clients to map identifiers between the two systems. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetIdentityAsync(GetIdentityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetIdentityRequest(ref request, ref callSettings); + return _callGetIdentity.Async(request, callSettings); + } + } +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/PackageApiMetadata.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/PackageApiMetadata.g.cs new file mode 100644 index 000000000000..73dfe220ad4b --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/PackageApiMetadata.g.cs @@ -0,0 +1,42 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gaxgrpc = Google.Api.Gax.Grpc; +using gpr = Google.Protobuf.Reflection; +using lro = Google.LongRunning; +using scg = System.Collections.Generic; + +namespace Google.DevicesAndServices.Health.V4 +{ + /// Static class to provide common access to package-wide API metadata. + internal static class PackageApiMetadata + { + /// The for services in this package. + internal static gaxgrpc::ApiMetadata ApiMetadata { get; } = new gaxgrpc::ApiMetadata("Google.DevicesAndServices.Health.V4", GetFileDescriptors) + .WithRequestNumericEnumJsonEncoding(true); + + private static scg::IEnumerable GetFileDescriptors() + { + yield return DataCoordinatesReflection.Descriptor; + yield return DataModelReflection.Descriptor; + yield return DataPointsReflection.Descriptor; + yield return DataSourceReflection.Descriptor; + yield return HealthProfileReflection.Descriptor; + yield return lro::OperationsReflection.Descriptor; + } + } +} diff --git a/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/ServiceCollectionExtensions.g.cs b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/ServiceCollectionExtensions.g.cs new file mode 100644 index 000000000000..695771f043a2 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/Google.DevicesAndServices.Health.V4/ServiceCollectionExtensions.g.cs @@ -0,0 +1,102 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gaxgrpc = Google.Api.Gax.Grpc; +using gdhv = Google.DevicesAndServices.Health.V4; +using gpr = Google.Protobuf.Reflection; +using lro = Google.LongRunning; +using scg = System.Collections.Generic; +using sys = System; + +namespace Microsoft.Extensions.DependencyInjection +{ + /// Static class to provide extension methods to configure API clients. + public static partial class ServiceCollectionExtensions + { + /// + /// Adds a singleton to . + /// + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddDataPointsServiceClient(this IServiceCollection services, sys::Action action = null) => + services.AddSingleton(provider => + { + gdhv::DataPointsServiceClientBuilder builder = new gdhv::DataPointsServiceClientBuilder(); + action?.Invoke(builder); + return builder.Build(provider); + }); + + /// + /// Adds a singleton to . + /// + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddDataPointsServiceClient(this IServiceCollection services, sys::Action action) => + services.AddSingleton(provider => + { + gdhv::DataPointsServiceClientBuilder builder = new gdhv::DataPointsServiceClientBuilder(); + action?.Invoke(provider, builder); + return builder.Build(provider); + }); + + /// + /// Adds a singleton to . + /// + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddHealthProfileServiceClient(this IServiceCollection services, sys::Action action = null) => + services.AddSingleton(provider => + { + gdhv::HealthProfileServiceClientBuilder builder = new gdhv::HealthProfileServiceClientBuilder(); + action?.Invoke(builder); + return builder.Build(provider); + }); + + /// + /// Adds a singleton to . + /// + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddHealthProfileServiceClient(this IServiceCollection services, sys::Action action) => + services.AddSingleton(provider => + { + gdhv::HealthProfileServiceClientBuilder builder = new gdhv::HealthProfileServiceClientBuilder(); + action?.Invoke(provider, builder); + return builder.Build(provider); + }); + } +} diff --git a/apis/Google.DevicesAndServices.Health.V4/gapic_metadata.json b/apis/Google.DevicesAndServices.Health.V4/gapic_metadata.json new file mode 100644 index 000000000000..3449169ba675 --- /dev/null +++ b/apis/Google.DevicesAndServices.Health.V4/gapic_metadata.json @@ -0,0 +1,105 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "csharp", + "protoPackage": "google.devicesandservices.health.v4", + "libraryPackage": "Google.DevicesAndServices.Health.V4", + "services": { + "DataPointsService": { + "clients": { + "grpc": { + "libraryClient": "DataPointsServiceClient", + "rpcs": { + "BatchDeleteDataPoints": { + "methods": [ + "BatchDeleteDataPoints", + "BatchDeleteDataPointsAsync" + ] + }, + "CreateDataPoint": { + "methods": [ + "CreateDataPoint", + "CreateDataPointAsync" + ] + }, + "DailyRollUpDataPoints": { + "methods": [ + "DailyRollUpDataPoints", + "DailyRollUpDataPointsAsync" + ] + }, + "ExportExerciseTcx": { + "methods": [ + "ExportExerciseTcx", + "ExportExerciseTcxAsync" + ] + }, + "ListDataPoints": { + "methods": [ + "ListDataPoints", + "ListDataPointsAsync" + ] + }, + "ReconcileDataPoints": { + "methods": [ + "ReconcileDataPoints", + "ReconcileDataPointsAsync" + ] + }, + "RollUpDataPoints": { + "methods": [ + "RollUpDataPoints", + "RollUpDataPointsAsync" + ] + }, + "UpdateDataPoint": { + "methods": [ + "UpdateDataPoint", + "UpdateDataPointAsync" + ] + } + } + } + } + }, + "HealthProfileService": { + "clients": { + "grpc": { + "libraryClient": "HealthProfileServiceClient", + "rpcs": { + "GetIdentity": { + "methods": [ + "GetIdentity", + "GetIdentityAsync" + ] + }, + "GetProfile": { + "methods": [ + "GetProfile", + "GetProfileAsync" + ] + }, + "GetSettings": { + "methods": [ + "GetSettings", + "GetSettingsAsync" + ] + }, + "UpdateProfile": { + "methods": [ + "UpdateProfile", + "UpdateProfileAsync" + ] + }, + "UpdateSettings": { + "methods": [ + "UpdateSettings", + "UpdateSettingsAsync" + ] + } + } + } + } + } + } +} diff --git a/generator-input/pipeline-state.json b/generator-input/pipeline-state.json index 312a19b875c0..0734dbaebbea 100644 --- a/generator-input/pipeline-state.json +++ b/generator-input/pipeline-state.json @@ -5019,6 +5019,7 @@ "nextVersion": "1.0.0-beta01", "generationAutomationLevel": "AUTOMATION_LEVEL_AUTOMATIC", "releaseAutomationLevel": "AUTOMATION_LEVEL_BLOCKED", + "lastGeneratedCommit": "a787482b8b9653f5307f959ddb57c51870dda07f", "apiPaths": [ "google/devicesandservices/health/v4" ],