diff --git a/osgp/protocol-adapter-oslp/oslp/src/main/java/org/opensmartgridplatform/oslp/Oslp.java b/osgp/protocol-adapter-oslp/oslp/src/main/java/org/opensmartgridplatform/oslp/Oslp.java index 5cb6180ddf8..aa052b3840f 100644 --- a/osgp/protocol-adapter-oslp/oslp/src/main/java/org/opensmartgridplatform/oslp/Oslp.java +++ b/osgp/protocol-adapter-oslp/oslp/src/main/java/org/opensmartgridplatform/oslp/Oslp.java @@ -1,51696 +1,69565 @@ -// SPDX-FileCopyrightText: Contributors to the GXF project -// -// SPDX-License-Identifier: Apache-2.0 - // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: oslp.proto +// Protobuf Java Version: 4.31.0 package org.opensmartgridplatform.oslp; +@com.google.protobuf.Generated public final class Oslp { - private Oslp() {} - - public static void registerAllExtensions(final com.google.protobuf.ExtensionRegistry registry) {} - - public enum NotificationBit implements com.google.protobuf.ProtocolMessageEnum { - DIAG_EVENTS(0, 1), - HARDWARE_FAILURE(1, 2), - LIGHT_EVENTS(2, 4), - TARIFF_EVENTS(3, 8), - MONITOR_EVENTS(4, 16), - FIRMWARE_EVENTS(5, 32), - COMM_EVENTS(6, 64), - SECURITY_EVENTS(7, 128), - ; - - public static final int DIAG_EVENTS_VALUE = 1; - public static final int HARDWARE_FAILURE_VALUE = 2; - public static final int LIGHT_EVENTS_VALUE = 4; - public static final int TARIFF_EVENTS_VALUE = 8; - public static final int MONITOR_EVENTS_VALUE = 16; - public static final int FIRMWARE_EVENTS_VALUE = 32; - public static final int COMM_EVENTS_VALUE = 64; - public static final int SECURITY_EVENTS_VALUE = 128; - - @Override - public final int getNumber() { - return this.value; - } - - public static NotificationBit valueOf(final int value) { - switch (value) { - case 1: - return DIAG_EVENTS; - case 2: - return HARDWARE_FAILURE; - case 4: - return LIGHT_EVENTS; - case 8: - return TARIFF_EVENTS; - case 16: - return MONITOR_EVENTS; - case 32: - return FIRMWARE_EVENTS; - case 64: - return COMM_EVENTS; - case 128: - return SECURITY_EVENTS; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - @Override - public NotificationBit findValueByNumber(final int number) { - return NotificationBit.valueOf(number); - } - }; + private Oslp() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + Oslp.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+     * ========= Event Notification
+     * 
+ * + * Protobuf enum {@code oslp.NotificationBit} + */ + public enum NotificationBit + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NOTIFICATION_UNSPECIFIED = 0; + */ + NOTIFICATION_UNSPECIFIED(0), + /** + * DIAG_EVENTS = 1; + */ + DIAG_EVENTS(1), + /** + * HARDWARE_FAILURE = 2; + */ + HARDWARE_FAILURE(2), + /** + *
+         * For example LightValue changes.
+         * 
+ * + * LIGHT_EVENTS = 4; + */ + LIGHT_EVENTS(4), + /** + *
+         * For example Tariff changes.
+         * 
+ * + * TARIFF_EVENTS = 8; + */ + TARIFF_EVENTS(8), + /** + *
+         * For example monitor buffer is almost full.
+         * 
+ * + * MONITOR_EVENTS = 16; + */ + MONITOR_EVENTS(16), + /** + *
+         * For example firmware activation.
+         * 
+ * + * FIRMWARE_EVENTS = 32; + */ + FIRMWARE_EVENTS(32), + /** + *
+         * For example alternative channel.
+         * 
+ * + * COMM_EVENTS = 64; + */ + COMM_EVENTS(64), + /** + *
+         * For example out of sequence.
+         * 
+ * + * SECURITY_EVENTS = 128; + */ + SECURITY_EVENTS(128), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + NotificationBit.class.getName()); + } + /** + * NOTIFICATION_UNSPECIFIED = 0; + */ + public static final int NOTIFICATION_UNSPECIFIED_VALUE = 0; + /** + * DIAG_EVENTS = 1; + */ + public static final int DIAG_EVENTS_VALUE = 1; + /** + * HARDWARE_FAILURE = 2; + */ + public static final int HARDWARE_FAILURE_VALUE = 2; + /** + *
+         * For example LightValue changes.
+         * 
+ * + * LIGHT_EVENTS = 4; + */ + public static final int LIGHT_EVENTS_VALUE = 4; + /** + *
+         * For example Tariff changes.
+         * 
+ * + * TARIFF_EVENTS = 8; + */ + public static final int TARIFF_EVENTS_VALUE = 8; + /** + *
+         * For example monitor buffer is almost full.
+         * 
+ * + * MONITOR_EVENTS = 16; + */ + public static final int MONITOR_EVENTS_VALUE = 16; + /** + *
+         * For example firmware activation.
+         * 
+ * + * FIRMWARE_EVENTS = 32; + */ + public static final int FIRMWARE_EVENTS_VALUE = 32; + /** + *
+         * For example alternative channel.
+         * 
+ * + * COMM_EVENTS = 64; + */ + public static final int COMM_EVENTS_VALUE = 64; + /** + *
+         * For example out of sequence.
+         * 
+ * + * SECURITY_EVENTS = 128; + */ + public static final int SECURITY_EVENTS_VALUE = 128; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NotificationBit valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static NotificationBit forNumber(int value) { + switch (value) { + case 0: return NOTIFICATION_UNSPECIFIED; + case 1: return DIAG_EVENTS; + case 2: return HARDWARE_FAILURE; + case 4: return LIGHT_EVENTS; + case 8: return TARIFF_EVENTS; + case 16: return MONITOR_EVENTS; + case 32: return FIRMWARE_EVENTS; + case 64: return COMM_EVENTS; + case 128: return SECURITY_EVENTS; + default: return null; + } + } - @Override - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(this.index); - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + NotificationBit> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NotificationBit findValueByNumber(int number) { + return NotificationBit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(0); + } - @Override - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + private static final NotificationBit[] VALUES = values(); - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(0); - } + public static NotificationBit valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private NotificationBit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:oslp.NotificationBit) + } + + /** + * Protobuf enum {@code oslp.Event} + */ + public enum Event + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+         * 0 - 999 Diagnostics
+         * 
+ * + * DIAG_EVENTS_GENERAL = 0; + */ + DIAG_EVENTS_GENERAL(0), + /** + *
+         * Message type unknown by device.
+         * 
+ * + * DIAG_EVENTS_UNKNOWN_MESSAGE_TYPE = 1; + */ + DIAG_EVENTS_UNKNOWN_MESSAGE_TYPE(1), + /** + *
+         * 1000 - 1999 Hardware Failures
+         * 
+ * + * HARDWARE_FAILURE_RELAY = 1000; + */ + HARDWARE_FAILURE_RELAY(1000), + /** + *
+         * Error while writing to flash memory.
+         * 
+ * + * HARDWARE_FAILURE_FLASH_WRITE_ERROR = 1001; + */ + HARDWARE_FAILURE_FLASH_WRITE_ERROR(1001), + /** + *
+         * Error while reading from flash memory, flash memory corrupt.
+         * 
+ * + * HARDWARE_FAILURE_FLASH_MEMORY_CORRUPT = 1002; + */ + HARDWARE_FAILURE_FLASH_MEMORY_CORRUPT(1002), + /** + *
+         * Real Time Clock has not set.
+         * 
+ * + * HARDWARE_FAILURE_RTC_NOT_SET = 1003; + */ + HARDWARE_FAILURE_RTC_NOT_SET(1003), + /** + *
+         * 2000 - 2999 Light Events
+         * 
+ * + * LIGHT_EVENTS_LIGHT_ON = 2000; + */ + LIGHT_EVENTS_LIGHT_ON(2000), + /** + *
+         * Index indicates light.
+         * 
+ * + * LIGHT_EVENTS_LIGHT_OFF = 2001; + */ + LIGHT_EVENTS_LIGHT_OFF(2001), + /** + *
+         * DALI communication failure.
+         * 
+ * + * LIGHT_FAILURE_DALI_COMMUNICATION = 2500; + */ + LIGHT_FAILURE_DALI_COMMUNICATION(2500), + /** + *
+         * Ballast failure detected (DALI only).
+         * 
+ * + * LIGHT_FAILURE_BALLAST = 2501; + */ + LIGHT_FAILURE_BALLAST(2501), + /** + *
+         * Attempt to switch an end-point configured as tariff from OVL schedule or manual override (index indicates end-point).
+         * 
+ * + * LIGHT_FAILURE_TARIFF_SWITCH_ATTEMPT = 2502; + */ + LIGHT_FAILURE_TARIFF_SWITCH_ATTEMPT(2502), + /** + *
+         * 3000 - 3999 Tariff Events
+         * 
+ * + * TARIFF_EVENTS_TARIFF_ON = 3000; + */ + TARIFF_EVENTS_TARIFF_ON(3000), + /** + *
+         * Tariff switched off.
+         * 
+ * + * TARIFF_EVENTS_TARIFF_OFF = 3001; + */ + TARIFF_EVENTS_TARIFF_OFF(3001), + /** + *
+         * 4000 - 4999
+         * 
+ * + * MONITOR_EVENTS_LONG_BUFFER_FULL = 4000; + */ + MONITOR_EVENTS_LONG_BUFFER_FULL(4000), + /** + *
+         * P1 meter could not be read.
+         * 
+ * + * MONITOR_FAILURE_P1_COMMUNICATION = 4500; + */ + MONITOR_FAILURE_P1_COMMUNICATION(4500), + /** + *
+         * A short has been detected.
+         * 
+ * + * MONITOR_SHORT_DETECTED = 4600; + */ + MONITOR_SHORT_DETECTED(4600), + /** + *
+         * A short has been resolved.
+         * 
+ * + * MONITOR_SHORT_RESOLVED = 4601; + */ + MONITOR_SHORT_RESOLVED(4601), + /** + *
+         * Indicates that the enclose of the has been opened.
+         * 
+ * + * MONITOR_DOOR_OPENED = 4700; + */ + MONITOR_DOOR_OPENED(4700), + /** + *
+         * Indicates that the enclosure of the device has been closed.
+         * 
+ * + * MONITOR_DOOR_CLOSED = 4701; + */ + MONITOR_DOOR_CLOSED(4701), + /** + *
+         * Relay was switched on by self-test function.
+         * 
+ * + * MONITOR_EVENTS_TEST_RELAY_ON = 4702; + */ + MONITOR_EVENTS_TEST_RELAY_ON(4702), + /** + *
+         * Relay was switched off by self-test function.
+         * 
+ * + * MONITOR_EVENTS_TEST_RELAY_OFF = 4703; + */ + MONITOR_EVENTS_TEST_RELAY_OFF(4703), + /** + *
+         * The device had a power outage.
+         * 
+ * + * MONITOR_EVENTS_LOSS_OF_POWER = 4800; + */ + MONITOR_EVENTS_LOSS_OF_POWER(4800), + /** + *
+         * Device switched to local mode.
+         * 
+ * + * MONITOR_EVENTS_LOCAL_MODE = 4900; + */ + MONITOR_EVENTS_LOCAL_MODE(4900), + /** + *
+         * Device switched to remote mode.
+         * 
+ * + * MONITOR_EVENTS_REMOTE_MODE = 4901; + */ + MONITOR_EVENTS_REMOTE_MODE(4901), + /** + *
+         * 5000 - 5999 Firmware Events
+         * 
+ * + * FIRMWARE_EVENTS_ACTIVATING = 5000; + */ + FIRMWARE_EVENTS_ACTIVATING(5000), + /** + *
+         * Download of firmware failed, i.e. location incorrect.
+         * 
+ * + * FIRMWARE_EVENTS_DOWNLOAD_NOTFOUND = 5501; + */ + FIRMWARE_EVENTS_DOWNLOAD_NOTFOUND(5501), + /** + *
+         * Download of firmware failed, image incorrect.
+         * 
+ * + * FIRMWARE_EVENTS_DOWNLOAD_FAILED = 5502; + */ + FIRMWARE_EVENTS_DOWNLOAD_FAILED(5502), + /** + *
+         * Configuration changed from one bank to other (after request from platform).
+         * 
+ * + * FIRMWARE_EVENTS_CONFIGURATION_CHANGED = 5503; + */ + FIRMWARE_EVENTS_CONFIGURATION_CHANGED(5503), + /** + *
+         * 6000 – 6999
+         * 
+ * + * COMM_EVENTS_ALTERNATIVE_CHANNEL = 6000; + */ + COMM_EVENTS_ALTERNATIVE_CHANNEL(6000), + /** + *
+         * Communication has been recovered for this channel.
+         * 
+ * + * COMM_EVENTS_RECOVERED_CHANNEL = 6001; + */ + COMM_EVENTS_RECOVERED_CHANNEL(6001), + /** + *
+         * 7000 - 7999
+         * 
+ * + * SECURITY_EVENTS_OUT_OF_SEQUENCE = 7000; + */ + SECURITY_EVENTS_OUT_OF_SEQUENCE(7000), + /** + *
+         * OSLP message could not be verified.
+         * 
+ * + * SECURITY_EVENTS_OSLP_VERIFICATION_FAILED = 7001; + */ + SECURITY_EVENTS_OSLP_VERIFICATION_FAILED(7001), + /** + *
+         * Invalid TLS certificate.
+         * 
+ * + * SECURITY_EVENTS_INVALID_CERTIFICATE = 7002; + */ + SECURITY_EVENTS_INVALID_CERTIFICATE(7002), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + Event.class.getName()); + } + /** + *
+         * 0 - 999 Diagnostics
+         * 
+ * + * DIAG_EVENTS_GENERAL = 0; + */ + public static final int DIAG_EVENTS_GENERAL_VALUE = 0; + /** + *
+         * Message type unknown by device.
+         * 
+ * + * DIAG_EVENTS_UNKNOWN_MESSAGE_TYPE = 1; + */ + public static final int DIAG_EVENTS_UNKNOWN_MESSAGE_TYPE_VALUE = 1; + /** + *
+         * 1000 - 1999 Hardware Failures
+         * 
+ * + * HARDWARE_FAILURE_RELAY = 1000; + */ + public static final int HARDWARE_FAILURE_RELAY_VALUE = 1000; + /** + *
+         * Error while writing to flash memory.
+         * 
+ * + * HARDWARE_FAILURE_FLASH_WRITE_ERROR = 1001; + */ + public static final int HARDWARE_FAILURE_FLASH_WRITE_ERROR_VALUE = 1001; + /** + *
+         * Error while reading from flash memory, flash memory corrupt.
+         * 
+ * + * HARDWARE_FAILURE_FLASH_MEMORY_CORRUPT = 1002; + */ + public static final int HARDWARE_FAILURE_FLASH_MEMORY_CORRUPT_VALUE = 1002; + /** + *
+         * Real Time Clock has not set.
+         * 
+ * + * HARDWARE_FAILURE_RTC_NOT_SET = 1003; + */ + public static final int HARDWARE_FAILURE_RTC_NOT_SET_VALUE = 1003; + /** + *
+         * 2000 - 2999 Light Events
+         * 
+ * + * LIGHT_EVENTS_LIGHT_ON = 2000; + */ + public static final int LIGHT_EVENTS_LIGHT_ON_VALUE = 2000; + /** + *
+         * Index indicates light.
+         * 
+ * + * LIGHT_EVENTS_LIGHT_OFF = 2001; + */ + public static final int LIGHT_EVENTS_LIGHT_OFF_VALUE = 2001; + /** + *
+         * DALI communication failure.
+         * 
+ * + * LIGHT_FAILURE_DALI_COMMUNICATION = 2500; + */ + public static final int LIGHT_FAILURE_DALI_COMMUNICATION_VALUE = 2500; + /** + *
+         * Ballast failure detected (DALI only).
+         * 
+ * + * LIGHT_FAILURE_BALLAST = 2501; + */ + public static final int LIGHT_FAILURE_BALLAST_VALUE = 2501; + /** + *
+         * Attempt to switch an end-point configured as tariff from OVL schedule or manual override (index indicates end-point).
+         * 
+ * + * LIGHT_FAILURE_TARIFF_SWITCH_ATTEMPT = 2502; + */ + public static final int LIGHT_FAILURE_TARIFF_SWITCH_ATTEMPT_VALUE = 2502; + /** + *
+         * 3000 - 3999 Tariff Events
+         * 
+ * + * TARIFF_EVENTS_TARIFF_ON = 3000; + */ + public static final int TARIFF_EVENTS_TARIFF_ON_VALUE = 3000; + /** + *
+         * Tariff switched off.
+         * 
+ * + * TARIFF_EVENTS_TARIFF_OFF = 3001; + */ + public static final int TARIFF_EVENTS_TARIFF_OFF_VALUE = 3001; + /** + *
+         * 4000 - 4999
+         * 
+ * + * MONITOR_EVENTS_LONG_BUFFER_FULL = 4000; + */ + public static final int MONITOR_EVENTS_LONG_BUFFER_FULL_VALUE = 4000; + /** + *
+         * P1 meter could not be read.
+         * 
+ * + * MONITOR_FAILURE_P1_COMMUNICATION = 4500; + */ + public static final int MONITOR_FAILURE_P1_COMMUNICATION_VALUE = 4500; + /** + *
+         * A short has been detected.
+         * 
+ * + * MONITOR_SHORT_DETECTED = 4600; + */ + public static final int MONITOR_SHORT_DETECTED_VALUE = 4600; + /** + *
+         * A short has been resolved.
+         * 
+ * + * MONITOR_SHORT_RESOLVED = 4601; + */ + public static final int MONITOR_SHORT_RESOLVED_VALUE = 4601; + /** + *
+         * Indicates that the enclose of the has been opened.
+         * 
+ * + * MONITOR_DOOR_OPENED = 4700; + */ + public static final int MONITOR_DOOR_OPENED_VALUE = 4700; + /** + *
+         * Indicates that the enclosure of the device has been closed.
+         * 
+ * + * MONITOR_DOOR_CLOSED = 4701; + */ + public static final int MONITOR_DOOR_CLOSED_VALUE = 4701; + /** + *
+         * Relay was switched on by self-test function.
+         * 
+ * + * MONITOR_EVENTS_TEST_RELAY_ON = 4702; + */ + public static final int MONITOR_EVENTS_TEST_RELAY_ON_VALUE = 4702; + /** + *
+         * Relay was switched off by self-test function.
+         * 
+ * + * MONITOR_EVENTS_TEST_RELAY_OFF = 4703; + */ + public static final int MONITOR_EVENTS_TEST_RELAY_OFF_VALUE = 4703; + /** + *
+         * The device had a power outage.
+         * 
+ * + * MONITOR_EVENTS_LOSS_OF_POWER = 4800; + */ + public static final int MONITOR_EVENTS_LOSS_OF_POWER_VALUE = 4800; + /** + *
+         * Device switched to local mode.
+         * 
+ * + * MONITOR_EVENTS_LOCAL_MODE = 4900; + */ + public static final int MONITOR_EVENTS_LOCAL_MODE_VALUE = 4900; + /** + *
+         * Device switched to remote mode.
+         * 
+ * + * MONITOR_EVENTS_REMOTE_MODE = 4901; + */ + public static final int MONITOR_EVENTS_REMOTE_MODE_VALUE = 4901; + /** + *
+         * 5000 - 5999 Firmware Events
+         * 
+ * + * FIRMWARE_EVENTS_ACTIVATING = 5000; + */ + public static final int FIRMWARE_EVENTS_ACTIVATING_VALUE = 5000; + /** + *
+         * Download of firmware failed, i.e. location incorrect.
+         * 
+ * + * FIRMWARE_EVENTS_DOWNLOAD_NOTFOUND = 5501; + */ + public static final int FIRMWARE_EVENTS_DOWNLOAD_NOTFOUND_VALUE = 5501; + /** + *
+         * Download of firmware failed, image incorrect.
+         * 
+ * + * FIRMWARE_EVENTS_DOWNLOAD_FAILED = 5502; + */ + public static final int FIRMWARE_EVENTS_DOWNLOAD_FAILED_VALUE = 5502; + /** + *
+         * Configuration changed from one bank to other (after request from platform).
+         * 
+ * + * FIRMWARE_EVENTS_CONFIGURATION_CHANGED = 5503; + */ + public static final int FIRMWARE_EVENTS_CONFIGURATION_CHANGED_VALUE = 5503; + /** + *
+         * 6000 – 6999
+         * 
+ * + * COMM_EVENTS_ALTERNATIVE_CHANNEL = 6000; + */ + public static final int COMM_EVENTS_ALTERNATIVE_CHANNEL_VALUE = 6000; + /** + *
+         * Communication has been recovered for this channel.
+         * 
+ * + * COMM_EVENTS_RECOVERED_CHANNEL = 6001; + */ + public static final int COMM_EVENTS_RECOVERED_CHANNEL_VALUE = 6001; + /** + *
+         * 7000 - 7999
+         * 
+ * + * SECURITY_EVENTS_OUT_OF_SEQUENCE = 7000; + */ + public static final int SECURITY_EVENTS_OUT_OF_SEQUENCE_VALUE = 7000; + /** + *
+         * OSLP message could not be verified.
+         * 
+ * + * SECURITY_EVENTS_OSLP_VERIFICATION_FAILED = 7001; + */ + public static final int SECURITY_EVENTS_OSLP_VERIFICATION_FAILED_VALUE = 7001; + /** + *
+         * Invalid TLS certificate.
+         * 
+ * + * SECURITY_EVENTS_INVALID_CERTIFICATE = 7002; + */ + public static final int SECURITY_EVENTS_INVALID_CERTIFICATE_VALUE = 7002; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Event valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Event forNumber(int value) { + switch (value) { + case 0: return DIAG_EVENTS_GENERAL; + case 1: return DIAG_EVENTS_UNKNOWN_MESSAGE_TYPE; + case 1000: return HARDWARE_FAILURE_RELAY; + case 1001: return HARDWARE_FAILURE_FLASH_WRITE_ERROR; + case 1002: return HARDWARE_FAILURE_FLASH_MEMORY_CORRUPT; + case 1003: return HARDWARE_FAILURE_RTC_NOT_SET; + case 2000: return LIGHT_EVENTS_LIGHT_ON; + case 2001: return LIGHT_EVENTS_LIGHT_OFF; + case 2500: return LIGHT_FAILURE_DALI_COMMUNICATION; + case 2501: return LIGHT_FAILURE_BALLAST; + case 2502: return LIGHT_FAILURE_TARIFF_SWITCH_ATTEMPT; + case 3000: return TARIFF_EVENTS_TARIFF_ON; + case 3001: return TARIFF_EVENTS_TARIFF_OFF; + case 4000: return MONITOR_EVENTS_LONG_BUFFER_FULL; + case 4500: return MONITOR_FAILURE_P1_COMMUNICATION; + case 4600: return MONITOR_SHORT_DETECTED; + case 4601: return MONITOR_SHORT_RESOLVED; + case 4700: return MONITOR_DOOR_OPENED; + case 4701: return MONITOR_DOOR_CLOSED; + case 4702: return MONITOR_EVENTS_TEST_RELAY_ON; + case 4703: return MONITOR_EVENTS_TEST_RELAY_OFF; + case 4800: return MONITOR_EVENTS_LOSS_OF_POWER; + case 4900: return MONITOR_EVENTS_LOCAL_MODE; + case 4901: return MONITOR_EVENTS_REMOTE_MODE; + case 5000: return FIRMWARE_EVENTS_ACTIVATING; + case 5501: return FIRMWARE_EVENTS_DOWNLOAD_NOTFOUND; + case 5502: return FIRMWARE_EVENTS_DOWNLOAD_FAILED; + case 5503: return FIRMWARE_EVENTS_CONFIGURATION_CHANGED; + case 6000: return COMM_EVENTS_ALTERNATIVE_CHANNEL; + case 6001: return COMM_EVENTS_RECOVERED_CHANNEL; + case 7000: return SECURITY_EVENTS_OUT_OF_SEQUENCE; + case 7001: return SECURITY_EVENTS_OSLP_VERIFICATION_FAILED; + case 7002: return SECURITY_EVENTS_INVALID_CERTIFICATE; + default: return null; + } + } - private static final NotificationBit[] VALUES = { - DIAG_EVENTS, - HARDWARE_FAILURE, - LIGHT_EVENTS, - TARIFF_EVENTS, - MONITOR_EVENTS, - FIRMWARE_EVENTS, - COMM_EVENTS, - SECURITY_EVENTS, - }; - - public static NotificationBit valueOf( - final com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Event> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Event findValueByNumber(int number) { + return Event.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(1); + } - private final int index; - private final int value; + private static final Event[] VALUES = values(); - private NotificationBit(final int index, final int value) { - this.index = index; - this.value = value; - } + public static Event valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Event(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:oslp.Event) + } + + /** + *
+     * ========= Enums
+     * 
+ * + * Protobuf enum {@code oslp.TriggerType} + */ + public enum TriggerType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * TT_NOT_SET = 0; + */ + TT_NOT_SET(0), + /** + * LIGHT_TRIGGER = 1; + */ + LIGHT_TRIGGER(1), + /** + * ASTRONOMICAL = 2; + */ + ASTRONOMICAL(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + TriggerType.class.getName()); + } + /** + * TT_NOT_SET = 0; + */ + public static final int TT_NOT_SET_VALUE = 0; + /** + * LIGHT_TRIGGER = 1; + */ + public static final int LIGHT_TRIGGER_VALUE = 1; + /** + * ASTRONOMICAL = 2; + */ + public static final int ASTRONOMICAL_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TriggerType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TriggerType forNumber(int value) { + switch (value) { + case 0: return TT_NOT_SET; + case 1: return LIGHT_TRIGGER; + case 2: return ASTRONOMICAL; + default: return null; + } + } - // @@protoc_insertion_point(enum_scope:oslp.NotificationBit) - } - - public enum Event implements com.google.protobuf.ProtocolMessageEnum { - DIAG_EVENTS_GENERAL(0, 0), - DIAG_EVENTS_UNKNOWN_MESSAGE_TYPE(1, 1), - HARDWARE_FAILURE_RELAY(2, 1000), - HARDWARE_FAILURE_FLASH_WRITE_ERROR(3, 1001), - HARDWARE_FAILURE_FLASH_MEMORY_CORRUPT(4, 1002), - HARDWARE_FAILURE_RTC_NOT_SET(5, 1003), - LIGHT_EVENTS_LIGHT_ON(6, 2000), - LIGHT_EVENTS_LIGHT_OFF(7, 2001), - LIGHT_FAILURE_DALI_COMMUNICATION(8, 2500), - LIGHT_FAILURE_BALLAST(9, 2501), - LIGHT_FAILURE_TARIFF_SWITCH_ATTEMPT(10, 2502), - TARIFF_EVENTS_TARIFF_ON(11, 3000), - TARIFF_EVENTS_TARIFF_OFF(12, 3001), - MONITOR_EVENTS_LONG_BUFFER_FULL(13, 4000), - MONITOR_FAILURE_P1_COMMUNICATION(14, 4500), - MONITOR_SHORT_DETECTED(15, 4600), - MONITOR_SHORT_RESOLVED(16, 4601), - MONITOR_DOOR_OPENED(17, 4700), - MONITOR_DOOR_CLOSED(18, 4701), - MONITOR_EVENTS_TEST_RELAY_ON(19, 4702), - MONITOR_EVENTS_TEST_RELAY_OFF(20, 4703), - MONITOR_EVENTS_LOSS_OF_POWER(21, 4800), - MONITOR_EVENTS_LOCAL_MODE(22, 4900), - MONITOR_EVENTS_REMOTE_MODE(23, 4901), - FIRMWARE_EVENTS_ACTIVATING(24, 5000), - FIRMWARE_EVENTS_DOWNLOAD_NOTFOUND(25, 5501), - FIRMWARE_EVENTS_DOWNLOAD_FAILED(26, 5502), - FIRMWARE_EVENTS_CONFIGURATION_CHANGED(27, 5503), - COMM_EVENTS_ALTERNATIVE_CHANNEL(28, 6000), - COMM_EVENTS_RECOVERED_CHANNEL(29, 6001), - SECURITY_EVENTS_OUT_OF_SEQUENCE(30, 7000), - SECURITY_EVENTS_OSLP_VERIFICATION_FAILED(31, 7001), - SECURITY_EVENTS_INVALID_CERTIFICATE(32, 7002), - ; - - public static final int DIAG_EVENTS_GENERAL_VALUE = 0; - public static final int DIAG_EVENTS_UNKNOWN_MESSAGE_TYPE_VALUE = 1; - public static final int HARDWARE_FAILURE_RELAY_VALUE = 1000; - public static final int HARDWARE_FAILURE_FLASH_WRITE_ERROR_VALUE = 1001; - public static final int HARDWARE_FAILURE_FLASH_MEMORY_CORRUPT_VALUE = 1002; - public static final int HARDWARE_FAILURE_RTC_NOT_SET_VALUE = 1003; - public static final int LIGHT_EVENTS_LIGHT_ON_VALUE = 2000; - public static final int LIGHT_EVENTS_LIGHT_OFF_VALUE = 2001; - public static final int LIGHT_FAILURE_DALI_COMMUNICATION_VALUE = 2500; - public static final int LIGHT_FAILURE_BALLAST_VALUE = 2501; - public static final int LIGHT_FAILURE_TARIFF_SWITCH_ATTEMPT_VALUE = 2502; - public static final int TARIFF_EVENTS_TARIFF_ON_VALUE = 3000; - public static final int TARIFF_EVENTS_TARIFF_OFF_VALUE = 3001; - public static final int MONITOR_EVENTS_LONG_BUFFER_FULL_VALUE = 4000; - public static final int MONITOR_FAILURE_P1_COMMUNICATION_VALUE = 4500; - public static final int MONITOR_SHORT_DETECTED_VALUE = 4600; - public static final int MONITOR_SHORT_RESOLVED_VALUE = 4601; - public static final int MONITOR_DOOR_OPENED_VALUE = 4700; - public static final int MONITOR_DOOR_CLOSED_VALUE = 4701; - public static final int MONITOR_EVENTS_TEST_RELAY_ON_VALUE = 4702; - public static final int MONITOR_EVENTS_TEST_RELAY_OFF_VALUE = 4703; - public static final int MONITOR_EVENTS_LOSS_OF_POWER_VALUE = 4800; - public static final int MONITOR_EVENTS_LOCAL_MODE_VALUE = 4900; - public static final int MONITOR_EVENTS_REMOTE_MODE_VALUE = 4901; - public static final int FIRMWARE_EVENTS_ACTIVATING_VALUE = 5000; - public static final int FIRMWARE_EVENTS_DOWNLOAD_NOTFOUND_VALUE = 5501; - public static final int FIRMWARE_EVENTS_DOWNLOAD_FAILED_VALUE = 5502; - public static final int FIRMWARE_EVENTS_CONFIGURATION_CHANGED_VALUE = 5503; - public static final int COMM_EVENTS_ALTERNATIVE_CHANNEL_VALUE = 6000; - public static final int COMM_EVENTS_RECOVERED_CHANNEL_VALUE = 6001; - public static final int SECURITY_EVENTS_OUT_OF_SEQUENCE_VALUE = 7000; - public static final int SECURITY_EVENTS_OSLP_VERIFICATION_FAILED_VALUE = 7001; - public static final int SECURITY_EVENTS_INVALID_CERTIFICATE_VALUE = 7002; - - @Override - public final int getNumber() { - return this.value; - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + TriggerType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TriggerType findValueByNumber(int number) { + return TriggerType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(2); + } - public static Event valueOf(final int value) { - switch (value) { - case 0: - return DIAG_EVENTS_GENERAL; - case 1: - return DIAG_EVENTS_UNKNOWN_MESSAGE_TYPE; - case 1000: - return HARDWARE_FAILURE_RELAY; - case 1001: - return HARDWARE_FAILURE_FLASH_WRITE_ERROR; - case 1002: - return HARDWARE_FAILURE_FLASH_MEMORY_CORRUPT; - case 1003: - return HARDWARE_FAILURE_RTC_NOT_SET; - case 2000: - return LIGHT_EVENTS_LIGHT_ON; - case 2001: - return LIGHT_EVENTS_LIGHT_OFF; - case 2500: - return LIGHT_FAILURE_DALI_COMMUNICATION; - case 2501: - return LIGHT_FAILURE_BALLAST; - case 2502: - return LIGHT_FAILURE_TARIFF_SWITCH_ATTEMPT; - case 3000: - return TARIFF_EVENTS_TARIFF_ON; - case 3001: - return TARIFF_EVENTS_TARIFF_OFF; - case 4000: - return MONITOR_EVENTS_LONG_BUFFER_FULL; - case 4500: - return MONITOR_FAILURE_P1_COMMUNICATION; - case 4600: - return MONITOR_SHORT_DETECTED; - case 4601: - return MONITOR_SHORT_RESOLVED; - case 4700: - return MONITOR_DOOR_OPENED; - case 4701: - return MONITOR_DOOR_CLOSED; - case 4702: - return MONITOR_EVENTS_TEST_RELAY_ON; - case 4703: - return MONITOR_EVENTS_TEST_RELAY_OFF; - case 4800: - return MONITOR_EVENTS_LOSS_OF_POWER; - case 4900: - return MONITOR_EVENTS_LOCAL_MODE; - case 4901: - return MONITOR_EVENTS_REMOTE_MODE; - case 5000: - return FIRMWARE_EVENTS_ACTIVATING; - case 5501: - return FIRMWARE_EVENTS_DOWNLOAD_NOTFOUND; - case 5502: - return FIRMWARE_EVENTS_DOWNLOAD_FAILED; - case 5503: - return FIRMWARE_EVENTS_CONFIGURATION_CHANGED; - case 6000: - return COMM_EVENTS_ALTERNATIVE_CHANNEL; - case 6001: - return COMM_EVENTS_RECOVERED_CHANNEL; - case 7000: - return SECURITY_EVENTS_OUT_OF_SEQUENCE; - case 7001: - return SECURITY_EVENTS_OSLP_VERIFICATION_FAILED; - case 7002: - return SECURITY_EVENTS_INVALID_CERTIFICATE; - default: - return null; - } - } + private static final TriggerType[] VALUES = values(); - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } + public static TriggerType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TriggerType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:oslp.TriggerType) + } + + /** + * Protobuf enum {@code oslp.TransitionType} + */ + public enum TransitionType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NIGHT_DAY = 0; + */ + NIGHT_DAY(0), + /** + * DAY_NIGHT = 1; + */ + DAY_NIGHT(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + TransitionType.class.getName()); + } + /** + * NIGHT_DAY = 0; + */ + public static final int NIGHT_DAY_VALUE = 0; + /** + * DAY_NIGHT = 1; + */ + public static final int DAY_NIGHT_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TransitionType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TransitionType forNumber(int value) { + switch (value) { + case 0: return NIGHT_DAY; + case 1: return DAY_NIGHT; + default: return null; + } + } - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - @Override - public Event findValueByNumber(final int number) { - return Event.valueOf(number); - } - }; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + TransitionType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TransitionType findValueByNumber(int number) { + return TransitionType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(3); + } - @Override - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(this.index); - } + private static final TransitionType[] VALUES = values(); - @Override - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + public static TransitionType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TransitionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:oslp.TransitionType) + } + + /** + * Protobuf enum {@code oslp.Weekday} + */ + public enum Weekday + implements com.google.protobuf.ProtocolMessageEnum { + /** + * WEEKDAY_UNSPECIFIED = 0; + */ + WEEKDAY_UNSPECIFIED(0), + /** + * MONDAY = 1; + */ + MONDAY(1), + /** + * TUESDAY = 2; + */ + TUESDAY(2), + /** + * WEDNESDAY = 3; + */ + WEDNESDAY(3), + /** + * THURSDAY = 4; + */ + THURSDAY(4), + /** + * FRIDAY = 5; + */ + FRIDAY(5), + /** + * SATURDAY = 6; + */ + SATURDAY(6), + /** + * SUNDAY = 7; + */ + SUNDAY(7), + /** + * WEEKDAY = 8; + */ + WEEKDAY(8), + /** + * WEEKEND = 9; + */ + WEEKEND(9), + /** + * ABSOLUTEDAY = 10; + */ + ABSOLUTEDAY(10), + /** + * ALL = 11; + */ + ALL(11), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + Weekday.class.getName()); + } + /** + * WEEKDAY_UNSPECIFIED = 0; + */ + public static final int WEEKDAY_UNSPECIFIED_VALUE = 0; + /** + * MONDAY = 1; + */ + public static final int MONDAY_VALUE = 1; + /** + * TUESDAY = 2; + */ + public static final int TUESDAY_VALUE = 2; + /** + * WEDNESDAY = 3; + */ + public static final int WEDNESDAY_VALUE = 3; + /** + * THURSDAY = 4; + */ + public static final int THURSDAY_VALUE = 4; + /** + * FRIDAY = 5; + */ + public static final int FRIDAY_VALUE = 5; + /** + * SATURDAY = 6; + */ + public static final int SATURDAY_VALUE = 6; + /** + * SUNDAY = 7; + */ + public static final int SUNDAY_VALUE = 7; + /** + * WEEKDAY = 8; + */ + public static final int WEEKDAY_VALUE = 8; + /** + * WEEKEND = 9; + */ + public static final int WEEKEND_VALUE = 9; + /** + * ABSOLUTEDAY = 10; + */ + public static final int ABSOLUTEDAY_VALUE = 10; + /** + * ALL = 11; + */ + public static final int ALL_VALUE = 11; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Weekday valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Weekday forNumber(int value) { + switch (value) { + case 0: return WEEKDAY_UNSPECIFIED; + case 1: return MONDAY; + case 2: return TUESDAY; + case 3: return WEDNESDAY; + case 4: return THURSDAY; + case 5: return FRIDAY; + case 6: return SATURDAY; + case 7: return SUNDAY; + case 8: return WEEKDAY; + case 9: return WEEKEND; + case 10: return ABSOLUTEDAY; + case 11: return ALL; + default: return null; + } + } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(1); - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Weekday> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Weekday findValueByNumber(int number) { + return Weekday.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(4); + } - private static final Event[] VALUES = { - DIAG_EVENTS_GENERAL, - DIAG_EVENTS_UNKNOWN_MESSAGE_TYPE, - HARDWARE_FAILURE_RELAY, - HARDWARE_FAILURE_FLASH_WRITE_ERROR, - HARDWARE_FAILURE_FLASH_MEMORY_CORRUPT, - HARDWARE_FAILURE_RTC_NOT_SET, - LIGHT_EVENTS_LIGHT_ON, - LIGHT_EVENTS_LIGHT_OFF, - LIGHT_FAILURE_DALI_COMMUNICATION, - LIGHT_FAILURE_BALLAST, - LIGHT_FAILURE_TARIFF_SWITCH_ATTEMPT, - TARIFF_EVENTS_TARIFF_ON, - TARIFF_EVENTS_TARIFF_OFF, - MONITOR_EVENTS_LONG_BUFFER_FULL, - MONITOR_FAILURE_P1_COMMUNICATION, - MONITOR_SHORT_DETECTED, - MONITOR_SHORT_RESOLVED, - MONITOR_DOOR_OPENED, - MONITOR_DOOR_CLOSED, - MONITOR_EVENTS_TEST_RELAY_ON, - MONITOR_EVENTS_TEST_RELAY_OFF, - MONITOR_EVENTS_LOSS_OF_POWER, - MONITOR_EVENTS_LOCAL_MODE, - MONITOR_EVENTS_REMOTE_MODE, - FIRMWARE_EVENTS_ACTIVATING, - FIRMWARE_EVENTS_DOWNLOAD_NOTFOUND, - FIRMWARE_EVENTS_DOWNLOAD_FAILED, - FIRMWARE_EVENTS_CONFIGURATION_CHANGED, - COMM_EVENTS_ALTERNATIVE_CHANNEL, - COMM_EVENTS_RECOVERED_CHANNEL, - SECURITY_EVENTS_OUT_OF_SEQUENCE, - SECURITY_EVENTS_OSLP_VERIFICATION_FAILED, - SECURITY_EVENTS_INVALID_CERTIFICATE, - }; - - public static Event valueOf(final com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } + private static final Weekday[] VALUES = values(); - private final int index; - private final int value; + public static Weekday valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Weekday(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:oslp.Weekday) + } + + /** + * Protobuf enum {@code oslp.ActionTime} + */ + public enum ActionTime + implements com.google.protobuf.ProtocolMessageEnum { + /** + * AT_UNSPECIFIED = 0; + */ + AT_UNSPECIFIED(0), + /** + * ABSOLUTETIME = 1; + */ + ABSOLUTETIME(1), + /** + * SUNRISE = 2; + */ + SUNRISE(2), + /** + * SUNSET = 3; + */ + SUNSET(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + ActionTime.class.getName()); + } + /** + * AT_UNSPECIFIED = 0; + */ + public static final int AT_UNSPECIFIED_VALUE = 0; + /** + * ABSOLUTETIME = 1; + */ + public static final int ABSOLUTETIME_VALUE = 1; + /** + * SUNRISE = 2; + */ + public static final int SUNRISE_VALUE = 2; + /** + * SUNSET = 3; + */ + public static final int SUNSET_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ActionTime valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ActionTime forNumber(int value) { + switch (value) { + case 0: return AT_UNSPECIFIED; + case 1: return ABSOLUTETIME; + case 2: return SUNRISE; + case 3: return SUNSET; + default: return null; + } + } - private Event(final int index, final int value) { - this.index = index; - this.value = value; - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ActionTime> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ActionTime findValueByNumber(int number) { + return ActionTime.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(5); + } - // @@protoc_insertion_point(enum_scope:oslp.Event) - } + private static final ActionTime[] VALUES = values(); - public enum TriggerType implements com.google.protobuf.ProtocolMessageEnum { - TT_NOT_SET(0, 0), - LIGHT_TRIGGER(1, 1), - ASTRONOMICAL(2, 2), - ; + public static ActionTime valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ActionTime(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:oslp.ActionTime) + } + + /** + * Protobuf enum {@code oslp.DeviceType} + */ + public enum DeviceType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * PSLD = 0; + */ + PSLD(0), + /** + * SSLD = 1; + */ + SSLD(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + DeviceType.class.getName()); + } + /** + * PSLD = 0; + */ + public static final int PSLD_VALUE = 0; + /** + * SSLD = 1; + */ + public static final int SSLD_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DeviceType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DeviceType forNumber(int value) { + switch (value) { + case 0: return PSLD; + case 1: return SSLD; + default: return null; + } + } - public static final int TT_NOT_SET_VALUE = 0; - public static final int LIGHT_TRIGGER_VALUE = 1; - public static final int ASTRONOMICAL_VALUE = 2; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DeviceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeviceType findValueByNumber(int number) { + return DeviceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(6); + } - @Override - public final int getNumber() { - return this.value; - } + private static final DeviceType[] VALUES = values(); - public static TriggerType valueOf(final int value) { - switch (value) { - case 0: - return TT_NOT_SET; - case 1: - return LIGHT_TRIGGER; - case 2: - return ASTRONOMICAL; - default: - return null; - } - } + public static DeviceType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DeviceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:oslp.DeviceType) + } + + /** + * Protobuf enum {@code oslp.Status} + */ + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { + /** + * OK = 0; + */ + OK(0), + /** + *
+         * General failure.
+         * 
+ * + * FAILURE = 1; + */ + FAILURE(1), + /** + *
+         * Request received in wrong state.
+         * 
+ * + * REJECTED = 2; + */ + REJECTED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + Status.class.getName()); + } + /** + * OK = 0; + */ + public static final int OK_VALUE = 0; + /** + *
+         * General failure.
+         * 
+ * + * FAILURE = 1; + */ + public static final int FAILURE_VALUE = 1; + /** + *
+         * Request received in wrong state.
+         * 
+ * + * REJECTED = 2; + */ + public static final int REJECTED_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Status forNumber(int value) { + switch (value) { + case 0: return OK; + case 1: return FAILURE; + case 2: return REJECTED; + default: return null; + } + } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(7); + } - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - @Override - public TriggerType findValueByNumber(final int number) { - return TriggerType.valueOf(number); - } - }; + private static final Status[] VALUES = values(); - @Override - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(this.index); - } + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:oslp.Status) + } + + /** + * Protobuf enum {@code oslp.LightType} + */ + public enum LightType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * LT_NOT_SET = 0; + */ + LT_NOT_SET(0), + /** + * RELAY = 1; + */ + RELAY(1), + /** + * ONE_TO_TEN_VOLT = 2; + */ + ONE_TO_TEN_VOLT(2), + /** + * ONE_TO_TEN_VOLT_REVERSE = 3; + */ + ONE_TO_TEN_VOLT_REVERSE(3), + /** + * DALI = 4; + */ + DALI(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + LightType.class.getName()); + } + /** + * LT_NOT_SET = 0; + */ + public static final int LT_NOT_SET_VALUE = 0; + /** + * RELAY = 1; + */ + public static final int RELAY_VALUE = 1; + /** + * ONE_TO_TEN_VOLT = 2; + */ + public static final int ONE_TO_TEN_VOLT_VALUE = 2; + /** + * ONE_TO_TEN_VOLT_REVERSE = 3; + */ + public static final int ONE_TO_TEN_VOLT_REVERSE_VALUE = 3; + /** + * DALI = 4; + */ + public static final int DALI_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LightType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LightType forNumber(int value) { + switch (value) { + case 0: return LT_NOT_SET; + case 1: return RELAY; + case 2: return ONE_TO_TEN_VOLT; + case 3: return ONE_TO_TEN_VOLT_REVERSE; + case 4: return DALI; + default: return null; + } + } - @Override - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LightType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LightType findValueByNumber(int number) { + return LightType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(8); + } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(2); - } + private static final LightType[] VALUES = values(); - private static final TriggerType[] VALUES = { - TT_NOT_SET, LIGHT_TRIGGER, ASTRONOMICAL, - }; + public static LightType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LightType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:oslp.LightType) + } + + /** + * Protobuf enum {@code oslp.RelayType} + */ + public enum RelayType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * RT_NOT_SET = 0; + */ + RT_NOT_SET(0), + /** + * LIGHT = 1; + */ + LIGHT(1), + /** + * TARIFF = 2; + */ + TARIFF(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + RelayType.class.getName()); + } + /** + * RT_NOT_SET = 0; + */ + public static final int RT_NOT_SET_VALUE = 0; + /** + * LIGHT = 1; + */ + public static final int LIGHT_VALUE = 1; + /** + * TARIFF = 2; + */ + public static final int TARIFF_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RelayType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RelayType forNumber(int value) { + switch (value) { + case 0: return RT_NOT_SET; + case 1: return LIGHT; + case 2: return TARIFF; + default: return null; + } + } - public static TriggerType valueOf( - final com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RelayType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RelayType findValueByNumber(int number) { + return RelayType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(9); + } - private final int index; - private final int value; + private static final RelayType[] VALUES = values(); - private TriggerType(final int index, final int value) { - this.index = index; - this.value = value; - } + public static RelayType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RelayType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:oslp.RelayType) + } + + /** + *
+     * Deprecated, no longer supported by the platform.
+     * 
+ * + * Protobuf enum {@code oslp.MeterType} + */ + public enum MeterType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * MT_NOT_SET = 0; + */ + MT_NOT_SET(0), + /** + * P1 = 1; + */ + P1(1), + /** + * PULSE = 2; + */ + PULSE(2), + /** + * AUX = 3; + */ + AUX(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + MeterType.class.getName()); + } + /** + * MT_NOT_SET = 0; + */ + public static final int MT_NOT_SET_VALUE = 0; + /** + * P1 = 1; + */ + public static final int P1_VALUE = 1; + /** + * PULSE = 2; + */ + public static final int PULSE_VALUE = 2; + /** + * AUX = 3; + */ + public static final int AUX_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MeterType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MeterType forNumber(int value) { + switch (value) { + case 0: return MT_NOT_SET; + case 1: return P1; + case 2: return PULSE; + case 3: return AUX; + default: return null; + } + } - // @@protoc_insertion_point(enum_scope:oslp.TriggerType) - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MeterType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MeterType findValueByNumber(int number) { + return MeterType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(10); + } - public enum TransitionType implements com.google.protobuf.ProtocolMessageEnum { - NIGHT_DAY(0, 0), - DAY_NIGHT(1, 1), - ; + private static final MeterType[] VALUES = values(); - public static final int NIGHT_DAY_VALUE = 0; - public static final int DAY_NIGHT_VALUE = 1; + public static MeterType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MeterType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:oslp.MeterType) + } + + /** + * Protobuf enum {@code oslp.LinkType} + */ + public enum LinkType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * LINK_NOT_SET = 0; + */ + LINK_NOT_SET(0), + /** + * GPRS = 1; + */ + GPRS(1), + /** + * CDMA = 2; + */ + CDMA(2), + /** + * ETHERNET = 3; + */ + ETHERNET(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + LinkType.class.getName()); + } + /** + * LINK_NOT_SET = 0; + */ + public static final int LINK_NOT_SET_VALUE = 0; + /** + * GPRS = 1; + */ + public static final int GPRS_VALUE = 1; + /** + * CDMA = 2; + */ + public static final int CDMA_VALUE = 2; + /** + * ETHERNET = 3; + */ + public static final int ETHERNET_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LinkType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LinkType forNumber(int value) { + switch (value) { + case 0: return LINK_NOT_SET; + case 1: return GPRS; + case 2: return CDMA; + case 3: return ETHERNET; + default: return null; + } + } - @Override - public final int getNumber() { - return this.value; - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LinkType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LinkType findValueByNumber(int number) { + return LinkType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(11); + } - public static TransitionType valueOf(final int value) { - switch (value) { - case 0: - return NIGHT_DAY; - case 1: - return DAY_NIGHT; - default: - return null; - } - } + private static final LinkType[] VALUES = values(); - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } + public static LinkType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LinkType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:oslp.LinkType) + } + + /** + *
+     * Deprecated, no longer supported by the platform.
+     * 
+ * + * Protobuf enum {@code oslp.LongTermIntervalType} + */ + public enum LongTermIntervalType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * LT_INT_NOT_SET = 0; + */ + LT_INT_NOT_SET(0), + /** + * DAYS = 1; + */ + DAYS(1), + /** + * MONTHS = 2; + */ + MONTHS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + LongTermIntervalType.class.getName()); + } + /** + * LT_INT_NOT_SET = 0; + */ + public static final int LT_INT_NOT_SET_VALUE = 0; + /** + * DAYS = 1; + */ + public static final int DAYS_VALUE = 1; + /** + * MONTHS = 2; + */ + public static final int MONTHS_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LongTermIntervalType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LongTermIntervalType forNumber(int value) { + switch (value) { + case 0: return LT_INT_NOT_SET; + case 1: return DAYS; + case 2: return MONTHS; + default: return null; + } + } - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - @Override - public TransitionType findValueByNumber(final int number) { - return TransitionType.valueOf(number); - } - }; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LongTermIntervalType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LongTermIntervalType findValueByNumber(int number) { + return LongTermIntervalType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(12); + } - @Override - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(this.index); - } + private static final LongTermIntervalType[] VALUES = values(); - @Override - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + public static LongTermIntervalType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LongTermIntervalType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:oslp.LongTermIntervalType) + } + + /** + *
+     * Deprecated, no longer supported by the platform.
+     * 
+ * + * Protobuf enum {@code oslp.HistoryTermType} + */ + public enum HistoryTermType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * Short = 0; + */ + Short(0), + /** + * Long = 1; + */ + Long(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + HistoryTermType.class.getName()); + } + /** + * Short = 0; + */ + public static final int Short_VALUE = 0; + /** + * Long = 1; + */ + public static final int Long_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HistoryTermType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static HistoryTermType forNumber(int value) { + switch (value) { + case 0: return Short; + case 1: return Long; + default: return null; + } + } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(3); - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HistoryTermType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HistoryTermType findValueByNumber(int number) { + return HistoryTermType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(13); + } - private static final TransitionType[] VALUES = { - NIGHT_DAY, DAY_NIGHT, - }; + private static final HistoryTermType[] VALUES = values(); - public static TransitionType valueOf( - final com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } + public static HistoryTermType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HistoryTermType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:oslp.HistoryTermType) + } + + public interface MessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.Message) + com.google.protobuf.MessageOrBuilder { + + /** + * .oslp.RegisterDeviceRequest registerDeviceRequest = 1; + * @return Whether the registerDeviceRequest field is set. + */ + boolean hasRegisterDeviceRequest(); + /** + * .oslp.RegisterDeviceRequest registerDeviceRequest = 1; + * @return The registerDeviceRequest. + */ + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest getRegisterDeviceRequest(); + /** + * .oslp.RegisterDeviceRequest registerDeviceRequest = 1; + */ + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequestOrBuilder getRegisterDeviceRequestOrBuilder(); + + /** + * .oslp.RegisterDeviceResponse registerDeviceResponse = 2; + * @return Whether the registerDeviceResponse field is set. + */ + boolean hasRegisterDeviceResponse(); + /** + * .oslp.RegisterDeviceResponse registerDeviceResponse = 2; + * @return The registerDeviceResponse. + */ + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse getRegisterDeviceResponse(); + /** + * .oslp.RegisterDeviceResponse registerDeviceResponse = 2; + */ + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponseOrBuilder getRegisterDeviceResponseOrBuilder(); + + /** + * .oslp.StartSelfTestRequest startSelfTestRequest = 3; + * @return Whether the startSelfTestRequest field is set. + */ + boolean hasStartSelfTestRequest(); + /** + * .oslp.StartSelfTestRequest startSelfTestRequest = 3; + * @return The startSelfTestRequest. + */ + org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest getStartSelfTestRequest(); + /** + * .oslp.StartSelfTestRequest startSelfTestRequest = 3; + */ + org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequestOrBuilder getStartSelfTestRequestOrBuilder(); + + /** + * .oslp.StartSelfTestResponse startSelfTestResponse = 4; + * @return Whether the startSelfTestResponse field is set. + */ + boolean hasStartSelfTestResponse(); + /** + * .oslp.StartSelfTestResponse startSelfTestResponse = 4; + * @return The startSelfTestResponse. + */ + org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse getStartSelfTestResponse(); + /** + * .oslp.StartSelfTestResponse startSelfTestResponse = 4; + */ + org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponseOrBuilder getStartSelfTestResponseOrBuilder(); + + /** + * .oslp.StopSelfTestRequest stopSelfTestRequest = 5; + * @return Whether the stopSelfTestRequest field is set. + */ + boolean hasStopSelfTestRequest(); + /** + * .oslp.StopSelfTestRequest stopSelfTestRequest = 5; + * @return The stopSelfTestRequest. + */ + org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest getStopSelfTestRequest(); + /** + * .oslp.StopSelfTestRequest stopSelfTestRequest = 5; + */ + org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequestOrBuilder getStopSelfTestRequestOrBuilder(); + + /** + * .oslp.StopSelfTestResponse stopSelfTestResponse = 6; + * @return Whether the stopSelfTestResponse field is set. + */ + boolean hasStopSelfTestResponse(); + /** + * .oslp.StopSelfTestResponse stopSelfTestResponse = 6; + * @return The stopSelfTestResponse. + */ + org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse getStopSelfTestResponse(); + /** + * .oslp.StopSelfTestResponse stopSelfTestResponse = 6; + */ + org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponseOrBuilder getStopSelfTestResponseOrBuilder(); + + /** + * .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; + * @return Whether the updateFirmwareRequest field is set. + */ + boolean hasUpdateFirmwareRequest(); + /** + * .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; + * @return The updateFirmwareRequest. + */ + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest getUpdateFirmwareRequest(); + /** + * .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; + */ + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequestOrBuilder getUpdateFirmwareRequestOrBuilder(); + + /** + * .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; + * @return Whether the updateFirmwareResponse field is set. + */ + boolean hasUpdateFirmwareResponse(); + /** + * .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; + * @return The updateFirmwareResponse. + */ + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse getUpdateFirmwareResponse(); + /** + * .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; + */ + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponseOrBuilder getUpdateFirmwareResponseOrBuilder(); + + /** + * .oslp.SetLightRequest setLightRequest = 9; + * @return Whether the setLightRequest field is set. + */ + boolean hasSetLightRequest(); + /** + * .oslp.SetLightRequest setLightRequest = 9; + * @return The setLightRequest. + */ + org.opensmartgridplatform.oslp.Oslp.SetLightRequest getSetLightRequest(); + /** + * .oslp.SetLightRequest setLightRequest = 9; + */ + org.opensmartgridplatform.oslp.Oslp.SetLightRequestOrBuilder getSetLightRequestOrBuilder(); + + /** + * .oslp.SetLightResponse setLightResponse = 10; + * @return Whether the setLightResponse field is set. + */ + boolean hasSetLightResponse(); + /** + * .oslp.SetLightResponse setLightResponse = 10; + * @return The setLightResponse. + */ + org.opensmartgridplatform.oslp.Oslp.SetLightResponse getSetLightResponse(); + /** + * .oslp.SetLightResponse setLightResponse = 10; + */ + org.opensmartgridplatform.oslp.Oslp.SetLightResponseOrBuilder getSetLightResponseOrBuilder(); + + /** + * .oslp.GetStatusRequest getStatusRequest = 11; + * @return Whether the getStatusRequest field is set. + */ + boolean hasGetStatusRequest(); + /** + * .oslp.GetStatusRequest getStatusRequest = 11; + * @return The getStatusRequest. + */ + org.opensmartgridplatform.oslp.Oslp.GetStatusRequest getGetStatusRequest(); + /** + * .oslp.GetStatusRequest getStatusRequest = 11; + */ + org.opensmartgridplatform.oslp.Oslp.GetStatusRequestOrBuilder getGetStatusRequestOrBuilder(); + + /** + * .oslp.GetStatusResponse getStatusResponse = 12; + * @return Whether the getStatusResponse field is set. + */ + boolean hasGetStatusResponse(); + /** + * .oslp.GetStatusResponse getStatusResponse = 12; + * @return The getStatusResponse. + */ + org.opensmartgridplatform.oslp.Oslp.GetStatusResponse getGetStatusResponse(); + /** + * .oslp.GetStatusResponse getStatusResponse = 12; + */ + org.opensmartgridplatform.oslp.Oslp.GetStatusResponseOrBuilder getGetStatusResponseOrBuilder(); + + /** + * .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; + * @return Whether the resumeScheduleRequest field is set. + */ + boolean hasResumeScheduleRequest(); + /** + * .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; + * @return The resumeScheduleRequest. + */ + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest getResumeScheduleRequest(); + /** + * .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; + */ + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequestOrBuilder getResumeScheduleRequestOrBuilder(); + + /** + * .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; + * @return Whether the resumeScheduleResponse field is set. + */ + boolean hasResumeScheduleResponse(); + /** + * .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; + * @return The resumeScheduleResponse. + */ + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse getResumeScheduleResponse(); + /** + * .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; + */ + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponseOrBuilder getResumeScheduleResponseOrBuilder(); + + /** + * .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; + * @return Whether the setEventNotificationsRequest field is set. + */ + boolean hasSetEventNotificationsRequest(); + /** + * .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; + * @return The setEventNotificationsRequest. + */ + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest getSetEventNotificationsRequest(); + /** + * .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; + */ + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequestOrBuilder getSetEventNotificationsRequestOrBuilder(); + + /** + * .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; + * @return Whether the setEventNotificationsResponse field is set. + */ + boolean hasSetEventNotificationsResponse(); + /** + * .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; + * @return The setEventNotificationsResponse. + */ + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse getSetEventNotificationsResponse(); + /** + * .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; + */ + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponseOrBuilder getSetEventNotificationsResponseOrBuilder(); + + /** + * .oslp.EventNotificationRequest eventNotificationRequest = 17; + * @return Whether the eventNotificationRequest field is set. + */ + boolean hasEventNotificationRequest(); + /** + * .oslp.EventNotificationRequest eventNotificationRequest = 17; + * @return The eventNotificationRequest. + */ + org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest getEventNotificationRequest(); + /** + * .oslp.EventNotificationRequest eventNotificationRequest = 17; + */ + org.opensmartgridplatform.oslp.Oslp.EventNotificationRequestOrBuilder getEventNotificationRequestOrBuilder(); + + /** + * .oslp.EventNotificationResponse eventNotificationResponse = 18; + * @return Whether the eventNotificationResponse field is set. + */ + boolean hasEventNotificationResponse(); + /** + * .oslp.EventNotificationResponse eventNotificationResponse = 18; + * @return The eventNotificationResponse. + */ + org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse getEventNotificationResponse(); + /** + * .oslp.EventNotificationResponse eventNotificationResponse = 18; + */ + org.opensmartgridplatform.oslp.Oslp.EventNotificationResponseOrBuilder getEventNotificationResponseOrBuilder(); + + /** + * .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; + * @return Whether the getFirmwareVersionRequest field is set. + */ + boolean hasGetFirmwareVersionRequest(); + /** + * .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; + * @return The getFirmwareVersionRequest. + */ + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest getGetFirmwareVersionRequest(); + /** + * .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; + */ + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequestOrBuilder getGetFirmwareVersionRequestOrBuilder(); + + /** + * .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; + * @return Whether the getFirmwareVersionResponse field is set. + */ + boolean hasGetFirmwareVersionResponse(); + /** + * .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; + * @return The getFirmwareVersionResponse. + */ + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse getGetFirmwareVersionResponse(); + /** + * .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; + */ + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponseOrBuilder getGetFirmwareVersionResponseOrBuilder(); + + /** + * .oslp.SetScheduleRequest setScheduleRequest = 21; + * @return Whether the setScheduleRequest field is set. + */ + boolean hasSetScheduleRequest(); + /** + * .oslp.SetScheduleRequest setScheduleRequest = 21; + * @return The setScheduleRequest. + */ + org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest getSetScheduleRequest(); + /** + * .oslp.SetScheduleRequest setScheduleRequest = 21; + */ + org.opensmartgridplatform.oslp.Oslp.SetScheduleRequestOrBuilder getSetScheduleRequestOrBuilder(); + + /** + * .oslp.SetScheduleResponse setScheduleResponse = 22; + * @return Whether the setScheduleResponse field is set. + */ + boolean hasSetScheduleResponse(); + /** + * .oslp.SetScheduleResponse setScheduleResponse = 22; + * @return The setScheduleResponse. + */ + org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse getSetScheduleResponse(); + /** + * .oslp.SetScheduleResponse setScheduleResponse = 22; + */ + org.opensmartgridplatform.oslp.Oslp.SetScheduleResponseOrBuilder getSetScheduleResponseOrBuilder(); + + /** + * .oslp.SetConfigurationRequest setConfigurationRequest = 25; + * @return Whether the setConfigurationRequest field is set. + */ + boolean hasSetConfigurationRequest(); + /** + * .oslp.SetConfigurationRequest setConfigurationRequest = 25; + * @return The setConfigurationRequest. + */ + org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest getSetConfigurationRequest(); + /** + * .oslp.SetConfigurationRequest setConfigurationRequest = 25; + */ + org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequestOrBuilder getSetConfigurationRequestOrBuilder(); + + /** + * .oslp.SetConfigurationResponse setConfigurationResponse = 26; + * @return Whether the setConfigurationResponse field is set. + */ + boolean hasSetConfigurationResponse(); + /** + * .oslp.SetConfigurationResponse setConfigurationResponse = 26; + * @return The setConfigurationResponse. + */ + org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse getSetConfigurationResponse(); + /** + * .oslp.SetConfigurationResponse setConfigurationResponse = 26; + */ + org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponseOrBuilder getSetConfigurationResponseOrBuilder(); + + /** + * .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; + * @return Whether the getPowerUsageHistoryRequest field is set. + */ + boolean hasGetPowerUsageHistoryRequest(); + /** + * .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; + * @return The getPowerUsageHistoryRequest. + */ + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest getGetPowerUsageHistoryRequest(); + /** + * .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; + */ + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequestOrBuilder getGetPowerUsageHistoryRequestOrBuilder(); + + /** + * .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; + * @return Whether the getPowerUsageHistoryResponse field is set. + */ + boolean hasGetPowerUsageHistoryResponse(); + /** + * .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; + * @return The getPowerUsageHistoryResponse. + */ + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse getGetPowerUsageHistoryResponse(); + /** + * .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; + */ + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponseOrBuilder getGetPowerUsageHistoryResponseOrBuilder(); + + /** + * .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; + * @return Whether the getActualPowerUsageRequest field is set. + */ + boolean hasGetActualPowerUsageRequest(); + /** + * .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; + * @return The getActualPowerUsageRequest. + */ + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest getGetActualPowerUsageRequest(); + /** + * .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; + */ + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequestOrBuilder getGetActualPowerUsageRequestOrBuilder(); + + /** + * .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; + * @return Whether the getActualPowerUsageResponse field is set. + */ + boolean hasGetActualPowerUsageResponse(); + /** + * .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; + * @return The getActualPowerUsageResponse. + */ + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse getGetActualPowerUsageResponse(); + /** + * .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; + */ + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponseOrBuilder getGetActualPowerUsageResponseOrBuilder(); + + /** + * .oslp.SetRebootRequest setRebootRequest = 31; + * @return Whether the setRebootRequest field is set. + */ + boolean hasSetRebootRequest(); + /** + * .oslp.SetRebootRequest setRebootRequest = 31; + * @return The setRebootRequest. + */ + org.opensmartgridplatform.oslp.Oslp.SetRebootRequest getSetRebootRequest(); + /** + * .oslp.SetRebootRequest setRebootRequest = 31; + */ + org.opensmartgridplatform.oslp.Oslp.SetRebootRequestOrBuilder getSetRebootRequestOrBuilder(); + + /** + * .oslp.SetRebootResponse setRebootResponse = 32; + * @return Whether the setRebootResponse field is set. + */ + boolean hasSetRebootResponse(); + /** + * .oslp.SetRebootResponse setRebootResponse = 32; + * @return The setRebootResponse. + */ + org.opensmartgridplatform.oslp.Oslp.SetRebootResponse getSetRebootResponse(); + /** + * .oslp.SetRebootResponse setRebootResponse = 32; + */ + org.opensmartgridplatform.oslp.Oslp.SetRebootResponseOrBuilder getSetRebootResponseOrBuilder(); + + /** + * .oslp.SetTransitionRequest setTransitionRequest = 33; + * @return Whether the setTransitionRequest field is set. + */ + boolean hasSetTransitionRequest(); + /** + * .oslp.SetTransitionRequest setTransitionRequest = 33; + * @return The setTransitionRequest. + */ + org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest getSetTransitionRequest(); + /** + * .oslp.SetTransitionRequest setTransitionRequest = 33; + */ + org.opensmartgridplatform.oslp.Oslp.SetTransitionRequestOrBuilder getSetTransitionRequestOrBuilder(); + + /** + * .oslp.SetTransitionResponse setTransitionResponse = 34; + * @return Whether the setTransitionResponse field is set. + */ + boolean hasSetTransitionResponse(); + /** + * .oslp.SetTransitionResponse setTransitionResponse = 34; + * @return The setTransitionResponse. + */ + org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse getSetTransitionResponse(); + /** + * .oslp.SetTransitionResponse setTransitionResponse = 34; + */ + org.opensmartgridplatform.oslp.Oslp.SetTransitionResponseOrBuilder getSetTransitionResponseOrBuilder(); + + /** + * .oslp.GetConfigurationRequest getConfigurationRequest = 35; + * @return Whether the getConfigurationRequest field is set. + */ + boolean hasGetConfigurationRequest(); + /** + * .oslp.GetConfigurationRequest getConfigurationRequest = 35; + * @return The getConfigurationRequest. + */ + org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest getGetConfigurationRequest(); + /** + * .oslp.GetConfigurationRequest getConfigurationRequest = 35; + */ + org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequestOrBuilder getGetConfigurationRequestOrBuilder(); + + /** + * .oslp.GetConfigurationResponse getConfigurationResponse = 36; + * @return Whether the getConfigurationResponse field is set. + */ + boolean hasGetConfigurationResponse(); + /** + * .oslp.GetConfigurationResponse getConfigurationResponse = 36; + * @return The getConfigurationResponse. + */ + org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse getGetConfigurationResponse(); + /** + * .oslp.GetConfigurationResponse getConfigurationResponse = 36; + */ + org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponseOrBuilder getGetConfigurationResponseOrBuilder(); + + /** + * .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; + * @return Whether the confirmRegisterDeviceRequest field is set. + */ + boolean hasConfirmRegisterDeviceRequest(); + /** + * .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; + * @return The confirmRegisterDeviceRequest. + */ + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest getConfirmRegisterDeviceRequest(); + /** + * .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; + */ + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequestOrBuilder getConfirmRegisterDeviceRequestOrBuilder(); + + /** + * .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; + * @return Whether the confirmRegisterDeviceResponse field is set. + */ + boolean hasConfirmRegisterDeviceResponse(); + /** + * .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; + * @return The confirmRegisterDeviceResponse. + */ + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse getConfirmRegisterDeviceResponse(); + /** + * .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; + */ + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponseOrBuilder getConfirmRegisterDeviceResponseOrBuilder(); + + /** + * .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; + * @return Whether the updateDeviceSslCertificationRequest field is set. + */ + boolean hasUpdateDeviceSslCertificationRequest(); + /** + * .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; + * @return The updateDeviceSslCertificationRequest. + */ + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest getUpdateDeviceSslCertificationRequest(); + /** + * .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; + */ + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequestOrBuilder getUpdateDeviceSslCertificationRequestOrBuilder(); + + /** + * .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = 40; + * @return Whether the updateDeviceSslCertificationResponse field is set. + */ + boolean hasUpdateDeviceSslCertificationResponse(); + /** + * .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = 40; + * @return The updateDeviceSslCertificationResponse. + */ + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse getUpdateDeviceSslCertificationResponse(); + /** + * .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = 40; + */ + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponseOrBuilder getUpdateDeviceSslCertificationResponseOrBuilder(); + + /** + * .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; + * @return Whether the setDeviceVerificationKeyRequest field is set. + */ + boolean hasSetDeviceVerificationKeyRequest(); + /** + * .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; + * @return The setDeviceVerificationKeyRequest. + */ + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest getSetDeviceVerificationKeyRequest(); + /** + * .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; + */ + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequestOrBuilder getSetDeviceVerificationKeyRequestOrBuilder(); + + /** + * .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; + * @return Whether the setDeviceVerificationKeyResponse field is set. + */ + boolean hasSetDeviceVerificationKeyResponse(); + /** + * .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; + * @return The setDeviceVerificationKeyResponse. + */ + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse getSetDeviceVerificationKeyResponse(); + /** + * .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; + */ + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponseOrBuilder getSetDeviceVerificationKeyResponseOrBuilder(); + + /** + * .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; + * @return Whether the switchFirmwareRequest field is set. + */ + boolean hasSwitchFirmwareRequest(); + /** + * .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; + * @return The switchFirmwareRequest. + */ + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest getSwitchFirmwareRequest(); + /** + * .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; + */ + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequestOrBuilder getSwitchFirmwareRequestOrBuilder(); + + /** + * .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; + * @return Whether the switchFirmwareResponse field is set. + */ + boolean hasSwitchFirmwareResponse(); + /** + * .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; + * @return The switchFirmwareResponse. + */ + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse getSwitchFirmwareResponse(); + /** + * .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; + */ + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponseOrBuilder getSwitchFirmwareResponseOrBuilder(); + + /** + * .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; + * @return Whether the switchConfigurationRequest field is set. + */ + boolean hasSwitchConfigurationRequest(); + /** + * .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; + * @return The switchConfigurationRequest. + */ + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest getSwitchConfigurationRequest(); + /** + * .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; + */ + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequestOrBuilder getSwitchConfigurationRequestOrBuilder(); + + /** + * .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; + * @return Whether the switchConfigurationResponse field is set. + */ + boolean hasSwitchConfigurationResponse(); + /** + * .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; + * @return The switchConfigurationResponse. + */ + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse getSwitchConfigurationResponse(); + /** + * .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; + */ + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponseOrBuilder getSwitchConfigurationResponseOrBuilder(); + } + /** + * Protobuf type {@code oslp.Message} + */ + public static final class Message extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.Message) + MessageOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + Message.class.getName()); + } + // Use Message.newBuilder() to construct. + private Message(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Message() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Message_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Message_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.Message.class, org.opensmartgridplatform.oslp.Oslp.Message.Builder.class); + } + + private int bitField0_; + private int bitField1_; + public static final int REGISTERDEVICEREQUEST_FIELD_NUMBER = 1; + private org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest registerDeviceRequest_; + /** + * .oslp.RegisterDeviceRequest registerDeviceRequest = 1; + * @return Whether the registerDeviceRequest field is set. + */ + @java.lang.Override + public boolean hasRegisterDeviceRequest() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.RegisterDeviceRequest registerDeviceRequest = 1; + * @return The registerDeviceRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest getRegisterDeviceRequest() { + return registerDeviceRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.getDefaultInstance() : registerDeviceRequest_; + } + /** + * .oslp.RegisterDeviceRequest registerDeviceRequest = 1; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequestOrBuilder getRegisterDeviceRequestOrBuilder() { + return registerDeviceRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.getDefaultInstance() : registerDeviceRequest_; + } + + public static final int REGISTERDEVICERESPONSE_FIELD_NUMBER = 2; + private org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse registerDeviceResponse_; + /** + * .oslp.RegisterDeviceResponse registerDeviceResponse = 2; + * @return Whether the registerDeviceResponse field is set. + */ + @java.lang.Override + public boolean hasRegisterDeviceResponse() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .oslp.RegisterDeviceResponse registerDeviceResponse = 2; + * @return The registerDeviceResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse getRegisterDeviceResponse() { + return registerDeviceResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.getDefaultInstance() : registerDeviceResponse_; + } + /** + * .oslp.RegisterDeviceResponse registerDeviceResponse = 2; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponseOrBuilder getRegisterDeviceResponseOrBuilder() { + return registerDeviceResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.getDefaultInstance() : registerDeviceResponse_; + } + + public static final int STARTSELFTESTREQUEST_FIELD_NUMBER = 3; + private org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest startSelfTestRequest_; + /** + * .oslp.StartSelfTestRequest startSelfTestRequest = 3; + * @return Whether the startSelfTestRequest field is set. + */ + @java.lang.Override + public boolean hasStartSelfTestRequest() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .oslp.StartSelfTestRequest startSelfTestRequest = 3; + * @return The startSelfTestRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest getStartSelfTestRequest() { + return startSelfTestRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.getDefaultInstance() : startSelfTestRequest_; + } + /** + * .oslp.StartSelfTestRequest startSelfTestRequest = 3; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequestOrBuilder getStartSelfTestRequestOrBuilder() { + return startSelfTestRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.getDefaultInstance() : startSelfTestRequest_; + } + + public static final int STARTSELFTESTRESPONSE_FIELD_NUMBER = 4; + private org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse startSelfTestResponse_; + /** + * .oslp.StartSelfTestResponse startSelfTestResponse = 4; + * @return Whether the startSelfTestResponse field is set. + */ + @java.lang.Override + public boolean hasStartSelfTestResponse() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .oslp.StartSelfTestResponse startSelfTestResponse = 4; + * @return The startSelfTestResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse getStartSelfTestResponse() { + return startSelfTestResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.getDefaultInstance() : startSelfTestResponse_; + } + /** + * .oslp.StartSelfTestResponse startSelfTestResponse = 4; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponseOrBuilder getStartSelfTestResponseOrBuilder() { + return startSelfTestResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.getDefaultInstance() : startSelfTestResponse_; + } + + public static final int STOPSELFTESTREQUEST_FIELD_NUMBER = 5; + private org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest stopSelfTestRequest_; + /** + * .oslp.StopSelfTestRequest stopSelfTestRequest = 5; + * @return Whether the stopSelfTestRequest field is set. + */ + @java.lang.Override + public boolean hasStopSelfTestRequest() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .oslp.StopSelfTestRequest stopSelfTestRequest = 5; + * @return The stopSelfTestRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest getStopSelfTestRequest() { + return stopSelfTestRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.getDefaultInstance() : stopSelfTestRequest_; + } + /** + * .oslp.StopSelfTestRequest stopSelfTestRequest = 5; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequestOrBuilder getStopSelfTestRequestOrBuilder() { + return stopSelfTestRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.getDefaultInstance() : stopSelfTestRequest_; + } + + public static final int STOPSELFTESTRESPONSE_FIELD_NUMBER = 6; + private org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse stopSelfTestResponse_; + /** + * .oslp.StopSelfTestResponse stopSelfTestResponse = 6; + * @return Whether the stopSelfTestResponse field is set. + */ + @java.lang.Override + public boolean hasStopSelfTestResponse() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .oslp.StopSelfTestResponse stopSelfTestResponse = 6; + * @return The stopSelfTestResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse getStopSelfTestResponse() { + return stopSelfTestResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.getDefaultInstance() : stopSelfTestResponse_; + } + /** + * .oslp.StopSelfTestResponse stopSelfTestResponse = 6; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponseOrBuilder getStopSelfTestResponseOrBuilder() { + return stopSelfTestResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.getDefaultInstance() : stopSelfTestResponse_; + } + + public static final int UPDATEFIRMWAREREQUEST_FIELD_NUMBER = 7; + private org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest updateFirmwareRequest_; + /** + * .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; + * @return Whether the updateFirmwareRequest field is set. + */ + @java.lang.Override + public boolean hasUpdateFirmwareRequest() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; + * @return The updateFirmwareRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest getUpdateFirmwareRequest() { + return updateFirmwareRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.getDefaultInstance() : updateFirmwareRequest_; + } + /** + * .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequestOrBuilder getUpdateFirmwareRequestOrBuilder() { + return updateFirmwareRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.getDefaultInstance() : updateFirmwareRequest_; + } + + public static final int UPDATEFIRMWARERESPONSE_FIELD_NUMBER = 8; + private org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse updateFirmwareResponse_; + /** + * .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; + * @return Whether the updateFirmwareResponse field is set. + */ + @java.lang.Override + public boolean hasUpdateFirmwareResponse() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; + * @return The updateFirmwareResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse getUpdateFirmwareResponse() { + return updateFirmwareResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.getDefaultInstance() : updateFirmwareResponse_; + } + /** + * .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponseOrBuilder getUpdateFirmwareResponseOrBuilder() { + return updateFirmwareResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.getDefaultInstance() : updateFirmwareResponse_; + } + + public static final int SETLIGHTREQUEST_FIELD_NUMBER = 9; + private org.opensmartgridplatform.oslp.Oslp.SetLightRequest setLightRequest_; + /** + * .oslp.SetLightRequest setLightRequest = 9; + * @return Whether the setLightRequest field is set. + */ + @java.lang.Override + public boolean hasSetLightRequest() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * .oslp.SetLightRequest setLightRequest = 9; + * @return The setLightRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetLightRequest getSetLightRequest() { + return setLightRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetLightRequest.getDefaultInstance() : setLightRequest_; + } + /** + * .oslp.SetLightRequest setLightRequest = 9; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetLightRequestOrBuilder getSetLightRequestOrBuilder() { + return setLightRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetLightRequest.getDefaultInstance() : setLightRequest_; + } + + public static final int SETLIGHTRESPONSE_FIELD_NUMBER = 10; + private org.opensmartgridplatform.oslp.Oslp.SetLightResponse setLightResponse_; + /** + * .oslp.SetLightResponse setLightResponse = 10; + * @return Whether the setLightResponse field is set. + */ + @java.lang.Override + public boolean hasSetLightResponse() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * .oslp.SetLightResponse setLightResponse = 10; + * @return The setLightResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetLightResponse getSetLightResponse() { + return setLightResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetLightResponse.getDefaultInstance() : setLightResponse_; + } + /** + * .oslp.SetLightResponse setLightResponse = 10; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetLightResponseOrBuilder getSetLightResponseOrBuilder() { + return setLightResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetLightResponse.getDefaultInstance() : setLightResponse_; + } + + public static final int GETSTATUSREQUEST_FIELD_NUMBER = 11; + private org.opensmartgridplatform.oslp.Oslp.GetStatusRequest getStatusRequest_; + /** + * .oslp.GetStatusRequest getStatusRequest = 11; + * @return Whether the getStatusRequest field is set. + */ + @java.lang.Override + public boolean hasGetStatusRequest() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * .oslp.GetStatusRequest getStatusRequest = 11; + * @return The getStatusRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetStatusRequest getGetStatusRequest() { + return getStatusRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.getDefaultInstance() : getStatusRequest_; + } + /** + * .oslp.GetStatusRequest getStatusRequest = 11; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetStatusRequestOrBuilder getGetStatusRequestOrBuilder() { + return getStatusRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.getDefaultInstance() : getStatusRequest_; + } + + public static final int GETSTATUSRESPONSE_FIELD_NUMBER = 12; + private org.opensmartgridplatform.oslp.Oslp.GetStatusResponse getStatusResponse_; + /** + * .oslp.GetStatusResponse getStatusResponse = 12; + * @return Whether the getStatusResponse field is set. + */ + @java.lang.Override + public boolean hasGetStatusResponse() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * .oslp.GetStatusResponse getStatusResponse = 12; + * @return The getStatusResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetStatusResponse getGetStatusResponse() { + return getStatusResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.getDefaultInstance() : getStatusResponse_; + } + /** + * .oslp.GetStatusResponse getStatusResponse = 12; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetStatusResponseOrBuilder getGetStatusResponseOrBuilder() { + return getStatusResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.getDefaultInstance() : getStatusResponse_; + } + + public static final int RESUMESCHEDULEREQUEST_FIELD_NUMBER = 13; + private org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest resumeScheduleRequest_; + /** + * .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; + * @return Whether the resumeScheduleRequest field is set. + */ + @java.lang.Override + public boolean hasResumeScheduleRequest() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; + * @return The resumeScheduleRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest getResumeScheduleRequest() { + return resumeScheduleRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.getDefaultInstance() : resumeScheduleRequest_; + } + /** + * .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequestOrBuilder getResumeScheduleRequestOrBuilder() { + return resumeScheduleRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.getDefaultInstance() : resumeScheduleRequest_; + } + + public static final int RESUMESCHEDULERESPONSE_FIELD_NUMBER = 14; + private org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse resumeScheduleResponse_; + /** + * .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; + * @return Whether the resumeScheduleResponse field is set. + */ + @java.lang.Override + public boolean hasResumeScheduleResponse() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; + * @return The resumeScheduleResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse getResumeScheduleResponse() { + return resumeScheduleResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.getDefaultInstance() : resumeScheduleResponse_; + } + /** + * .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponseOrBuilder getResumeScheduleResponseOrBuilder() { + return resumeScheduleResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.getDefaultInstance() : resumeScheduleResponse_; + } + + public static final int SETEVENTNOTIFICATIONSREQUEST_FIELD_NUMBER = 15; + private org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest setEventNotificationsRequest_; + /** + * .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; + * @return Whether the setEventNotificationsRequest field is set. + */ + @java.lang.Override + public boolean hasSetEventNotificationsRequest() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; + * @return The setEventNotificationsRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest getSetEventNotificationsRequest() { + return setEventNotificationsRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.getDefaultInstance() : setEventNotificationsRequest_; + } + /** + * .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequestOrBuilder getSetEventNotificationsRequestOrBuilder() { + return setEventNotificationsRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.getDefaultInstance() : setEventNotificationsRequest_; + } + + public static final int SETEVENTNOTIFICATIONSRESPONSE_FIELD_NUMBER = 16; + private org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse setEventNotificationsResponse_; + /** + * .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; + * @return Whether the setEventNotificationsResponse field is set. + */ + @java.lang.Override + public boolean hasSetEventNotificationsResponse() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; + * @return The setEventNotificationsResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse getSetEventNotificationsResponse() { + return setEventNotificationsResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.getDefaultInstance() : setEventNotificationsResponse_; + } + /** + * .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponseOrBuilder getSetEventNotificationsResponseOrBuilder() { + return setEventNotificationsResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.getDefaultInstance() : setEventNotificationsResponse_; + } + + public static final int EVENTNOTIFICATIONREQUEST_FIELD_NUMBER = 17; + private org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest eventNotificationRequest_; + /** + * .oslp.EventNotificationRequest eventNotificationRequest = 17; + * @return Whether the eventNotificationRequest field is set. + */ + @java.lang.Override + public boolean hasEventNotificationRequest() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * .oslp.EventNotificationRequest eventNotificationRequest = 17; + * @return The eventNotificationRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest getEventNotificationRequest() { + return eventNotificationRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.getDefaultInstance() : eventNotificationRequest_; + } + /** + * .oslp.EventNotificationRequest eventNotificationRequest = 17; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequestOrBuilder getEventNotificationRequestOrBuilder() { + return eventNotificationRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.getDefaultInstance() : eventNotificationRequest_; + } + + public static final int EVENTNOTIFICATIONRESPONSE_FIELD_NUMBER = 18; + private org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse eventNotificationResponse_; + /** + * .oslp.EventNotificationResponse eventNotificationResponse = 18; + * @return Whether the eventNotificationResponse field is set. + */ + @java.lang.Override + public boolean hasEventNotificationResponse() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * .oslp.EventNotificationResponse eventNotificationResponse = 18; + * @return The eventNotificationResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse getEventNotificationResponse() { + return eventNotificationResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.getDefaultInstance() : eventNotificationResponse_; + } + /** + * .oslp.EventNotificationResponse eventNotificationResponse = 18; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponseOrBuilder getEventNotificationResponseOrBuilder() { + return eventNotificationResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.getDefaultInstance() : eventNotificationResponse_; + } + + public static final int GETFIRMWAREVERSIONREQUEST_FIELD_NUMBER = 19; + private org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest getFirmwareVersionRequest_; + /** + * .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; + * @return Whether the getFirmwareVersionRequest field is set. + */ + @java.lang.Override + public boolean hasGetFirmwareVersionRequest() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; + * @return The getFirmwareVersionRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest getGetFirmwareVersionRequest() { + return getFirmwareVersionRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.getDefaultInstance() : getFirmwareVersionRequest_; + } + /** + * .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequestOrBuilder getGetFirmwareVersionRequestOrBuilder() { + return getFirmwareVersionRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.getDefaultInstance() : getFirmwareVersionRequest_; + } + + public static final int GETFIRMWAREVERSIONRESPONSE_FIELD_NUMBER = 20; + private org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse getFirmwareVersionResponse_; + /** + * .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; + * @return Whether the getFirmwareVersionResponse field is set. + */ + @java.lang.Override + public boolean hasGetFirmwareVersionResponse() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + * .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; + * @return The getFirmwareVersionResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse getGetFirmwareVersionResponse() { + return getFirmwareVersionResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.getDefaultInstance() : getFirmwareVersionResponse_; + } + /** + * .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponseOrBuilder getGetFirmwareVersionResponseOrBuilder() { + return getFirmwareVersionResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.getDefaultInstance() : getFirmwareVersionResponse_; + } + + public static final int SETSCHEDULEREQUEST_FIELD_NUMBER = 21; + private org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest setScheduleRequest_; + /** + * .oslp.SetScheduleRequest setScheduleRequest = 21; + * @return Whether the setScheduleRequest field is set. + */ + @java.lang.Override + public boolean hasSetScheduleRequest() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + * .oslp.SetScheduleRequest setScheduleRequest = 21; + * @return The setScheduleRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest getSetScheduleRequest() { + return setScheduleRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.getDefaultInstance() : setScheduleRequest_; + } + /** + * .oslp.SetScheduleRequest setScheduleRequest = 21; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequestOrBuilder getSetScheduleRequestOrBuilder() { + return setScheduleRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.getDefaultInstance() : setScheduleRequest_; + } + + public static final int SETSCHEDULERESPONSE_FIELD_NUMBER = 22; + private org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse setScheduleResponse_; + /** + * .oslp.SetScheduleResponse setScheduleResponse = 22; + * @return Whether the setScheduleResponse field is set. + */ + @java.lang.Override + public boolean hasSetScheduleResponse() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + * .oslp.SetScheduleResponse setScheduleResponse = 22; + * @return The setScheduleResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse getSetScheduleResponse() { + return setScheduleResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.getDefaultInstance() : setScheduleResponse_; + } + /** + * .oslp.SetScheduleResponse setScheduleResponse = 22; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponseOrBuilder getSetScheduleResponseOrBuilder() { + return setScheduleResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.getDefaultInstance() : setScheduleResponse_; + } + + public static final int SETCONFIGURATIONREQUEST_FIELD_NUMBER = 25; + private org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest setConfigurationRequest_; + /** + * .oslp.SetConfigurationRequest setConfigurationRequest = 25; + * @return Whether the setConfigurationRequest field is set. + */ + @java.lang.Override + public boolean hasSetConfigurationRequest() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + * .oslp.SetConfigurationRequest setConfigurationRequest = 25; + * @return The setConfigurationRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest getSetConfigurationRequest() { + return setConfigurationRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.getDefaultInstance() : setConfigurationRequest_; + } + /** + * .oslp.SetConfigurationRequest setConfigurationRequest = 25; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequestOrBuilder getSetConfigurationRequestOrBuilder() { + return setConfigurationRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.getDefaultInstance() : setConfigurationRequest_; + } + + public static final int SETCONFIGURATIONRESPONSE_FIELD_NUMBER = 26; + private org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse setConfigurationResponse_; + /** + * .oslp.SetConfigurationResponse setConfigurationResponse = 26; + * @return Whether the setConfigurationResponse field is set. + */ + @java.lang.Override + public boolean hasSetConfigurationResponse() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + * .oslp.SetConfigurationResponse setConfigurationResponse = 26; + * @return The setConfigurationResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse getSetConfigurationResponse() { + return setConfigurationResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.getDefaultInstance() : setConfigurationResponse_; + } + /** + * .oslp.SetConfigurationResponse setConfigurationResponse = 26; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponseOrBuilder getSetConfigurationResponseOrBuilder() { + return setConfigurationResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.getDefaultInstance() : setConfigurationResponse_; + } + + public static final int GETPOWERUSAGEHISTORYREQUEST_FIELD_NUMBER = 27; + private org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest_; + /** + * .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; + * @return Whether the getPowerUsageHistoryRequest field is set. + */ + @java.lang.Override + public boolean hasGetPowerUsageHistoryRequest() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + * .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; + * @return The getPowerUsageHistoryRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest getGetPowerUsageHistoryRequest() { + return getPowerUsageHistoryRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.getDefaultInstance() : getPowerUsageHistoryRequest_; + } + /** + * .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequestOrBuilder getGetPowerUsageHistoryRequestOrBuilder() { + return getPowerUsageHistoryRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.getDefaultInstance() : getPowerUsageHistoryRequest_; + } + + public static final int GETPOWERUSAGEHISTORYRESPONSE_FIELD_NUMBER = 28; + private org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse_; + /** + * .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; + * @return Whether the getPowerUsageHistoryResponse field is set. + */ + @java.lang.Override + public boolean hasGetPowerUsageHistoryResponse() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + * .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; + * @return The getPowerUsageHistoryResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse getGetPowerUsageHistoryResponse() { + return getPowerUsageHistoryResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.getDefaultInstance() : getPowerUsageHistoryResponse_; + } + /** + * .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponseOrBuilder getGetPowerUsageHistoryResponseOrBuilder() { + return getPowerUsageHistoryResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.getDefaultInstance() : getPowerUsageHistoryResponse_; + } + + public static final int GETACTUALPOWERUSAGEREQUEST_FIELD_NUMBER = 29; + private org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest getActualPowerUsageRequest_; + /** + * .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; + * @return Whether the getActualPowerUsageRequest field is set. + */ + @java.lang.Override + public boolean hasGetActualPowerUsageRequest() { + return ((bitField0_ & 0x04000000) != 0); + } + /** + * .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; + * @return The getActualPowerUsageRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest getGetActualPowerUsageRequest() { + return getActualPowerUsageRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.getDefaultInstance() : getActualPowerUsageRequest_; + } + /** + * .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequestOrBuilder getGetActualPowerUsageRequestOrBuilder() { + return getActualPowerUsageRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.getDefaultInstance() : getActualPowerUsageRequest_; + } + + public static final int GETACTUALPOWERUSAGERESPONSE_FIELD_NUMBER = 30; + private org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse getActualPowerUsageResponse_; + /** + * .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; + * @return Whether the getActualPowerUsageResponse field is set. + */ + @java.lang.Override + public boolean hasGetActualPowerUsageResponse() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + * .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; + * @return The getActualPowerUsageResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse getGetActualPowerUsageResponse() { + return getActualPowerUsageResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.getDefaultInstance() : getActualPowerUsageResponse_; + } + /** + * .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponseOrBuilder getGetActualPowerUsageResponseOrBuilder() { + return getActualPowerUsageResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.getDefaultInstance() : getActualPowerUsageResponse_; + } + + public static final int SETREBOOTREQUEST_FIELD_NUMBER = 31; + private org.opensmartgridplatform.oslp.Oslp.SetRebootRequest setRebootRequest_; + /** + * .oslp.SetRebootRequest setRebootRequest = 31; + * @return Whether the setRebootRequest field is set. + */ + @java.lang.Override + public boolean hasSetRebootRequest() { + return ((bitField0_ & 0x10000000) != 0); + } + /** + * .oslp.SetRebootRequest setRebootRequest = 31; + * @return The setRebootRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetRebootRequest getSetRebootRequest() { + return setRebootRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.getDefaultInstance() : setRebootRequest_; + } + /** + * .oslp.SetRebootRequest setRebootRequest = 31; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetRebootRequestOrBuilder getSetRebootRequestOrBuilder() { + return setRebootRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.getDefaultInstance() : setRebootRequest_; + } + + public static final int SETREBOOTRESPONSE_FIELD_NUMBER = 32; + private org.opensmartgridplatform.oslp.Oslp.SetRebootResponse setRebootResponse_; + /** + * .oslp.SetRebootResponse setRebootResponse = 32; + * @return Whether the setRebootResponse field is set. + */ + @java.lang.Override + public boolean hasSetRebootResponse() { + return ((bitField0_ & 0x20000000) != 0); + } + /** + * .oslp.SetRebootResponse setRebootResponse = 32; + * @return The setRebootResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetRebootResponse getSetRebootResponse() { + return setRebootResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.getDefaultInstance() : setRebootResponse_; + } + /** + * .oslp.SetRebootResponse setRebootResponse = 32; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetRebootResponseOrBuilder getSetRebootResponseOrBuilder() { + return setRebootResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.getDefaultInstance() : setRebootResponse_; + } + + public static final int SETTRANSITIONREQUEST_FIELD_NUMBER = 33; + private org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest setTransitionRequest_; + /** + * .oslp.SetTransitionRequest setTransitionRequest = 33; + * @return Whether the setTransitionRequest field is set. + */ + @java.lang.Override + public boolean hasSetTransitionRequest() { + return ((bitField0_ & 0x40000000) != 0); + } + /** + * .oslp.SetTransitionRequest setTransitionRequest = 33; + * @return The setTransitionRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest getSetTransitionRequest() { + return setTransitionRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.getDefaultInstance() : setTransitionRequest_; + } + /** + * .oslp.SetTransitionRequest setTransitionRequest = 33; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequestOrBuilder getSetTransitionRequestOrBuilder() { + return setTransitionRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.getDefaultInstance() : setTransitionRequest_; + } + + public static final int SETTRANSITIONRESPONSE_FIELD_NUMBER = 34; + private org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse setTransitionResponse_; + /** + * .oslp.SetTransitionResponse setTransitionResponse = 34; + * @return Whether the setTransitionResponse field is set. + */ + @java.lang.Override + public boolean hasSetTransitionResponse() { + return ((bitField0_ & 0x80000000) != 0); + } + /** + * .oslp.SetTransitionResponse setTransitionResponse = 34; + * @return The setTransitionResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse getSetTransitionResponse() { + return setTransitionResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.getDefaultInstance() : setTransitionResponse_; + } + /** + * .oslp.SetTransitionResponse setTransitionResponse = 34; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponseOrBuilder getSetTransitionResponseOrBuilder() { + return setTransitionResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.getDefaultInstance() : setTransitionResponse_; + } + + public static final int GETCONFIGURATIONREQUEST_FIELD_NUMBER = 35; + private org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest getConfigurationRequest_; + /** + * .oslp.GetConfigurationRequest getConfigurationRequest = 35; + * @return Whether the getConfigurationRequest field is set. + */ + @java.lang.Override + public boolean hasGetConfigurationRequest() { + return ((bitField1_ & 0x00000001) != 0); + } + /** + * .oslp.GetConfigurationRequest getConfigurationRequest = 35; + * @return The getConfigurationRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest getGetConfigurationRequest() { + return getConfigurationRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.getDefaultInstance() : getConfigurationRequest_; + } + /** + * .oslp.GetConfigurationRequest getConfigurationRequest = 35; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequestOrBuilder getGetConfigurationRequestOrBuilder() { + return getConfigurationRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.getDefaultInstance() : getConfigurationRequest_; + } + + public static final int GETCONFIGURATIONRESPONSE_FIELD_NUMBER = 36; + private org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse getConfigurationResponse_; + /** + * .oslp.GetConfigurationResponse getConfigurationResponse = 36; + * @return Whether the getConfigurationResponse field is set. + */ + @java.lang.Override + public boolean hasGetConfigurationResponse() { + return ((bitField1_ & 0x00000002) != 0); + } + /** + * .oslp.GetConfigurationResponse getConfigurationResponse = 36; + * @return The getConfigurationResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse getGetConfigurationResponse() { + return getConfigurationResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.getDefaultInstance() : getConfigurationResponse_; + } + /** + * .oslp.GetConfigurationResponse getConfigurationResponse = 36; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponseOrBuilder getGetConfigurationResponseOrBuilder() { + return getConfigurationResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.getDefaultInstance() : getConfigurationResponse_; + } + + public static final int CONFIRMREGISTERDEVICEREQUEST_FIELD_NUMBER = 37; + private org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest_; + /** + * .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; + * @return Whether the confirmRegisterDeviceRequest field is set. + */ + @java.lang.Override + public boolean hasConfirmRegisterDeviceRequest() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + * .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; + * @return The confirmRegisterDeviceRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest getConfirmRegisterDeviceRequest() { + return confirmRegisterDeviceRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.getDefaultInstance() : confirmRegisterDeviceRequest_; + } + /** + * .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequestOrBuilder getConfirmRegisterDeviceRequestOrBuilder() { + return confirmRegisterDeviceRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.getDefaultInstance() : confirmRegisterDeviceRequest_; + } + + public static final int CONFIRMREGISTERDEVICERESPONSE_FIELD_NUMBER = 38; + private org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse_; + /** + * .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; + * @return Whether the confirmRegisterDeviceResponse field is set. + */ + @java.lang.Override + public boolean hasConfirmRegisterDeviceResponse() { + return ((bitField1_ & 0x00000008) != 0); + } + /** + * .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; + * @return The confirmRegisterDeviceResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse getConfirmRegisterDeviceResponse() { + return confirmRegisterDeviceResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.getDefaultInstance() : confirmRegisterDeviceResponse_; + } + /** + * .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponseOrBuilder getConfirmRegisterDeviceResponseOrBuilder() { + return confirmRegisterDeviceResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.getDefaultInstance() : confirmRegisterDeviceResponse_; + } + + public static final int UPDATEDEVICESSLCERTIFICATIONREQUEST_FIELD_NUMBER = 39; + private org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest_; + /** + * .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; + * @return Whether the updateDeviceSslCertificationRequest field is set. + */ + @java.lang.Override + public boolean hasUpdateDeviceSslCertificationRequest() { + return ((bitField1_ & 0x00000010) != 0); + } + /** + * .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; + * @return The updateDeviceSslCertificationRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest getUpdateDeviceSslCertificationRequest() { + return updateDeviceSslCertificationRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.getDefaultInstance() : updateDeviceSslCertificationRequest_; + } + /** + * .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequestOrBuilder getUpdateDeviceSslCertificationRequestOrBuilder() { + return updateDeviceSslCertificationRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.getDefaultInstance() : updateDeviceSslCertificationRequest_; + } + + public static final int UPDATEDEVICESSLCERTIFICATIONRESPONSE_FIELD_NUMBER = 40; + private org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse_; + /** + * .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = 40; + * @return Whether the updateDeviceSslCertificationResponse field is set. + */ + @java.lang.Override + public boolean hasUpdateDeviceSslCertificationResponse() { + return ((bitField1_ & 0x00000020) != 0); + } + /** + * .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = 40; + * @return The updateDeviceSslCertificationResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse getUpdateDeviceSslCertificationResponse() { + return updateDeviceSslCertificationResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.getDefaultInstance() : updateDeviceSslCertificationResponse_; + } + /** + * .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = 40; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponseOrBuilder getUpdateDeviceSslCertificationResponseOrBuilder() { + return updateDeviceSslCertificationResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.getDefaultInstance() : updateDeviceSslCertificationResponse_; + } + + public static final int SETDEVICEVERIFICATIONKEYREQUEST_FIELD_NUMBER = 41; + private org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest_; + /** + * .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; + * @return Whether the setDeviceVerificationKeyRequest field is set. + */ + @java.lang.Override + public boolean hasSetDeviceVerificationKeyRequest() { + return ((bitField1_ & 0x00000040) != 0); + } + /** + * .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; + * @return The setDeviceVerificationKeyRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest getSetDeviceVerificationKeyRequest() { + return setDeviceVerificationKeyRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.getDefaultInstance() : setDeviceVerificationKeyRequest_; + } + /** + * .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequestOrBuilder getSetDeviceVerificationKeyRequestOrBuilder() { + return setDeviceVerificationKeyRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.getDefaultInstance() : setDeviceVerificationKeyRequest_; + } + + public static final int SETDEVICEVERIFICATIONKEYRESPONSE_FIELD_NUMBER = 42; + private org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse_; + /** + * .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; + * @return Whether the setDeviceVerificationKeyResponse field is set. + */ + @java.lang.Override + public boolean hasSetDeviceVerificationKeyResponse() { + return ((bitField1_ & 0x00000080) != 0); + } + /** + * .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; + * @return The setDeviceVerificationKeyResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse getSetDeviceVerificationKeyResponse() { + return setDeviceVerificationKeyResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.getDefaultInstance() : setDeviceVerificationKeyResponse_; + } + /** + * .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponseOrBuilder getSetDeviceVerificationKeyResponseOrBuilder() { + return setDeviceVerificationKeyResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.getDefaultInstance() : setDeviceVerificationKeyResponse_; + } + + public static final int SWITCHFIRMWAREREQUEST_FIELD_NUMBER = 43; + private org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest switchFirmwareRequest_; + /** + * .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; + * @return Whether the switchFirmwareRequest field is set. + */ + @java.lang.Override + public boolean hasSwitchFirmwareRequest() { + return ((bitField1_ & 0x00000100) != 0); + } + /** + * .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; + * @return The switchFirmwareRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest getSwitchFirmwareRequest() { + return switchFirmwareRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.getDefaultInstance() : switchFirmwareRequest_; + } + /** + * .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequestOrBuilder getSwitchFirmwareRequestOrBuilder() { + return switchFirmwareRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.getDefaultInstance() : switchFirmwareRequest_; + } + + public static final int SWITCHFIRMWARERESPONSE_FIELD_NUMBER = 44; + private org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse switchFirmwareResponse_; + /** + * .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; + * @return Whether the switchFirmwareResponse field is set. + */ + @java.lang.Override + public boolean hasSwitchFirmwareResponse() { + return ((bitField1_ & 0x00000200) != 0); + } + /** + * .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; + * @return The switchFirmwareResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse getSwitchFirmwareResponse() { + return switchFirmwareResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.getDefaultInstance() : switchFirmwareResponse_; + } + /** + * .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponseOrBuilder getSwitchFirmwareResponseOrBuilder() { + return switchFirmwareResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.getDefaultInstance() : switchFirmwareResponse_; + } + + public static final int SWITCHCONFIGURATIONREQUEST_FIELD_NUMBER = 45; + private org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest switchConfigurationRequest_; + /** + * .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; + * @return Whether the switchConfigurationRequest field is set. + */ + @java.lang.Override + public boolean hasSwitchConfigurationRequest() { + return ((bitField1_ & 0x00000400) != 0); + } + /** + * .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; + * @return The switchConfigurationRequest. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest getSwitchConfigurationRequest() { + return switchConfigurationRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.getDefaultInstance() : switchConfigurationRequest_; + } + /** + * .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequestOrBuilder getSwitchConfigurationRequestOrBuilder() { + return switchConfigurationRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.getDefaultInstance() : switchConfigurationRequest_; + } + + public static final int SWITCHCONFIGURATIONRESPONSE_FIELD_NUMBER = 46; + private org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse switchConfigurationResponse_; + /** + * .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; + * @return Whether the switchConfigurationResponse field is set. + */ + @java.lang.Override + public boolean hasSwitchConfigurationResponse() { + return ((bitField1_ & 0x00000800) != 0); + } + /** + * .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; + * @return The switchConfigurationResponse. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse getSwitchConfigurationResponse() { + return switchConfigurationResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.getDefaultInstance() : switchConfigurationResponse_; + } + /** + * .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponseOrBuilder getSwitchConfigurationResponseOrBuilder() { + return switchConfigurationResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.getDefaultInstance() : switchConfigurationResponse_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (hasRegisterDeviceRequest()) { + if (!getRegisterDeviceRequest().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasRegisterDeviceResponse()) { + if (!getRegisterDeviceResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasStartSelfTestResponse()) { + if (!getStartSelfTestResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasStopSelfTestResponse()) { + if (!getStopSelfTestResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasUpdateFirmwareRequest()) { + if (!getUpdateFirmwareRequest().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasUpdateFirmwareResponse()) { + if (!getUpdateFirmwareResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSetLightRequest()) { + if (!getSetLightRequest().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSetLightResponse()) { + if (!getSetLightResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGetStatusResponse()) { + if (!getGetStatusResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasResumeScheduleRequest()) { + if (!getResumeScheduleRequest().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasResumeScheduleResponse()) { + if (!getResumeScheduleResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSetEventNotificationsRequest()) { + if (!getSetEventNotificationsRequest().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSetEventNotificationsResponse()) { + if (!getSetEventNotificationsResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasEventNotificationRequest()) { + if (!getEventNotificationRequest().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasEventNotificationResponse()) { + if (!getEventNotificationResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGetFirmwareVersionResponse()) { + if (!getGetFirmwareVersionResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSetScheduleRequest()) { + if (!getSetScheduleRequest().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSetScheduleResponse()) { + if (!getSetScheduleResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSetConfigurationRequest()) { + if (!getSetConfigurationRequest().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSetConfigurationResponse()) { + if (!getSetConfigurationResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGetPowerUsageHistoryRequest()) { + if (!getGetPowerUsageHistoryRequest().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGetPowerUsageHistoryResponse()) { + if (!getGetPowerUsageHistoryResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGetActualPowerUsageResponse()) { + if (!getGetActualPowerUsageResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSetRebootResponse()) { + if (!getSetRebootResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSetTransitionRequest()) { + if (!getSetTransitionRequest().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSetTransitionResponse()) { + if (!getSetTransitionResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGetConfigurationResponse()) { + if (!getGetConfigurationResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasConfirmRegisterDeviceRequest()) { + if (!getConfirmRegisterDeviceRequest().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasConfirmRegisterDeviceResponse()) { + if (!getConfirmRegisterDeviceResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasUpdateDeviceSslCertificationRequest()) { + if (!getUpdateDeviceSslCertificationRequest().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasUpdateDeviceSslCertificationResponse()) { + if (!getUpdateDeviceSslCertificationResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSetDeviceVerificationKeyRequest()) { + if (!getSetDeviceVerificationKeyRequest().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSetDeviceVerificationKeyResponse()) { + if (!getSetDeviceVerificationKeyResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSwitchFirmwareRequest()) { + if (!getSwitchFirmwareRequest().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSwitchFirmwareResponse()) { + if (!getSwitchFirmwareResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSwitchConfigurationRequest()) { + if (!getSwitchConfigurationRequest().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSwitchConfigurationResponse()) { + if (!getSwitchConfigurationResponse().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - private final int index; - private final int value; - - private TransitionType(final int index, final int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:oslp.TransitionType) - } - - public enum Weekday implements com.google.protobuf.ProtocolMessageEnum { - MONDAY(0, 1), - TUESDAY(1, 2), - WEDNESDAY(2, 3), - THURSDAY(3, 4), - FRIDAY(4, 5), - SATURDAY(5, 6), - SUNDAY(6, 7), - WEEKDAY(7, 8), - WEEKEND(8, 9), - ABSOLUTEDAY(9, 10), - ALL(10, 11), - ; - - public static final int MONDAY_VALUE = 1; - public static final int TUESDAY_VALUE = 2; - public static final int WEDNESDAY_VALUE = 3; - public static final int THURSDAY_VALUE = 4; - public static final int FRIDAY_VALUE = 5; - public static final int SATURDAY_VALUE = 6; - public static final int SUNDAY_VALUE = 7; - public static final int WEEKDAY_VALUE = 8; - public static final int WEEKEND_VALUE = 9; - public static final int ABSOLUTEDAY_VALUE = 10; - public static final int ALL_VALUE = 11; - - @Override - public final int getNumber() { - return this.value; - } - - public static Weekday valueOf(final int value) { - switch (value) { - case 1: - return MONDAY; - case 2: - return TUESDAY; - case 3: - return WEDNESDAY; - case 4: - return THURSDAY; - case 5: - return FRIDAY; - case 6: - return SATURDAY; - case 7: - return SUNDAY; - case 8: - return WEEKDAY; - case 9: - return WEEKEND; - case 10: - return ABSOLUTEDAY; - case 11: - return ALL; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - @Override - public Weekday findValueByNumber(final int number) { - return Weekday.valueOf(number); - } - }; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRegisterDeviceRequest()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRegisterDeviceResponse()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getStartSelfTestRequest()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getStartSelfTestResponse()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getStopSelfTestRequest()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getStopSelfTestResponse()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(7, getUpdateFirmwareRequest()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(8, getUpdateFirmwareResponse()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(9, getSetLightRequest()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(10, getSetLightResponse()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(11, getGetStatusRequest()); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(12, getGetStatusResponse()); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(13, getResumeScheduleRequest()); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(14, getResumeScheduleResponse()); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(15, getSetEventNotificationsRequest()); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(16, getSetEventNotificationsResponse()); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(17, getEventNotificationRequest()); + } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeMessage(18, getEventNotificationResponse()); + } + if (((bitField0_ & 0x00040000) != 0)) { + output.writeMessage(19, getGetFirmwareVersionRequest()); + } + if (((bitField0_ & 0x00080000) != 0)) { + output.writeMessage(20, getGetFirmwareVersionResponse()); + } + if (((bitField0_ & 0x00100000) != 0)) { + output.writeMessage(21, getSetScheduleRequest()); + } + if (((bitField0_ & 0x00200000) != 0)) { + output.writeMessage(22, getSetScheduleResponse()); + } + if (((bitField0_ & 0x00400000) != 0)) { + output.writeMessage(25, getSetConfigurationRequest()); + } + if (((bitField0_ & 0x00800000) != 0)) { + output.writeMessage(26, getSetConfigurationResponse()); + } + if (((bitField0_ & 0x01000000) != 0)) { + output.writeMessage(27, getGetPowerUsageHistoryRequest()); + } + if (((bitField0_ & 0x02000000) != 0)) { + output.writeMessage(28, getGetPowerUsageHistoryResponse()); + } + if (((bitField0_ & 0x04000000) != 0)) { + output.writeMessage(29, getGetActualPowerUsageRequest()); + } + if (((bitField0_ & 0x08000000) != 0)) { + output.writeMessage(30, getGetActualPowerUsageResponse()); + } + if (((bitField0_ & 0x10000000) != 0)) { + output.writeMessage(31, getSetRebootRequest()); + } + if (((bitField0_ & 0x20000000) != 0)) { + output.writeMessage(32, getSetRebootResponse()); + } + if (((bitField0_ & 0x40000000) != 0)) { + output.writeMessage(33, getSetTransitionRequest()); + } + if (((bitField0_ & 0x80000000) != 0)) { + output.writeMessage(34, getSetTransitionResponse()); + } + if (((bitField1_ & 0x00000001) != 0)) { + output.writeMessage(35, getGetConfigurationRequest()); + } + if (((bitField1_ & 0x00000002) != 0)) { + output.writeMessage(36, getGetConfigurationResponse()); + } + if (((bitField1_ & 0x00000004) != 0)) { + output.writeMessage(37, getConfirmRegisterDeviceRequest()); + } + if (((bitField1_ & 0x00000008) != 0)) { + output.writeMessage(38, getConfirmRegisterDeviceResponse()); + } + if (((bitField1_ & 0x00000010) != 0)) { + output.writeMessage(39, getUpdateDeviceSslCertificationRequest()); + } + if (((bitField1_ & 0x00000020) != 0)) { + output.writeMessage(40, getUpdateDeviceSslCertificationResponse()); + } + if (((bitField1_ & 0x00000040) != 0)) { + output.writeMessage(41, getSetDeviceVerificationKeyRequest()); + } + if (((bitField1_ & 0x00000080) != 0)) { + output.writeMessage(42, getSetDeviceVerificationKeyResponse()); + } + if (((bitField1_ & 0x00000100) != 0)) { + output.writeMessage(43, getSwitchFirmwareRequest()); + } + if (((bitField1_ & 0x00000200) != 0)) { + output.writeMessage(44, getSwitchFirmwareResponse()); + } + if (((bitField1_ & 0x00000400) != 0)) { + output.writeMessage(45, getSwitchConfigurationRequest()); + } + if (((bitField1_ & 0x00000800) != 0)) { + output.writeMessage(46, getSwitchConfigurationResponse()); + } + getUnknownFields().writeTo(output); + } - @Override - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(this.index); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRegisterDeviceRequest()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRegisterDeviceResponse()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStartSelfTestRequest()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartSelfTestResponse()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStopSelfTestRequest()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getStopSelfTestResponse()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateFirmwareRequest()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdateFirmwareResponse()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getSetLightRequest()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getSetLightResponse()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getGetStatusRequest()); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getGetStatusResponse()); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getResumeScheduleRequest()); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getResumeScheduleResponse()); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getSetEventNotificationsRequest()); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getSetEventNotificationsResponse()); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getEventNotificationRequest()); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getEventNotificationResponse()); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getGetFirmwareVersionRequest()); + } + if (((bitField0_ & 0x00080000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getGetFirmwareVersionResponse()); + } + if (((bitField0_ & 0x00100000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getSetScheduleRequest()); + } + if (((bitField0_ & 0x00200000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getSetScheduleResponse()); + } + if (((bitField0_ & 0x00400000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getSetConfigurationRequest()); + } + if (((bitField0_ & 0x00800000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getSetConfigurationResponse()); + } + if (((bitField0_ & 0x01000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(27, getGetPowerUsageHistoryRequest()); + } + if (((bitField0_ & 0x02000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(28, getGetPowerUsageHistoryResponse()); + } + if (((bitField0_ & 0x04000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(29, getGetActualPowerUsageRequest()); + } + if (((bitField0_ & 0x08000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, getGetActualPowerUsageResponse()); + } + if (((bitField0_ & 0x10000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, getSetRebootRequest()); + } + if (((bitField0_ & 0x20000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(32, getSetRebootResponse()); + } + if (((bitField0_ & 0x40000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(33, getSetTransitionRequest()); + } + if (((bitField0_ & 0x80000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(34, getSetTransitionResponse()); + } + if (((bitField1_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(35, getGetConfigurationRequest()); + } + if (((bitField1_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(36, getGetConfigurationResponse()); + } + if (((bitField1_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(37, getConfirmRegisterDeviceRequest()); + } + if (((bitField1_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(38, getConfirmRegisterDeviceResponse()); + } + if (((bitField1_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(39, getUpdateDeviceSslCertificationRequest()); + } + if (((bitField1_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(40, getUpdateDeviceSslCertificationResponse()); + } + if (((bitField1_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(41, getSetDeviceVerificationKeyRequest()); + } + if (((bitField1_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(42, getSetDeviceVerificationKeyResponse()); + } + if (((bitField1_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(43, getSwitchFirmwareRequest()); + } + if (((bitField1_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(44, getSwitchFirmwareResponse()); + } + if (((bitField1_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(45, getSwitchConfigurationRequest()); + } + if (((bitField1_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(46, getSwitchConfigurationResponse()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(4); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.Message)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.Message other = (org.opensmartgridplatform.oslp.Oslp.Message) obj; - private static final Weekday[] VALUES = { - MONDAY, - TUESDAY, - WEDNESDAY, - THURSDAY, - FRIDAY, - SATURDAY, - SUNDAY, - WEEKDAY, - WEEKEND, - ABSOLUTEDAY, - ALL, - }; - - public static Weekday valueOf(final com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } + if (hasRegisterDeviceRequest() != other.hasRegisterDeviceRequest()) return false; + if (hasRegisterDeviceRequest()) { + if (!getRegisterDeviceRequest() + .equals(other.getRegisterDeviceRequest())) return false; + } + if (hasRegisterDeviceResponse() != other.hasRegisterDeviceResponse()) return false; + if (hasRegisterDeviceResponse()) { + if (!getRegisterDeviceResponse() + .equals(other.getRegisterDeviceResponse())) return false; + } + if (hasStartSelfTestRequest() != other.hasStartSelfTestRequest()) return false; + if (hasStartSelfTestRequest()) { + if (!getStartSelfTestRequest() + .equals(other.getStartSelfTestRequest())) return false; + } + if (hasStartSelfTestResponse() != other.hasStartSelfTestResponse()) return false; + if (hasStartSelfTestResponse()) { + if (!getStartSelfTestResponse() + .equals(other.getStartSelfTestResponse())) return false; + } + if (hasStopSelfTestRequest() != other.hasStopSelfTestRequest()) return false; + if (hasStopSelfTestRequest()) { + if (!getStopSelfTestRequest() + .equals(other.getStopSelfTestRequest())) return false; + } + if (hasStopSelfTestResponse() != other.hasStopSelfTestResponse()) return false; + if (hasStopSelfTestResponse()) { + if (!getStopSelfTestResponse() + .equals(other.getStopSelfTestResponse())) return false; + } + if (hasUpdateFirmwareRequest() != other.hasUpdateFirmwareRequest()) return false; + if (hasUpdateFirmwareRequest()) { + if (!getUpdateFirmwareRequest() + .equals(other.getUpdateFirmwareRequest())) return false; + } + if (hasUpdateFirmwareResponse() != other.hasUpdateFirmwareResponse()) return false; + if (hasUpdateFirmwareResponse()) { + if (!getUpdateFirmwareResponse() + .equals(other.getUpdateFirmwareResponse())) return false; + } + if (hasSetLightRequest() != other.hasSetLightRequest()) return false; + if (hasSetLightRequest()) { + if (!getSetLightRequest() + .equals(other.getSetLightRequest())) return false; + } + if (hasSetLightResponse() != other.hasSetLightResponse()) return false; + if (hasSetLightResponse()) { + if (!getSetLightResponse() + .equals(other.getSetLightResponse())) return false; + } + if (hasGetStatusRequest() != other.hasGetStatusRequest()) return false; + if (hasGetStatusRequest()) { + if (!getGetStatusRequest() + .equals(other.getGetStatusRequest())) return false; + } + if (hasGetStatusResponse() != other.hasGetStatusResponse()) return false; + if (hasGetStatusResponse()) { + if (!getGetStatusResponse() + .equals(other.getGetStatusResponse())) return false; + } + if (hasResumeScheduleRequest() != other.hasResumeScheduleRequest()) return false; + if (hasResumeScheduleRequest()) { + if (!getResumeScheduleRequest() + .equals(other.getResumeScheduleRequest())) return false; + } + if (hasResumeScheduleResponse() != other.hasResumeScheduleResponse()) return false; + if (hasResumeScheduleResponse()) { + if (!getResumeScheduleResponse() + .equals(other.getResumeScheduleResponse())) return false; + } + if (hasSetEventNotificationsRequest() != other.hasSetEventNotificationsRequest()) return false; + if (hasSetEventNotificationsRequest()) { + if (!getSetEventNotificationsRequest() + .equals(other.getSetEventNotificationsRequest())) return false; + } + if (hasSetEventNotificationsResponse() != other.hasSetEventNotificationsResponse()) return false; + if (hasSetEventNotificationsResponse()) { + if (!getSetEventNotificationsResponse() + .equals(other.getSetEventNotificationsResponse())) return false; + } + if (hasEventNotificationRequest() != other.hasEventNotificationRequest()) return false; + if (hasEventNotificationRequest()) { + if (!getEventNotificationRequest() + .equals(other.getEventNotificationRequest())) return false; + } + if (hasEventNotificationResponse() != other.hasEventNotificationResponse()) return false; + if (hasEventNotificationResponse()) { + if (!getEventNotificationResponse() + .equals(other.getEventNotificationResponse())) return false; + } + if (hasGetFirmwareVersionRequest() != other.hasGetFirmwareVersionRequest()) return false; + if (hasGetFirmwareVersionRequest()) { + if (!getGetFirmwareVersionRequest() + .equals(other.getGetFirmwareVersionRequest())) return false; + } + if (hasGetFirmwareVersionResponse() != other.hasGetFirmwareVersionResponse()) return false; + if (hasGetFirmwareVersionResponse()) { + if (!getGetFirmwareVersionResponse() + .equals(other.getGetFirmwareVersionResponse())) return false; + } + if (hasSetScheduleRequest() != other.hasSetScheduleRequest()) return false; + if (hasSetScheduleRequest()) { + if (!getSetScheduleRequest() + .equals(other.getSetScheduleRequest())) return false; + } + if (hasSetScheduleResponse() != other.hasSetScheduleResponse()) return false; + if (hasSetScheduleResponse()) { + if (!getSetScheduleResponse() + .equals(other.getSetScheduleResponse())) return false; + } + if (hasSetConfigurationRequest() != other.hasSetConfigurationRequest()) return false; + if (hasSetConfigurationRequest()) { + if (!getSetConfigurationRequest() + .equals(other.getSetConfigurationRequest())) return false; + } + if (hasSetConfigurationResponse() != other.hasSetConfigurationResponse()) return false; + if (hasSetConfigurationResponse()) { + if (!getSetConfigurationResponse() + .equals(other.getSetConfigurationResponse())) return false; + } + if (hasGetPowerUsageHistoryRequest() != other.hasGetPowerUsageHistoryRequest()) return false; + if (hasGetPowerUsageHistoryRequest()) { + if (!getGetPowerUsageHistoryRequest() + .equals(other.getGetPowerUsageHistoryRequest())) return false; + } + if (hasGetPowerUsageHistoryResponse() != other.hasGetPowerUsageHistoryResponse()) return false; + if (hasGetPowerUsageHistoryResponse()) { + if (!getGetPowerUsageHistoryResponse() + .equals(other.getGetPowerUsageHistoryResponse())) return false; + } + if (hasGetActualPowerUsageRequest() != other.hasGetActualPowerUsageRequest()) return false; + if (hasGetActualPowerUsageRequest()) { + if (!getGetActualPowerUsageRequest() + .equals(other.getGetActualPowerUsageRequest())) return false; + } + if (hasGetActualPowerUsageResponse() != other.hasGetActualPowerUsageResponse()) return false; + if (hasGetActualPowerUsageResponse()) { + if (!getGetActualPowerUsageResponse() + .equals(other.getGetActualPowerUsageResponse())) return false; + } + if (hasSetRebootRequest() != other.hasSetRebootRequest()) return false; + if (hasSetRebootRequest()) { + if (!getSetRebootRequest() + .equals(other.getSetRebootRequest())) return false; + } + if (hasSetRebootResponse() != other.hasSetRebootResponse()) return false; + if (hasSetRebootResponse()) { + if (!getSetRebootResponse() + .equals(other.getSetRebootResponse())) return false; + } + if (hasSetTransitionRequest() != other.hasSetTransitionRequest()) return false; + if (hasSetTransitionRequest()) { + if (!getSetTransitionRequest() + .equals(other.getSetTransitionRequest())) return false; + } + if (hasSetTransitionResponse() != other.hasSetTransitionResponse()) return false; + if (hasSetTransitionResponse()) { + if (!getSetTransitionResponse() + .equals(other.getSetTransitionResponse())) return false; + } + if (hasGetConfigurationRequest() != other.hasGetConfigurationRequest()) return false; + if (hasGetConfigurationRequest()) { + if (!getGetConfigurationRequest() + .equals(other.getGetConfigurationRequest())) return false; + } + if (hasGetConfigurationResponse() != other.hasGetConfigurationResponse()) return false; + if (hasGetConfigurationResponse()) { + if (!getGetConfigurationResponse() + .equals(other.getGetConfigurationResponse())) return false; + } + if (hasConfirmRegisterDeviceRequest() != other.hasConfirmRegisterDeviceRequest()) return false; + if (hasConfirmRegisterDeviceRequest()) { + if (!getConfirmRegisterDeviceRequest() + .equals(other.getConfirmRegisterDeviceRequest())) return false; + } + if (hasConfirmRegisterDeviceResponse() != other.hasConfirmRegisterDeviceResponse()) return false; + if (hasConfirmRegisterDeviceResponse()) { + if (!getConfirmRegisterDeviceResponse() + .equals(other.getConfirmRegisterDeviceResponse())) return false; + } + if (hasUpdateDeviceSslCertificationRequest() != other.hasUpdateDeviceSslCertificationRequest()) return false; + if (hasUpdateDeviceSslCertificationRequest()) { + if (!getUpdateDeviceSslCertificationRequest() + .equals(other.getUpdateDeviceSslCertificationRequest())) return false; + } + if (hasUpdateDeviceSslCertificationResponse() != other.hasUpdateDeviceSslCertificationResponse()) return false; + if (hasUpdateDeviceSslCertificationResponse()) { + if (!getUpdateDeviceSslCertificationResponse() + .equals(other.getUpdateDeviceSslCertificationResponse())) return false; + } + if (hasSetDeviceVerificationKeyRequest() != other.hasSetDeviceVerificationKeyRequest()) return false; + if (hasSetDeviceVerificationKeyRequest()) { + if (!getSetDeviceVerificationKeyRequest() + .equals(other.getSetDeviceVerificationKeyRequest())) return false; + } + if (hasSetDeviceVerificationKeyResponse() != other.hasSetDeviceVerificationKeyResponse()) return false; + if (hasSetDeviceVerificationKeyResponse()) { + if (!getSetDeviceVerificationKeyResponse() + .equals(other.getSetDeviceVerificationKeyResponse())) return false; + } + if (hasSwitchFirmwareRequest() != other.hasSwitchFirmwareRequest()) return false; + if (hasSwitchFirmwareRequest()) { + if (!getSwitchFirmwareRequest() + .equals(other.getSwitchFirmwareRequest())) return false; + } + if (hasSwitchFirmwareResponse() != other.hasSwitchFirmwareResponse()) return false; + if (hasSwitchFirmwareResponse()) { + if (!getSwitchFirmwareResponse() + .equals(other.getSwitchFirmwareResponse())) return false; + } + if (hasSwitchConfigurationRequest() != other.hasSwitchConfigurationRequest()) return false; + if (hasSwitchConfigurationRequest()) { + if (!getSwitchConfigurationRequest() + .equals(other.getSwitchConfigurationRequest())) return false; + } + if (hasSwitchConfigurationResponse() != other.hasSwitchConfigurationResponse()) return false; + if (hasSwitchConfigurationResponse()) { + if (!getSwitchConfigurationResponse() + .equals(other.getSwitchConfigurationResponse())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - private final int index; - private final int value; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRegisterDeviceRequest()) { + hash = (37 * hash) + REGISTERDEVICEREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRegisterDeviceRequest().hashCode(); + } + if (hasRegisterDeviceResponse()) { + hash = (37 * hash) + REGISTERDEVICERESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getRegisterDeviceResponse().hashCode(); + } + if (hasStartSelfTestRequest()) { + hash = (37 * hash) + STARTSELFTESTREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getStartSelfTestRequest().hashCode(); + } + if (hasStartSelfTestResponse()) { + hash = (37 * hash) + STARTSELFTESTRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getStartSelfTestResponse().hashCode(); + } + if (hasStopSelfTestRequest()) { + hash = (37 * hash) + STOPSELFTESTREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getStopSelfTestRequest().hashCode(); + } + if (hasStopSelfTestResponse()) { + hash = (37 * hash) + STOPSELFTESTRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getStopSelfTestResponse().hashCode(); + } + if (hasUpdateFirmwareRequest()) { + hash = (37 * hash) + UPDATEFIRMWAREREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getUpdateFirmwareRequest().hashCode(); + } + if (hasUpdateFirmwareResponse()) { + hash = (37 * hash) + UPDATEFIRMWARERESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getUpdateFirmwareResponse().hashCode(); + } + if (hasSetLightRequest()) { + hash = (37 * hash) + SETLIGHTREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getSetLightRequest().hashCode(); + } + if (hasSetLightResponse()) { + hash = (37 * hash) + SETLIGHTRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getSetLightResponse().hashCode(); + } + if (hasGetStatusRequest()) { + hash = (37 * hash) + GETSTATUSREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getGetStatusRequest().hashCode(); + } + if (hasGetStatusResponse()) { + hash = (37 * hash) + GETSTATUSRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getGetStatusResponse().hashCode(); + } + if (hasResumeScheduleRequest()) { + hash = (37 * hash) + RESUMESCHEDULEREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getResumeScheduleRequest().hashCode(); + } + if (hasResumeScheduleResponse()) { + hash = (37 * hash) + RESUMESCHEDULERESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResumeScheduleResponse().hashCode(); + } + if (hasSetEventNotificationsRequest()) { + hash = (37 * hash) + SETEVENTNOTIFICATIONSREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getSetEventNotificationsRequest().hashCode(); + } + if (hasSetEventNotificationsResponse()) { + hash = (37 * hash) + SETEVENTNOTIFICATIONSRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getSetEventNotificationsResponse().hashCode(); + } + if (hasEventNotificationRequest()) { + hash = (37 * hash) + EVENTNOTIFICATIONREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getEventNotificationRequest().hashCode(); + } + if (hasEventNotificationResponse()) { + hash = (37 * hash) + EVENTNOTIFICATIONRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getEventNotificationResponse().hashCode(); + } + if (hasGetFirmwareVersionRequest()) { + hash = (37 * hash) + GETFIRMWAREVERSIONREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getGetFirmwareVersionRequest().hashCode(); + } + if (hasGetFirmwareVersionResponse()) { + hash = (37 * hash) + GETFIRMWAREVERSIONRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getGetFirmwareVersionResponse().hashCode(); + } + if (hasSetScheduleRequest()) { + hash = (37 * hash) + SETSCHEDULEREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getSetScheduleRequest().hashCode(); + } + if (hasSetScheduleResponse()) { + hash = (37 * hash) + SETSCHEDULERESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getSetScheduleResponse().hashCode(); + } + if (hasSetConfigurationRequest()) { + hash = (37 * hash) + SETCONFIGURATIONREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getSetConfigurationRequest().hashCode(); + } + if (hasSetConfigurationResponse()) { + hash = (37 * hash) + SETCONFIGURATIONRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getSetConfigurationResponse().hashCode(); + } + if (hasGetPowerUsageHistoryRequest()) { + hash = (37 * hash) + GETPOWERUSAGEHISTORYREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getGetPowerUsageHistoryRequest().hashCode(); + } + if (hasGetPowerUsageHistoryResponse()) { + hash = (37 * hash) + GETPOWERUSAGEHISTORYRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getGetPowerUsageHistoryResponse().hashCode(); + } + if (hasGetActualPowerUsageRequest()) { + hash = (37 * hash) + GETACTUALPOWERUSAGEREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getGetActualPowerUsageRequest().hashCode(); + } + if (hasGetActualPowerUsageResponse()) { + hash = (37 * hash) + GETACTUALPOWERUSAGERESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getGetActualPowerUsageResponse().hashCode(); + } + if (hasSetRebootRequest()) { + hash = (37 * hash) + SETREBOOTREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getSetRebootRequest().hashCode(); + } + if (hasSetRebootResponse()) { + hash = (37 * hash) + SETREBOOTRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getSetRebootResponse().hashCode(); + } + if (hasSetTransitionRequest()) { + hash = (37 * hash) + SETTRANSITIONREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getSetTransitionRequest().hashCode(); + } + if (hasSetTransitionResponse()) { + hash = (37 * hash) + SETTRANSITIONRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getSetTransitionResponse().hashCode(); + } + if (hasGetConfigurationRequest()) { + hash = (37 * hash) + GETCONFIGURATIONREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getGetConfigurationRequest().hashCode(); + } + if (hasGetConfigurationResponse()) { + hash = (37 * hash) + GETCONFIGURATIONRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getGetConfigurationResponse().hashCode(); + } + if (hasConfirmRegisterDeviceRequest()) { + hash = (37 * hash) + CONFIRMREGISTERDEVICEREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getConfirmRegisterDeviceRequest().hashCode(); + } + if (hasConfirmRegisterDeviceResponse()) { + hash = (37 * hash) + CONFIRMREGISTERDEVICERESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getConfirmRegisterDeviceResponse().hashCode(); + } + if (hasUpdateDeviceSslCertificationRequest()) { + hash = (37 * hash) + UPDATEDEVICESSLCERTIFICATIONREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getUpdateDeviceSslCertificationRequest().hashCode(); + } + if (hasUpdateDeviceSslCertificationResponse()) { + hash = (37 * hash) + UPDATEDEVICESSLCERTIFICATIONRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getUpdateDeviceSslCertificationResponse().hashCode(); + } + if (hasSetDeviceVerificationKeyRequest()) { + hash = (37 * hash) + SETDEVICEVERIFICATIONKEYREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getSetDeviceVerificationKeyRequest().hashCode(); + } + if (hasSetDeviceVerificationKeyResponse()) { + hash = (37 * hash) + SETDEVICEVERIFICATIONKEYRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getSetDeviceVerificationKeyResponse().hashCode(); + } + if (hasSwitchFirmwareRequest()) { + hash = (37 * hash) + SWITCHFIRMWAREREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getSwitchFirmwareRequest().hashCode(); + } + if (hasSwitchFirmwareResponse()) { + hash = (37 * hash) + SWITCHFIRMWARERESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getSwitchFirmwareResponse().hashCode(); + } + if (hasSwitchConfigurationRequest()) { + hash = (37 * hash) + SWITCHCONFIGURATIONREQUEST_FIELD_NUMBER; + hash = (53 * hash) + getSwitchConfigurationRequest().hashCode(); + } + if (hasSwitchConfigurationResponse()) { + hash = (37 * hash) + SWITCHCONFIGURATIONRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getSwitchConfigurationResponse().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.Message parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.Message parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.Message prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.Message} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.Message) + org.opensmartgridplatform.oslp.Oslp.MessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Message_descriptor; + } - private Weekday(final int index, final int value) { - this.index = index; - this.value = value; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Message_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.Message.class, org.opensmartgridplatform.oslp.Oslp.Message.Builder.class); + } - // @@protoc_insertion_point(enum_scope:oslp.Weekday) - } + // Construct using org.opensmartgridplatform.oslp.Oslp.Message.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public enum ActionTime implements com.google.protobuf.ProtocolMessageEnum { - ABSOLUTETIME(0, 1), - SUNRISE(1, 2), - SUNSET(2, 3), - ; + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + internalGetRegisterDeviceRequestFieldBuilder(); + internalGetRegisterDeviceResponseFieldBuilder(); + internalGetStartSelfTestRequestFieldBuilder(); + internalGetStartSelfTestResponseFieldBuilder(); + internalGetStopSelfTestRequestFieldBuilder(); + internalGetStopSelfTestResponseFieldBuilder(); + internalGetUpdateFirmwareRequestFieldBuilder(); + internalGetUpdateFirmwareResponseFieldBuilder(); + internalGetSetLightRequestFieldBuilder(); + internalGetSetLightResponseFieldBuilder(); + internalGetGetStatusRequestFieldBuilder(); + internalGetGetStatusResponseFieldBuilder(); + internalGetResumeScheduleRequestFieldBuilder(); + internalGetResumeScheduleResponseFieldBuilder(); + internalGetSetEventNotificationsRequestFieldBuilder(); + internalGetSetEventNotificationsResponseFieldBuilder(); + internalGetEventNotificationRequestFieldBuilder(); + internalGetEventNotificationResponseFieldBuilder(); + internalGetGetFirmwareVersionRequestFieldBuilder(); + internalGetGetFirmwareVersionResponseFieldBuilder(); + internalGetSetScheduleRequestFieldBuilder(); + internalGetSetScheduleResponseFieldBuilder(); + internalGetSetConfigurationRequestFieldBuilder(); + internalGetSetConfigurationResponseFieldBuilder(); + internalGetGetPowerUsageHistoryRequestFieldBuilder(); + internalGetGetPowerUsageHistoryResponseFieldBuilder(); + internalGetGetActualPowerUsageRequestFieldBuilder(); + internalGetGetActualPowerUsageResponseFieldBuilder(); + internalGetSetRebootRequestFieldBuilder(); + internalGetSetRebootResponseFieldBuilder(); + internalGetSetTransitionRequestFieldBuilder(); + internalGetSetTransitionResponseFieldBuilder(); + internalGetGetConfigurationRequestFieldBuilder(); + internalGetGetConfigurationResponseFieldBuilder(); + internalGetConfirmRegisterDeviceRequestFieldBuilder(); + internalGetConfirmRegisterDeviceResponseFieldBuilder(); + internalGetUpdateDeviceSslCertificationRequestFieldBuilder(); + internalGetUpdateDeviceSslCertificationResponseFieldBuilder(); + internalGetSetDeviceVerificationKeyRequestFieldBuilder(); + internalGetSetDeviceVerificationKeyResponseFieldBuilder(); + internalGetSwitchFirmwareRequestFieldBuilder(); + internalGetSwitchFirmwareResponseFieldBuilder(); + internalGetSwitchConfigurationRequestFieldBuilder(); + internalGetSwitchConfigurationResponseFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + registerDeviceRequest_ = null; + if (registerDeviceRequestBuilder_ != null) { + registerDeviceRequestBuilder_.dispose(); + registerDeviceRequestBuilder_ = null; + } + registerDeviceResponse_ = null; + if (registerDeviceResponseBuilder_ != null) { + registerDeviceResponseBuilder_.dispose(); + registerDeviceResponseBuilder_ = null; + } + startSelfTestRequest_ = null; + if (startSelfTestRequestBuilder_ != null) { + startSelfTestRequestBuilder_.dispose(); + startSelfTestRequestBuilder_ = null; + } + startSelfTestResponse_ = null; + if (startSelfTestResponseBuilder_ != null) { + startSelfTestResponseBuilder_.dispose(); + startSelfTestResponseBuilder_ = null; + } + stopSelfTestRequest_ = null; + if (stopSelfTestRequestBuilder_ != null) { + stopSelfTestRequestBuilder_.dispose(); + stopSelfTestRequestBuilder_ = null; + } + stopSelfTestResponse_ = null; + if (stopSelfTestResponseBuilder_ != null) { + stopSelfTestResponseBuilder_.dispose(); + stopSelfTestResponseBuilder_ = null; + } + updateFirmwareRequest_ = null; + if (updateFirmwareRequestBuilder_ != null) { + updateFirmwareRequestBuilder_.dispose(); + updateFirmwareRequestBuilder_ = null; + } + updateFirmwareResponse_ = null; + if (updateFirmwareResponseBuilder_ != null) { + updateFirmwareResponseBuilder_.dispose(); + updateFirmwareResponseBuilder_ = null; + } + setLightRequest_ = null; + if (setLightRequestBuilder_ != null) { + setLightRequestBuilder_.dispose(); + setLightRequestBuilder_ = null; + } + setLightResponse_ = null; + if (setLightResponseBuilder_ != null) { + setLightResponseBuilder_.dispose(); + setLightResponseBuilder_ = null; + } + getStatusRequest_ = null; + if (getStatusRequestBuilder_ != null) { + getStatusRequestBuilder_.dispose(); + getStatusRequestBuilder_ = null; + } + getStatusResponse_ = null; + if (getStatusResponseBuilder_ != null) { + getStatusResponseBuilder_.dispose(); + getStatusResponseBuilder_ = null; + } + resumeScheduleRequest_ = null; + if (resumeScheduleRequestBuilder_ != null) { + resumeScheduleRequestBuilder_.dispose(); + resumeScheduleRequestBuilder_ = null; + } + resumeScheduleResponse_ = null; + if (resumeScheduleResponseBuilder_ != null) { + resumeScheduleResponseBuilder_.dispose(); + resumeScheduleResponseBuilder_ = null; + } + setEventNotificationsRequest_ = null; + if (setEventNotificationsRequestBuilder_ != null) { + setEventNotificationsRequestBuilder_.dispose(); + setEventNotificationsRequestBuilder_ = null; + } + setEventNotificationsResponse_ = null; + if (setEventNotificationsResponseBuilder_ != null) { + setEventNotificationsResponseBuilder_.dispose(); + setEventNotificationsResponseBuilder_ = null; + } + eventNotificationRequest_ = null; + if (eventNotificationRequestBuilder_ != null) { + eventNotificationRequestBuilder_.dispose(); + eventNotificationRequestBuilder_ = null; + } + eventNotificationResponse_ = null; + if (eventNotificationResponseBuilder_ != null) { + eventNotificationResponseBuilder_.dispose(); + eventNotificationResponseBuilder_ = null; + } + getFirmwareVersionRequest_ = null; + if (getFirmwareVersionRequestBuilder_ != null) { + getFirmwareVersionRequestBuilder_.dispose(); + getFirmwareVersionRequestBuilder_ = null; + } + getFirmwareVersionResponse_ = null; + if (getFirmwareVersionResponseBuilder_ != null) { + getFirmwareVersionResponseBuilder_.dispose(); + getFirmwareVersionResponseBuilder_ = null; + } + setScheduleRequest_ = null; + if (setScheduleRequestBuilder_ != null) { + setScheduleRequestBuilder_.dispose(); + setScheduleRequestBuilder_ = null; + } + setScheduleResponse_ = null; + if (setScheduleResponseBuilder_ != null) { + setScheduleResponseBuilder_.dispose(); + setScheduleResponseBuilder_ = null; + } + setConfigurationRequest_ = null; + if (setConfigurationRequestBuilder_ != null) { + setConfigurationRequestBuilder_.dispose(); + setConfigurationRequestBuilder_ = null; + } + setConfigurationResponse_ = null; + if (setConfigurationResponseBuilder_ != null) { + setConfigurationResponseBuilder_.dispose(); + setConfigurationResponseBuilder_ = null; + } + getPowerUsageHistoryRequest_ = null; + if (getPowerUsageHistoryRequestBuilder_ != null) { + getPowerUsageHistoryRequestBuilder_.dispose(); + getPowerUsageHistoryRequestBuilder_ = null; + } + getPowerUsageHistoryResponse_ = null; + if (getPowerUsageHistoryResponseBuilder_ != null) { + getPowerUsageHistoryResponseBuilder_.dispose(); + getPowerUsageHistoryResponseBuilder_ = null; + } + getActualPowerUsageRequest_ = null; + if (getActualPowerUsageRequestBuilder_ != null) { + getActualPowerUsageRequestBuilder_.dispose(); + getActualPowerUsageRequestBuilder_ = null; + } + getActualPowerUsageResponse_ = null; + if (getActualPowerUsageResponseBuilder_ != null) { + getActualPowerUsageResponseBuilder_.dispose(); + getActualPowerUsageResponseBuilder_ = null; + } + setRebootRequest_ = null; + if (setRebootRequestBuilder_ != null) { + setRebootRequestBuilder_.dispose(); + setRebootRequestBuilder_ = null; + } + setRebootResponse_ = null; + if (setRebootResponseBuilder_ != null) { + setRebootResponseBuilder_.dispose(); + setRebootResponseBuilder_ = null; + } + setTransitionRequest_ = null; + if (setTransitionRequestBuilder_ != null) { + setTransitionRequestBuilder_.dispose(); + setTransitionRequestBuilder_ = null; + } + setTransitionResponse_ = null; + if (setTransitionResponseBuilder_ != null) { + setTransitionResponseBuilder_.dispose(); + setTransitionResponseBuilder_ = null; + } + getConfigurationRequest_ = null; + if (getConfigurationRequestBuilder_ != null) { + getConfigurationRequestBuilder_.dispose(); + getConfigurationRequestBuilder_ = null; + } + getConfigurationResponse_ = null; + if (getConfigurationResponseBuilder_ != null) { + getConfigurationResponseBuilder_.dispose(); + getConfigurationResponseBuilder_ = null; + } + confirmRegisterDeviceRequest_ = null; + if (confirmRegisterDeviceRequestBuilder_ != null) { + confirmRegisterDeviceRequestBuilder_.dispose(); + confirmRegisterDeviceRequestBuilder_ = null; + } + confirmRegisterDeviceResponse_ = null; + if (confirmRegisterDeviceResponseBuilder_ != null) { + confirmRegisterDeviceResponseBuilder_.dispose(); + confirmRegisterDeviceResponseBuilder_ = null; + } + updateDeviceSslCertificationRequest_ = null; + if (updateDeviceSslCertificationRequestBuilder_ != null) { + updateDeviceSslCertificationRequestBuilder_.dispose(); + updateDeviceSslCertificationRequestBuilder_ = null; + } + updateDeviceSslCertificationResponse_ = null; + if (updateDeviceSslCertificationResponseBuilder_ != null) { + updateDeviceSslCertificationResponseBuilder_.dispose(); + updateDeviceSslCertificationResponseBuilder_ = null; + } + setDeviceVerificationKeyRequest_ = null; + if (setDeviceVerificationKeyRequestBuilder_ != null) { + setDeviceVerificationKeyRequestBuilder_.dispose(); + setDeviceVerificationKeyRequestBuilder_ = null; + } + setDeviceVerificationKeyResponse_ = null; + if (setDeviceVerificationKeyResponseBuilder_ != null) { + setDeviceVerificationKeyResponseBuilder_.dispose(); + setDeviceVerificationKeyResponseBuilder_ = null; + } + switchFirmwareRequest_ = null; + if (switchFirmwareRequestBuilder_ != null) { + switchFirmwareRequestBuilder_.dispose(); + switchFirmwareRequestBuilder_ = null; + } + switchFirmwareResponse_ = null; + if (switchFirmwareResponseBuilder_ != null) { + switchFirmwareResponseBuilder_.dispose(); + switchFirmwareResponseBuilder_ = null; + } + switchConfigurationRequest_ = null; + if (switchConfigurationRequestBuilder_ != null) { + switchConfigurationRequestBuilder_.dispose(); + switchConfigurationRequestBuilder_ = null; + } + switchConfigurationResponse_ = null; + if (switchConfigurationResponseBuilder_ != null) { + switchConfigurationResponseBuilder_.dispose(); + switchConfigurationResponseBuilder_ = null; + } + return this; + } - public static final int ABSOLUTETIME_VALUE = 1; - public static final int SUNRISE_VALUE = 2; - public static final int SUNSET_VALUE = 3; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Message_descriptor; + } - @Override - public final int getNumber() { - return this.value; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Message getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.Message.getDefaultInstance(); + } - public static ActionTime valueOf(final int value) { - switch (value) { - case 1: - return ABSOLUTETIME; - case 2: - return SUNRISE; - case 3: - return SUNSET; - default: - return null; - } - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Message build() { + org.opensmartgridplatform.oslp.Oslp.Message result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Message buildPartial() { + org.opensmartgridplatform.oslp.Oslp.Message result = new org.opensmartgridplatform.oslp.Oslp.Message(this); + if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { buildPartial1(result); } + onBuilt(); + return result; + } - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - @Override - public ActionTime findValueByNumber(final int number) { - return ActionTime.valueOf(number); - } - }; - - @Override - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(this.index); - } - - @Override - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(5); - } - - private static final ActionTime[] VALUES = { - ABSOLUTETIME, SUNRISE, SUNSET, - }; - - public static ActionTime valueOf( - final com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private ActionTime(final int index, final int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:oslp.ActionTime) - } - - public enum DeviceType implements com.google.protobuf.ProtocolMessageEnum { - PSLD(0, 0), - SSLD(1, 1), - ; - - public static final int PSLD_VALUE = 0; - public static final int SSLD_VALUE = 1; - - @Override - public final int getNumber() { - return this.value; - } - - public static DeviceType valueOf(final int value) { - switch (value) { - case 0: - return PSLD; - case 1: - return SSLD; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - @Override - public DeviceType findValueByNumber(final int number) { - return DeviceType.valueOf(number); - } - }; - - @Override - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(this.index); - } - - @Override - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(6); - } - - private static final DeviceType[] VALUES = { - PSLD, SSLD, - }; - - public static DeviceType valueOf( - final com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private DeviceType(final int index, final int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:oslp.DeviceType) - } - - public enum Status implements com.google.protobuf.ProtocolMessageEnum { - OK(0, 0), - FAILURE(1, 1), - REJECTED(2, 2), - ; - - public static final int OK_VALUE = 0; - public static final int FAILURE_VALUE = 1; - public static final int REJECTED_VALUE = 2; - - @Override - public final int getNumber() { - return this.value; - } - - public static Status valueOf(final int value) { - switch (value) { - case 0: - return OK; - case 1: - return FAILURE; - case 2: - return REJECTED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - @Override - public Status findValueByNumber(final int number) { - return Status.valueOf(number); - } - }; - - @Override - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(this.index); - } - - @Override - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(7); - } - - private static final Status[] VALUES = { - OK, FAILURE, REJECTED, - }; - - public static Status valueOf(final com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private Status(final int index, final int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:oslp.Status) - } - - public enum LightType implements com.google.protobuf.ProtocolMessageEnum { - LT_NOT_SET(0, 0), - RELAY(1, 1), - ONE_TO_TEN_VOLT(2, 2), - ONE_TO_TEN_VOLT_REVERSE(3, 3), - DALI(4, 4), - ; - - public static final int LT_NOT_SET_VALUE = 0; - public static final int RELAY_VALUE = 1; - public static final int ONE_TO_TEN_VOLT_VALUE = 2; - public static final int ONE_TO_TEN_VOLT_REVERSE_VALUE = 3; - public static final int DALI_VALUE = 4; - - @Override - public final int getNumber() { - return this.value; - } - - public static LightType valueOf(final int value) { - switch (value) { - case 0: - return LT_NOT_SET; - case 1: - return RELAY; - case 2: - return ONE_TO_TEN_VOLT; - case 3: - return ONE_TO_TEN_VOLT_REVERSE; - case 4: - return DALI; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - @Override - public LightType findValueByNumber(final int number) { - return LightType.valueOf(number); - } - }; - - @Override - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(this.index); - } - - @Override - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(8); - } - - private static final LightType[] VALUES = { - LT_NOT_SET, RELAY, ONE_TO_TEN_VOLT, ONE_TO_TEN_VOLT_REVERSE, DALI, - }; - - public static LightType valueOf( - final com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private LightType(final int index, final int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:oslp.LightType) - } - - public enum RelayType implements com.google.protobuf.ProtocolMessageEnum { - RT_NOT_SET(0, 0), - LIGHT(1, 1), - TARIFF(2, 2), - ; - - public static final int RT_NOT_SET_VALUE = 0; - public static final int LIGHT_VALUE = 1; - public static final int TARIFF_VALUE = 2; - - @Override - public final int getNumber() { - return this.value; - } - - public static RelayType valueOf(final int value) { - switch (value) { - case 0: - return RT_NOT_SET; - case 1: - return LIGHT; - case 2: - return TARIFF; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - @Override - public RelayType findValueByNumber(final int number) { - return RelayType.valueOf(number); - } - }; - - @Override - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(this.index); - } - - @Override - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(9); - } - - private static final RelayType[] VALUES = { - RT_NOT_SET, LIGHT, TARIFF, - }; - - public static RelayType valueOf( - final com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RelayType(final int index, final int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:oslp.RelayType) - } - - public enum MeterType implements com.google.protobuf.ProtocolMessageEnum { - MT_NOT_SET(0, 0), - P1(1, 1), - PULSE(2, 2), - AUX(3, 3), - ; - - public static final int MT_NOT_SET_VALUE = 0; - public static final int P1_VALUE = 1; - public static final int PULSE_VALUE = 2; - public static final int AUX_VALUE = 3; - - @Override - public final int getNumber() { - return this.value; - } - - public static MeterType valueOf(final int value) { - switch (value) { - case 0: - return MT_NOT_SET; - case 1: - return P1; - case 2: - return PULSE; - case 3: - return AUX; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - @Override - public MeterType findValueByNumber(final int number) { - return MeterType.valueOf(number); - } - }; - - @Override - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(this.index); - } - - @Override - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(10); - } - - private static final MeterType[] VALUES = { - MT_NOT_SET, P1, PULSE, AUX, - }; - - public static MeterType valueOf( - final com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private MeterType(final int index, final int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:oslp.MeterType) - } - - public enum LinkType implements com.google.protobuf.ProtocolMessageEnum { - LINK_NOT_SET(0, 0), - GPRS(1, 1), - CDMA(2, 2), - ETHERNET(3, 3), - ; - - public static final int LINK_NOT_SET_VALUE = 0; - public static final int GPRS_VALUE = 1; - public static final int CDMA_VALUE = 2; - public static final int ETHERNET_VALUE = 3; - - @Override - public final int getNumber() { - return this.value; - } - - public static LinkType valueOf(final int value) { - switch (value) { - case 0: - return LINK_NOT_SET; - case 1: - return GPRS; - case 2: - return CDMA; - case 3: - return ETHERNET; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - @Override - public LinkType findValueByNumber(final int number) { - return LinkType.valueOf(number); - } - }; - - @Override - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(this.index); - } - - @Override - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(11); - } - - private static final LinkType[] VALUES = { - LINK_NOT_SET, GPRS, CDMA, ETHERNET, - }; - - public static LinkType valueOf(final com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private LinkType(final int index, final int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:oslp.LinkType) - } - - public enum LongTermIntervalType implements com.google.protobuf.ProtocolMessageEnum { - LT_INT_NOT_SET(0, 0), - DAYS(1, 1), - MONTHS(2, 2), - ; - - public static final int LT_INT_NOT_SET_VALUE = 0; - public static final int DAYS_VALUE = 1; - public static final int MONTHS_VALUE = 2; - - @Override - public final int getNumber() { - return this.value; - } - - public static LongTermIntervalType valueOf(final int value) { - switch (value) { - case 0: - return LT_INT_NOT_SET; - case 1: - return DAYS; - case 2: - return MONTHS; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - @Override - public LongTermIntervalType findValueByNumber(final int number) { - return LongTermIntervalType.valueOf(number); - } - }; - - @Override - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(this.index); - } - - @Override - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(12); - } - - private static final LongTermIntervalType[] VALUES = { - LT_INT_NOT_SET, DAYS, MONTHS, - }; - - public static LongTermIntervalType valueOf( - final com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private LongTermIntervalType(final int index, final int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:oslp.LongTermIntervalType) - } - - public enum HistoryTermType implements com.google.protobuf.ProtocolMessageEnum { - Short(0, 0), - Long(1, 1), - ; - - public static final int Short_VALUE = 0; - public static final int Long_VALUE = 1; - - @Override - public final int getNumber() { - return this.value; - } - - public static HistoryTermType valueOf(final int value) { - switch (value) { - case 0: - return Short; - case 1: - return Long; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - @Override - public HistoryTermType findValueByNumber(final int number) { - return HistoryTermType.valueOf(number); - } - }; - - @Override - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(this.index); - } - - @Override - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.getDescriptor().getEnumTypes().get(13); - } - - private static final HistoryTermType[] VALUES = { - Short, Long, - }; - - public static HistoryTermType valueOf( - final com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private HistoryTermType(final int index, final int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:oslp.HistoryTermType) - } - - public interface MessageOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // optional .oslp.RegisterDeviceRequest registerDeviceRequest = 1; - boolean hasRegisterDeviceRequest(); - - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest getRegisterDeviceRequest(); - - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequestOrBuilder - getRegisterDeviceRequestOrBuilder(); - - // optional .oslp.RegisterDeviceResponse registerDeviceResponse = 2; - boolean hasRegisterDeviceResponse(); - - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse getRegisterDeviceResponse(); - - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponseOrBuilder - getRegisterDeviceResponseOrBuilder(); - - // optional .oslp.StartSelfTestRequest startSelfTestRequest = 3; - boolean hasStartSelfTestRequest(); - - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest getStartSelfTestRequest(); - - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequestOrBuilder - getStartSelfTestRequestOrBuilder(); - - // optional .oslp.StartSelfTestResponse startSelfTestResponse = 4; - boolean hasStartSelfTestResponse(); - - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse getStartSelfTestResponse(); - - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponseOrBuilder - getStartSelfTestResponseOrBuilder(); - - // optional .oslp.StopSelfTestRequest stopSelfTestRequest = 5; - boolean hasStopSelfTestRequest(); - - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest getStopSelfTestRequest(); - - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequestOrBuilder - getStopSelfTestRequestOrBuilder(); - - // optional .oslp.StopSelfTestResponse stopSelfTestResponse = 6; - boolean hasStopSelfTestResponse(); - - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse getStopSelfTestResponse(); - - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponseOrBuilder - getStopSelfTestResponseOrBuilder(); - - // optional .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; - boolean hasUpdateFirmwareRequest(); - - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest getUpdateFirmwareRequest(); - - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequestOrBuilder - getUpdateFirmwareRequestOrBuilder(); - - // optional .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; - boolean hasUpdateFirmwareResponse(); - - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse getUpdateFirmwareResponse(); - - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponseOrBuilder - getUpdateFirmwareResponseOrBuilder(); - - // optional .oslp.SetLightRequest setLightRequest = 9; - boolean hasSetLightRequest(); - - org.opensmartgridplatform.oslp.Oslp.SetLightRequest getSetLightRequest(); - - org.opensmartgridplatform.oslp.Oslp.SetLightRequestOrBuilder getSetLightRequestOrBuilder(); - - // optional .oslp.SetLightResponse setLightResponse = 10; - boolean hasSetLightResponse(); - - org.opensmartgridplatform.oslp.Oslp.SetLightResponse getSetLightResponse(); - - org.opensmartgridplatform.oslp.Oslp.SetLightResponseOrBuilder getSetLightResponseOrBuilder(); - - // optional .oslp.GetStatusRequest getStatusRequest = 11; - boolean hasGetStatusRequest(); - - org.opensmartgridplatform.oslp.Oslp.GetStatusRequest getGetStatusRequest(); - - org.opensmartgridplatform.oslp.Oslp.GetStatusRequestOrBuilder getGetStatusRequestOrBuilder(); - - // optional .oslp.GetStatusResponse getStatusResponse = 12; - boolean hasGetStatusResponse(); - - org.opensmartgridplatform.oslp.Oslp.GetStatusResponse getGetStatusResponse(); - - org.opensmartgridplatform.oslp.Oslp.GetStatusResponseOrBuilder getGetStatusResponseOrBuilder(); - - // optional .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; - boolean hasResumeScheduleRequest(); - - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest getResumeScheduleRequest(); - - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequestOrBuilder - getResumeScheduleRequestOrBuilder(); - - // optional .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; - boolean hasResumeScheduleResponse(); - - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse getResumeScheduleResponse(); - - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponseOrBuilder - getResumeScheduleResponseOrBuilder(); - - // optional .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; - boolean hasSetEventNotificationsRequest(); - - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest - getSetEventNotificationsRequest(); - - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequestOrBuilder - getSetEventNotificationsRequestOrBuilder(); - - // optional .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; - boolean hasSetEventNotificationsResponse(); - - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse - getSetEventNotificationsResponse(); - - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponseOrBuilder - getSetEventNotificationsResponseOrBuilder(); - - // optional .oslp.EventNotificationRequest eventNotificationRequest = 17; - boolean hasEventNotificationRequest(); - - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest getEventNotificationRequest(); - - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequestOrBuilder - getEventNotificationRequestOrBuilder(); - - // optional .oslp.EventNotificationResponse eventNotificationResponse = 18; - boolean hasEventNotificationResponse(); - - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse getEventNotificationResponse(); - - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponseOrBuilder - getEventNotificationResponseOrBuilder(); - - // optional .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; - boolean hasGetFirmwareVersionRequest(); - - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest getGetFirmwareVersionRequest(); - - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequestOrBuilder - getGetFirmwareVersionRequestOrBuilder(); - - // optional .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; - boolean hasGetFirmwareVersionResponse(); - - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse getGetFirmwareVersionResponse(); - - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponseOrBuilder - getGetFirmwareVersionResponseOrBuilder(); - - // optional .oslp.SetScheduleRequest setScheduleRequest = 21; - boolean hasSetScheduleRequest(); - - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest getSetScheduleRequest(); - - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequestOrBuilder - getSetScheduleRequestOrBuilder(); - - // optional .oslp.SetScheduleResponse setScheduleResponse = 22; - boolean hasSetScheduleResponse(); - - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse getSetScheduleResponse(); - - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponseOrBuilder - getSetScheduleResponseOrBuilder(); - - // optional .oslp.SetConfigurationRequest setConfigurationRequest = 25; - boolean hasSetConfigurationRequest(); - - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest getSetConfigurationRequest(); - - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequestOrBuilder - getSetConfigurationRequestOrBuilder(); - - // optional .oslp.SetConfigurationResponse setConfigurationResponse = 26; - boolean hasSetConfigurationResponse(); - - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse getSetConfigurationResponse(); - - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponseOrBuilder - getSetConfigurationResponseOrBuilder(); - - // optional .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; - boolean hasGetPowerUsageHistoryRequest(); - - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest - getGetPowerUsageHistoryRequest(); - - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequestOrBuilder - getGetPowerUsageHistoryRequestOrBuilder(); - - // optional .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; - boolean hasGetPowerUsageHistoryResponse(); - - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse - getGetPowerUsageHistoryResponse(); - - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponseOrBuilder - getGetPowerUsageHistoryResponseOrBuilder(); - - // optional .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; - boolean hasGetActualPowerUsageRequest(); - - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest getGetActualPowerUsageRequest(); - - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequestOrBuilder - getGetActualPowerUsageRequestOrBuilder(); - - // optional .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; - boolean hasGetActualPowerUsageResponse(); - - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse - getGetActualPowerUsageResponse(); - - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponseOrBuilder - getGetActualPowerUsageResponseOrBuilder(); - - // optional .oslp.SetRebootRequest setRebootRequest = 31; - boolean hasSetRebootRequest(); - - org.opensmartgridplatform.oslp.Oslp.SetRebootRequest getSetRebootRequest(); - - org.opensmartgridplatform.oslp.Oslp.SetRebootRequestOrBuilder getSetRebootRequestOrBuilder(); - - // optional .oslp.SetRebootResponse setRebootResponse = 32; - boolean hasSetRebootResponse(); - - org.opensmartgridplatform.oslp.Oslp.SetRebootResponse getSetRebootResponse(); - - org.opensmartgridplatform.oslp.Oslp.SetRebootResponseOrBuilder getSetRebootResponseOrBuilder(); - - // optional .oslp.SetTransitionRequest setTransitionRequest = 33; - boolean hasSetTransitionRequest(); - - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest getSetTransitionRequest(); - - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequestOrBuilder - getSetTransitionRequestOrBuilder(); - - // optional .oslp.SetTransitionResponse setTransitionResponse = 34; - boolean hasSetTransitionResponse(); - - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse getSetTransitionResponse(); - - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponseOrBuilder - getSetTransitionResponseOrBuilder(); - - // optional .oslp.GetConfigurationRequest getConfigurationRequest = 35; - boolean hasGetConfigurationRequest(); - - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest getGetConfigurationRequest(); - - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequestOrBuilder - getGetConfigurationRequestOrBuilder(); - - // optional .oslp.GetConfigurationResponse getConfigurationResponse = 36; - boolean hasGetConfigurationResponse(); - - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse getGetConfigurationResponse(); - - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponseOrBuilder - getGetConfigurationResponseOrBuilder(); - - // optional .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; - boolean hasConfirmRegisterDeviceRequest(); - - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest - getConfirmRegisterDeviceRequest(); - - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequestOrBuilder - getConfirmRegisterDeviceRequestOrBuilder(); - - // optional .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; - boolean hasConfirmRegisterDeviceResponse(); - - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse - getConfirmRegisterDeviceResponse(); - - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponseOrBuilder - getConfirmRegisterDeviceResponseOrBuilder(); - - // optional .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; - boolean hasUpdateDeviceSslCertificationRequest(); - - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - getUpdateDeviceSslCertificationRequest(); - - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequestOrBuilder - getUpdateDeviceSslCertificationRequestOrBuilder(); - - // optional .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = - // 40; - boolean hasUpdateDeviceSslCertificationResponse(); - - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - getUpdateDeviceSslCertificationResponse(); - - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponseOrBuilder - getUpdateDeviceSslCertificationResponseOrBuilder(); - - // optional .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; - boolean hasSetDeviceVerificationKeyRequest(); - - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest - getSetDeviceVerificationKeyRequest(); - - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequestOrBuilder - getSetDeviceVerificationKeyRequestOrBuilder(); - - // optional .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; - boolean hasSetDeviceVerificationKeyResponse(); - - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse - getSetDeviceVerificationKeyResponse(); - - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponseOrBuilder - getSetDeviceVerificationKeyResponseOrBuilder(); - - // optional .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; - boolean hasSwitchFirmwareRequest(); - - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest getSwitchFirmwareRequest(); - - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequestOrBuilder - getSwitchFirmwareRequestOrBuilder(); - - // optional .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; - boolean hasSwitchFirmwareResponse(); - - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse getSwitchFirmwareResponse(); - - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponseOrBuilder - getSwitchFirmwareResponseOrBuilder(); - - // optional .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; - boolean hasSwitchConfigurationRequest(); - - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest getSwitchConfigurationRequest(); - - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequestOrBuilder - getSwitchConfigurationRequestOrBuilder(); - - // optional .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; - boolean hasSwitchConfigurationResponse(); - - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse - getSwitchConfigurationResponse(); - - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponseOrBuilder - getSwitchConfigurationResponseOrBuilder(); - } - - public static final class Message extends com.google.protobuf.GeneratedMessage - implements MessageOrBuilder { - // Use Message.newBuilder() to construct. - private Message(final Builder builder) { - super(builder); - } - - private Message(final boolean noInit) {} - - private static final Message defaultInstance; - - public static Message getDefaultInstance() { - return defaultInstance; - } - - @Override - public Message getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Message_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Message_fieldAccessorTable; - } - - private int bitField0_; - private int bitField1_; - // optional .oslp.RegisterDeviceRequest registerDeviceRequest = 1; - public static final int REGISTERDEVICEREQUEST_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest registerDeviceRequest_; - - @Override - public boolean hasRegisterDeviceRequest() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest getRegisterDeviceRequest() { - return this.registerDeviceRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequestOrBuilder - getRegisterDeviceRequestOrBuilder() { - return this.registerDeviceRequest_; - } - - // optional .oslp.RegisterDeviceResponse registerDeviceResponse = 2; - public static final int REGISTERDEVICERESPONSE_FIELD_NUMBER = 2; - private org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse registerDeviceResponse_; - - @Override - public boolean hasRegisterDeviceResponse() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse getRegisterDeviceResponse() { - return this.registerDeviceResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponseOrBuilder - getRegisterDeviceResponseOrBuilder() { - return this.registerDeviceResponse_; - } - - // optional .oslp.StartSelfTestRequest startSelfTestRequest = 3; - public static final int STARTSELFTESTREQUEST_FIELD_NUMBER = 3; - private org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest startSelfTestRequest_; - - @Override - public boolean hasStartSelfTestRequest() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest getStartSelfTestRequest() { - return this.startSelfTestRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequestOrBuilder - getStartSelfTestRequestOrBuilder() { - return this.startSelfTestRequest_; - } - - // optional .oslp.StartSelfTestResponse startSelfTestResponse = 4; - public static final int STARTSELFTESTRESPONSE_FIELD_NUMBER = 4; - private org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse startSelfTestResponse_; - - @Override - public boolean hasStartSelfTestResponse() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse getStartSelfTestResponse() { - return this.startSelfTestResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponseOrBuilder - getStartSelfTestResponseOrBuilder() { - return this.startSelfTestResponse_; - } - - // optional .oslp.StopSelfTestRequest stopSelfTestRequest = 5; - public static final int STOPSELFTESTREQUEST_FIELD_NUMBER = 5; - private org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest stopSelfTestRequest_; - - @Override - public boolean hasStopSelfTestRequest() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest getStopSelfTestRequest() { - return this.stopSelfTestRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequestOrBuilder - getStopSelfTestRequestOrBuilder() { - return this.stopSelfTestRequest_; - } - - // optional .oslp.StopSelfTestResponse stopSelfTestResponse = 6; - public static final int STOPSELFTESTRESPONSE_FIELD_NUMBER = 6; - private org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse stopSelfTestResponse_; - - @Override - public boolean hasStopSelfTestResponse() { - return ((this.bitField0_ & 0x00000020) == 0x00000020); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse getStopSelfTestResponse() { - return this.stopSelfTestResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponseOrBuilder - getStopSelfTestResponseOrBuilder() { - return this.stopSelfTestResponse_; - } - - // optional .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; - public static final int UPDATEFIRMWAREREQUEST_FIELD_NUMBER = 7; - private org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest updateFirmwareRequest_; - - @Override - public boolean hasUpdateFirmwareRequest() { - return ((this.bitField0_ & 0x00000040) == 0x00000040); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest getUpdateFirmwareRequest() { - return this.updateFirmwareRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequestOrBuilder - getUpdateFirmwareRequestOrBuilder() { - return this.updateFirmwareRequest_; - } - - // optional .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; - public static final int UPDATEFIRMWARERESPONSE_FIELD_NUMBER = 8; - private org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse updateFirmwareResponse_; - - @Override - public boolean hasUpdateFirmwareResponse() { - return ((this.bitField0_ & 0x00000080) == 0x00000080); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse getUpdateFirmwareResponse() { - return this.updateFirmwareResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponseOrBuilder - getUpdateFirmwareResponseOrBuilder() { - return this.updateFirmwareResponse_; - } - - // optional .oslp.SetLightRequest setLightRequest = 9; - public static final int SETLIGHTREQUEST_FIELD_NUMBER = 9; - private org.opensmartgridplatform.oslp.Oslp.SetLightRequest setLightRequest_; - - @Override - public boolean hasSetLightRequest() { - return ((this.bitField0_ & 0x00000100) == 0x00000100); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetLightRequest getSetLightRequest() { - return this.setLightRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetLightRequestOrBuilder - getSetLightRequestOrBuilder() { - return this.setLightRequest_; - } - - // optional .oslp.SetLightResponse setLightResponse = 10; - public static final int SETLIGHTRESPONSE_FIELD_NUMBER = 10; - private org.opensmartgridplatform.oslp.Oslp.SetLightResponse setLightResponse_; - - @Override - public boolean hasSetLightResponse() { - return ((this.bitField0_ & 0x00000200) == 0x00000200); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetLightResponse getSetLightResponse() { - return this.setLightResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetLightResponseOrBuilder - getSetLightResponseOrBuilder() { - return this.setLightResponse_; - } - - // optional .oslp.GetStatusRequest getStatusRequest = 11; - public static final int GETSTATUSREQUEST_FIELD_NUMBER = 11; - private org.opensmartgridplatform.oslp.Oslp.GetStatusRequest getStatusRequest_; - - @Override - public boolean hasGetStatusRequest() { - return ((this.bitField0_ & 0x00000400) == 0x00000400); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetStatusRequest getGetStatusRequest() { - return this.getStatusRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetStatusRequestOrBuilder - getGetStatusRequestOrBuilder() { - return this.getStatusRequest_; - } - - // optional .oslp.GetStatusResponse getStatusResponse = 12; - public static final int GETSTATUSRESPONSE_FIELD_NUMBER = 12; - private org.opensmartgridplatform.oslp.Oslp.GetStatusResponse getStatusResponse_; - - @Override - public boolean hasGetStatusResponse() { - return ((this.bitField0_ & 0x00000800) == 0x00000800); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetStatusResponse getGetStatusResponse() { - return this.getStatusResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetStatusResponseOrBuilder - getGetStatusResponseOrBuilder() { - return this.getStatusResponse_; - } - - // optional .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; - public static final int RESUMESCHEDULEREQUEST_FIELD_NUMBER = 13; - private org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest resumeScheduleRequest_; - - @Override - public boolean hasResumeScheduleRequest() { - return ((this.bitField0_ & 0x00001000) == 0x00001000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest getResumeScheduleRequest() { - return this.resumeScheduleRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequestOrBuilder - getResumeScheduleRequestOrBuilder() { - return this.resumeScheduleRequest_; - } - - // optional .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; - public static final int RESUMESCHEDULERESPONSE_FIELD_NUMBER = 14; - private org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse resumeScheduleResponse_; - - @Override - public boolean hasResumeScheduleResponse() { - return ((this.bitField0_ & 0x00002000) == 0x00002000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse getResumeScheduleResponse() { - return this.resumeScheduleResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponseOrBuilder - getResumeScheduleResponseOrBuilder() { - return this.resumeScheduleResponse_; - } - - // optional .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; - public static final int SETEVENTNOTIFICATIONSREQUEST_FIELD_NUMBER = 15; - private org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest - setEventNotificationsRequest_; - - @Override - public boolean hasSetEventNotificationsRequest() { - return ((this.bitField0_ & 0x00004000) == 0x00004000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest - getSetEventNotificationsRequest() { - return this.setEventNotificationsRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequestOrBuilder - getSetEventNotificationsRequestOrBuilder() { - return this.setEventNotificationsRequest_; - } - - // optional .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; - public static final int SETEVENTNOTIFICATIONSRESPONSE_FIELD_NUMBER = 16; - private org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse - setEventNotificationsResponse_; - - @Override - public boolean hasSetEventNotificationsResponse() { - return ((this.bitField0_ & 0x00008000) == 0x00008000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse - getSetEventNotificationsResponse() { - return this.setEventNotificationsResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponseOrBuilder - getSetEventNotificationsResponseOrBuilder() { - return this.setEventNotificationsResponse_; - } - - // optional .oslp.EventNotificationRequest eventNotificationRequest = 17; - public static final int EVENTNOTIFICATIONREQUEST_FIELD_NUMBER = 17; - private org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest eventNotificationRequest_; - - @Override - public boolean hasEventNotificationRequest() { - return ((this.bitField0_ & 0x00010000) == 0x00010000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest - getEventNotificationRequest() { - return this.eventNotificationRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequestOrBuilder - getEventNotificationRequestOrBuilder() { - return this.eventNotificationRequest_; - } - - // optional .oslp.EventNotificationResponse eventNotificationResponse = 18; - public static final int EVENTNOTIFICATIONRESPONSE_FIELD_NUMBER = 18; - private org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse - eventNotificationResponse_; - - @Override - public boolean hasEventNotificationResponse() { - return ((this.bitField0_ & 0x00020000) == 0x00020000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse - getEventNotificationResponse() { - return this.eventNotificationResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponseOrBuilder - getEventNotificationResponseOrBuilder() { - return this.eventNotificationResponse_; - } - - // optional .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; - public static final int GETFIRMWAREVERSIONREQUEST_FIELD_NUMBER = 19; - private org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest - getFirmwareVersionRequest_; - - @Override - public boolean hasGetFirmwareVersionRequest() { - return ((this.bitField0_ & 0x00040000) == 0x00040000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest - getGetFirmwareVersionRequest() { - return this.getFirmwareVersionRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequestOrBuilder - getGetFirmwareVersionRequestOrBuilder() { - return this.getFirmwareVersionRequest_; - } - - // optional .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; - public static final int GETFIRMWAREVERSIONRESPONSE_FIELD_NUMBER = 20; - private org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse - getFirmwareVersionResponse_; - - @Override - public boolean hasGetFirmwareVersionResponse() { - return ((this.bitField0_ & 0x00080000) == 0x00080000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse - getGetFirmwareVersionResponse() { - return this.getFirmwareVersionResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponseOrBuilder - getGetFirmwareVersionResponseOrBuilder() { - return this.getFirmwareVersionResponse_; - } - - // optional .oslp.SetScheduleRequest setScheduleRequest = 21; - public static final int SETSCHEDULEREQUEST_FIELD_NUMBER = 21; - private org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest setScheduleRequest_; - - @Override - public boolean hasSetScheduleRequest() { - return ((this.bitField0_ & 0x00100000) == 0x00100000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest getSetScheduleRequest() { - return this.setScheduleRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequestOrBuilder - getSetScheduleRequestOrBuilder() { - return this.setScheduleRequest_; - } - - // optional .oslp.SetScheduleResponse setScheduleResponse = 22; - public static final int SETSCHEDULERESPONSE_FIELD_NUMBER = 22; - private org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse setScheduleResponse_; - - @Override - public boolean hasSetScheduleResponse() { - return ((this.bitField0_ & 0x00200000) == 0x00200000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse getSetScheduleResponse() { - return this.setScheduleResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponseOrBuilder - getSetScheduleResponseOrBuilder() { - return this.setScheduleResponse_; - } - - // optional .oslp.SetConfigurationRequest setConfigurationRequest = 25; - public static final int SETCONFIGURATIONREQUEST_FIELD_NUMBER = 25; - private org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest setConfigurationRequest_; - - @Override - public boolean hasSetConfigurationRequest() { - return ((this.bitField0_ & 0x00400000) == 0x00400000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest - getSetConfigurationRequest() { - return this.setConfigurationRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequestOrBuilder - getSetConfigurationRequestOrBuilder() { - return this.setConfigurationRequest_; - } - - // optional .oslp.SetConfigurationResponse setConfigurationResponse = 26; - public static final int SETCONFIGURATIONRESPONSE_FIELD_NUMBER = 26; - private org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse setConfigurationResponse_; - - @Override - public boolean hasSetConfigurationResponse() { - return ((this.bitField0_ & 0x00800000) == 0x00800000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse - getSetConfigurationResponse() { - return this.setConfigurationResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponseOrBuilder - getSetConfigurationResponseOrBuilder() { - return this.setConfigurationResponse_; - } - - // optional .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; - public static final int GETPOWERUSAGEHISTORYREQUEST_FIELD_NUMBER = 27; - private org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest - getPowerUsageHistoryRequest_; - - @Override - public boolean hasGetPowerUsageHistoryRequest() { - return ((this.bitField0_ & 0x01000000) == 0x01000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest - getGetPowerUsageHistoryRequest() { - return this.getPowerUsageHistoryRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequestOrBuilder - getGetPowerUsageHistoryRequestOrBuilder() { - return this.getPowerUsageHistoryRequest_; - } - - // optional .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; - public static final int GETPOWERUSAGEHISTORYRESPONSE_FIELD_NUMBER = 28; - private org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse - getPowerUsageHistoryResponse_; - - @Override - public boolean hasGetPowerUsageHistoryResponse() { - return ((this.bitField0_ & 0x02000000) == 0x02000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse - getGetPowerUsageHistoryResponse() { - return this.getPowerUsageHistoryResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponseOrBuilder - getGetPowerUsageHistoryResponseOrBuilder() { - return this.getPowerUsageHistoryResponse_; - } - - // optional .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; - public static final int GETACTUALPOWERUSAGEREQUEST_FIELD_NUMBER = 29; - private org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest - getActualPowerUsageRequest_; - - @Override - public boolean hasGetActualPowerUsageRequest() { - return ((this.bitField0_ & 0x04000000) == 0x04000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest - getGetActualPowerUsageRequest() { - return this.getActualPowerUsageRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequestOrBuilder - getGetActualPowerUsageRequestOrBuilder() { - return this.getActualPowerUsageRequest_; - } - - // optional .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; - public static final int GETACTUALPOWERUSAGERESPONSE_FIELD_NUMBER = 30; - private org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse - getActualPowerUsageResponse_; - - @Override - public boolean hasGetActualPowerUsageResponse() { - return ((this.bitField0_ & 0x08000000) == 0x08000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse - getGetActualPowerUsageResponse() { - return this.getActualPowerUsageResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponseOrBuilder - getGetActualPowerUsageResponseOrBuilder() { - return this.getActualPowerUsageResponse_; - } - - // optional .oslp.SetRebootRequest setRebootRequest = 31; - public static final int SETREBOOTREQUEST_FIELD_NUMBER = 31; - private org.opensmartgridplatform.oslp.Oslp.SetRebootRequest setRebootRequest_; - - @Override - public boolean hasSetRebootRequest() { - return ((this.bitField0_ & 0x10000000) == 0x10000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetRebootRequest getSetRebootRequest() { - return this.setRebootRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetRebootRequestOrBuilder - getSetRebootRequestOrBuilder() { - return this.setRebootRequest_; - } - - // optional .oslp.SetRebootResponse setRebootResponse = 32; - public static final int SETREBOOTRESPONSE_FIELD_NUMBER = 32; - private org.opensmartgridplatform.oslp.Oslp.SetRebootResponse setRebootResponse_; - - @Override - public boolean hasSetRebootResponse() { - return ((this.bitField0_ & 0x20000000) == 0x20000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetRebootResponse getSetRebootResponse() { - return this.setRebootResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetRebootResponseOrBuilder - getSetRebootResponseOrBuilder() { - return this.setRebootResponse_; - } - - // optional .oslp.SetTransitionRequest setTransitionRequest = 33; - public static final int SETTRANSITIONREQUEST_FIELD_NUMBER = 33; - private org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest setTransitionRequest_; - - @Override - public boolean hasSetTransitionRequest() { - return ((this.bitField0_ & 0x40000000) == 0x40000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest getSetTransitionRequest() { - return this.setTransitionRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequestOrBuilder - getSetTransitionRequestOrBuilder() { - return this.setTransitionRequest_; - } - - // optional .oslp.SetTransitionResponse setTransitionResponse = 34; - public static final int SETTRANSITIONRESPONSE_FIELD_NUMBER = 34; - private org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse setTransitionResponse_; - - @Override - public boolean hasSetTransitionResponse() { - return ((this.bitField0_ & 0x80000000) == 0x80000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse getSetTransitionResponse() { - return this.setTransitionResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponseOrBuilder - getSetTransitionResponseOrBuilder() { - return this.setTransitionResponse_; - } - - // optional .oslp.GetConfigurationRequest getConfigurationRequest = 35; - public static final int GETCONFIGURATIONREQUEST_FIELD_NUMBER = 35; - private org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest getConfigurationRequest_; - - @Override - public boolean hasGetConfigurationRequest() { - return ((this.bitField1_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest - getGetConfigurationRequest() { - return this.getConfigurationRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequestOrBuilder - getGetConfigurationRequestOrBuilder() { - return this.getConfigurationRequest_; - } - - // optional .oslp.GetConfigurationResponse getConfigurationResponse = 36; - public static final int GETCONFIGURATIONRESPONSE_FIELD_NUMBER = 36; - private org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse getConfigurationResponse_; - - @Override - public boolean hasGetConfigurationResponse() { - return ((this.bitField1_ & 0x00000002) == 0x00000002); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse - getGetConfigurationResponse() { - return this.getConfigurationResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponseOrBuilder - getGetConfigurationResponseOrBuilder() { - return this.getConfigurationResponse_; - } - - // optional .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; - public static final int CONFIRMREGISTERDEVICEREQUEST_FIELD_NUMBER = 37; - private org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest - confirmRegisterDeviceRequest_; - - @Override - public boolean hasConfirmRegisterDeviceRequest() { - return ((this.bitField1_ & 0x00000004) == 0x00000004); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest - getConfirmRegisterDeviceRequest() { - return this.confirmRegisterDeviceRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequestOrBuilder - getConfirmRegisterDeviceRequestOrBuilder() { - return this.confirmRegisterDeviceRequest_; - } - - // optional .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; - public static final int CONFIRMREGISTERDEVICERESPONSE_FIELD_NUMBER = 38; - private org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse - confirmRegisterDeviceResponse_; - - @Override - public boolean hasConfirmRegisterDeviceResponse() { - return ((this.bitField1_ & 0x00000008) == 0x00000008); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse - getConfirmRegisterDeviceResponse() { - return this.confirmRegisterDeviceResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponseOrBuilder - getConfirmRegisterDeviceResponseOrBuilder() { - return this.confirmRegisterDeviceResponse_; - } - - // optional .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; - public static final int UPDATEDEVICESSLCERTIFICATIONREQUEST_FIELD_NUMBER = 39; - private org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - updateDeviceSslCertificationRequest_; - - @Override - public boolean hasUpdateDeviceSslCertificationRequest() { - return ((this.bitField1_ & 0x00000010) == 0x00000010); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - getUpdateDeviceSslCertificationRequest() { - return this.updateDeviceSslCertificationRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequestOrBuilder - getUpdateDeviceSslCertificationRequestOrBuilder() { - return this.updateDeviceSslCertificationRequest_; - } - - // optional .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = - // 40; - public static final int UPDATEDEVICESSLCERTIFICATIONRESPONSE_FIELD_NUMBER = 40; - private org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - updateDeviceSslCertificationResponse_; - - @Override - public boolean hasUpdateDeviceSslCertificationResponse() { - return ((this.bitField1_ & 0x00000020) == 0x00000020); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - getUpdateDeviceSslCertificationResponse() { - return this.updateDeviceSslCertificationResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponseOrBuilder - getUpdateDeviceSslCertificationResponseOrBuilder() { - return this.updateDeviceSslCertificationResponse_; - } - - // optional .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; - public static final int SETDEVICEVERIFICATIONKEYREQUEST_FIELD_NUMBER = 41; - private org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest - setDeviceVerificationKeyRequest_; - - @Override - public boolean hasSetDeviceVerificationKeyRequest() { - return ((this.bitField1_ & 0x00000040) == 0x00000040); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest - getSetDeviceVerificationKeyRequest() { - return this.setDeviceVerificationKeyRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequestOrBuilder - getSetDeviceVerificationKeyRequestOrBuilder() { - return this.setDeviceVerificationKeyRequest_; - } - - // optional .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; - public static final int SETDEVICEVERIFICATIONKEYRESPONSE_FIELD_NUMBER = 42; - private org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse - setDeviceVerificationKeyResponse_; - - @Override - public boolean hasSetDeviceVerificationKeyResponse() { - return ((this.bitField1_ & 0x00000080) == 0x00000080); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse - getSetDeviceVerificationKeyResponse() { - return this.setDeviceVerificationKeyResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponseOrBuilder - getSetDeviceVerificationKeyResponseOrBuilder() { - return this.setDeviceVerificationKeyResponse_; - } - - // optional .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; - public static final int SWITCHFIRMWAREREQUEST_FIELD_NUMBER = 43; - private org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest switchFirmwareRequest_; - - @Override - public boolean hasSwitchFirmwareRequest() { - return ((this.bitField1_ & 0x00000100) == 0x00000100); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest getSwitchFirmwareRequest() { - return this.switchFirmwareRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequestOrBuilder - getSwitchFirmwareRequestOrBuilder() { - return this.switchFirmwareRequest_; - } - - // optional .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; - public static final int SWITCHFIRMWARERESPONSE_FIELD_NUMBER = 44; - private org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse switchFirmwareResponse_; - - @Override - public boolean hasSwitchFirmwareResponse() { - return ((this.bitField1_ & 0x00000200) == 0x00000200); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse getSwitchFirmwareResponse() { - return this.switchFirmwareResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponseOrBuilder - getSwitchFirmwareResponseOrBuilder() { - return this.switchFirmwareResponse_; - } - - // optional .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; - public static final int SWITCHCONFIGURATIONREQUEST_FIELD_NUMBER = 45; - private org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest - switchConfigurationRequest_; - - @Override - public boolean hasSwitchConfigurationRequest() { - return ((this.bitField1_ & 0x00000400) == 0x00000400); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest - getSwitchConfigurationRequest() { - return this.switchConfigurationRequest_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequestOrBuilder - getSwitchConfigurationRequestOrBuilder() { - return this.switchConfigurationRequest_; - } - - // optional .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; - public static final int SWITCHCONFIGURATIONRESPONSE_FIELD_NUMBER = 46; - private org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse - switchConfigurationResponse_; - - @Override - public boolean hasSwitchConfigurationResponse() { - return ((this.bitField1_ & 0x00000800) == 0x00000800); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse - getSwitchConfigurationResponse() { - return this.switchConfigurationResponse_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponseOrBuilder - getSwitchConfigurationResponseOrBuilder() { - return this.switchConfigurationResponse_; - } - - private void initFields() { - this.registerDeviceRequest_ = - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.getDefaultInstance(); - this.registerDeviceResponse_ = - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.getDefaultInstance(); - this.startSelfTestRequest_ = - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.getDefaultInstance(); - this.startSelfTestResponse_ = - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.getDefaultInstance(); - this.stopSelfTestRequest_ = - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.getDefaultInstance(); - this.stopSelfTestResponse_ = - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.getDefaultInstance(); - this.updateFirmwareRequest_ = - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.getDefaultInstance(); - this.updateFirmwareResponse_ = - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.getDefaultInstance(); - this.setLightRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetLightRequest.getDefaultInstance(); - this.setLightResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetLightResponse.getDefaultInstance(); - this.getStatusRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.getDefaultInstance(); - this.getStatusResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.getDefaultInstance(); - this.resumeScheduleRequest_ = - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.getDefaultInstance(); - this.resumeScheduleResponse_ = - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.getDefaultInstance(); - this.setEventNotificationsRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.getDefaultInstance(); - this.setEventNotificationsResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.getDefaultInstance(); - this.eventNotificationRequest_ = - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.getDefaultInstance(); - this.eventNotificationResponse_ = - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.getDefaultInstance(); - this.getFirmwareVersionRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.getDefaultInstance(); - this.getFirmwareVersionResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.getDefaultInstance(); - this.setScheduleRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.getDefaultInstance(); - this.setScheduleResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.getDefaultInstance(); - this.setConfigurationRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.getDefaultInstance(); - this.setConfigurationResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.getDefaultInstance(); - this.getPowerUsageHistoryRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.getDefaultInstance(); - this.getPowerUsageHistoryResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.getDefaultInstance(); - this.getActualPowerUsageRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.getDefaultInstance(); - this.getActualPowerUsageResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.getDefaultInstance(); - this.setRebootRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.getDefaultInstance(); - this.setRebootResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.getDefaultInstance(); - this.setTransitionRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.getDefaultInstance(); - this.setTransitionResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.getDefaultInstance(); - this.getConfigurationRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.getDefaultInstance(); - this.getConfigurationResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.getDefaultInstance(); - this.confirmRegisterDeviceRequest_ = - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.getDefaultInstance(); - this.confirmRegisterDeviceResponse_ = - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.getDefaultInstance(); - this.updateDeviceSslCertificationRequest_ = - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - .getDefaultInstance(); - this.updateDeviceSslCertificationResponse_ = - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - .getDefaultInstance(); - this.setDeviceVerificationKeyRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.getDefaultInstance(); - this.setDeviceVerificationKeyResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.getDefaultInstance(); - this.switchFirmwareRequest_ = - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.getDefaultInstance(); - this.switchFirmwareResponse_ = - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.getDefaultInstance(); - this.switchConfigurationRequest_ = - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.getDefaultInstance(); - this.switchConfigurationResponse_ = - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (this.hasRegisterDeviceRequest()) { - if (!this.getRegisterDeviceRequest().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasRegisterDeviceResponse()) { - if (!this.getRegisterDeviceResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasStartSelfTestResponse()) { - if (!this.getStartSelfTestResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasStopSelfTestResponse()) { - if (!this.getStopSelfTestResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasUpdateFirmwareRequest()) { - if (!this.getUpdateFirmwareRequest().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasUpdateFirmwareResponse()) { - if (!this.getUpdateFirmwareResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSetLightRequest()) { - if (!this.getSetLightRequest().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSetLightResponse()) { - if (!this.getSetLightResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasGetStatusResponse()) { - if (!this.getGetStatusResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasResumeScheduleRequest()) { - if (!this.getResumeScheduleRequest().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasResumeScheduleResponse()) { - if (!this.getResumeScheduleResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSetEventNotificationsRequest()) { - if (!this.getSetEventNotificationsRequest().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSetEventNotificationsResponse()) { - if (!this.getSetEventNotificationsResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasEventNotificationRequest()) { - if (!this.getEventNotificationRequest().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasEventNotificationResponse()) { - if (!this.getEventNotificationResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasGetFirmwareVersionResponse()) { - if (!this.getGetFirmwareVersionResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSetScheduleRequest()) { - if (!this.getSetScheduleRequest().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSetScheduleResponse()) { - if (!this.getSetScheduleResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSetConfigurationRequest()) { - if (!this.getSetConfigurationRequest().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSetConfigurationResponse()) { - if (!this.getSetConfigurationResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasGetPowerUsageHistoryRequest()) { - if (!this.getGetPowerUsageHistoryRequest().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasGetPowerUsageHistoryResponse()) { - if (!this.getGetPowerUsageHistoryResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasGetActualPowerUsageResponse()) { - if (!this.getGetActualPowerUsageResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSetRebootResponse()) { - if (!this.getSetRebootResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSetTransitionRequest()) { - if (!this.getSetTransitionRequest().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSetTransitionResponse()) { - if (!this.getSetTransitionResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasGetConfigurationResponse()) { - if (!this.getGetConfigurationResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasConfirmRegisterDeviceRequest()) { - if (!this.getConfirmRegisterDeviceRequest().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasConfirmRegisterDeviceResponse()) { - if (!this.getConfirmRegisterDeviceResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasUpdateDeviceSslCertificationRequest()) { - if (!this.getUpdateDeviceSslCertificationRequest().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasUpdateDeviceSslCertificationResponse()) { - if (!this.getUpdateDeviceSslCertificationResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSetDeviceVerificationKeyRequest()) { - if (!this.getSetDeviceVerificationKeyRequest().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSetDeviceVerificationKeyResponse()) { - if (!this.getSetDeviceVerificationKeyResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSwitchFirmwareRequest()) { - if (!this.getSwitchFirmwareRequest().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSwitchFirmwareResponse()) { - if (!this.getSwitchFirmwareResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSwitchConfigurationRequest()) { - if (!this.getSwitchConfigurationRequest().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSwitchConfigurationResponse()) { - if (!this.getSwitchConfigurationResponse().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, this.registerDeviceRequest_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, this.registerDeviceResponse_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, this.startSelfTestRequest_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, this.startSelfTestResponse_); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, this.stopSelfTestRequest_); - } - if (((this.bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, this.stopSelfTestResponse_); - } - if (((this.bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(7, this.updateFirmwareRequest_); - } - if (((this.bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(8, this.updateFirmwareResponse_); - } - if (((this.bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(9, this.setLightRequest_); - } - if (((this.bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(10, this.setLightResponse_); - } - if (((this.bitField0_ & 0x00000400) == 0x00000400)) { - output.writeMessage(11, this.getStatusRequest_); - } - if (((this.bitField0_ & 0x00000800) == 0x00000800)) { - output.writeMessage(12, this.getStatusResponse_); - } - if (((this.bitField0_ & 0x00001000) == 0x00001000)) { - output.writeMessage(13, this.resumeScheduleRequest_); - } - if (((this.bitField0_ & 0x00002000) == 0x00002000)) { - output.writeMessage(14, this.resumeScheduleResponse_); - } - if (((this.bitField0_ & 0x00004000) == 0x00004000)) { - output.writeMessage(15, this.setEventNotificationsRequest_); - } - if (((this.bitField0_ & 0x00008000) == 0x00008000)) { - output.writeMessage(16, this.setEventNotificationsResponse_); - } - if (((this.bitField0_ & 0x00010000) == 0x00010000)) { - output.writeMessage(17, this.eventNotificationRequest_); - } - if (((this.bitField0_ & 0x00020000) == 0x00020000)) { - output.writeMessage(18, this.eventNotificationResponse_); - } - if (((this.bitField0_ & 0x00040000) == 0x00040000)) { - output.writeMessage(19, this.getFirmwareVersionRequest_); - } - if (((this.bitField0_ & 0x00080000) == 0x00080000)) { - output.writeMessage(20, this.getFirmwareVersionResponse_); - } - if (((this.bitField0_ & 0x00100000) == 0x00100000)) { - output.writeMessage(21, this.setScheduleRequest_); - } - if (((this.bitField0_ & 0x00200000) == 0x00200000)) { - output.writeMessage(22, this.setScheduleResponse_); - } - if (((this.bitField0_ & 0x00400000) == 0x00400000)) { - output.writeMessage(25, this.setConfigurationRequest_); - } - if (((this.bitField0_ & 0x00800000) == 0x00800000)) { - output.writeMessage(26, this.setConfigurationResponse_); - } - if (((this.bitField0_ & 0x01000000) == 0x01000000)) { - output.writeMessage(27, this.getPowerUsageHistoryRequest_); - } - if (((this.bitField0_ & 0x02000000) == 0x02000000)) { - output.writeMessage(28, this.getPowerUsageHistoryResponse_); - } - if (((this.bitField0_ & 0x04000000) == 0x04000000)) { - output.writeMessage(29, this.getActualPowerUsageRequest_); - } - if (((this.bitField0_ & 0x08000000) == 0x08000000)) { - output.writeMessage(30, this.getActualPowerUsageResponse_); - } - if (((this.bitField0_ & 0x10000000) == 0x10000000)) { - output.writeMessage(31, this.setRebootRequest_); - } - if (((this.bitField0_ & 0x20000000) == 0x20000000)) { - output.writeMessage(32, this.setRebootResponse_); - } - if (((this.bitField0_ & 0x40000000) == 0x40000000)) { - output.writeMessage(33, this.setTransitionRequest_); - } - if (((this.bitField0_ & 0x80000000) == 0x80000000)) { - output.writeMessage(34, this.setTransitionResponse_); - } - if (((this.bitField1_ & 0x00000001) == 0x00000001)) { - output.writeMessage(35, this.getConfigurationRequest_); - } - if (((this.bitField1_ & 0x00000002) == 0x00000002)) { - output.writeMessage(36, this.getConfigurationResponse_); - } - if (((this.bitField1_ & 0x00000004) == 0x00000004)) { - output.writeMessage(37, this.confirmRegisterDeviceRequest_); - } - if (((this.bitField1_ & 0x00000008) == 0x00000008)) { - output.writeMessage(38, this.confirmRegisterDeviceResponse_); - } - if (((this.bitField1_ & 0x00000010) == 0x00000010)) { - output.writeMessage(39, this.updateDeviceSslCertificationRequest_); - } - if (((this.bitField1_ & 0x00000020) == 0x00000020)) { - output.writeMessage(40, this.updateDeviceSslCertificationResponse_); - } - if (((this.bitField1_ & 0x00000040) == 0x00000040)) { - output.writeMessage(41, this.setDeviceVerificationKeyRequest_); - } - if (((this.bitField1_ & 0x00000080) == 0x00000080)) { - output.writeMessage(42, this.setDeviceVerificationKeyResponse_); - } - if (((this.bitField1_ & 0x00000100) == 0x00000100)) { - output.writeMessage(43, this.switchFirmwareRequest_); - } - if (((this.bitField1_ & 0x00000200) == 0x00000200)) { - output.writeMessage(44, this.switchFirmwareResponse_); - } - if (((this.bitField1_ & 0x00000400) == 0x00000400)) { - output.writeMessage(45, this.switchConfigurationRequest_); - } - if (((this.bitField1_ & 0x00000800) == 0x00000800)) { - output.writeMessage(46, this.switchConfigurationResponse_); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, this.registerDeviceRequest_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, this.registerDeviceResponse_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, this.startSelfTestRequest_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, this.startSelfTestResponse_); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, this.stopSelfTestRequest_); - } - if (((this.bitField0_ & 0x00000020) == 0x00000020)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(6, this.stopSelfTestResponse_); - } - if (((this.bitField0_ & 0x00000040) == 0x00000040)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, this.updateFirmwareRequest_); - } - if (((this.bitField0_ & 0x00000080) == 0x00000080)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, this.updateFirmwareResponse_); - } - if (((this.bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, this.setLightRequest_); - } - if (((this.bitField0_ & 0x00000200) == 0x00000200)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(10, this.setLightResponse_); - } - if (((this.bitField0_ & 0x00000400) == 0x00000400)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(11, this.getStatusRequest_); - } - if (((this.bitField0_ & 0x00000800) == 0x00000800)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(12, this.getStatusResponse_); - } - if (((this.bitField0_ & 0x00001000) == 0x00001000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, this.resumeScheduleRequest_); - } - if (((this.bitField0_ & 0x00002000) == 0x00002000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, this.resumeScheduleResponse_); - } - if (((this.bitField0_ & 0x00004000) == 0x00004000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, this.setEventNotificationsRequest_); - } - if (((this.bitField0_ & 0x00008000) == 0x00008000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 16, this.setEventNotificationsResponse_); - } - if (((this.bitField0_ & 0x00010000) == 0x00010000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 17, this.eventNotificationRequest_); - } - if (((this.bitField0_ & 0x00020000) == 0x00020000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 18, this.eventNotificationResponse_); - } - if (((this.bitField0_ & 0x00040000) == 0x00040000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 19, this.getFirmwareVersionRequest_); - } - if (((this.bitField0_ & 0x00080000) == 0x00080000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 20, this.getFirmwareVersionResponse_); - } - if (((this.bitField0_ & 0x00100000) == 0x00100000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(21, this.setScheduleRequest_); - } - if (((this.bitField0_ & 0x00200000) == 0x00200000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(22, this.setScheduleResponse_); - } - if (((this.bitField0_ & 0x00400000) == 0x00400000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 25, this.setConfigurationRequest_); - } - if (((this.bitField0_ & 0x00800000) == 0x00800000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 26, this.setConfigurationResponse_); - } - if (((this.bitField0_ & 0x01000000) == 0x01000000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 27, this.getPowerUsageHistoryRequest_); - } - if (((this.bitField0_ & 0x02000000) == 0x02000000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 28, this.getPowerUsageHistoryResponse_); - } - if (((this.bitField0_ & 0x04000000) == 0x04000000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 29, this.getActualPowerUsageRequest_); - } - if (((this.bitField0_ & 0x08000000) == 0x08000000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 30, this.getActualPowerUsageResponse_); - } - if (((this.bitField0_ & 0x10000000) == 0x10000000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(31, this.setRebootRequest_); - } - if (((this.bitField0_ & 0x20000000) == 0x20000000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(32, this.setRebootResponse_); - } - if (((this.bitField0_ & 0x40000000) == 0x40000000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 33, this.setTransitionRequest_); - } - if (((this.bitField0_ & 0x80000000) == 0x80000000)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 34, this.setTransitionResponse_); - } - if (((this.bitField1_ & 0x00000001) == 0x00000001)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 35, this.getConfigurationRequest_); - } - if (((this.bitField1_ & 0x00000002) == 0x00000002)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 36, this.getConfigurationResponse_); - } - if (((this.bitField1_ & 0x00000004) == 0x00000004)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 37, this.confirmRegisterDeviceRequest_); - } - if (((this.bitField1_ & 0x00000008) == 0x00000008)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 38, this.confirmRegisterDeviceResponse_); - } - if (((this.bitField1_ & 0x00000010) == 0x00000010)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 39, this.updateDeviceSslCertificationRequest_); - } - if (((this.bitField1_ & 0x00000020) == 0x00000020)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 40, this.updateDeviceSslCertificationResponse_); - } - if (((this.bitField1_ & 0x00000040) == 0x00000040)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 41, this.setDeviceVerificationKeyRequest_); - } - if (((this.bitField1_ & 0x00000080) == 0x00000080)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 42, this.setDeviceVerificationKeyResponse_); - } - if (((this.bitField1_ & 0x00000100) == 0x00000100)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 43, this.switchFirmwareRequest_); - } - if (((this.bitField1_ & 0x00000200) == 0x00000200)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 44, this.switchFirmwareResponse_); - } - if (((this.bitField1_ & 0x00000400) == 0x00000400)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 45, this.switchConfigurationRequest_); - } - if (((this.bitField1_ & 0x00000800) == 0x00000800)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 46, this.switchConfigurationResponse_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.Message parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.Message parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.Message parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder(final org.opensmartgridplatform.oslp.Oslp.Message prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.MessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Message_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Message_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.Message.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getRegisterDeviceRequestFieldBuilder(); - this.getRegisterDeviceResponseFieldBuilder(); - this.getStartSelfTestRequestFieldBuilder(); - this.getStartSelfTestResponseFieldBuilder(); - this.getStopSelfTestRequestFieldBuilder(); - this.getStopSelfTestResponseFieldBuilder(); - this.getUpdateFirmwareRequestFieldBuilder(); - this.getUpdateFirmwareResponseFieldBuilder(); - this.getSetLightRequestFieldBuilder(); - this.getSetLightResponseFieldBuilder(); - this.getGetStatusRequestFieldBuilder(); - this.getGetStatusResponseFieldBuilder(); - this.getResumeScheduleRequestFieldBuilder(); - this.getResumeScheduleResponseFieldBuilder(); - this.getSetEventNotificationsRequestFieldBuilder(); - this.getSetEventNotificationsResponseFieldBuilder(); - this.getEventNotificationRequestFieldBuilder(); - this.getEventNotificationResponseFieldBuilder(); - this.getGetFirmwareVersionRequestFieldBuilder(); - this.getGetFirmwareVersionResponseFieldBuilder(); - this.getSetScheduleRequestFieldBuilder(); - this.getSetScheduleResponseFieldBuilder(); - this.getSetConfigurationRequestFieldBuilder(); - this.getSetConfigurationResponseFieldBuilder(); - this.getGetPowerUsageHistoryRequestFieldBuilder(); - this.getGetPowerUsageHistoryResponseFieldBuilder(); - this.getGetActualPowerUsageRequestFieldBuilder(); - this.getGetActualPowerUsageResponseFieldBuilder(); - this.getSetRebootRequestFieldBuilder(); - this.getSetRebootResponseFieldBuilder(); - this.getSetTransitionRequestFieldBuilder(); - this.getSetTransitionResponseFieldBuilder(); - this.getGetConfigurationRequestFieldBuilder(); - this.getGetConfigurationResponseFieldBuilder(); - this.getConfirmRegisterDeviceRequestFieldBuilder(); - this.getConfirmRegisterDeviceResponseFieldBuilder(); - this.getUpdateDeviceSslCertificationRequestFieldBuilder(); - this.getUpdateDeviceSslCertificationResponseFieldBuilder(); - this.getSetDeviceVerificationKeyRequestFieldBuilder(); - this.getSetDeviceVerificationKeyResponseFieldBuilder(); - this.getSwitchFirmwareRequestFieldBuilder(); - this.getSwitchFirmwareResponseFieldBuilder(); - this.getSwitchConfigurationRequestFieldBuilder(); - this.getSwitchConfigurationResponseFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - if (this.registerDeviceRequestBuilder_ == null) { - this.registerDeviceRequest_ = - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.getDefaultInstance(); - } else { - this.registerDeviceRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000001); - if (this.registerDeviceResponseBuilder_ == null) { - this.registerDeviceResponse_ = - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.getDefaultInstance(); - } else { - this.registerDeviceResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000002); - if (this.startSelfTestRequestBuilder_ == null) { - this.startSelfTestRequest_ = - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.getDefaultInstance(); - } else { - this.startSelfTestRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000004); - if (this.startSelfTestResponseBuilder_ == null) { - this.startSelfTestResponse_ = - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.getDefaultInstance(); - } else { - this.startSelfTestResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000008); - if (this.stopSelfTestRequestBuilder_ == null) { - this.stopSelfTestRequest_ = - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.getDefaultInstance(); - } else { - this.stopSelfTestRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000010); - if (this.stopSelfTestResponseBuilder_ == null) { - this.stopSelfTestResponse_ = - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.getDefaultInstance(); - } else { - this.stopSelfTestResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000020); - if (this.updateFirmwareRequestBuilder_ == null) { - this.updateFirmwareRequest_ = - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.getDefaultInstance(); - } else { - this.updateFirmwareRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000040); - if (this.updateFirmwareResponseBuilder_ == null) { - this.updateFirmwareResponse_ = - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.getDefaultInstance(); - } else { - this.updateFirmwareResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000080); - if (this.setLightRequestBuilder_ == null) { - this.setLightRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetLightRequest.getDefaultInstance(); - } else { - this.setLightRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000100); - if (this.setLightResponseBuilder_ == null) { - this.setLightResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetLightResponse.getDefaultInstance(); - } else { - this.setLightResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000200); - if (this.getStatusRequestBuilder_ == null) { - this.getStatusRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.getDefaultInstance(); - } else { - this.getStatusRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000400); - if (this.getStatusResponseBuilder_ == null) { - this.getStatusResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.getDefaultInstance(); - } else { - this.getStatusResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000800); - if (this.resumeScheduleRequestBuilder_ == null) { - this.resumeScheduleRequest_ = - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.getDefaultInstance(); - } else { - this.resumeScheduleRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00001000); - if (this.resumeScheduleResponseBuilder_ == null) { - this.resumeScheduleResponse_ = - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.getDefaultInstance(); - } else { - this.resumeScheduleResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00002000); - if (this.setEventNotificationsRequestBuilder_ == null) { - this.setEventNotificationsRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.getDefaultInstance(); - } else { - this.setEventNotificationsRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00004000); - if (this.setEventNotificationsResponseBuilder_ == null) { - this.setEventNotificationsResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse - .getDefaultInstance(); - } else { - this.setEventNotificationsResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00008000); - if (this.eventNotificationRequestBuilder_ == null) { - this.eventNotificationRequest_ = - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.getDefaultInstance(); - } else { - this.eventNotificationRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00010000); - if (this.eventNotificationResponseBuilder_ == null) { - this.eventNotificationResponse_ = - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.getDefaultInstance(); - } else { - this.eventNotificationResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00020000); - if (this.getFirmwareVersionRequestBuilder_ == null) { - this.getFirmwareVersionRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.getDefaultInstance(); - } else { - this.getFirmwareVersionRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00040000); - if (this.getFirmwareVersionResponseBuilder_ == null) { - this.getFirmwareVersionResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.getDefaultInstance(); - } else { - this.getFirmwareVersionResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00080000); - if (this.setScheduleRequestBuilder_ == null) { - this.setScheduleRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.getDefaultInstance(); - } else { - this.setScheduleRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00100000); - if (this.setScheduleResponseBuilder_ == null) { - this.setScheduleResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.getDefaultInstance(); - } else { - this.setScheduleResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00200000); - if (this.setConfigurationRequestBuilder_ == null) { - this.setConfigurationRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.getDefaultInstance(); - } else { - this.setConfigurationRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00400000); - if (this.setConfigurationResponseBuilder_ == null) { - this.setConfigurationResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.getDefaultInstance(); - } else { - this.setConfigurationResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00800000); - if (this.getPowerUsageHistoryRequestBuilder_ == null) { - this.getPowerUsageHistoryRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.getDefaultInstance(); - } else { - this.getPowerUsageHistoryRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x01000000); - if (this.getPowerUsageHistoryResponseBuilder_ == null) { - this.getPowerUsageHistoryResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.getDefaultInstance(); - } else { - this.getPowerUsageHistoryResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x02000000); - if (this.getActualPowerUsageRequestBuilder_ == null) { - this.getActualPowerUsageRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.getDefaultInstance(); - } else { - this.getActualPowerUsageRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x04000000); - if (this.getActualPowerUsageResponseBuilder_ == null) { - this.getActualPowerUsageResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.getDefaultInstance(); - } else { - this.getActualPowerUsageResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x08000000); - if (this.setRebootRequestBuilder_ == null) { - this.setRebootRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.getDefaultInstance(); - } else { - this.setRebootRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x10000000); - if (this.setRebootResponseBuilder_ == null) { - this.setRebootResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.getDefaultInstance(); - } else { - this.setRebootResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x20000000); - if (this.setTransitionRequestBuilder_ == null) { - this.setTransitionRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.getDefaultInstance(); - } else { - this.setTransitionRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x40000000); - if (this.setTransitionResponseBuilder_ == null) { - this.setTransitionResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.getDefaultInstance(); - } else { - this.setTransitionResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x80000000); - if (this.getConfigurationRequestBuilder_ == null) { - this.getConfigurationRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.getDefaultInstance(); - } else { - this.getConfigurationRequestBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000001); - if (this.getConfigurationResponseBuilder_ == null) { - this.getConfigurationResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.getDefaultInstance(); - } else { - this.getConfigurationResponseBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000002); - if (this.confirmRegisterDeviceRequestBuilder_ == null) { - this.confirmRegisterDeviceRequest_ = - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.getDefaultInstance(); - } else { - this.confirmRegisterDeviceRequestBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000004); - if (this.confirmRegisterDeviceResponseBuilder_ == null) { - this.confirmRegisterDeviceResponse_ = - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse - .getDefaultInstance(); - } else { - this.confirmRegisterDeviceResponseBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000008); - if (this.updateDeviceSslCertificationRequestBuilder_ == null) { - this.updateDeviceSslCertificationRequest_ = - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - .getDefaultInstance(); - } else { - this.updateDeviceSslCertificationRequestBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000010); - if (this.updateDeviceSslCertificationResponseBuilder_ == null) { - this.updateDeviceSslCertificationResponse_ = - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - .getDefaultInstance(); - } else { - this.updateDeviceSslCertificationResponseBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000020); - if (this.setDeviceVerificationKeyRequestBuilder_ == null) { - this.setDeviceVerificationKeyRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest - .getDefaultInstance(); - } else { - this.setDeviceVerificationKeyRequestBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000040); - if (this.setDeviceVerificationKeyResponseBuilder_ == null) { - this.setDeviceVerificationKeyResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse - .getDefaultInstance(); - } else { - this.setDeviceVerificationKeyResponseBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000080); - if (this.switchFirmwareRequestBuilder_ == null) { - this.switchFirmwareRequest_ = - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.getDefaultInstance(); - } else { - this.switchFirmwareRequestBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000100); - if (this.switchFirmwareResponseBuilder_ == null) { - this.switchFirmwareResponse_ = - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.getDefaultInstance(); - } else { - this.switchFirmwareResponseBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000200); - if (this.switchConfigurationRequestBuilder_ == null) { - this.switchConfigurationRequest_ = - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.getDefaultInstance(); - } else { - this.switchConfigurationRequestBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000400); - if (this.switchConfigurationResponseBuilder_ == null) { - this.switchConfigurationResponse_ = - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.getDefaultInstance(); - } else { - this.switchConfigurationResponseBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000800); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.Message.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Message getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.Message.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Message build() { - final org.opensmartgridplatform.oslp.Oslp.Message result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.Message buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.Message result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Message buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.Message result = - new org.opensmartgridplatform.oslp.Oslp.Message(this); - final int from_bitField0_ = this.bitField0_; - final int from_bitField1_ = this.bitField1_; - int to_bitField0_ = 0; - int to_bitField1_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (this.registerDeviceRequestBuilder_ == null) { - result.registerDeviceRequest_ = this.registerDeviceRequest_; - } else { - result.registerDeviceRequest_ = this.registerDeviceRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (this.registerDeviceResponseBuilder_ == null) { - result.registerDeviceResponse_ = this.registerDeviceResponse_; - } else { - result.registerDeviceResponse_ = this.registerDeviceResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (this.startSelfTestRequestBuilder_ == null) { - result.startSelfTestRequest_ = this.startSelfTestRequest_; - } else { - result.startSelfTestRequest_ = this.startSelfTestRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - if (this.startSelfTestResponseBuilder_ == null) { - result.startSelfTestResponse_ = this.startSelfTestResponse_; - } else { - result.startSelfTestResponse_ = this.startSelfTestResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - if (this.stopSelfTestRequestBuilder_ == null) { - result.stopSelfTestRequest_ = this.stopSelfTestRequest_; - } else { - result.stopSelfTestRequest_ = this.stopSelfTestRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - if (this.stopSelfTestResponseBuilder_ == null) { - result.stopSelfTestResponse_ = this.stopSelfTestResponse_; - } else { - result.stopSelfTestResponse_ = this.stopSelfTestResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - if (this.updateFirmwareRequestBuilder_ == null) { - result.updateFirmwareRequest_ = this.updateFirmwareRequest_; - } else { - result.updateFirmwareRequest_ = this.updateFirmwareRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - if (this.updateFirmwareResponseBuilder_ == null) { - result.updateFirmwareResponse_ = this.updateFirmwareResponse_; - } else { - result.updateFirmwareResponse_ = this.updateFirmwareResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - if (this.setLightRequestBuilder_ == null) { - result.setLightRequest_ = this.setLightRequest_; - } else { - result.setLightRequest_ = this.setLightRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - if (this.setLightResponseBuilder_ == null) { - result.setLightResponse_ = this.setLightResponse_; - } else { - result.setLightResponse_ = this.setLightResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - if (this.getStatusRequestBuilder_ == null) { - result.getStatusRequest_ = this.getStatusRequest_; - } else { - result.getStatusRequest_ = this.getStatusRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000800; - } - if (this.getStatusResponseBuilder_ == null) { - result.getStatusResponse_ = this.getStatusResponse_; - } else { - result.getStatusResponse_ = this.getStatusResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00001000; - } - if (this.resumeScheduleRequestBuilder_ == null) { - result.resumeScheduleRequest_ = this.resumeScheduleRequest_; - } else { - result.resumeScheduleRequest_ = this.resumeScheduleRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00002000; - } - if (this.resumeScheduleResponseBuilder_ == null) { - result.resumeScheduleResponse_ = this.resumeScheduleResponse_; - } else { - result.resumeScheduleResponse_ = this.resumeScheduleResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00004000; - } - if (this.setEventNotificationsRequestBuilder_ == null) { - result.setEventNotificationsRequest_ = this.setEventNotificationsRequest_; - } else { - result.setEventNotificationsRequest_ = this.setEventNotificationsRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { - to_bitField0_ |= 0x00008000; - } - if (this.setEventNotificationsResponseBuilder_ == null) { - result.setEventNotificationsResponse_ = this.setEventNotificationsResponse_; - } else { - result.setEventNotificationsResponse_ = - this.setEventNotificationsResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x00010000) == 0x00010000)) { - to_bitField0_ |= 0x00010000; - } - if (this.eventNotificationRequestBuilder_ == null) { - result.eventNotificationRequest_ = this.eventNotificationRequest_; - } else { - result.eventNotificationRequest_ = this.eventNotificationRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00020000) == 0x00020000)) { - to_bitField0_ |= 0x00020000; - } - if (this.eventNotificationResponseBuilder_ == null) { - result.eventNotificationResponse_ = this.eventNotificationResponse_; - } else { - result.eventNotificationResponse_ = this.eventNotificationResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x00040000) == 0x00040000)) { - to_bitField0_ |= 0x00040000; - } - if (this.getFirmwareVersionRequestBuilder_ == null) { - result.getFirmwareVersionRequest_ = this.getFirmwareVersionRequest_; - } else { - result.getFirmwareVersionRequest_ = this.getFirmwareVersionRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00080000) == 0x00080000)) { - to_bitField0_ |= 0x00080000; - } - if (this.getFirmwareVersionResponseBuilder_ == null) { - result.getFirmwareVersionResponse_ = this.getFirmwareVersionResponse_; - } else { - result.getFirmwareVersionResponse_ = this.getFirmwareVersionResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x00100000) == 0x00100000)) { - to_bitField0_ |= 0x00100000; - } - if (this.setScheduleRequestBuilder_ == null) { - result.setScheduleRequest_ = this.setScheduleRequest_; - } else { - result.setScheduleRequest_ = this.setScheduleRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00200000) == 0x00200000)) { - to_bitField0_ |= 0x00200000; - } - if (this.setScheduleResponseBuilder_ == null) { - result.setScheduleResponse_ = this.setScheduleResponse_; - } else { - result.setScheduleResponse_ = this.setScheduleResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x00400000) == 0x00400000)) { - to_bitField0_ |= 0x00400000; - } - if (this.setConfigurationRequestBuilder_ == null) { - result.setConfigurationRequest_ = this.setConfigurationRequest_; - } else { - result.setConfigurationRequest_ = this.setConfigurationRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x00800000) == 0x00800000)) { - to_bitField0_ |= 0x00800000; - } - if (this.setConfigurationResponseBuilder_ == null) { - result.setConfigurationResponse_ = this.setConfigurationResponse_; - } else { - result.setConfigurationResponse_ = this.setConfigurationResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x01000000) == 0x01000000)) { - to_bitField0_ |= 0x01000000; - } - if (this.getPowerUsageHistoryRequestBuilder_ == null) { - result.getPowerUsageHistoryRequest_ = this.getPowerUsageHistoryRequest_; - } else { - result.getPowerUsageHistoryRequest_ = this.getPowerUsageHistoryRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x02000000) == 0x02000000)) { - to_bitField0_ |= 0x02000000; - } - if (this.getPowerUsageHistoryResponseBuilder_ == null) { - result.getPowerUsageHistoryResponse_ = this.getPowerUsageHistoryResponse_; - } else { - result.getPowerUsageHistoryResponse_ = this.getPowerUsageHistoryResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x04000000) == 0x04000000)) { - to_bitField0_ |= 0x04000000; - } - if (this.getActualPowerUsageRequestBuilder_ == null) { - result.getActualPowerUsageRequest_ = this.getActualPowerUsageRequest_; - } else { - result.getActualPowerUsageRequest_ = this.getActualPowerUsageRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x08000000) == 0x08000000)) { - to_bitField0_ |= 0x08000000; - } - if (this.getActualPowerUsageResponseBuilder_ == null) { - result.getActualPowerUsageResponse_ = this.getActualPowerUsageResponse_; - } else { - result.getActualPowerUsageResponse_ = this.getActualPowerUsageResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x10000000) == 0x10000000)) { - to_bitField0_ |= 0x10000000; - } - if (this.setRebootRequestBuilder_ == null) { - result.setRebootRequest_ = this.setRebootRequest_; - } else { - result.setRebootRequest_ = this.setRebootRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x20000000) == 0x20000000)) { - to_bitField0_ |= 0x20000000; - } - if (this.setRebootResponseBuilder_ == null) { - result.setRebootResponse_ = this.setRebootResponse_; - } else { - result.setRebootResponse_ = this.setRebootResponseBuilder_.build(); - } - if (((from_bitField0_ & 0x40000000) == 0x40000000)) { - to_bitField0_ |= 0x40000000; - } - if (this.setTransitionRequestBuilder_ == null) { - result.setTransitionRequest_ = this.setTransitionRequest_; - } else { - result.setTransitionRequest_ = this.setTransitionRequestBuilder_.build(); - } - if (((from_bitField0_ & 0x80000000) == 0x80000000)) { - to_bitField0_ |= 0x80000000; - } - if (this.setTransitionResponseBuilder_ == null) { - result.setTransitionResponse_ = this.setTransitionResponse_; - } else { - result.setTransitionResponse_ = this.setTransitionResponseBuilder_.build(); - } - if (((from_bitField1_ & 0x00000001) == 0x00000001)) { - to_bitField1_ |= 0x00000001; - } - if (this.getConfigurationRequestBuilder_ == null) { - result.getConfigurationRequest_ = this.getConfigurationRequest_; - } else { - result.getConfigurationRequest_ = this.getConfigurationRequestBuilder_.build(); - } - if (((from_bitField1_ & 0x00000002) == 0x00000002)) { - to_bitField1_ |= 0x00000002; - } - if (this.getConfigurationResponseBuilder_ == null) { - result.getConfigurationResponse_ = this.getConfigurationResponse_; - } else { - result.getConfigurationResponse_ = this.getConfigurationResponseBuilder_.build(); - } - if (((from_bitField1_ & 0x00000004) == 0x00000004)) { - to_bitField1_ |= 0x00000004; - } - if (this.confirmRegisterDeviceRequestBuilder_ == null) { - result.confirmRegisterDeviceRequest_ = this.confirmRegisterDeviceRequest_; - } else { - result.confirmRegisterDeviceRequest_ = this.confirmRegisterDeviceRequestBuilder_.build(); - } - if (((from_bitField1_ & 0x00000008) == 0x00000008)) { - to_bitField1_ |= 0x00000008; - } - if (this.confirmRegisterDeviceResponseBuilder_ == null) { - result.confirmRegisterDeviceResponse_ = this.confirmRegisterDeviceResponse_; - } else { - result.confirmRegisterDeviceResponse_ = - this.confirmRegisterDeviceResponseBuilder_.build(); - } - if (((from_bitField1_ & 0x00000010) == 0x00000010)) { - to_bitField1_ |= 0x00000010; - } - if (this.updateDeviceSslCertificationRequestBuilder_ == null) { - result.updateDeviceSslCertificationRequest_ = this.updateDeviceSslCertificationRequest_; - } else { - result.updateDeviceSslCertificationRequest_ = - this.updateDeviceSslCertificationRequestBuilder_.build(); - } - if (((from_bitField1_ & 0x00000020) == 0x00000020)) { - to_bitField1_ |= 0x00000020; - } - if (this.updateDeviceSslCertificationResponseBuilder_ == null) { - result.updateDeviceSslCertificationResponse_ = this.updateDeviceSslCertificationResponse_; - } else { - result.updateDeviceSslCertificationResponse_ = - this.updateDeviceSslCertificationResponseBuilder_.build(); - } - if (((from_bitField1_ & 0x00000040) == 0x00000040)) { - to_bitField1_ |= 0x00000040; - } - if (this.setDeviceVerificationKeyRequestBuilder_ == null) { - result.setDeviceVerificationKeyRequest_ = this.setDeviceVerificationKeyRequest_; - } else { - result.setDeviceVerificationKeyRequest_ = - this.setDeviceVerificationKeyRequestBuilder_.build(); - } - if (((from_bitField1_ & 0x00000080) == 0x00000080)) { - to_bitField1_ |= 0x00000080; - } - if (this.setDeviceVerificationKeyResponseBuilder_ == null) { - result.setDeviceVerificationKeyResponse_ = this.setDeviceVerificationKeyResponse_; - } else { - result.setDeviceVerificationKeyResponse_ = - this.setDeviceVerificationKeyResponseBuilder_.build(); - } - if (((from_bitField1_ & 0x00000100) == 0x00000100)) { - to_bitField1_ |= 0x00000100; - } - if (this.switchFirmwareRequestBuilder_ == null) { - result.switchFirmwareRequest_ = this.switchFirmwareRequest_; - } else { - result.switchFirmwareRequest_ = this.switchFirmwareRequestBuilder_.build(); - } - if (((from_bitField1_ & 0x00000200) == 0x00000200)) { - to_bitField1_ |= 0x00000200; - } - if (this.switchFirmwareResponseBuilder_ == null) { - result.switchFirmwareResponse_ = this.switchFirmwareResponse_; - } else { - result.switchFirmwareResponse_ = this.switchFirmwareResponseBuilder_.build(); - } - if (((from_bitField1_ & 0x00000400) == 0x00000400)) { - to_bitField1_ |= 0x00000400; - } - if (this.switchConfigurationRequestBuilder_ == null) { - result.switchConfigurationRequest_ = this.switchConfigurationRequest_; - } else { - result.switchConfigurationRequest_ = this.switchConfigurationRequestBuilder_.build(); - } - if (((from_bitField1_ & 0x00000800) == 0x00000800)) { - to_bitField1_ |= 0x00000800; - } - if (this.switchConfigurationResponseBuilder_ == null) { - result.switchConfigurationResponse_ = this.switchConfigurationResponse_; - } else { - result.switchConfigurationResponse_ = this.switchConfigurationResponseBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - result.bitField1_ = to_bitField1_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.Message) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.Message) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.Message other) { - if (other == org.opensmartgridplatform.oslp.Oslp.Message.getDefaultInstance()) { - return this; - } - if (other.hasRegisterDeviceRequest()) { - this.mergeRegisterDeviceRequest(other.getRegisterDeviceRequest()); - } - if (other.hasRegisterDeviceResponse()) { - this.mergeRegisterDeviceResponse(other.getRegisterDeviceResponse()); - } - if (other.hasStartSelfTestRequest()) { - this.mergeStartSelfTestRequest(other.getStartSelfTestRequest()); - } - if (other.hasStartSelfTestResponse()) { - this.mergeStartSelfTestResponse(other.getStartSelfTestResponse()); - } - if (other.hasStopSelfTestRequest()) { - this.mergeStopSelfTestRequest(other.getStopSelfTestRequest()); - } - if (other.hasStopSelfTestResponse()) { - this.mergeStopSelfTestResponse(other.getStopSelfTestResponse()); - } - if (other.hasUpdateFirmwareRequest()) { - this.mergeUpdateFirmwareRequest(other.getUpdateFirmwareRequest()); - } - if (other.hasUpdateFirmwareResponse()) { - this.mergeUpdateFirmwareResponse(other.getUpdateFirmwareResponse()); - } - if (other.hasSetLightRequest()) { - this.mergeSetLightRequest(other.getSetLightRequest()); - } - if (other.hasSetLightResponse()) { - this.mergeSetLightResponse(other.getSetLightResponse()); - } - if (other.hasGetStatusRequest()) { - this.mergeGetStatusRequest(other.getGetStatusRequest()); - } - if (other.hasGetStatusResponse()) { - this.mergeGetStatusResponse(other.getGetStatusResponse()); - } - if (other.hasResumeScheduleRequest()) { - this.mergeResumeScheduleRequest(other.getResumeScheduleRequest()); - } - if (other.hasResumeScheduleResponse()) { - this.mergeResumeScheduleResponse(other.getResumeScheduleResponse()); - } - if (other.hasSetEventNotificationsRequest()) { - this.mergeSetEventNotificationsRequest(other.getSetEventNotificationsRequest()); - } - if (other.hasSetEventNotificationsResponse()) { - this.mergeSetEventNotificationsResponse(other.getSetEventNotificationsResponse()); - } - if (other.hasEventNotificationRequest()) { - this.mergeEventNotificationRequest(other.getEventNotificationRequest()); - } - if (other.hasEventNotificationResponse()) { - this.mergeEventNotificationResponse(other.getEventNotificationResponse()); - } - if (other.hasGetFirmwareVersionRequest()) { - this.mergeGetFirmwareVersionRequest(other.getGetFirmwareVersionRequest()); - } - if (other.hasGetFirmwareVersionResponse()) { - this.mergeGetFirmwareVersionResponse(other.getGetFirmwareVersionResponse()); - } - if (other.hasSetScheduleRequest()) { - this.mergeSetScheduleRequest(other.getSetScheduleRequest()); - } - if (other.hasSetScheduleResponse()) { - this.mergeSetScheduleResponse(other.getSetScheduleResponse()); - } - if (other.hasSetConfigurationRequest()) { - this.mergeSetConfigurationRequest(other.getSetConfigurationRequest()); - } - if (other.hasSetConfigurationResponse()) { - this.mergeSetConfigurationResponse(other.getSetConfigurationResponse()); - } - if (other.hasGetPowerUsageHistoryRequest()) { - this.mergeGetPowerUsageHistoryRequest(other.getGetPowerUsageHistoryRequest()); - } - if (other.hasGetPowerUsageHistoryResponse()) { - this.mergeGetPowerUsageHistoryResponse(other.getGetPowerUsageHistoryResponse()); - } - if (other.hasGetActualPowerUsageRequest()) { - this.mergeGetActualPowerUsageRequest(other.getGetActualPowerUsageRequest()); - } - if (other.hasGetActualPowerUsageResponse()) { - this.mergeGetActualPowerUsageResponse(other.getGetActualPowerUsageResponse()); - } - if (other.hasSetRebootRequest()) { - this.mergeSetRebootRequest(other.getSetRebootRequest()); - } - if (other.hasSetRebootResponse()) { - this.mergeSetRebootResponse(other.getSetRebootResponse()); - } - if (other.hasSetTransitionRequest()) { - this.mergeSetTransitionRequest(other.getSetTransitionRequest()); - } - if (other.hasSetTransitionResponse()) { - this.mergeSetTransitionResponse(other.getSetTransitionResponse()); - } - if (other.hasGetConfigurationRequest()) { - this.mergeGetConfigurationRequest(other.getGetConfigurationRequest()); - } - if (other.hasGetConfigurationResponse()) { - this.mergeGetConfigurationResponse(other.getGetConfigurationResponse()); - } - if (other.hasConfirmRegisterDeviceRequest()) { - this.mergeConfirmRegisterDeviceRequest(other.getConfirmRegisterDeviceRequest()); - } - if (other.hasConfirmRegisterDeviceResponse()) { - this.mergeConfirmRegisterDeviceResponse(other.getConfirmRegisterDeviceResponse()); - } - if (other.hasUpdateDeviceSslCertificationRequest()) { - this.mergeUpdateDeviceSslCertificationRequest( - other.getUpdateDeviceSslCertificationRequest()); - } - if (other.hasUpdateDeviceSslCertificationResponse()) { - this.mergeUpdateDeviceSslCertificationResponse( - other.getUpdateDeviceSslCertificationResponse()); - } - if (other.hasSetDeviceVerificationKeyRequest()) { - this.mergeSetDeviceVerificationKeyRequest(other.getSetDeviceVerificationKeyRequest()); - } - if (other.hasSetDeviceVerificationKeyResponse()) { - this.mergeSetDeviceVerificationKeyResponse(other.getSetDeviceVerificationKeyResponse()); - } - if (other.hasSwitchFirmwareRequest()) { - this.mergeSwitchFirmwareRequest(other.getSwitchFirmwareRequest()); - } - if (other.hasSwitchFirmwareResponse()) { - this.mergeSwitchFirmwareResponse(other.getSwitchFirmwareResponse()); - } - if (other.hasSwitchConfigurationRequest()) { - this.mergeSwitchConfigurationRequest(other.getSwitchConfigurationRequest()); - } - if (other.hasSwitchConfigurationResponse()) { - this.mergeSwitchConfigurationResponse(other.getSwitchConfigurationResponse()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (this.hasRegisterDeviceRequest()) { - if (!this.getRegisterDeviceRequest().isInitialized()) { - - return false; - } - } - if (this.hasRegisterDeviceResponse()) { - if (!this.getRegisterDeviceResponse().isInitialized()) { - - return false; - } - } - if (this.hasStartSelfTestResponse()) { - if (!this.getStartSelfTestResponse().isInitialized()) { - - return false; - } - } - if (this.hasStopSelfTestResponse()) { - if (!this.getStopSelfTestResponse().isInitialized()) { - - return false; - } - } - if (this.hasUpdateFirmwareRequest()) { - if (!this.getUpdateFirmwareRequest().isInitialized()) { - - return false; - } - } - if (this.hasUpdateFirmwareResponse()) { - if (!this.getUpdateFirmwareResponse().isInitialized()) { - - return false; - } - } - if (this.hasSetLightRequest()) { - if (!this.getSetLightRequest().isInitialized()) { - - return false; - } - } - if (this.hasSetLightResponse()) { - if (!this.getSetLightResponse().isInitialized()) { - - return false; - } - } - if (this.hasGetStatusResponse()) { - if (!this.getGetStatusResponse().isInitialized()) { - - return false; - } - } - if (this.hasResumeScheduleRequest()) { - if (!this.getResumeScheduleRequest().isInitialized()) { - - return false; - } - } - if (this.hasResumeScheduleResponse()) { - if (!this.getResumeScheduleResponse().isInitialized()) { - - return false; - } - } - if (this.hasSetEventNotificationsRequest()) { - if (!this.getSetEventNotificationsRequest().isInitialized()) { - - return false; - } - } - if (this.hasSetEventNotificationsResponse()) { - if (!this.getSetEventNotificationsResponse().isInitialized()) { - - return false; - } - } - if (this.hasEventNotificationRequest()) { - if (!this.getEventNotificationRequest().isInitialized()) { - - return false; - } - } - if (this.hasEventNotificationResponse()) { - if (!this.getEventNotificationResponse().isInitialized()) { - - return false; - } - } - if (this.hasGetFirmwareVersionResponse()) { - if (!this.getGetFirmwareVersionResponse().isInitialized()) { - - return false; - } - } - if (this.hasSetScheduleRequest()) { - if (!this.getSetScheduleRequest().isInitialized()) { - - return false; - } - } - if (this.hasSetScheduleResponse()) { - if (!this.getSetScheduleResponse().isInitialized()) { - - return false; - } - } - if (this.hasSetConfigurationRequest()) { - if (!this.getSetConfigurationRequest().isInitialized()) { - - return false; - } - } - if (this.hasSetConfigurationResponse()) { - if (!this.getSetConfigurationResponse().isInitialized()) { - - return false; - } - } - if (this.hasGetPowerUsageHistoryRequest()) { - if (!this.getGetPowerUsageHistoryRequest().isInitialized()) { - - return false; - } - } - if (this.hasGetPowerUsageHistoryResponse()) { - if (!this.getGetPowerUsageHistoryResponse().isInitialized()) { - - return false; - } - } - if (this.hasGetActualPowerUsageResponse()) { - if (!this.getGetActualPowerUsageResponse().isInitialized()) { - - return false; - } - } - if (this.hasSetRebootResponse()) { - if (!this.getSetRebootResponse().isInitialized()) { - - return false; - } - } - if (this.hasSetTransitionRequest()) { - if (!this.getSetTransitionRequest().isInitialized()) { - - return false; - } - } - if (this.hasSetTransitionResponse()) { - if (!this.getSetTransitionResponse().isInitialized()) { - - return false; - } - } - if (this.hasGetConfigurationResponse()) { - if (!this.getGetConfigurationResponse().isInitialized()) { - - return false; - } - } - if (this.hasConfirmRegisterDeviceRequest()) { - if (!this.getConfirmRegisterDeviceRequest().isInitialized()) { - - return false; - } - } - if (this.hasConfirmRegisterDeviceResponse()) { - if (!this.getConfirmRegisterDeviceResponse().isInitialized()) { - - return false; - } - } - if (this.hasUpdateDeviceSslCertificationRequest()) { - if (!this.getUpdateDeviceSslCertificationRequest().isInitialized()) { - - return false; - } - } - if (this.hasUpdateDeviceSslCertificationResponse()) { - if (!this.getUpdateDeviceSslCertificationResponse().isInitialized()) { - - return false; - } - } - if (this.hasSetDeviceVerificationKeyRequest()) { - if (!this.getSetDeviceVerificationKeyRequest().isInitialized()) { - - return false; - } - } - if (this.hasSetDeviceVerificationKeyResponse()) { - if (!this.getSetDeviceVerificationKeyResponse().isInitialized()) { - - return false; - } - } - if (this.hasSwitchFirmwareRequest()) { - if (!this.getSwitchFirmwareRequest().isInitialized()) { - - return false; - } - } - if (this.hasSwitchFirmwareResponse()) { - if (!this.getSwitchFirmwareResponse().isInitialized()) { - - return false; - } - } - if (this.hasSwitchConfigurationRequest()) { - if (!this.getSwitchConfigurationRequest().isInitialized()) { - - return false; - } - } - if (this.hasSwitchConfigurationResponse()) { - if (!this.getSwitchConfigurationResponse().isInitialized()) { - - return false; - } - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.newBuilder(); - if (this.hasRegisterDeviceRequest()) { - subBuilder.mergeFrom(this.getRegisterDeviceRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setRegisterDeviceRequest(subBuilder.buildPartial()); - break; - } - case 18: - { - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.newBuilder(); - if (this.hasRegisterDeviceResponse()) { - subBuilder.mergeFrom(this.getRegisterDeviceResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setRegisterDeviceResponse(subBuilder.buildPartial()); - break; - } - case 26: - { - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.newBuilder(); - if (this.hasStartSelfTestRequest()) { - subBuilder.mergeFrom(this.getStartSelfTestRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setStartSelfTestRequest(subBuilder.buildPartial()); - break; - } - case 34: - { - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.newBuilder(); - if (this.hasStartSelfTestResponse()) { - subBuilder.mergeFrom(this.getStartSelfTestResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setStartSelfTestResponse(subBuilder.buildPartial()); - break; - } - case 42: - { - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.newBuilder(); - if (this.hasStopSelfTestRequest()) { - subBuilder.mergeFrom(this.getStopSelfTestRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setStopSelfTestRequest(subBuilder.buildPartial()); - break; - } - case 50: - { - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.newBuilder(); - if (this.hasStopSelfTestResponse()) { - subBuilder.mergeFrom(this.getStopSelfTestResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setStopSelfTestResponse(subBuilder.buildPartial()); - break; - } - case 58: - { - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.newBuilder(); - if (this.hasUpdateFirmwareRequest()) { - subBuilder.mergeFrom(this.getUpdateFirmwareRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setUpdateFirmwareRequest(subBuilder.buildPartial()); - break; - } - case 66: - { - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.newBuilder(); - if (this.hasUpdateFirmwareResponse()) { - subBuilder.mergeFrom(this.getUpdateFirmwareResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setUpdateFirmwareResponse(subBuilder.buildPartial()); - break; - } - case 74: - { - final org.opensmartgridplatform.oslp.Oslp.SetLightRequest.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.SetLightRequest.newBuilder(); - if (this.hasSetLightRequest()) { - subBuilder.mergeFrom(this.getSetLightRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSetLightRequest(subBuilder.buildPartial()); - break; - } - case 82: - { - final org.opensmartgridplatform.oslp.Oslp.SetLightResponse.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.SetLightResponse.newBuilder(); - if (this.hasSetLightResponse()) { - subBuilder.mergeFrom(this.getSetLightResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSetLightResponse(subBuilder.buildPartial()); - break; - } - case 90: - { - final org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.newBuilder(); - if (this.hasGetStatusRequest()) { - subBuilder.mergeFrom(this.getGetStatusRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setGetStatusRequest(subBuilder.buildPartial()); - break; - } - case 98: - { - final org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.newBuilder(); - if (this.hasGetStatusResponse()) { - subBuilder.mergeFrom(this.getGetStatusResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setGetStatusResponse(subBuilder.buildPartial()); - break; - } - case 106: - { - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.newBuilder(); - if (this.hasResumeScheduleRequest()) { - subBuilder.mergeFrom(this.getResumeScheduleRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setResumeScheduleRequest(subBuilder.buildPartial()); - break; - } - case 114: - { - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.newBuilder(); - if (this.hasResumeScheduleResponse()) { - subBuilder.mergeFrom(this.getResumeScheduleResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setResumeScheduleResponse(subBuilder.buildPartial()); - break; - } - case 122: - { - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest - .newBuilder(); - if (this.hasSetEventNotificationsRequest()) { - subBuilder.mergeFrom(this.getSetEventNotificationsRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSetEventNotificationsRequest(subBuilder.buildPartial()); - break; - } - case 130: - { - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse - .newBuilder(); - if (this.hasSetEventNotificationsResponse()) { - subBuilder.mergeFrom(this.getSetEventNotificationsResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSetEventNotificationsResponse(subBuilder.buildPartial()); - break; - } - case 138: - { - final org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.newBuilder(); - if (this.hasEventNotificationRequest()) { - subBuilder.mergeFrom(this.getEventNotificationRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setEventNotificationRequest(subBuilder.buildPartial()); - break; - } - case 146: - { - final org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.newBuilder(); - if (this.hasEventNotificationResponse()) { - subBuilder.mergeFrom(this.getEventNotificationResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setEventNotificationResponse(subBuilder.buildPartial()); - break; - } - case 154: - { - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.newBuilder(); - if (this.hasGetFirmwareVersionRequest()) { - subBuilder.mergeFrom(this.getGetFirmwareVersionRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setGetFirmwareVersionRequest(subBuilder.buildPartial()); - break; - } - case 162: - { - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.newBuilder(); - if (this.hasGetFirmwareVersionResponse()) { - subBuilder.mergeFrom(this.getGetFirmwareVersionResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setGetFirmwareVersionResponse(subBuilder.buildPartial()); - break; - } - case 170: - { - final org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.newBuilder(); - if (this.hasSetScheduleRequest()) { - subBuilder.mergeFrom(this.getSetScheduleRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSetScheduleRequest(subBuilder.buildPartial()); - break; - } - case 178: - { - final org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.newBuilder(); - if (this.hasSetScheduleResponse()) { - subBuilder.mergeFrom(this.getSetScheduleResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSetScheduleResponse(subBuilder.buildPartial()); - break; - } - case 202: - { - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.newBuilder(); - if (this.hasSetConfigurationRequest()) { - subBuilder.mergeFrom(this.getSetConfigurationRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSetConfigurationRequest(subBuilder.buildPartial()); - break; - } - case 210: - { - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.newBuilder(); - if (this.hasSetConfigurationResponse()) { - subBuilder.mergeFrom(this.getSetConfigurationResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSetConfigurationResponse(subBuilder.buildPartial()); - break; - } - case 218: - { - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest - .newBuilder(); - if (this.hasGetPowerUsageHistoryRequest()) { - subBuilder.mergeFrom(this.getGetPowerUsageHistoryRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setGetPowerUsageHistoryRequest(subBuilder.buildPartial()); - break; - } - case 226: - { - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse - .newBuilder(); - if (this.hasGetPowerUsageHistoryResponse()) { - subBuilder.mergeFrom(this.getGetPowerUsageHistoryResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setGetPowerUsageHistoryResponse(subBuilder.buildPartial()); - break; - } - case 234: - { - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.newBuilder(); - if (this.hasGetActualPowerUsageRequest()) { - subBuilder.mergeFrom(this.getGetActualPowerUsageRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setGetActualPowerUsageRequest(subBuilder.buildPartial()); - break; - } - case 242: - { - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse - .newBuilder(); - if (this.hasGetActualPowerUsageResponse()) { - subBuilder.mergeFrom(this.getGetActualPowerUsageResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setGetActualPowerUsageResponse(subBuilder.buildPartial()); - break; - } - case 250: - { - final org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.newBuilder(); - if (this.hasSetRebootRequest()) { - subBuilder.mergeFrom(this.getSetRebootRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSetRebootRequest(subBuilder.buildPartial()); - break; - } - case 258: - { - final org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.newBuilder(); - if (this.hasSetRebootResponse()) { - subBuilder.mergeFrom(this.getSetRebootResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSetRebootResponse(subBuilder.buildPartial()); - break; - } - case 266: - { - final org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.newBuilder(); - if (this.hasSetTransitionRequest()) { - subBuilder.mergeFrom(this.getSetTransitionRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSetTransitionRequest(subBuilder.buildPartial()); - break; - } - case 274: - { - final org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.newBuilder(); - if (this.hasSetTransitionResponse()) { - subBuilder.mergeFrom(this.getSetTransitionResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSetTransitionResponse(subBuilder.buildPartial()); - break; - } - case 282: - { - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.newBuilder(); - if (this.hasGetConfigurationRequest()) { - subBuilder.mergeFrom(this.getGetConfigurationRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setGetConfigurationRequest(subBuilder.buildPartial()); - break; - } - case 290: - { - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.newBuilder(); - if (this.hasGetConfigurationResponse()) { - subBuilder.mergeFrom(this.getGetConfigurationResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setGetConfigurationResponse(subBuilder.buildPartial()); - break; - } - case 298: - { - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest - .newBuilder(); - if (this.hasConfirmRegisterDeviceRequest()) { - subBuilder.mergeFrom(this.getConfirmRegisterDeviceRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setConfirmRegisterDeviceRequest(subBuilder.buildPartial()); - break; - } - case 306: - { - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse - .newBuilder(); - if (this.hasConfirmRegisterDeviceResponse()) { - subBuilder.mergeFrom(this.getConfirmRegisterDeviceResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setConfirmRegisterDeviceResponse(subBuilder.buildPartial()); - break; - } - case 314: - { - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - .Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - .newBuilder(); - if (this.hasUpdateDeviceSslCertificationRequest()) { - subBuilder.mergeFrom(this.getUpdateDeviceSslCertificationRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setUpdateDeviceSslCertificationRequest(subBuilder.buildPartial()); - break; - } - case 322: - { - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - .Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - .newBuilder(); - if (this.hasUpdateDeviceSslCertificationResponse()) { - subBuilder.mergeFrom(this.getUpdateDeviceSslCertificationResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setUpdateDeviceSslCertificationResponse(subBuilder.buildPartial()); - break; - } - case 330: - { - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest - .newBuilder(); - if (this.hasSetDeviceVerificationKeyRequest()) { - subBuilder.mergeFrom(this.getSetDeviceVerificationKeyRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSetDeviceVerificationKeyRequest(subBuilder.buildPartial()); - break; - } - case 338: - { - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse - .newBuilder(); - if (this.hasSetDeviceVerificationKeyResponse()) { - subBuilder.mergeFrom(this.getSetDeviceVerificationKeyResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSetDeviceVerificationKeyResponse(subBuilder.buildPartial()); - break; - } - case 346: - { - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.newBuilder(); - if (this.hasSwitchFirmwareRequest()) { - subBuilder.mergeFrom(this.getSwitchFirmwareRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSwitchFirmwareRequest(subBuilder.buildPartial()); - break; - } - case 354: - { - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.newBuilder(); - if (this.hasSwitchFirmwareResponse()) { - subBuilder.mergeFrom(this.getSwitchFirmwareResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSwitchFirmwareResponse(subBuilder.buildPartial()); - break; - } - case 362: - { - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.newBuilder(); - if (this.hasSwitchConfigurationRequest()) { - subBuilder.mergeFrom(this.getSwitchConfigurationRequest()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSwitchConfigurationRequest(subBuilder.buildPartial()); - break; - } - case 370: - { - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.Builder - subBuilder = - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse - .newBuilder(); - if (this.hasSwitchConfigurationResponse()) { - subBuilder.mergeFrom(this.getSwitchConfigurationResponse()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSwitchConfigurationResponse(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - private int bitField1_; - - // optional .oslp.RegisterDeviceRequest registerDeviceRequest = 1; - private org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest registerDeviceRequest_ = - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequestOrBuilder> - registerDeviceRequestBuilder_; - - @Override - public boolean hasRegisterDeviceRequest() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest getRegisterDeviceRequest() { - if (this.registerDeviceRequestBuilder_ == null) { - return this.registerDeviceRequest_; - } else { - return this.registerDeviceRequestBuilder_.getMessage(); - } - } - - public Builder setRegisterDeviceRequest( - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest value) { - if (this.registerDeviceRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.registerDeviceRequest_ = value; - this.onChanged(); - } else { - this.registerDeviceRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000001; - return this; - } - - public Builder setRegisterDeviceRequest( - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.Builder builderForValue) { - if (this.registerDeviceRequestBuilder_ == null) { - this.registerDeviceRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.registerDeviceRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000001; - return this; - } - - public Builder mergeRegisterDeviceRequest( - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest value) { - if (this.registerDeviceRequestBuilder_ == null) { - if (((this.bitField0_ & 0x00000001) == 0x00000001) - && this.registerDeviceRequest_ - != org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest - .getDefaultInstance()) { - this.registerDeviceRequest_ = - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.newBuilder( - this.registerDeviceRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.registerDeviceRequest_ = value; - } - this.onChanged(); - } else { - this.registerDeviceRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000001; - return this; - } - - public Builder clearRegisterDeviceRequest() { - if (this.registerDeviceRequestBuilder_ == null) { - this.registerDeviceRequest_ = - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.registerDeviceRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.Builder - getRegisterDeviceRequestBuilder() { - this.bitField0_ |= 0x00000001; - this.onChanged(); - return this.getRegisterDeviceRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequestOrBuilder - getRegisterDeviceRequestOrBuilder() { - if (this.registerDeviceRequestBuilder_ != null) { - return this.registerDeviceRequestBuilder_.getMessageOrBuilder(); - } else { - return this.registerDeviceRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequestOrBuilder> - getRegisterDeviceRequestFieldBuilder() { - if (this.registerDeviceRequestBuilder_ == null) { - this.registerDeviceRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequestOrBuilder>( - this.registerDeviceRequest_, this.getParentForChildren(), this.isClean()); - this.registerDeviceRequest_ = null; - } - return this.registerDeviceRequestBuilder_; - } - - // optional .oslp.RegisterDeviceResponse registerDeviceResponse = 2; - private org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse registerDeviceResponse_ = - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponseOrBuilder> - registerDeviceResponseBuilder_; - - @Override - public boolean hasRegisterDeviceResponse() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse - getRegisterDeviceResponse() { - if (this.registerDeviceResponseBuilder_ == null) { - return this.registerDeviceResponse_; - } else { - return this.registerDeviceResponseBuilder_.getMessage(); - } - } - - public Builder setRegisterDeviceResponse( - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse value) { - if (this.registerDeviceResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.registerDeviceResponse_ = value; - this.onChanged(); - } else { - this.registerDeviceResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000002; - return this; - } - - public Builder setRegisterDeviceResponse( - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.Builder - builderForValue) { - if (this.registerDeviceResponseBuilder_ == null) { - this.registerDeviceResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.registerDeviceResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000002; - return this; - } - - public Builder mergeRegisterDeviceResponse( - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse value) { - if (this.registerDeviceResponseBuilder_ == null) { - if (((this.bitField0_ & 0x00000002) == 0x00000002) - && this.registerDeviceResponse_ - != org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse - .getDefaultInstance()) { - this.registerDeviceResponse_ = - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.newBuilder( - this.registerDeviceResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.registerDeviceResponse_ = value; - } - this.onChanged(); - } else { - this.registerDeviceResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000002; - return this; - } - - public Builder clearRegisterDeviceResponse() { - if (this.registerDeviceResponseBuilder_ == null) { - this.registerDeviceResponse_ = - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.registerDeviceResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000002); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.Builder - getRegisterDeviceResponseBuilder() { - this.bitField0_ |= 0x00000002; - this.onChanged(); - return this.getRegisterDeviceResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponseOrBuilder - getRegisterDeviceResponseOrBuilder() { - if (this.registerDeviceResponseBuilder_ != null) { - return this.registerDeviceResponseBuilder_.getMessageOrBuilder(); - } else { - return this.registerDeviceResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponseOrBuilder> - getRegisterDeviceResponseFieldBuilder() { - if (this.registerDeviceResponseBuilder_ == null) { - this.registerDeviceResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponseOrBuilder>( - this.registerDeviceResponse_, this.getParentForChildren(), this.isClean()); - this.registerDeviceResponse_ = null; - } - return this.registerDeviceResponseBuilder_; - } - - // optional .oslp.StartSelfTestRequest startSelfTestRequest = 3; - private org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest startSelfTestRequest_ = - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequestOrBuilder> - startSelfTestRequestBuilder_; - - @Override - public boolean hasStartSelfTestRequest() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest getStartSelfTestRequest() { - if (this.startSelfTestRequestBuilder_ == null) { - return this.startSelfTestRequest_; - } else { - return this.startSelfTestRequestBuilder_.getMessage(); - } - } - - public Builder setStartSelfTestRequest( - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest value) { - if (this.startSelfTestRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.startSelfTestRequest_ = value; - this.onChanged(); - } else { - this.startSelfTestRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000004; - return this; - } - - public Builder setStartSelfTestRequest( - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.Builder builderForValue) { - if (this.startSelfTestRequestBuilder_ == null) { - this.startSelfTestRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.startSelfTestRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000004; - return this; - } - - public Builder mergeStartSelfTestRequest( - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest value) { - if (this.startSelfTestRequestBuilder_ == null) { - if (((this.bitField0_ & 0x00000004) == 0x00000004) - && this.startSelfTestRequest_ - != org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest - .getDefaultInstance()) { - this.startSelfTestRequest_ = - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.newBuilder( - this.startSelfTestRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.startSelfTestRequest_ = value; - } - this.onChanged(); - } else { - this.startSelfTestRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000004; - return this; - } - - public Builder clearStartSelfTestRequest() { - if (this.startSelfTestRequestBuilder_ == null) { - this.startSelfTestRequest_ = - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.startSelfTestRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000004); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.Builder - getStartSelfTestRequestBuilder() { - this.bitField0_ |= 0x00000004; - this.onChanged(); - return this.getStartSelfTestRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequestOrBuilder - getStartSelfTestRequestOrBuilder() { - if (this.startSelfTestRequestBuilder_ != null) { - return this.startSelfTestRequestBuilder_.getMessageOrBuilder(); - } else { - return this.startSelfTestRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequestOrBuilder> - getStartSelfTestRequestFieldBuilder() { - if (this.startSelfTestRequestBuilder_ == null) { - this.startSelfTestRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequestOrBuilder>( - this.startSelfTestRequest_, this.getParentForChildren(), this.isClean()); - this.startSelfTestRequest_ = null; - } - return this.startSelfTestRequestBuilder_; - } - - // optional .oslp.StartSelfTestResponse startSelfTestResponse = 4; - private org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse startSelfTestResponse_ = - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponseOrBuilder> - startSelfTestResponseBuilder_; - - @Override - public boolean hasStartSelfTestResponse() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse getStartSelfTestResponse() { - if (this.startSelfTestResponseBuilder_ == null) { - return this.startSelfTestResponse_; - } else { - return this.startSelfTestResponseBuilder_.getMessage(); - } - } - - public Builder setStartSelfTestResponse( - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse value) { - if (this.startSelfTestResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.startSelfTestResponse_ = value; - this.onChanged(); - } else { - this.startSelfTestResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000008; - return this; - } - - public Builder setStartSelfTestResponse( - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.Builder builderForValue) { - if (this.startSelfTestResponseBuilder_ == null) { - this.startSelfTestResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.startSelfTestResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000008; - return this; - } - - public Builder mergeStartSelfTestResponse( - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse value) { - if (this.startSelfTestResponseBuilder_ == null) { - if (((this.bitField0_ & 0x00000008) == 0x00000008) - && this.startSelfTestResponse_ - != org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse - .getDefaultInstance()) { - this.startSelfTestResponse_ = - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.newBuilder( - this.startSelfTestResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.startSelfTestResponse_ = value; - } - this.onChanged(); - } else { - this.startSelfTestResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000008; - return this; - } - - public Builder clearStartSelfTestResponse() { - if (this.startSelfTestResponseBuilder_ == null) { - this.startSelfTestResponse_ = - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.startSelfTestResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000008); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.Builder - getStartSelfTestResponseBuilder() { - this.bitField0_ |= 0x00000008; - this.onChanged(); - return this.getStartSelfTestResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponseOrBuilder - getStartSelfTestResponseOrBuilder() { - if (this.startSelfTestResponseBuilder_ != null) { - return this.startSelfTestResponseBuilder_.getMessageOrBuilder(); - } else { - return this.startSelfTestResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponseOrBuilder> - getStartSelfTestResponseFieldBuilder() { - if (this.startSelfTestResponseBuilder_ == null) { - this.startSelfTestResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponseOrBuilder>( - this.startSelfTestResponse_, this.getParentForChildren(), this.isClean()); - this.startSelfTestResponse_ = null; - } - return this.startSelfTestResponseBuilder_; - } - - // optional .oslp.StopSelfTestRequest stopSelfTestRequest = 5; - private org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest stopSelfTestRequest_ = - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequestOrBuilder> - stopSelfTestRequestBuilder_; - - @Override - public boolean hasStopSelfTestRequest() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest getStopSelfTestRequest() { - if (this.stopSelfTestRequestBuilder_ == null) { - return this.stopSelfTestRequest_; - } else { - return this.stopSelfTestRequestBuilder_.getMessage(); - } - } - - public Builder setStopSelfTestRequest( - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest value) { - if (this.stopSelfTestRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.stopSelfTestRequest_ = value; - this.onChanged(); - } else { - this.stopSelfTestRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000010; - return this; - } - - public Builder setStopSelfTestRequest( - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.Builder builderForValue) { - if (this.stopSelfTestRequestBuilder_ == null) { - this.stopSelfTestRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.stopSelfTestRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000010; - return this; - } - - public Builder mergeStopSelfTestRequest( - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest value) { - if (this.stopSelfTestRequestBuilder_ == null) { - if (((this.bitField0_ & 0x00000010) == 0x00000010) - && this.stopSelfTestRequest_ - != org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.getDefaultInstance()) { - this.stopSelfTestRequest_ = - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.newBuilder( - this.stopSelfTestRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.stopSelfTestRequest_ = value; - } - this.onChanged(); - } else { - this.stopSelfTestRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000010; - return this; - } - - public Builder clearStopSelfTestRequest() { - if (this.stopSelfTestRequestBuilder_ == null) { - this.stopSelfTestRequest_ = - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.stopSelfTestRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000010); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.Builder - getStopSelfTestRequestBuilder() { - this.bitField0_ |= 0x00000010; - this.onChanged(); - return this.getStopSelfTestRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequestOrBuilder - getStopSelfTestRequestOrBuilder() { - if (this.stopSelfTestRequestBuilder_ != null) { - return this.stopSelfTestRequestBuilder_.getMessageOrBuilder(); - } else { - return this.stopSelfTestRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequestOrBuilder> - getStopSelfTestRequestFieldBuilder() { - if (this.stopSelfTestRequestBuilder_ == null) { - this.stopSelfTestRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequestOrBuilder>( - this.stopSelfTestRequest_, this.getParentForChildren(), this.isClean()); - this.stopSelfTestRequest_ = null; - } - return this.stopSelfTestRequestBuilder_; - } - - // optional .oslp.StopSelfTestResponse stopSelfTestResponse = 6; - private org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse stopSelfTestResponse_ = - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponseOrBuilder> - stopSelfTestResponseBuilder_; - - @Override - public boolean hasStopSelfTestResponse() { - return ((this.bitField0_ & 0x00000020) == 0x00000020); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse getStopSelfTestResponse() { - if (this.stopSelfTestResponseBuilder_ == null) { - return this.stopSelfTestResponse_; - } else { - return this.stopSelfTestResponseBuilder_.getMessage(); - } - } - - public Builder setStopSelfTestResponse( - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse value) { - if (this.stopSelfTestResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.stopSelfTestResponse_ = value; - this.onChanged(); - } else { - this.stopSelfTestResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000020; - return this; - } - - public Builder setStopSelfTestResponse( - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.Builder builderForValue) { - if (this.stopSelfTestResponseBuilder_ == null) { - this.stopSelfTestResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.stopSelfTestResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000020; - return this; - } - - public Builder mergeStopSelfTestResponse( - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse value) { - if (this.stopSelfTestResponseBuilder_ == null) { - if (((this.bitField0_ & 0x00000020) == 0x00000020) - && this.stopSelfTestResponse_ - != org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse - .getDefaultInstance()) { - this.stopSelfTestResponse_ = - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.newBuilder( - this.stopSelfTestResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.stopSelfTestResponse_ = value; - } - this.onChanged(); - } else { - this.stopSelfTestResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000020; - return this; - } - - public Builder clearStopSelfTestResponse() { - if (this.stopSelfTestResponseBuilder_ == null) { - this.stopSelfTestResponse_ = - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.stopSelfTestResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000020); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.Builder - getStopSelfTestResponseBuilder() { - this.bitField0_ |= 0x00000020; - this.onChanged(); - return this.getStopSelfTestResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponseOrBuilder - getStopSelfTestResponseOrBuilder() { - if (this.stopSelfTestResponseBuilder_ != null) { - return this.stopSelfTestResponseBuilder_.getMessageOrBuilder(); - } else { - return this.stopSelfTestResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponseOrBuilder> - getStopSelfTestResponseFieldBuilder() { - if (this.stopSelfTestResponseBuilder_ == null) { - this.stopSelfTestResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponseOrBuilder>( - this.stopSelfTestResponse_, this.getParentForChildren(), this.isClean()); - this.stopSelfTestResponse_ = null; - } - return this.stopSelfTestResponseBuilder_; - } - - // optional .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; - private org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest updateFirmwareRequest_ = - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequestOrBuilder> - updateFirmwareRequestBuilder_; - - @Override - public boolean hasUpdateFirmwareRequest() { - return ((this.bitField0_ & 0x00000040) == 0x00000040); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest getUpdateFirmwareRequest() { - if (this.updateFirmwareRequestBuilder_ == null) { - return this.updateFirmwareRequest_; - } else { - return this.updateFirmwareRequestBuilder_.getMessage(); - } - } - - public Builder setUpdateFirmwareRequest( - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest value) { - if (this.updateFirmwareRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.updateFirmwareRequest_ = value; - this.onChanged(); - } else { - this.updateFirmwareRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000040; - return this; - } - - public Builder setUpdateFirmwareRequest( - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.Builder builderForValue) { - if (this.updateFirmwareRequestBuilder_ == null) { - this.updateFirmwareRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.updateFirmwareRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000040; - return this; - } - - public Builder mergeUpdateFirmwareRequest( - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest value) { - if (this.updateFirmwareRequestBuilder_ == null) { - if (((this.bitField0_ & 0x00000040) == 0x00000040) - && this.updateFirmwareRequest_ - != org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest - .getDefaultInstance()) { - this.updateFirmwareRequest_ = - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.newBuilder( - this.updateFirmwareRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.updateFirmwareRequest_ = value; - } - this.onChanged(); - } else { - this.updateFirmwareRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000040; - return this; - } - - public Builder clearUpdateFirmwareRequest() { - if (this.updateFirmwareRequestBuilder_ == null) { - this.updateFirmwareRequest_ = - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.updateFirmwareRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000040); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.Builder - getUpdateFirmwareRequestBuilder() { - this.bitField0_ |= 0x00000040; - this.onChanged(); - return this.getUpdateFirmwareRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequestOrBuilder - getUpdateFirmwareRequestOrBuilder() { - if (this.updateFirmwareRequestBuilder_ != null) { - return this.updateFirmwareRequestBuilder_.getMessageOrBuilder(); - } else { - return this.updateFirmwareRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequestOrBuilder> - getUpdateFirmwareRequestFieldBuilder() { - if (this.updateFirmwareRequestBuilder_ == null) { - this.updateFirmwareRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequestOrBuilder>( - this.updateFirmwareRequest_, this.getParentForChildren(), this.isClean()); - this.updateFirmwareRequest_ = null; - } - return this.updateFirmwareRequestBuilder_; - } - - // optional .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; - private org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse updateFirmwareResponse_ = - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponseOrBuilder> - updateFirmwareResponseBuilder_; - - @Override - public boolean hasUpdateFirmwareResponse() { - return ((this.bitField0_ & 0x00000080) == 0x00000080); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse - getUpdateFirmwareResponse() { - if (this.updateFirmwareResponseBuilder_ == null) { - return this.updateFirmwareResponse_; - } else { - return this.updateFirmwareResponseBuilder_.getMessage(); - } - } - - public Builder setUpdateFirmwareResponse( - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse value) { - if (this.updateFirmwareResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.updateFirmwareResponse_ = value; - this.onChanged(); - } else { - this.updateFirmwareResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000080; - return this; - } - - public Builder setUpdateFirmwareResponse( - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.Builder - builderForValue) { - if (this.updateFirmwareResponseBuilder_ == null) { - this.updateFirmwareResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.updateFirmwareResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000080; - return this; - } - - public Builder mergeUpdateFirmwareResponse( - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse value) { - if (this.updateFirmwareResponseBuilder_ == null) { - if (((this.bitField0_ & 0x00000080) == 0x00000080) - && this.updateFirmwareResponse_ - != org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse - .getDefaultInstance()) { - this.updateFirmwareResponse_ = - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.newBuilder( - this.updateFirmwareResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.updateFirmwareResponse_ = value; - } - this.onChanged(); - } else { - this.updateFirmwareResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000080; - return this; - } - - public Builder clearUpdateFirmwareResponse() { - if (this.updateFirmwareResponseBuilder_ == null) { - this.updateFirmwareResponse_ = - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.updateFirmwareResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000080); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.Builder - getUpdateFirmwareResponseBuilder() { - this.bitField0_ |= 0x00000080; - this.onChanged(); - return this.getUpdateFirmwareResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponseOrBuilder - getUpdateFirmwareResponseOrBuilder() { - if (this.updateFirmwareResponseBuilder_ != null) { - return this.updateFirmwareResponseBuilder_.getMessageOrBuilder(); - } else { - return this.updateFirmwareResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponseOrBuilder> - getUpdateFirmwareResponseFieldBuilder() { - if (this.updateFirmwareResponseBuilder_ == null) { - this.updateFirmwareResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponseOrBuilder>( - this.updateFirmwareResponse_, this.getParentForChildren(), this.isClean()); - this.updateFirmwareResponse_ = null; - } - return this.updateFirmwareResponseBuilder_; - } - - // optional .oslp.SetLightRequest setLightRequest = 9; - private org.opensmartgridplatform.oslp.Oslp.SetLightRequest setLightRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetLightRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetLightRequest, - org.opensmartgridplatform.oslp.Oslp.SetLightRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetLightRequestOrBuilder> - setLightRequestBuilder_; - - @Override - public boolean hasSetLightRequest() { - return ((this.bitField0_ & 0x00000100) == 0x00000100); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetLightRequest getSetLightRequest() { - if (this.setLightRequestBuilder_ == null) { - return this.setLightRequest_; - } else { - return this.setLightRequestBuilder_.getMessage(); - } - } - - public Builder setSetLightRequest( - final org.opensmartgridplatform.oslp.Oslp.SetLightRequest value) { - if (this.setLightRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.setLightRequest_ = value; - this.onChanged(); - } else { - this.setLightRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000100; - return this; - } - - public Builder setSetLightRequest( - final org.opensmartgridplatform.oslp.Oslp.SetLightRequest.Builder builderForValue) { - if (this.setLightRequestBuilder_ == null) { - this.setLightRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.setLightRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000100; - return this; - } - - public Builder mergeSetLightRequest( - final org.opensmartgridplatform.oslp.Oslp.SetLightRequest value) { - if (this.setLightRequestBuilder_ == null) { - if (((this.bitField0_ & 0x00000100) == 0x00000100) - && this.setLightRequest_ - != org.opensmartgridplatform.oslp.Oslp.SetLightRequest.getDefaultInstance()) { - this.setLightRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetLightRequest.newBuilder( - this.setLightRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.setLightRequest_ = value; - } - this.onChanged(); - } else { - this.setLightRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000100; - return this; - } - - public Builder clearSetLightRequest() { - if (this.setLightRequestBuilder_ == null) { - this.setLightRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetLightRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.setLightRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000100); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SetLightRequest.Builder - getSetLightRequestBuilder() { - this.bitField0_ |= 0x00000100; - this.onChanged(); - return this.getSetLightRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetLightRequestOrBuilder - getSetLightRequestOrBuilder() { - if (this.setLightRequestBuilder_ != null) { - return this.setLightRequestBuilder_.getMessageOrBuilder(); - } else { - return this.setLightRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetLightRequest, - org.opensmartgridplatform.oslp.Oslp.SetLightRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetLightRequestOrBuilder> - getSetLightRequestFieldBuilder() { - if (this.setLightRequestBuilder_ == null) { - this.setLightRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetLightRequest, - org.opensmartgridplatform.oslp.Oslp.SetLightRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetLightRequestOrBuilder>( - this.setLightRequest_, this.getParentForChildren(), this.isClean()); - this.setLightRequest_ = null; - } - return this.setLightRequestBuilder_; - } - - // optional .oslp.SetLightResponse setLightResponse = 10; - private org.opensmartgridplatform.oslp.Oslp.SetLightResponse setLightResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetLightResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetLightResponse, - org.opensmartgridplatform.oslp.Oslp.SetLightResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetLightResponseOrBuilder> - setLightResponseBuilder_; - - @Override - public boolean hasSetLightResponse() { - return ((this.bitField0_ & 0x00000200) == 0x00000200); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetLightResponse getSetLightResponse() { - if (this.setLightResponseBuilder_ == null) { - return this.setLightResponse_; - } else { - return this.setLightResponseBuilder_.getMessage(); - } - } - - public Builder setSetLightResponse( - final org.opensmartgridplatform.oslp.Oslp.SetLightResponse value) { - if (this.setLightResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.setLightResponse_ = value; - this.onChanged(); - } else { - this.setLightResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000200; - return this; - } - - public Builder setSetLightResponse( - final org.opensmartgridplatform.oslp.Oslp.SetLightResponse.Builder builderForValue) { - if (this.setLightResponseBuilder_ == null) { - this.setLightResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.setLightResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000200; - return this; - } - - public Builder mergeSetLightResponse( - final org.opensmartgridplatform.oslp.Oslp.SetLightResponse value) { - if (this.setLightResponseBuilder_ == null) { - if (((this.bitField0_ & 0x00000200) == 0x00000200) - && this.setLightResponse_ - != org.opensmartgridplatform.oslp.Oslp.SetLightResponse.getDefaultInstance()) { - this.setLightResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetLightResponse.newBuilder( - this.setLightResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.setLightResponse_ = value; - } - this.onChanged(); - } else { - this.setLightResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000200; - return this; - } - - public Builder clearSetLightResponse() { - if (this.setLightResponseBuilder_ == null) { - this.setLightResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetLightResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.setLightResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000200); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SetLightResponse.Builder - getSetLightResponseBuilder() { - this.bitField0_ |= 0x00000200; - this.onChanged(); - return this.getSetLightResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetLightResponseOrBuilder - getSetLightResponseOrBuilder() { - if (this.setLightResponseBuilder_ != null) { - return this.setLightResponseBuilder_.getMessageOrBuilder(); - } else { - return this.setLightResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetLightResponse, - org.opensmartgridplatform.oslp.Oslp.SetLightResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetLightResponseOrBuilder> - getSetLightResponseFieldBuilder() { - if (this.setLightResponseBuilder_ == null) { - this.setLightResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetLightResponse, - org.opensmartgridplatform.oslp.Oslp.SetLightResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetLightResponseOrBuilder>( - this.setLightResponse_, this.getParentForChildren(), this.isClean()); - this.setLightResponse_ = null; - } - return this.setLightResponseBuilder_; - } - - // optional .oslp.GetStatusRequest getStatusRequest = 11; - private org.opensmartgridplatform.oslp.Oslp.GetStatusRequest getStatusRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetStatusRequest, - org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.GetStatusRequestOrBuilder> - getStatusRequestBuilder_; - - @Override - public boolean hasGetStatusRequest() { - return ((this.bitField0_ & 0x00000400) == 0x00000400); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetStatusRequest getGetStatusRequest() { - if (this.getStatusRequestBuilder_ == null) { - return this.getStatusRequest_; - } else { - return this.getStatusRequestBuilder_.getMessage(); - } - } - - public Builder setGetStatusRequest( - final org.opensmartgridplatform.oslp.Oslp.GetStatusRequest value) { - if (this.getStatusRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.getStatusRequest_ = value; - this.onChanged(); - } else { - this.getStatusRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000400; - return this; - } - - public Builder setGetStatusRequest( - final org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.Builder builderForValue) { - if (this.getStatusRequestBuilder_ == null) { - this.getStatusRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.getStatusRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000400; - return this; - } - - public Builder mergeGetStatusRequest( - final org.opensmartgridplatform.oslp.Oslp.GetStatusRequest value) { - if (this.getStatusRequestBuilder_ == null) { - if (((this.bitField0_ & 0x00000400) == 0x00000400) - && this.getStatusRequest_ - != org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.getDefaultInstance()) { - this.getStatusRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.newBuilder( - this.getStatusRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.getStatusRequest_ = value; - } - this.onChanged(); - } else { - this.getStatusRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000400; - return this; - } - - public Builder clearGetStatusRequest() { - if (this.getStatusRequestBuilder_ == null) { - this.getStatusRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.getStatusRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000400); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.Builder - getGetStatusRequestBuilder() { - this.bitField0_ |= 0x00000400; - this.onChanged(); - return this.getGetStatusRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetStatusRequestOrBuilder - getGetStatusRequestOrBuilder() { - if (this.getStatusRequestBuilder_ != null) { - return this.getStatusRequestBuilder_.getMessageOrBuilder(); - } else { - return this.getStatusRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetStatusRequest, - org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.GetStatusRequestOrBuilder> - getGetStatusRequestFieldBuilder() { - if (this.getStatusRequestBuilder_ == null) { - this.getStatusRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetStatusRequest, - org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.GetStatusRequestOrBuilder>( - this.getStatusRequest_, this.getParentForChildren(), this.isClean()); - this.getStatusRequest_ = null; - } - return this.getStatusRequestBuilder_; - } - - // optional .oslp.GetStatusResponse getStatusResponse = 12; - private org.opensmartgridplatform.oslp.Oslp.GetStatusResponse getStatusResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetStatusResponse, - org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.GetStatusResponseOrBuilder> - getStatusResponseBuilder_; - - @Override - public boolean hasGetStatusResponse() { - return ((this.bitField0_ & 0x00000800) == 0x00000800); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetStatusResponse getGetStatusResponse() { - if (this.getStatusResponseBuilder_ == null) { - return this.getStatusResponse_; - } else { - return this.getStatusResponseBuilder_.getMessage(); - } - } - - public Builder setGetStatusResponse( - final org.opensmartgridplatform.oslp.Oslp.GetStatusResponse value) { - if (this.getStatusResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.getStatusResponse_ = value; - this.onChanged(); - } else { - this.getStatusResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000800; - return this; - } - - public Builder setGetStatusResponse( - final org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.Builder builderForValue) { - if (this.getStatusResponseBuilder_ == null) { - this.getStatusResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.getStatusResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000800; - return this; - } - - public Builder mergeGetStatusResponse( - final org.opensmartgridplatform.oslp.Oslp.GetStatusResponse value) { - if (this.getStatusResponseBuilder_ == null) { - if (((this.bitField0_ & 0x00000800) == 0x00000800) - && this.getStatusResponse_ - != org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.getDefaultInstance()) { - this.getStatusResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.newBuilder( - this.getStatusResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.getStatusResponse_ = value; - } - this.onChanged(); - } else { - this.getStatusResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000800; - return this; - } - - public Builder clearGetStatusResponse() { - if (this.getStatusResponseBuilder_ == null) { - this.getStatusResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.getStatusResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000800); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.Builder - getGetStatusResponseBuilder() { - this.bitField0_ |= 0x00000800; - this.onChanged(); - return this.getGetStatusResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetStatusResponseOrBuilder - getGetStatusResponseOrBuilder() { - if (this.getStatusResponseBuilder_ != null) { - return this.getStatusResponseBuilder_.getMessageOrBuilder(); - } else { - return this.getStatusResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetStatusResponse, - org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.GetStatusResponseOrBuilder> - getGetStatusResponseFieldBuilder() { - if (this.getStatusResponseBuilder_ == null) { - this.getStatusResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetStatusResponse, - org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.GetStatusResponseOrBuilder>( - this.getStatusResponse_, this.getParentForChildren(), this.isClean()); - this.getStatusResponse_ = null; - } - return this.getStatusResponseBuilder_; - } - - // optional .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; - private org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest resumeScheduleRequest_ = - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequestOrBuilder> - resumeScheduleRequestBuilder_; - - @Override - public boolean hasResumeScheduleRequest() { - return ((this.bitField0_ & 0x00001000) == 0x00001000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest getResumeScheduleRequest() { - if (this.resumeScheduleRequestBuilder_ == null) { - return this.resumeScheduleRequest_; - } else { - return this.resumeScheduleRequestBuilder_.getMessage(); - } - } - - public Builder setResumeScheduleRequest( - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest value) { - if (this.resumeScheduleRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.resumeScheduleRequest_ = value; - this.onChanged(); - } else { - this.resumeScheduleRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00001000; - return this; - } - - public Builder setResumeScheduleRequest( - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.Builder builderForValue) { - if (this.resumeScheduleRequestBuilder_ == null) { - this.resumeScheduleRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.resumeScheduleRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00001000; - return this; - } - - public Builder mergeResumeScheduleRequest( - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest value) { - if (this.resumeScheduleRequestBuilder_ == null) { - if (((this.bitField0_ & 0x00001000) == 0x00001000) - && this.resumeScheduleRequest_ - != org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest - .getDefaultInstance()) { - this.resumeScheduleRequest_ = - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.newBuilder( - this.resumeScheduleRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.resumeScheduleRequest_ = value; - } - this.onChanged(); - } else { - this.resumeScheduleRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00001000; - return this; - } - - public Builder clearResumeScheduleRequest() { - if (this.resumeScheduleRequestBuilder_ == null) { - this.resumeScheduleRequest_ = - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.resumeScheduleRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00001000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.Builder - getResumeScheduleRequestBuilder() { - this.bitField0_ |= 0x00001000; - this.onChanged(); - return this.getResumeScheduleRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequestOrBuilder - getResumeScheduleRequestOrBuilder() { - if (this.resumeScheduleRequestBuilder_ != null) { - return this.resumeScheduleRequestBuilder_.getMessageOrBuilder(); - } else { - return this.resumeScheduleRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequestOrBuilder> - getResumeScheduleRequestFieldBuilder() { - if (this.resumeScheduleRequestBuilder_ == null) { - this.resumeScheduleRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequestOrBuilder>( - this.resumeScheduleRequest_, this.getParentForChildren(), this.isClean()); - this.resumeScheduleRequest_ = null; - } - return this.resumeScheduleRequestBuilder_; - } - - // optional .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; - private org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse resumeScheduleResponse_ = - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponseOrBuilder> - resumeScheduleResponseBuilder_; - - @Override - public boolean hasResumeScheduleResponse() { - return ((this.bitField0_ & 0x00002000) == 0x00002000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse - getResumeScheduleResponse() { - if (this.resumeScheduleResponseBuilder_ == null) { - return this.resumeScheduleResponse_; - } else { - return this.resumeScheduleResponseBuilder_.getMessage(); - } - } - - public Builder setResumeScheduleResponse( - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse value) { - if (this.resumeScheduleResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.resumeScheduleResponse_ = value; - this.onChanged(); - } else { - this.resumeScheduleResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00002000; - return this; - } - - public Builder setResumeScheduleResponse( - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.Builder - builderForValue) { - if (this.resumeScheduleResponseBuilder_ == null) { - this.resumeScheduleResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.resumeScheduleResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00002000; - return this; - } - - public Builder mergeResumeScheduleResponse( - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse value) { - if (this.resumeScheduleResponseBuilder_ == null) { - if (((this.bitField0_ & 0x00002000) == 0x00002000) - && this.resumeScheduleResponse_ - != org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse - .getDefaultInstance()) { - this.resumeScheduleResponse_ = - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.newBuilder( - this.resumeScheduleResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.resumeScheduleResponse_ = value; - } - this.onChanged(); - } else { - this.resumeScheduleResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00002000; - return this; - } - - public Builder clearResumeScheduleResponse() { - if (this.resumeScheduleResponseBuilder_ == null) { - this.resumeScheduleResponse_ = - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.resumeScheduleResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00002000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.Builder - getResumeScheduleResponseBuilder() { - this.bitField0_ |= 0x00002000; - this.onChanged(); - return this.getResumeScheduleResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponseOrBuilder - getResumeScheduleResponseOrBuilder() { - if (this.resumeScheduleResponseBuilder_ != null) { - return this.resumeScheduleResponseBuilder_.getMessageOrBuilder(); - } else { - return this.resumeScheduleResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponseOrBuilder> - getResumeScheduleResponseFieldBuilder() { - if (this.resumeScheduleResponseBuilder_ == null) { - this.resumeScheduleResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponseOrBuilder>( - this.resumeScheduleResponse_, this.getParentForChildren(), this.isClean()); - this.resumeScheduleResponse_ = null; - } - return this.resumeScheduleResponseBuilder_; - } - - // optional .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; - private org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest - setEventNotificationsRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequestOrBuilder> - setEventNotificationsRequestBuilder_; - - @Override - public boolean hasSetEventNotificationsRequest() { - return ((this.bitField0_ & 0x00004000) == 0x00004000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest - getSetEventNotificationsRequest() { - if (this.setEventNotificationsRequestBuilder_ == null) { - return this.setEventNotificationsRequest_; - } else { - return this.setEventNotificationsRequestBuilder_.getMessage(); - } - } - - public Builder setSetEventNotificationsRequest( - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest value) { - if (this.setEventNotificationsRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.setEventNotificationsRequest_ = value; - this.onChanged(); - } else { - this.setEventNotificationsRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00004000; - return this; - } - - public Builder setSetEventNotificationsRequest( - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.Builder - builderForValue) { - if (this.setEventNotificationsRequestBuilder_ == null) { - this.setEventNotificationsRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.setEventNotificationsRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00004000; - return this; - } - - public Builder mergeSetEventNotificationsRequest( - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest value) { - if (this.setEventNotificationsRequestBuilder_ == null) { - if (((this.bitField0_ & 0x00004000) == 0x00004000) - && this.setEventNotificationsRequest_ - != org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest - .getDefaultInstance()) { - this.setEventNotificationsRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.newBuilder( - this.setEventNotificationsRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.setEventNotificationsRequest_ = value; - } - this.onChanged(); - } else { - this.setEventNotificationsRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00004000; - return this; - } - - public Builder clearSetEventNotificationsRequest() { - if (this.setEventNotificationsRequestBuilder_ == null) { - this.setEventNotificationsRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.setEventNotificationsRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00004000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.Builder - getSetEventNotificationsRequestBuilder() { - this.bitField0_ |= 0x00004000; - this.onChanged(); - return this.getSetEventNotificationsRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequestOrBuilder - getSetEventNotificationsRequestOrBuilder() { - if (this.setEventNotificationsRequestBuilder_ != null) { - return this.setEventNotificationsRequestBuilder_.getMessageOrBuilder(); - } else { - return this.setEventNotificationsRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequestOrBuilder> - getSetEventNotificationsRequestFieldBuilder() { - if (this.setEventNotificationsRequestBuilder_ == null) { - this.setEventNotificationsRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequestOrBuilder>( - this.setEventNotificationsRequest_, this.getParentForChildren(), this.isClean()); - this.setEventNotificationsRequest_ = null; - } - return this.setEventNotificationsRequestBuilder_; - } - - // optional .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; - private org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse - setEventNotificationsResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse - .getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponseOrBuilder> - setEventNotificationsResponseBuilder_; - - @Override - public boolean hasSetEventNotificationsResponse() { - return ((this.bitField0_ & 0x00008000) == 0x00008000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse - getSetEventNotificationsResponse() { - if (this.setEventNotificationsResponseBuilder_ == null) { - return this.setEventNotificationsResponse_; - } else { - return this.setEventNotificationsResponseBuilder_.getMessage(); - } - } - - public Builder setSetEventNotificationsResponse( - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse value) { - if (this.setEventNotificationsResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.setEventNotificationsResponse_ = value; - this.onChanged(); - } else { - this.setEventNotificationsResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00008000; - return this; - } - - public Builder setSetEventNotificationsResponse( - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.Builder - builderForValue) { - if (this.setEventNotificationsResponseBuilder_ == null) { - this.setEventNotificationsResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.setEventNotificationsResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00008000; - return this; - } - - public Builder mergeSetEventNotificationsResponse( - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse value) { - if (this.setEventNotificationsResponseBuilder_ == null) { - if (((this.bitField0_ & 0x00008000) == 0x00008000) - && this.setEventNotificationsResponse_ - != org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse - .getDefaultInstance()) { - this.setEventNotificationsResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.newBuilder( - this.setEventNotificationsResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.setEventNotificationsResponse_ = value; - } - this.onChanged(); - } else { - this.setEventNotificationsResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00008000; - return this; - } - - public Builder clearSetEventNotificationsResponse() { - if (this.setEventNotificationsResponseBuilder_ == null) { - this.setEventNotificationsResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse - .getDefaultInstance(); - this.onChanged(); - } else { - this.setEventNotificationsResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00008000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.Builder - getSetEventNotificationsResponseBuilder() { - this.bitField0_ |= 0x00008000; - this.onChanged(); - return this.getSetEventNotificationsResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponseOrBuilder - getSetEventNotificationsResponseOrBuilder() { - if (this.setEventNotificationsResponseBuilder_ != null) { - return this.setEventNotificationsResponseBuilder_.getMessageOrBuilder(); - } else { - return this.setEventNotificationsResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponseOrBuilder> - getSetEventNotificationsResponseFieldBuilder() { - if (this.setEventNotificationsResponseBuilder_ == null) { - this.setEventNotificationsResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponseOrBuilder>( - this.setEventNotificationsResponse_, this.getParentForChildren(), this.isClean()); - this.setEventNotificationsResponse_ = null; - } - return this.setEventNotificationsResponseBuilder_; - } - - // optional .oslp.EventNotificationRequest eventNotificationRequest = 17; - private org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest - eventNotificationRequest_ = - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest, - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequestOrBuilder> - eventNotificationRequestBuilder_; - - @Override - public boolean hasEventNotificationRequest() { - return ((this.bitField0_ & 0x00010000) == 0x00010000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest - getEventNotificationRequest() { - if (this.eventNotificationRequestBuilder_ == null) { - return this.eventNotificationRequest_; - } else { - return this.eventNotificationRequestBuilder_.getMessage(); - } - } - - public Builder setEventNotificationRequest( - final org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest value) { - if (this.eventNotificationRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.eventNotificationRequest_ = value; - this.onChanged(); - } else { - this.eventNotificationRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00010000; - return this; - } - - public Builder setEventNotificationRequest( - final org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.Builder - builderForValue) { - if (this.eventNotificationRequestBuilder_ == null) { - this.eventNotificationRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.eventNotificationRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00010000; - return this; - } - - public Builder mergeEventNotificationRequest( - final org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest value) { - if (this.eventNotificationRequestBuilder_ == null) { - if (((this.bitField0_ & 0x00010000) == 0x00010000) - && this.eventNotificationRequest_ - != org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest - .getDefaultInstance()) { - this.eventNotificationRequest_ = - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.newBuilder( - this.eventNotificationRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.eventNotificationRequest_ = value; - } - this.onChanged(); - } else { - this.eventNotificationRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00010000; - return this; - } - - public Builder clearEventNotificationRequest() { - if (this.eventNotificationRequestBuilder_ == null) { - this.eventNotificationRequest_ = - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.eventNotificationRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00010000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.Builder - getEventNotificationRequestBuilder() { - this.bitField0_ |= 0x00010000; - this.onChanged(); - return this.getEventNotificationRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequestOrBuilder - getEventNotificationRequestOrBuilder() { - if (this.eventNotificationRequestBuilder_ != null) { - return this.eventNotificationRequestBuilder_.getMessageOrBuilder(); - } else { - return this.eventNotificationRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest, - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequestOrBuilder> - getEventNotificationRequestFieldBuilder() { - if (this.eventNotificationRequestBuilder_ == null) { - this.eventNotificationRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest, - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequestOrBuilder>( - this.eventNotificationRequest_, this.getParentForChildren(), this.isClean()); - this.eventNotificationRequest_ = null; - } - return this.eventNotificationRequestBuilder_; - } - - // optional .oslp.EventNotificationResponse eventNotificationResponse = 18; - private org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse - eventNotificationResponse_ = - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse, - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponseOrBuilder> - eventNotificationResponseBuilder_; - - @Override - public boolean hasEventNotificationResponse() { - return ((this.bitField0_ & 0x00020000) == 0x00020000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse - getEventNotificationResponse() { - if (this.eventNotificationResponseBuilder_ == null) { - return this.eventNotificationResponse_; - } else { - return this.eventNotificationResponseBuilder_.getMessage(); - } - } - - public Builder setEventNotificationResponse( - final org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse value) { - if (this.eventNotificationResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.eventNotificationResponse_ = value; - this.onChanged(); - } else { - this.eventNotificationResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00020000; - return this; - } - - public Builder setEventNotificationResponse( - final org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.Builder - builderForValue) { - if (this.eventNotificationResponseBuilder_ == null) { - this.eventNotificationResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.eventNotificationResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00020000; - return this; - } - - public Builder mergeEventNotificationResponse( - final org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse value) { - if (this.eventNotificationResponseBuilder_ == null) { - if (((this.bitField0_ & 0x00020000) == 0x00020000) - && this.eventNotificationResponse_ - != org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse - .getDefaultInstance()) { - this.eventNotificationResponse_ = - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.newBuilder( - this.eventNotificationResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.eventNotificationResponse_ = value; - } - this.onChanged(); - } else { - this.eventNotificationResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00020000; - return this; - } - - public Builder clearEventNotificationResponse() { - if (this.eventNotificationResponseBuilder_ == null) { - this.eventNotificationResponse_ = - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.eventNotificationResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00020000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.Builder - getEventNotificationResponseBuilder() { - this.bitField0_ |= 0x00020000; - this.onChanged(); - return this.getEventNotificationResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponseOrBuilder - getEventNotificationResponseOrBuilder() { - if (this.eventNotificationResponseBuilder_ != null) { - return this.eventNotificationResponseBuilder_.getMessageOrBuilder(); - } else { - return this.eventNotificationResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse, - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponseOrBuilder> - getEventNotificationResponseFieldBuilder() { - if (this.eventNotificationResponseBuilder_ == null) { - this.eventNotificationResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse, - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponseOrBuilder>( - this.eventNotificationResponse_, this.getParentForChildren(), this.isClean()); - this.eventNotificationResponse_ = null; - } - return this.eventNotificationResponseBuilder_; - } - - // optional .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; - private org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest - getFirmwareVersionRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequestOrBuilder> - getFirmwareVersionRequestBuilder_; - - @Override - public boolean hasGetFirmwareVersionRequest() { - return ((this.bitField0_ & 0x00040000) == 0x00040000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest - getGetFirmwareVersionRequest() { - if (this.getFirmwareVersionRequestBuilder_ == null) { - return this.getFirmwareVersionRequest_; - } else { - return this.getFirmwareVersionRequestBuilder_.getMessage(); - } - } - - public Builder setGetFirmwareVersionRequest( - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest value) { - if (this.getFirmwareVersionRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.getFirmwareVersionRequest_ = value; - this.onChanged(); - } else { - this.getFirmwareVersionRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00040000; - return this; - } - - public Builder setGetFirmwareVersionRequest( - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.Builder - builderForValue) { - if (this.getFirmwareVersionRequestBuilder_ == null) { - this.getFirmwareVersionRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.getFirmwareVersionRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00040000; - return this; - } - - public Builder mergeGetFirmwareVersionRequest( - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest value) { - if (this.getFirmwareVersionRequestBuilder_ == null) { - if (((this.bitField0_ & 0x00040000) == 0x00040000) - && this.getFirmwareVersionRequest_ - != org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest - .getDefaultInstance()) { - this.getFirmwareVersionRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.newBuilder( - this.getFirmwareVersionRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.getFirmwareVersionRequest_ = value; - } - this.onChanged(); - } else { - this.getFirmwareVersionRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00040000; - return this; - } - - public Builder clearGetFirmwareVersionRequest() { - if (this.getFirmwareVersionRequestBuilder_ == null) { - this.getFirmwareVersionRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.getFirmwareVersionRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00040000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.Builder - getGetFirmwareVersionRequestBuilder() { - this.bitField0_ |= 0x00040000; - this.onChanged(); - return this.getGetFirmwareVersionRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequestOrBuilder - getGetFirmwareVersionRequestOrBuilder() { - if (this.getFirmwareVersionRequestBuilder_ != null) { - return this.getFirmwareVersionRequestBuilder_.getMessageOrBuilder(); - } else { - return this.getFirmwareVersionRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequestOrBuilder> - getGetFirmwareVersionRequestFieldBuilder() { - if (this.getFirmwareVersionRequestBuilder_ == null) { - this.getFirmwareVersionRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequestOrBuilder>( - this.getFirmwareVersionRequest_, this.getParentForChildren(), this.isClean()); - this.getFirmwareVersionRequest_ = null; - } - return this.getFirmwareVersionRequestBuilder_; - } - - // optional .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; - private org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse - getFirmwareVersionResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponseOrBuilder> - getFirmwareVersionResponseBuilder_; - - @Override - public boolean hasGetFirmwareVersionResponse() { - return ((this.bitField0_ & 0x00080000) == 0x00080000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse - getGetFirmwareVersionResponse() { - if (this.getFirmwareVersionResponseBuilder_ == null) { - return this.getFirmwareVersionResponse_; - } else { - return this.getFirmwareVersionResponseBuilder_.getMessage(); - } - } - - public Builder setGetFirmwareVersionResponse( - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse value) { - if (this.getFirmwareVersionResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.getFirmwareVersionResponse_ = value; - this.onChanged(); - } else { - this.getFirmwareVersionResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00080000; - return this; - } - - public Builder setGetFirmwareVersionResponse( - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.Builder - builderForValue) { - if (this.getFirmwareVersionResponseBuilder_ == null) { - this.getFirmwareVersionResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.getFirmwareVersionResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00080000; - return this; - } - - public Builder mergeGetFirmwareVersionResponse( - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse value) { - if (this.getFirmwareVersionResponseBuilder_ == null) { - if (((this.bitField0_ & 0x00080000) == 0x00080000) - && this.getFirmwareVersionResponse_ - != org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse - .getDefaultInstance()) { - this.getFirmwareVersionResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.newBuilder( - this.getFirmwareVersionResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.getFirmwareVersionResponse_ = value; - } - this.onChanged(); - } else { - this.getFirmwareVersionResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00080000; - return this; - } - - public Builder clearGetFirmwareVersionResponse() { - if (this.getFirmwareVersionResponseBuilder_ == null) { - this.getFirmwareVersionResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.getFirmwareVersionResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00080000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.Builder - getGetFirmwareVersionResponseBuilder() { - this.bitField0_ |= 0x00080000; - this.onChanged(); - return this.getGetFirmwareVersionResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponseOrBuilder - getGetFirmwareVersionResponseOrBuilder() { - if (this.getFirmwareVersionResponseBuilder_ != null) { - return this.getFirmwareVersionResponseBuilder_.getMessageOrBuilder(); - } else { - return this.getFirmwareVersionResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponseOrBuilder> - getGetFirmwareVersionResponseFieldBuilder() { - if (this.getFirmwareVersionResponseBuilder_ == null) { - this.getFirmwareVersionResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponseOrBuilder>( - this.getFirmwareVersionResponse_, this.getParentForChildren(), this.isClean()); - this.getFirmwareVersionResponse_ = null; - } - return this.getFirmwareVersionResponseBuilder_; - } - - // optional .oslp.SetScheduleRequest setScheduleRequest = 21; - private org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest setScheduleRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest, - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequestOrBuilder> - setScheduleRequestBuilder_; - - @Override - public boolean hasSetScheduleRequest() { - return ((this.bitField0_ & 0x00100000) == 0x00100000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest getSetScheduleRequest() { - if (this.setScheduleRequestBuilder_ == null) { - return this.setScheduleRequest_; - } else { - return this.setScheduleRequestBuilder_.getMessage(); - } - } - - public Builder setSetScheduleRequest( - final org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest value) { - if (this.setScheduleRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.setScheduleRequest_ = value; - this.onChanged(); - } else { - this.setScheduleRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00100000; - return this; - } - - public Builder setSetScheduleRequest( - final org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.Builder builderForValue) { - if (this.setScheduleRequestBuilder_ == null) { - this.setScheduleRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.setScheduleRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00100000; - return this; - } - - public Builder mergeSetScheduleRequest( - final org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest value) { - if (this.setScheduleRequestBuilder_ == null) { - if (((this.bitField0_ & 0x00100000) == 0x00100000) - && this.setScheduleRequest_ - != org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.getDefaultInstance()) { - this.setScheduleRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.newBuilder( - this.setScheduleRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.setScheduleRequest_ = value; - } - this.onChanged(); - } else { - this.setScheduleRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00100000; - return this; - } - - public Builder clearSetScheduleRequest() { - if (this.setScheduleRequestBuilder_ == null) { - this.setScheduleRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.setScheduleRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00100000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.Builder - getSetScheduleRequestBuilder() { - this.bitField0_ |= 0x00100000; - this.onChanged(); - return this.getSetScheduleRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequestOrBuilder - getSetScheduleRequestOrBuilder() { - if (this.setScheduleRequestBuilder_ != null) { - return this.setScheduleRequestBuilder_.getMessageOrBuilder(); - } else { - return this.setScheduleRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest, - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequestOrBuilder> - getSetScheduleRequestFieldBuilder() { - if (this.setScheduleRequestBuilder_ == null) { - this.setScheduleRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest, - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequestOrBuilder>( - this.setScheduleRequest_, this.getParentForChildren(), this.isClean()); - this.setScheduleRequest_ = null; - } - return this.setScheduleRequestBuilder_; - } - - // optional .oslp.SetScheduleResponse setScheduleResponse = 22; - private org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse setScheduleResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse, - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponseOrBuilder> - setScheduleResponseBuilder_; - - @Override - public boolean hasSetScheduleResponse() { - return ((this.bitField0_ & 0x00200000) == 0x00200000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse getSetScheduleResponse() { - if (this.setScheduleResponseBuilder_ == null) { - return this.setScheduleResponse_; - } else { - return this.setScheduleResponseBuilder_.getMessage(); - } - } - - public Builder setSetScheduleResponse( - final org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse value) { - if (this.setScheduleResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.setScheduleResponse_ = value; - this.onChanged(); - } else { - this.setScheduleResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00200000; - return this; - } - - public Builder setSetScheduleResponse( - final org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.Builder builderForValue) { - if (this.setScheduleResponseBuilder_ == null) { - this.setScheduleResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.setScheduleResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00200000; - return this; - } - - public Builder mergeSetScheduleResponse( - final org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse value) { - if (this.setScheduleResponseBuilder_ == null) { - if (((this.bitField0_ & 0x00200000) == 0x00200000) - && this.setScheduleResponse_ - != org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.getDefaultInstance()) { - this.setScheduleResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.newBuilder( - this.setScheduleResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.setScheduleResponse_ = value; - } - this.onChanged(); - } else { - this.setScheduleResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00200000; - return this; - } - - public Builder clearSetScheduleResponse() { - if (this.setScheduleResponseBuilder_ == null) { - this.setScheduleResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.setScheduleResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00200000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.Builder - getSetScheduleResponseBuilder() { - this.bitField0_ |= 0x00200000; - this.onChanged(); - return this.getSetScheduleResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponseOrBuilder - getSetScheduleResponseOrBuilder() { - if (this.setScheduleResponseBuilder_ != null) { - return this.setScheduleResponseBuilder_.getMessageOrBuilder(); - } else { - return this.setScheduleResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse, - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponseOrBuilder> - getSetScheduleResponseFieldBuilder() { - if (this.setScheduleResponseBuilder_ == null) { - this.setScheduleResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse, - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponseOrBuilder>( - this.setScheduleResponse_, this.getParentForChildren(), this.isClean()); - this.setScheduleResponse_ = null; - } - return this.setScheduleResponseBuilder_; - } - - // optional .oslp.SetConfigurationRequest setConfigurationRequest = 25; - private org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest setConfigurationRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequestOrBuilder> - setConfigurationRequestBuilder_; - - @Override - public boolean hasSetConfigurationRequest() { - return ((this.bitField0_ & 0x00400000) == 0x00400000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest - getSetConfigurationRequest() { - if (this.setConfigurationRequestBuilder_ == null) { - return this.setConfigurationRequest_; - } else { - return this.setConfigurationRequestBuilder_.getMessage(); - } - } - - public Builder setSetConfigurationRequest( - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest value) { - if (this.setConfigurationRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.setConfigurationRequest_ = value; - this.onChanged(); - } else { - this.setConfigurationRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00400000; - return this; - } - - public Builder setSetConfigurationRequest( - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.Builder - builderForValue) { - if (this.setConfigurationRequestBuilder_ == null) { - this.setConfigurationRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.setConfigurationRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00400000; - return this; - } - - public Builder mergeSetConfigurationRequest( - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest value) { - if (this.setConfigurationRequestBuilder_ == null) { - if (((this.bitField0_ & 0x00400000) == 0x00400000) - && this.setConfigurationRequest_ - != org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest - .getDefaultInstance()) { - this.setConfigurationRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.newBuilder( - this.setConfigurationRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.setConfigurationRequest_ = value; - } - this.onChanged(); - } else { - this.setConfigurationRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00400000; - return this; - } - - public Builder clearSetConfigurationRequest() { - if (this.setConfigurationRequestBuilder_ == null) { - this.setConfigurationRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.setConfigurationRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00400000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.Builder - getSetConfigurationRequestBuilder() { - this.bitField0_ |= 0x00400000; - this.onChanged(); - return this.getSetConfigurationRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequestOrBuilder - getSetConfigurationRequestOrBuilder() { - if (this.setConfigurationRequestBuilder_ != null) { - return this.setConfigurationRequestBuilder_.getMessageOrBuilder(); - } else { - return this.setConfigurationRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequestOrBuilder> - getSetConfigurationRequestFieldBuilder() { - if (this.setConfigurationRequestBuilder_ == null) { - this.setConfigurationRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequestOrBuilder>( - this.setConfigurationRequest_, this.getParentForChildren(), this.isClean()); - this.setConfigurationRequest_ = null; - } - return this.setConfigurationRequestBuilder_; - } - - // optional .oslp.SetConfigurationResponse setConfigurationResponse = 26; - private org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse - setConfigurationResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponseOrBuilder> - setConfigurationResponseBuilder_; - - @Override - public boolean hasSetConfigurationResponse() { - return ((this.bitField0_ & 0x00800000) == 0x00800000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse - getSetConfigurationResponse() { - if (this.setConfigurationResponseBuilder_ == null) { - return this.setConfigurationResponse_; - } else { - return this.setConfigurationResponseBuilder_.getMessage(); - } - } - - public Builder setSetConfigurationResponse( - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse value) { - if (this.setConfigurationResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.setConfigurationResponse_ = value; - this.onChanged(); - } else { - this.setConfigurationResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00800000; - return this; - } - - public Builder setSetConfigurationResponse( - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.Builder - builderForValue) { - if (this.setConfigurationResponseBuilder_ == null) { - this.setConfigurationResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.setConfigurationResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00800000; - return this; - } - - public Builder mergeSetConfigurationResponse( - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse value) { - if (this.setConfigurationResponseBuilder_ == null) { - if (((this.bitField0_ & 0x00800000) == 0x00800000) - && this.setConfigurationResponse_ - != org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse - .getDefaultInstance()) { - this.setConfigurationResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.newBuilder( - this.setConfigurationResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.setConfigurationResponse_ = value; - } - this.onChanged(); - } else { - this.setConfigurationResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00800000; - return this; - } - - public Builder clearSetConfigurationResponse() { - if (this.setConfigurationResponseBuilder_ == null) { - this.setConfigurationResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.setConfigurationResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00800000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.Builder - getSetConfigurationResponseBuilder() { - this.bitField0_ |= 0x00800000; - this.onChanged(); - return this.getSetConfigurationResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponseOrBuilder - getSetConfigurationResponseOrBuilder() { - if (this.setConfigurationResponseBuilder_ != null) { - return this.setConfigurationResponseBuilder_.getMessageOrBuilder(); - } else { - return this.setConfigurationResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponseOrBuilder> - getSetConfigurationResponseFieldBuilder() { - if (this.setConfigurationResponseBuilder_ == null) { - this.setConfigurationResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponseOrBuilder>( - this.setConfigurationResponse_, this.getParentForChildren(), this.isClean()); - this.setConfigurationResponse_ = null; - } - return this.setConfigurationResponseBuilder_; - } - - // optional .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; - private org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest - getPowerUsageHistoryRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequestOrBuilder> - getPowerUsageHistoryRequestBuilder_; - - @Override - public boolean hasGetPowerUsageHistoryRequest() { - return ((this.bitField0_ & 0x01000000) == 0x01000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest - getGetPowerUsageHistoryRequest() { - if (this.getPowerUsageHistoryRequestBuilder_ == null) { - return this.getPowerUsageHistoryRequest_; - } else { - return this.getPowerUsageHistoryRequestBuilder_.getMessage(); - } - } - - public Builder setGetPowerUsageHistoryRequest( - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest value) { - if (this.getPowerUsageHistoryRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.getPowerUsageHistoryRequest_ = value; - this.onChanged(); - } else { - this.getPowerUsageHistoryRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x01000000; - return this; - } - - public Builder setGetPowerUsageHistoryRequest( - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.Builder - builderForValue) { - if (this.getPowerUsageHistoryRequestBuilder_ == null) { - this.getPowerUsageHistoryRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.getPowerUsageHistoryRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x01000000; - return this; - } - - public Builder mergeGetPowerUsageHistoryRequest( - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest value) { - if (this.getPowerUsageHistoryRequestBuilder_ == null) { - if (((this.bitField0_ & 0x01000000) == 0x01000000) - && this.getPowerUsageHistoryRequest_ - != org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest - .getDefaultInstance()) { - this.getPowerUsageHistoryRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.newBuilder( - this.getPowerUsageHistoryRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.getPowerUsageHistoryRequest_ = value; - } - this.onChanged(); - } else { - this.getPowerUsageHistoryRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x01000000; - return this; - } - - public Builder clearGetPowerUsageHistoryRequest() { - if (this.getPowerUsageHistoryRequestBuilder_ == null) { - this.getPowerUsageHistoryRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.getPowerUsageHistoryRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x01000000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.Builder - getGetPowerUsageHistoryRequestBuilder() { - this.bitField0_ |= 0x01000000; - this.onChanged(); - return this.getGetPowerUsageHistoryRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequestOrBuilder - getGetPowerUsageHistoryRequestOrBuilder() { - if (this.getPowerUsageHistoryRequestBuilder_ != null) { - return this.getPowerUsageHistoryRequestBuilder_.getMessageOrBuilder(); - } else { - return this.getPowerUsageHistoryRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequestOrBuilder> - getGetPowerUsageHistoryRequestFieldBuilder() { - if (this.getPowerUsageHistoryRequestBuilder_ == null) { - this.getPowerUsageHistoryRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequestOrBuilder>( - this.getPowerUsageHistoryRequest_, this.getParentForChildren(), this.isClean()); - this.getPowerUsageHistoryRequest_ = null; - } - return this.getPowerUsageHistoryRequestBuilder_; - } - - // optional .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; - private org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse - getPowerUsageHistoryResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponseOrBuilder> - getPowerUsageHistoryResponseBuilder_; - - @Override - public boolean hasGetPowerUsageHistoryResponse() { - return ((this.bitField0_ & 0x02000000) == 0x02000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse - getGetPowerUsageHistoryResponse() { - if (this.getPowerUsageHistoryResponseBuilder_ == null) { - return this.getPowerUsageHistoryResponse_; - } else { - return this.getPowerUsageHistoryResponseBuilder_.getMessage(); - } - } - - public Builder setGetPowerUsageHistoryResponse( - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse value) { - if (this.getPowerUsageHistoryResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.getPowerUsageHistoryResponse_ = value; - this.onChanged(); - } else { - this.getPowerUsageHistoryResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x02000000; - return this; - } - - public Builder setGetPowerUsageHistoryResponse( - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.Builder - builderForValue) { - if (this.getPowerUsageHistoryResponseBuilder_ == null) { - this.getPowerUsageHistoryResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.getPowerUsageHistoryResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x02000000; - return this; - } - - public Builder mergeGetPowerUsageHistoryResponse( - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse value) { - if (this.getPowerUsageHistoryResponseBuilder_ == null) { - if (((this.bitField0_ & 0x02000000) == 0x02000000) - && this.getPowerUsageHistoryResponse_ - != org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse - .getDefaultInstance()) { - this.getPowerUsageHistoryResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.newBuilder( - this.getPowerUsageHistoryResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.getPowerUsageHistoryResponse_ = value; - } - this.onChanged(); - } else { - this.getPowerUsageHistoryResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x02000000; - return this; - } - - public Builder clearGetPowerUsageHistoryResponse() { - if (this.getPowerUsageHistoryResponseBuilder_ == null) { - this.getPowerUsageHistoryResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.getPowerUsageHistoryResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x02000000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.Builder - getGetPowerUsageHistoryResponseBuilder() { - this.bitField0_ |= 0x02000000; - this.onChanged(); - return this.getGetPowerUsageHistoryResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponseOrBuilder - getGetPowerUsageHistoryResponseOrBuilder() { - if (this.getPowerUsageHistoryResponseBuilder_ != null) { - return this.getPowerUsageHistoryResponseBuilder_.getMessageOrBuilder(); - } else { - return this.getPowerUsageHistoryResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponseOrBuilder> - getGetPowerUsageHistoryResponseFieldBuilder() { - if (this.getPowerUsageHistoryResponseBuilder_ == null) { - this.getPowerUsageHistoryResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponseOrBuilder>( - this.getPowerUsageHistoryResponse_, this.getParentForChildren(), this.isClean()); - this.getPowerUsageHistoryResponse_ = null; - } - return this.getPowerUsageHistoryResponseBuilder_; - } - - // optional .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; - private org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest - getActualPowerUsageRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequestOrBuilder> - getActualPowerUsageRequestBuilder_; - - @Override - public boolean hasGetActualPowerUsageRequest() { - return ((this.bitField0_ & 0x04000000) == 0x04000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest - getGetActualPowerUsageRequest() { - if (this.getActualPowerUsageRequestBuilder_ == null) { - return this.getActualPowerUsageRequest_; - } else { - return this.getActualPowerUsageRequestBuilder_.getMessage(); - } - } - - public Builder setGetActualPowerUsageRequest( - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest value) { - if (this.getActualPowerUsageRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.getActualPowerUsageRequest_ = value; - this.onChanged(); - } else { - this.getActualPowerUsageRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x04000000; - return this; - } - - public Builder setGetActualPowerUsageRequest( - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.Builder - builderForValue) { - if (this.getActualPowerUsageRequestBuilder_ == null) { - this.getActualPowerUsageRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.getActualPowerUsageRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x04000000; - return this; - } - - public Builder mergeGetActualPowerUsageRequest( - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest value) { - if (this.getActualPowerUsageRequestBuilder_ == null) { - if (((this.bitField0_ & 0x04000000) == 0x04000000) - && this.getActualPowerUsageRequest_ - != org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest - .getDefaultInstance()) { - this.getActualPowerUsageRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.newBuilder( - this.getActualPowerUsageRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.getActualPowerUsageRequest_ = value; - } - this.onChanged(); - } else { - this.getActualPowerUsageRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x04000000; - return this; - } - - public Builder clearGetActualPowerUsageRequest() { - if (this.getActualPowerUsageRequestBuilder_ == null) { - this.getActualPowerUsageRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.getActualPowerUsageRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x04000000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.Builder - getGetActualPowerUsageRequestBuilder() { - this.bitField0_ |= 0x04000000; - this.onChanged(); - return this.getGetActualPowerUsageRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequestOrBuilder - getGetActualPowerUsageRequestOrBuilder() { - if (this.getActualPowerUsageRequestBuilder_ != null) { - return this.getActualPowerUsageRequestBuilder_.getMessageOrBuilder(); - } else { - return this.getActualPowerUsageRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequestOrBuilder> - getGetActualPowerUsageRequestFieldBuilder() { - if (this.getActualPowerUsageRequestBuilder_ == null) { - this.getActualPowerUsageRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequestOrBuilder>( - this.getActualPowerUsageRequest_, this.getParentForChildren(), this.isClean()); - this.getActualPowerUsageRequest_ = null; - } - return this.getActualPowerUsageRequestBuilder_; - } - - // optional .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; - private org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse - getActualPowerUsageResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponseOrBuilder> - getActualPowerUsageResponseBuilder_; - - @Override - public boolean hasGetActualPowerUsageResponse() { - return ((this.bitField0_ & 0x08000000) == 0x08000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse - getGetActualPowerUsageResponse() { - if (this.getActualPowerUsageResponseBuilder_ == null) { - return this.getActualPowerUsageResponse_; - } else { - return this.getActualPowerUsageResponseBuilder_.getMessage(); - } - } - - public Builder setGetActualPowerUsageResponse( - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse value) { - if (this.getActualPowerUsageResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.getActualPowerUsageResponse_ = value; - this.onChanged(); - } else { - this.getActualPowerUsageResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x08000000; - return this; - } - - public Builder setGetActualPowerUsageResponse( - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.Builder - builderForValue) { - if (this.getActualPowerUsageResponseBuilder_ == null) { - this.getActualPowerUsageResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.getActualPowerUsageResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x08000000; - return this; - } - - public Builder mergeGetActualPowerUsageResponse( - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse value) { - if (this.getActualPowerUsageResponseBuilder_ == null) { - if (((this.bitField0_ & 0x08000000) == 0x08000000) - && this.getActualPowerUsageResponse_ - != org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse - .getDefaultInstance()) { - this.getActualPowerUsageResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.newBuilder( - this.getActualPowerUsageResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.getActualPowerUsageResponse_ = value; - } - this.onChanged(); - } else { - this.getActualPowerUsageResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x08000000; - return this; - } - - public Builder clearGetActualPowerUsageResponse() { - if (this.getActualPowerUsageResponseBuilder_ == null) { - this.getActualPowerUsageResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.getActualPowerUsageResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x08000000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.Builder - getGetActualPowerUsageResponseBuilder() { - this.bitField0_ |= 0x08000000; - this.onChanged(); - return this.getGetActualPowerUsageResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponseOrBuilder - getGetActualPowerUsageResponseOrBuilder() { - if (this.getActualPowerUsageResponseBuilder_ != null) { - return this.getActualPowerUsageResponseBuilder_.getMessageOrBuilder(); - } else { - return this.getActualPowerUsageResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponseOrBuilder> - getGetActualPowerUsageResponseFieldBuilder() { - if (this.getActualPowerUsageResponseBuilder_ == null) { - this.getActualPowerUsageResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponseOrBuilder>( - this.getActualPowerUsageResponse_, this.getParentForChildren(), this.isClean()); - this.getActualPowerUsageResponse_ = null; - } - return this.getActualPowerUsageResponseBuilder_; - } - - // optional .oslp.SetRebootRequest setRebootRequest = 31; - private org.opensmartgridplatform.oslp.Oslp.SetRebootRequest setRebootRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetRebootRequest, - org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetRebootRequestOrBuilder> - setRebootRequestBuilder_; - - @Override - public boolean hasSetRebootRequest() { - return ((this.bitField0_ & 0x10000000) == 0x10000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetRebootRequest getSetRebootRequest() { - if (this.setRebootRequestBuilder_ == null) { - return this.setRebootRequest_; - } else { - return this.setRebootRequestBuilder_.getMessage(); - } - } - - public Builder setSetRebootRequest( - final org.opensmartgridplatform.oslp.Oslp.SetRebootRequest value) { - if (this.setRebootRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.setRebootRequest_ = value; - this.onChanged(); - } else { - this.setRebootRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x10000000; - return this; - } - - public Builder setSetRebootRequest( - final org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.Builder builderForValue) { - if (this.setRebootRequestBuilder_ == null) { - this.setRebootRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.setRebootRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x10000000; - return this; - } - - public Builder mergeSetRebootRequest( - final org.opensmartgridplatform.oslp.Oslp.SetRebootRequest value) { - if (this.setRebootRequestBuilder_ == null) { - if (((this.bitField0_ & 0x10000000) == 0x10000000) - && this.setRebootRequest_ - != org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.getDefaultInstance()) { - this.setRebootRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.newBuilder( - this.setRebootRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.setRebootRequest_ = value; - } - this.onChanged(); - } else { - this.setRebootRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x10000000; - return this; - } - - public Builder clearSetRebootRequest() { - if (this.setRebootRequestBuilder_ == null) { - this.setRebootRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.setRebootRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x10000000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.Builder - getSetRebootRequestBuilder() { - this.bitField0_ |= 0x10000000; - this.onChanged(); - return this.getSetRebootRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetRebootRequestOrBuilder - getSetRebootRequestOrBuilder() { - if (this.setRebootRequestBuilder_ != null) { - return this.setRebootRequestBuilder_.getMessageOrBuilder(); - } else { - return this.setRebootRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetRebootRequest, - org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetRebootRequestOrBuilder> - getSetRebootRequestFieldBuilder() { - if (this.setRebootRequestBuilder_ == null) { - this.setRebootRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetRebootRequest, - org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetRebootRequestOrBuilder>( - this.setRebootRequest_, this.getParentForChildren(), this.isClean()); - this.setRebootRequest_ = null; - } - return this.setRebootRequestBuilder_; - } - - // optional .oslp.SetRebootResponse setRebootResponse = 32; - private org.opensmartgridplatform.oslp.Oslp.SetRebootResponse setRebootResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetRebootResponse, - org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetRebootResponseOrBuilder> - setRebootResponseBuilder_; - - @Override - public boolean hasSetRebootResponse() { - return ((this.bitField0_ & 0x20000000) == 0x20000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetRebootResponse getSetRebootResponse() { - if (this.setRebootResponseBuilder_ == null) { - return this.setRebootResponse_; - } else { - return this.setRebootResponseBuilder_.getMessage(); - } - } - - public Builder setSetRebootResponse( - final org.opensmartgridplatform.oslp.Oslp.SetRebootResponse value) { - if (this.setRebootResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.setRebootResponse_ = value; - this.onChanged(); - } else { - this.setRebootResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x20000000; - return this; - } - - public Builder setSetRebootResponse( - final org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.Builder builderForValue) { - if (this.setRebootResponseBuilder_ == null) { - this.setRebootResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.setRebootResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x20000000; - return this; - } - - public Builder mergeSetRebootResponse( - final org.opensmartgridplatform.oslp.Oslp.SetRebootResponse value) { - if (this.setRebootResponseBuilder_ == null) { - if (((this.bitField0_ & 0x20000000) == 0x20000000) - && this.setRebootResponse_ - != org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.getDefaultInstance()) { - this.setRebootResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.newBuilder( - this.setRebootResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.setRebootResponse_ = value; - } - this.onChanged(); - } else { - this.setRebootResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x20000000; - return this; - } - - public Builder clearSetRebootResponse() { - if (this.setRebootResponseBuilder_ == null) { - this.setRebootResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.setRebootResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x20000000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.Builder - getSetRebootResponseBuilder() { - this.bitField0_ |= 0x20000000; - this.onChanged(); - return this.getSetRebootResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetRebootResponseOrBuilder - getSetRebootResponseOrBuilder() { - if (this.setRebootResponseBuilder_ != null) { - return this.setRebootResponseBuilder_.getMessageOrBuilder(); - } else { - return this.setRebootResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetRebootResponse, - org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetRebootResponseOrBuilder> - getSetRebootResponseFieldBuilder() { - if (this.setRebootResponseBuilder_ == null) { - this.setRebootResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetRebootResponse, - org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetRebootResponseOrBuilder>( - this.setRebootResponse_, this.getParentForChildren(), this.isClean()); - this.setRebootResponse_ = null; - } - return this.setRebootResponseBuilder_; - } - - // optional .oslp.SetTransitionRequest setTransitionRequest = 33; - private org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest setTransitionRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest, - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequestOrBuilder> - setTransitionRequestBuilder_; - - @Override - public boolean hasSetTransitionRequest() { - return ((this.bitField0_ & 0x40000000) == 0x40000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest getSetTransitionRequest() { - if (this.setTransitionRequestBuilder_ == null) { - return this.setTransitionRequest_; - } else { - return this.setTransitionRequestBuilder_.getMessage(); - } - } - - public Builder setSetTransitionRequest( - final org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest value) { - if (this.setTransitionRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.setTransitionRequest_ = value; - this.onChanged(); - } else { - this.setTransitionRequestBuilder_.setMessage(value); - } - this.bitField0_ |= 0x40000000; - return this; - } - - public Builder setSetTransitionRequest( - final org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.Builder builderForValue) { - if (this.setTransitionRequestBuilder_ == null) { - this.setTransitionRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.setTransitionRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x40000000; - return this; - } - - public Builder mergeSetTransitionRequest( - final org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest value) { - if (this.setTransitionRequestBuilder_ == null) { - if (((this.bitField0_ & 0x40000000) == 0x40000000) - && this.setTransitionRequest_ - != org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest - .getDefaultInstance()) { - this.setTransitionRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.newBuilder( - this.setTransitionRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.setTransitionRequest_ = value; - } - this.onChanged(); - } else { - this.setTransitionRequestBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x40000000; - return this; - } - - public Builder clearSetTransitionRequest() { - if (this.setTransitionRequestBuilder_ == null) { - this.setTransitionRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.setTransitionRequestBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x40000000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.Builder - getSetTransitionRequestBuilder() { - this.bitField0_ |= 0x40000000; - this.onChanged(); - return this.getSetTransitionRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequestOrBuilder - getSetTransitionRequestOrBuilder() { - if (this.setTransitionRequestBuilder_ != null) { - return this.setTransitionRequestBuilder_.getMessageOrBuilder(); - } else { - return this.setTransitionRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest, - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequestOrBuilder> - getSetTransitionRequestFieldBuilder() { - if (this.setTransitionRequestBuilder_ == null) { - this.setTransitionRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest, - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequestOrBuilder>( - this.setTransitionRequest_, this.getParentForChildren(), this.isClean()); - this.setTransitionRequest_ = null; - } - return this.setTransitionRequestBuilder_; - } - - // optional .oslp.SetTransitionResponse setTransitionResponse = 34; - private org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse setTransitionResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse, - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponseOrBuilder> - setTransitionResponseBuilder_; - - @Override - public boolean hasSetTransitionResponse() { - return ((this.bitField0_ & 0x80000000) == 0x80000000); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse getSetTransitionResponse() { - if (this.setTransitionResponseBuilder_ == null) { - return this.setTransitionResponse_; - } else { - return this.setTransitionResponseBuilder_.getMessage(); - } - } - - public Builder setSetTransitionResponse( - final org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse value) { - if (this.setTransitionResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.setTransitionResponse_ = value; - this.onChanged(); - } else { - this.setTransitionResponseBuilder_.setMessage(value); - } - this.bitField0_ |= 0x80000000; - return this; - } - - public Builder setSetTransitionResponse( - final org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.Builder builderForValue) { - if (this.setTransitionResponseBuilder_ == null) { - this.setTransitionResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.setTransitionResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x80000000; - return this; - } - - public Builder mergeSetTransitionResponse( - final org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse value) { - if (this.setTransitionResponseBuilder_ == null) { - if (((this.bitField0_ & 0x80000000) == 0x80000000) - && this.setTransitionResponse_ - != org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse - .getDefaultInstance()) { - this.setTransitionResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.newBuilder( - this.setTransitionResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.setTransitionResponse_ = value; - } - this.onChanged(); - } else { - this.setTransitionResponseBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x80000000; - return this; - } - - public Builder clearSetTransitionResponse() { - if (this.setTransitionResponseBuilder_ == null) { - this.setTransitionResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.setTransitionResponseBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x80000000); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.Builder - getSetTransitionResponseBuilder() { - this.bitField0_ |= 0x80000000; - this.onChanged(); - return this.getSetTransitionResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponseOrBuilder - getSetTransitionResponseOrBuilder() { - if (this.setTransitionResponseBuilder_ != null) { - return this.setTransitionResponseBuilder_.getMessageOrBuilder(); - } else { - return this.setTransitionResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse, - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponseOrBuilder> - getSetTransitionResponseFieldBuilder() { - if (this.setTransitionResponseBuilder_ == null) { - this.setTransitionResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse, - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponseOrBuilder>( - this.setTransitionResponse_, this.getParentForChildren(), this.isClean()); - this.setTransitionResponse_ = null; - } - return this.setTransitionResponseBuilder_; - } - - // optional .oslp.GetConfigurationRequest getConfigurationRequest = 35; - private org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest getConfigurationRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequestOrBuilder> - getConfigurationRequestBuilder_; - - @Override - public boolean hasGetConfigurationRequest() { - return ((this.bitField1_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest - getGetConfigurationRequest() { - if (this.getConfigurationRequestBuilder_ == null) { - return this.getConfigurationRequest_; - } else { - return this.getConfigurationRequestBuilder_.getMessage(); - } - } - - public Builder setGetConfigurationRequest( - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest value) { - if (this.getConfigurationRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.getConfigurationRequest_ = value; - this.onChanged(); - } else { - this.getConfigurationRequestBuilder_.setMessage(value); - } - this.bitField1_ |= 0x00000001; - return this; - } - - public Builder setGetConfigurationRequest( - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.Builder - builderForValue) { - if (this.getConfigurationRequestBuilder_ == null) { - this.getConfigurationRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.getConfigurationRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField1_ |= 0x00000001; - return this; - } - - public Builder mergeGetConfigurationRequest( - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest value) { - if (this.getConfigurationRequestBuilder_ == null) { - if (((this.bitField1_ & 0x00000001) == 0x00000001) - && this.getConfigurationRequest_ - != org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest - .getDefaultInstance()) { - this.getConfigurationRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.newBuilder( - this.getConfigurationRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.getConfigurationRequest_ = value; - } - this.onChanged(); - } else { - this.getConfigurationRequestBuilder_.mergeFrom(value); - } - this.bitField1_ |= 0x00000001; - return this; - } - - public Builder clearGetConfigurationRequest() { - if (this.getConfigurationRequestBuilder_ == null) { - this.getConfigurationRequest_ = - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.getConfigurationRequestBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000001); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.Builder - getGetConfigurationRequestBuilder() { - this.bitField1_ |= 0x00000001; - this.onChanged(); - return this.getGetConfigurationRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequestOrBuilder - getGetConfigurationRequestOrBuilder() { - if (this.getConfigurationRequestBuilder_ != null) { - return this.getConfigurationRequestBuilder_.getMessageOrBuilder(); - } else { - return this.getConfigurationRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequestOrBuilder> - getGetConfigurationRequestFieldBuilder() { - if (this.getConfigurationRequestBuilder_ == null) { - this.getConfigurationRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequestOrBuilder>( - this.getConfigurationRequest_, this.getParentForChildren(), this.isClean()); - this.getConfigurationRequest_ = null; - } - return this.getConfigurationRequestBuilder_; - } - - // optional .oslp.GetConfigurationResponse getConfigurationResponse = 36; - private org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse - getConfigurationResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponseOrBuilder> - getConfigurationResponseBuilder_; - - @Override - public boolean hasGetConfigurationResponse() { - return ((this.bitField1_ & 0x00000002) == 0x00000002); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse - getGetConfigurationResponse() { - if (this.getConfigurationResponseBuilder_ == null) { - return this.getConfigurationResponse_; - } else { - return this.getConfigurationResponseBuilder_.getMessage(); - } - } - - public Builder setGetConfigurationResponse( - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse value) { - if (this.getConfigurationResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.getConfigurationResponse_ = value; - this.onChanged(); - } else { - this.getConfigurationResponseBuilder_.setMessage(value); - } - this.bitField1_ |= 0x00000002; - return this; - } - - public Builder setGetConfigurationResponse( - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.Builder - builderForValue) { - if (this.getConfigurationResponseBuilder_ == null) { - this.getConfigurationResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.getConfigurationResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField1_ |= 0x00000002; - return this; - } - - public Builder mergeGetConfigurationResponse( - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse value) { - if (this.getConfigurationResponseBuilder_ == null) { - if (((this.bitField1_ & 0x00000002) == 0x00000002) - && this.getConfigurationResponse_ - != org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse - .getDefaultInstance()) { - this.getConfigurationResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.newBuilder( - this.getConfigurationResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.getConfigurationResponse_ = value; - } - this.onChanged(); - } else { - this.getConfigurationResponseBuilder_.mergeFrom(value); - } - this.bitField1_ |= 0x00000002; - return this; - } - - public Builder clearGetConfigurationResponse() { - if (this.getConfigurationResponseBuilder_ == null) { - this.getConfigurationResponse_ = - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.getConfigurationResponseBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000002); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.Builder - getGetConfigurationResponseBuilder() { - this.bitField1_ |= 0x00000002; - this.onChanged(); - return this.getGetConfigurationResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponseOrBuilder - getGetConfigurationResponseOrBuilder() { - if (this.getConfigurationResponseBuilder_ != null) { - return this.getConfigurationResponseBuilder_.getMessageOrBuilder(); - } else { - return this.getConfigurationResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponseOrBuilder> - getGetConfigurationResponseFieldBuilder() { - if (this.getConfigurationResponseBuilder_ == null) { - this.getConfigurationResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponseOrBuilder>( - this.getConfigurationResponse_, this.getParentForChildren(), this.isClean()); - this.getConfigurationResponse_ = null; - } - return this.getConfigurationResponseBuilder_; - } - - // optional .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; - private org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest - confirmRegisterDeviceRequest_ = - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequestOrBuilder> - confirmRegisterDeviceRequestBuilder_; - - @Override - public boolean hasConfirmRegisterDeviceRequest() { - return ((this.bitField1_ & 0x00000004) == 0x00000004); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest - getConfirmRegisterDeviceRequest() { - if (this.confirmRegisterDeviceRequestBuilder_ == null) { - return this.confirmRegisterDeviceRequest_; - } else { - return this.confirmRegisterDeviceRequestBuilder_.getMessage(); - } - } - - public Builder setConfirmRegisterDeviceRequest( - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest value) { - if (this.confirmRegisterDeviceRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.confirmRegisterDeviceRequest_ = value; - this.onChanged(); - } else { - this.confirmRegisterDeviceRequestBuilder_.setMessage(value); - } - this.bitField1_ |= 0x00000004; - return this; - } - - public Builder setConfirmRegisterDeviceRequest( - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.Builder - builderForValue) { - if (this.confirmRegisterDeviceRequestBuilder_ == null) { - this.confirmRegisterDeviceRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.confirmRegisterDeviceRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField1_ |= 0x00000004; - return this; - } - - public Builder mergeConfirmRegisterDeviceRequest( - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest value) { - if (this.confirmRegisterDeviceRequestBuilder_ == null) { - if (((this.bitField1_ & 0x00000004) == 0x00000004) - && this.confirmRegisterDeviceRequest_ - != org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest - .getDefaultInstance()) { - this.confirmRegisterDeviceRequest_ = - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.newBuilder( - this.confirmRegisterDeviceRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.confirmRegisterDeviceRequest_ = value; - } - this.onChanged(); - } else { - this.confirmRegisterDeviceRequestBuilder_.mergeFrom(value); - } - this.bitField1_ |= 0x00000004; - return this; - } - - public Builder clearConfirmRegisterDeviceRequest() { - if (this.confirmRegisterDeviceRequestBuilder_ == null) { - this.confirmRegisterDeviceRequest_ = - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.confirmRegisterDeviceRequestBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000004); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.Builder - getConfirmRegisterDeviceRequestBuilder() { - this.bitField1_ |= 0x00000004; - this.onChanged(); - return this.getConfirmRegisterDeviceRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequestOrBuilder - getConfirmRegisterDeviceRequestOrBuilder() { - if (this.confirmRegisterDeviceRequestBuilder_ != null) { - return this.confirmRegisterDeviceRequestBuilder_.getMessageOrBuilder(); - } else { - return this.confirmRegisterDeviceRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequestOrBuilder> - getConfirmRegisterDeviceRequestFieldBuilder() { - if (this.confirmRegisterDeviceRequestBuilder_ == null) { - this.confirmRegisterDeviceRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequestOrBuilder>( - this.confirmRegisterDeviceRequest_, this.getParentForChildren(), this.isClean()); - this.confirmRegisterDeviceRequest_ = null; - } - return this.confirmRegisterDeviceRequestBuilder_; - } - - // optional .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; - private org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse - confirmRegisterDeviceResponse_ = - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse - .getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponseOrBuilder> - confirmRegisterDeviceResponseBuilder_; - - @Override - public boolean hasConfirmRegisterDeviceResponse() { - return ((this.bitField1_ & 0x00000008) == 0x00000008); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse - getConfirmRegisterDeviceResponse() { - if (this.confirmRegisterDeviceResponseBuilder_ == null) { - return this.confirmRegisterDeviceResponse_; - } else { - return this.confirmRegisterDeviceResponseBuilder_.getMessage(); - } - } - - public Builder setConfirmRegisterDeviceResponse( - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse value) { - if (this.confirmRegisterDeviceResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.confirmRegisterDeviceResponse_ = value; - this.onChanged(); - } else { - this.confirmRegisterDeviceResponseBuilder_.setMessage(value); - } - this.bitField1_ |= 0x00000008; - return this; - } - - public Builder setConfirmRegisterDeviceResponse( - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.Builder - builderForValue) { - if (this.confirmRegisterDeviceResponseBuilder_ == null) { - this.confirmRegisterDeviceResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.confirmRegisterDeviceResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField1_ |= 0x00000008; - return this; - } - - public Builder mergeConfirmRegisterDeviceResponse( - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse value) { - if (this.confirmRegisterDeviceResponseBuilder_ == null) { - if (((this.bitField1_ & 0x00000008) == 0x00000008) - && this.confirmRegisterDeviceResponse_ - != org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse - .getDefaultInstance()) { - this.confirmRegisterDeviceResponse_ = - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.newBuilder( - this.confirmRegisterDeviceResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.confirmRegisterDeviceResponse_ = value; - } - this.onChanged(); - } else { - this.confirmRegisterDeviceResponseBuilder_.mergeFrom(value); - } - this.bitField1_ |= 0x00000008; - return this; - } - - public Builder clearConfirmRegisterDeviceResponse() { - if (this.confirmRegisterDeviceResponseBuilder_ == null) { - this.confirmRegisterDeviceResponse_ = - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse - .getDefaultInstance(); - this.onChanged(); - } else { - this.confirmRegisterDeviceResponseBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000008); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.Builder - getConfirmRegisterDeviceResponseBuilder() { - this.bitField1_ |= 0x00000008; - this.onChanged(); - return this.getConfirmRegisterDeviceResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponseOrBuilder - getConfirmRegisterDeviceResponseOrBuilder() { - if (this.confirmRegisterDeviceResponseBuilder_ != null) { - return this.confirmRegisterDeviceResponseBuilder_.getMessageOrBuilder(); - } else { - return this.confirmRegisterDeviceResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponseOrBuilder> - getConfirmRegisterDeviceResponseFieldBuilder() { - if (this.confirmRegisterDeviceResponseBuilder_ == null) { - this.confirmRegisterDeviceResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponseOrBuilder>( - this.confirmRegisterDeviceResponse_, this.getParentForChildren(), this.isClean()); - this.confirmRegisterDeviceResponse_ = null; - } - return this.confirmRegisterDeviceResponseBuilder_; - } - - // optional .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = - // 39; - private org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - updateDeviceSslCertificationRequest_ = - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - .getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest, - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequestOrBuilder> - updateDeviceSslCertificationRequestBuilder_; - - @Override - public boolean hasUpdateDeviceSslCertificationRequest() { - return ((this.bitField1_ & 0x00000010) == 0x00000010); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - getUpdateDeviceSslCertificationRequest() { - if (this.updateDeviceSslCertificationRequestBuilder_ == null) { - return this.updateDeviceSslCertificationRequest_; - } else { - return this.updateDeviceSslCertificationRequestBuilder_.getMessage(); - } - } - - public Builder setUpdateDeviceSslCertificationRequest( - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest value) { - if (this.updateDeviceSslCertificationRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.updateDeviceSslCertificationRequest_ = value; - this.onChanged(); - } else { - this.updateDeviceSslCertificationRequestBuilder_.setMessage(value); - } - this.bitField1_ |= 0x00000010; - return this; - } - - public Builder setUpdateDeviceSslCertificationRequest( - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.Builder - builderForValue) { - if (this.updateDeviceSslCertificationRequestBuilder_ == null) { - this.updateDeviceSslCertificationRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.updateDeviceSslCertificationRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField1_ |= 0x00000010; - return this; - } - - public Builder mergeUpdateDeviceSslCertificationRequest( - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest value) { - if (this.updateDeviceSslCertificationRequestBuilder_ == null) { - if (((this.bitField1_ & 0x00000010) == 0x00000010) - && this.updateDeviceSslCertificationRequest_ - != org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - .getDefaultInstance()) { - this.updateDeviceSslCertificationRequest_ = - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.newBuilder( - this.updateDeviceSslCertificationRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.updateDeviceSslCertificationRequest_ = value; - } - this.onChanged(); - } else { - this.updateDeviceSslCertificationRequestBuilder_.mergeFrom(value); - } - this.bitField1_ |= 0x00000010; - return this; - } - - public Builder clearUpdateDeviceSslCertificationRequest() { - if (this.updateDeviceSslCertificationRequestBuilder_ == null) { - this.updateDeviceSslCertificationRequest_ = - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - .getDefaultInstance(); - this.onChanged(); - } else { - this.updateDeviceSslCertificationRequestBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000010); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.Builder - getUpdateDeviceSslCertificationRequestBuilder() { - this.bitField1_ |= 0x00000010; - this.onChanged(); - return this.getUpdateDeviceSslCertificationRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequestOrBuilder - getUpdateDeviceSslCertificationRequestOrBuilder() { - if (this.updateDeviceSslCertificationRequestBuilder_ != null) { - return this.updateDeviceSslCertificationRequestBuilder_.getMessageOrBuilder(); - } else { - return this.updateDeviceSslCertificationRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest, - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequestOrBuilder> - getUpdateDeviceSslCertificationRequestFieldBuilder() { - if (this.updateDeviceSslCertificationRequestBuilder_ == null) { - this.updateDeviceSslCertificationRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest, - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequestOrBuilder>( - this.updateDeviceSslCertificationRequest_, - this.getParentForChildren(), - this.isClean()); - this.updateDeviceSslCertificationRequest_ = null; - } - return this.updateDeviceSslCertificationRequestBuilder_; - } - - // optional .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = - // 40; - private org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - updateDeviceSslCertificationResponse_ = - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - .getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse, - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponseOrBuilder> - updateDeviceSslCertificationResponseBuilder_; - - @Override - public boolean hasUpdateDeviceSslCertificationResponse() { - return ((this.bitField1_ & 0x00000020) == 0x00000020); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - getUpdateDeviceSslCertificationResponse() { - if (this.updateDeviceSslCertificationResponseBuilder_ == null) { - return this.updateDeviceSslCertificationResponse_; - } else { - return this.updateDeviceSslCertificationResponseBuilder_.getMessage(); - } - } - - public Builder setUpdateDeviceSslCertificationResponse( - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse value) { - if (this.updateDeviceSslCertificationResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.updateDeviceSslCertificationResponse_ = value; - this.onChanged(); - } else { - this.updateDeviceSslCertificationResponseBuilder_.setMessage(value); - } - this.bitField1_ |= 0x00000020; - return this; - } - - public Builder setUpdateDeviceSslCertificationResponse( - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.Builder - builderForValue) { - if (this.updateDeviceSslCertificationResponseBuilder_ == null) { - this.updateDeviceSslCertificationResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.updateDeviceSslCertificationResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField1_ |= 0x00000020; - return this; - } - - public Builder mergeUpdateDeviceSslCertificationResponse( - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse value) { - if (this.updateDeviceSslCertificationResponseBuilder_ == null) { - if (((this.bitField1_ & 0x00000020) == 0x00000020) - && this.updateDeviceSslCertificationResponse_ - != org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - .getDefaultInstance()) { - this.updateDeviceSslCertificationResponse_ = - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.newBuilder( - this.updateDeviceSslCertificationResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.updateDeviceSslCertificationResponse_ = value; - } - this.onChanged(); - } else { - this.updateDeviceSslCertificationResponseBuilder_.mergeFrom(value); - } - this.bitField1_ |= 0x00000020; - return this; - } - - public Builder clearUpdateDeviceSslCertificationResponse() { - if (this.updateDeviceSslCertificationResponseBuilder_ == null) { - this.updateDeviceSslCertificationResponse_ = - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - .getDefaultInstance(); - this.onChanged(); - } else { - this.updateDeviceSslCertificationResponseBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000020); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.Builder - getUpdateDeviceSslCertificationResponseBuilder() { - this.bitField1_ |= 0x00000020; - this.onChanged(); - return this.getUpdateDeviceSslCertificationResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponseOrBuilder - getUpdateDeviceSslCertificationResponseOrBuilder() { - if (this.updateDeviceSslCertificationResponseBuilder_ != null) { - return this.updateDeviceSslCertificationResponseBuilder_.getMessageOrBuilder(); - } else { - return this.updateDeviceSslCertificationResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse, - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponseOrBuilder> - getUpdateDeviceSslCertificationResponseFieldBuilder() { - if (this.updateDeviceSslCertificationResponseBuilder_ == null) { - this.updateDeviceSslCertificationResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse, - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.Builder, - org.opensmartgridplatform.oslp.Oslp - .UpdateDeviceSslCertificationResponseOrBuilder>( - this.updateDeviceSslCertificationResponse_, - this.getParentForChildren(), - this.isClean()); - this.updateDeviceSslCertificationResponse_ = null; - } - return this.updateDeviceSslCertificationResponseBuilder_; - } - - // optional .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; - private org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest - setDeviceVerificationKeyRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest - .getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequestOrBuilder> - setDeviceVerificationKeyRequestBuilder_; - - @Override - public boolean hasSetDeviceVerificationKeyRequest() { - return ((this.bitField1_ & 0x00000040) == 0x00000040); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest - getSetDeviceVerificationKeyRequest() { - if (this.setDeviceVerificationKeyRequestBuilder_ == null) { - return this.setDeviceVerificationKeyRequest_; - } else { - return this.setDeviceVerificationKeyRequestBuilder_.getMessage(); - } - } - - public Builder setSetDeviceVerificationKeyRequest( - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest value) { - if (this.setDeviceVerificationKeyRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.setDeviceVerificationKeyRequest_ = value; - this.onChanged(); - } else { - this.setDeviceVerificationKeyRequestBuilder_.setMessage(value); - } - this.bitField1_ |= 0x00000040; - return this; - } - - public Builder setSetDeviceVerificationKeyRequest( - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.Builder - builderForValue) { - if (this.setDeviceVerificationKeyRequestBuilder_ == null) { - this.setDeviceVerificationKeyRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.setDeviceVerificationKeyRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField1_ |= 0x00000040; - return this; - } - - public Builder mergeSetDeviceVerificationKeyRequest( - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest value) { - if (this.setDeviceVerificationKeyRequestBuilder_ == null) { - if (((this.bitField1_ & 0x00000040) == 0x00000040) - && this.setDeviceVerificationKeyRequest_ - != org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest - .getDefaultInstance()) { - this.setDeviceVerificationKeyRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.newBuilder( - this.setDeviceVerificationKeyRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.setDeviceVerificationKeyRequest_ = value; - } - this.onChanged(); - } else { - this.setDeviceVerificationKeyRequestBuilder_.mergeFrom(value); - } - this.bitField1_ |= 0x00000040; - return this; - } - - public Builder clearSetDeviceVerificationKeyRequest() { - if (this.setDeviceVerificationKeyRequestBuilder_ == null) { - this.setDeviceVerificationKeyRequest_ = - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest - .getDefaultInstance(); - this.onChanged(); - } else { - this.setDeviceVerificationKeyRequestBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000040); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.Builder - getSetDeviceVerificationKeyRequestBuilder() { - this.bitField1_ |= 0x00000040; - this.onChanged(); - return this.getSetDeviceVerificationKeyRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequestOrBuilder - getSetDeviceVerificationKeyRequestOrBuilder() { - if (this.setDeviceVerificationKeyRequestBuilder_ != null) { - return this.setDeviceVerificationKeyRequestBuilder_.getMessageOrBuilder(); - } else { - return this.setDeviceVerificationKeyRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequestOrBuilder> - getSetDeviceVerificationKeyRequestFieldBuilder() { - if (this.setDeviceVerificationKeyRequestBuilder_ == null) { - this.setDeviceVerificationKeyRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequestOrBuilder>( - this.setDeviceVerificationKeyRequest_, - this.getParentForChildren(), - this.isClean()); - this.setDeviceVerificationKeyRequest_ = null; - } - return this.setDeviceVerificationKeyRequestBuilder_; - } - - // optional .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; - private org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse - setDeviceVerificationKeyResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse - .getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponseOrBuilder> - setDeviceVerificationKeyResponseBuilder_; - - @Override - public boolean hasSetDeviceVerificationKeyResponse() { - return ((this.bitField1_ & 0x00000080) == 0x00000080); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse - getSetDeviceVerificationKeyResponse() { - if (this.setDeviceVerificationKeyResponseBuilder_ == null) { - return this.setDeviceVerificationKeyResponse_; - } else { - return this.setDeviceVerificationKeyResponseBuilder_.getMessage(); - } - } - - public Builder setSetDeviceVerificationKeyResponse( - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse value) { - if (this.setDeviceVerificationKeyResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.setDeviceVerificationKeyResponse_ = value; - this.onChanged(); - } else { - this.setDeviceVerificationKeyResponseBuilder_.setMessage(value); - } - this.bitField1_ |= 0x00000080; - return this; - } - - public Builder setSetDeviceVerificationKeyResponse( - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.Builder - builderForValue) { - if (this.setDeviceVerificationKeyResponseBuilder_ == null) { - this.setDeviceVerificationKeyResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.setDeviceVerificationKeyResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField1_ |= 0x00000080; - return this; - } - - public Builder mergeSetDeviceVerificationKeyResponse( - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse value) { - if (this.setDeviceVerificationKeyResponseBuilder_ == null) { - if (((this.bitField1_ & 0x00000080) == 0x00000080) - && this.setDeviceVerificationKeyResponse_ - != org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse - .getDefaultInstance()) { - this.setDeviceVerificationKeyResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.newBuilder( - this.setDeviceVerificationKeyResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.setDeviceVerificationKeyResponse_ = value; - } - this.onChanged(); - } else { - this.setDeviceVerificationKeyResponseBuilder_.mergeFrom(value); - } - this.bitField1_ |= 0x00000080; - return this; - } - - public Builder clearSetDeviceVerificationKeyResponse() { - if (this.setDeviceVerificationKeyResponseBuilder_ == null) { - this.setDeviceVerificationKeyResponse_ = - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse - .getDefaultInstance(); - this.onChanged(); - } else { - this.setDeviceVerificationKeyResponseBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000080); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.Builder - getSetDeviceVerificationKeyResponseBuilder() { - this.bitField1_ |= 0x00000080; - this.onChanged(); - return this.getSetDeviceVerificationKeyResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponseOrBuilder - getSetDeviceVerificationKeyResponseOrBuilder() { - if (this.setDeviceVerificationKeyResponseBuilder_ != null) { - return this.setDeviceVerificationKeyResponseBuilder_.getMessageOrBuilder(); - } else { - return this.setDeviceVerificationKeyResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponseOrBuilder> - getSetDeviceVerificationKeyResponseFieldBuilder() { - if (this.setDeviceVerificationKeyResponseBuilder_ == null) { - this.setDeviceVerificationKeyResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponseOrBuilder>( - this.setDeviceVerificationKeyResponse_, - this.getParentForChildren(), - this.isClean()); - this.setDeviceVerificationKeyResponse_ = null; - } - return this.setDeviceVerificationKeyResponseBuilder_; - } - - // optional .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; - private org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest switchFirmwareRequest_ = - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequestOrBuilder> - switchFirmwareRequestBuilder_; - - @Override - public boolean hasSwitchFirmwareRequest() { - return ((this.bitField1_ & 0x00000100) == 0x00000100); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest getSwitchFirmwareRequest() { - if (this.switchFirmwareRequestBuilder_ == null) { - return this.switchFirmwareRequest_; - } else { - return this.switchFirmwareRequestBuilder_.getMessage(); - } - } - - public Builder setSwitchFirmwareRequest( - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest value) { - if (this.switchFirmwareRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.switchFirmwareRequest_ = value; - this.onChanged(); - } else { - this.switchFirmwareRequestBuilder_.setMessage(value); - } - this.bitField1_ |= 0x00000100; - return this; - } - - public Builder setSwitchFirmwareRequest( - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.Builder builderForValue) { - if (this.switchFirmwareRequestBuilder_ == null) { - this.switchFirmwareRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.switchFirmwareRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField1_ |= 0x00000100; - return this; - } - - public Builder mergeSwitchFirmwareRequest( - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest value) { - if (this.switchFirmwareRequestBuilder_ == null) { - if (((this.bitField1_ & 0x00000100) == 0x00000100) - && this.switchFirmwareRequest_ - != org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest - .getDefaultInstance()) { - this.switchFirmwareRequest_ = - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.newBuilder( - this.switchFirmwareRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.switchFirmwareRequest_ = value; - } - this.onChanged(); - } else { - this.switchFirmwareRequestBuilder_.mergeFrom(value); - } - this.bitField1_ |= 0x00000100; - return this; - } - - public Builder clearSwitchFirmwareRequest() { - if (this.switchFirmwareRequestBuilder_ == null) { - this.switchFirmwareRequest_ = - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.switchFirmwareRequestBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000100); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.Builder - getSwitchFirmwareRequestBuilder() { - this.bitField1_ |= 0x00000100; - this.onChanged(); - return this.getSwitchFirmwareRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequestOrBuilder - getSwitchFirmwareRequestOrBuilder() { - if (this.switchFirmwareRequestBuilder_ != null) { - return this.switchFirmwareRequestBuilder_.getMessageOrBuilder(); - } else { - return this.switchFirmwareRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequestOrBuilder> - getSwitchFirmwareRequestFieldBuilder() { - if (this.switchFirmwareRequestBuilder_ == null) { - this.switchFirmwareRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequestOrBuilder>( - this.switchFirmwareRequest_, this.getParentForChildren(), this.isClean()); - this.switchFirmwareRequest_ = null; - } - return this.switchFirmwareRequestBuilder_; - } - - // optional .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; - private org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse switchFirmwareResponse_ = - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponseOrBuilder> - switchFirmwareResponseBuilder_; - - @Override - public boolean hasSwitchFirmwareResponse() { - return ((this.bitField1_ & 0x00000200) == 0x00000200); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse - getSwitchFirmwareResponse() { - if (this.switchFirmwareResponseBuilder_ == null) { - return this.switchFirmwareResponse_; - } else { - return this.switchFirmwareResponseBuilder_.getMessage(); - } - } - - public Builder setSwitchFirmwareResponse( - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse value) { - if (this.switchFirmwareResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.switchFirmwareResponse_ = value; - this.onChanged(); - } else { - this.switchFirmwareResponseBuilder_.setMessage(value); - } - this.bitField1_ |= 0x00000200; - return this; - } - - public Builder setSwitchFirmwareResponse( - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.Builder - builderForValue) { - if (this.switchFirmwareResponseBuilder_ == null) { - this.switchFirmwareResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.switchFirmwareResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField1_ |= 0x00000200; - return this; - } - - public Builder mergeSwitchFirmwareResponse( - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse value) { - if (this.switchFirmwareResponseBuilder_ == null) { - if (((this.bitField1_ & 0x00000200) == 0x00000200) - && this.switchFirmwareResponse_ - != org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse - .getDefaultInstance()) { - this.switchFirmwareResponse_ = - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.newBuilder( - this.switchFirmwareResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.switchFirmwareResponse_ = value; - } - this.onChanged(); - } else { - this.switchFirmwareResponseBuilder_.mergeFrom(value); - } - this.bitField1_ |= 0x00000200; - return this; - } - - public Builder clearSwitchFirmwareResponse() { - if (this.switchFirmwareResponseBuilder_ == null) { - this.switchFirmwareResponse_ = - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.switchFirmwareResponseBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000200); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.Builder - getSwitchFirmwareResponseBuilder() { - this.bitField1_ |= 0x00000200; - this.onChanged(); - return this.getSwitchFirmwareResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponseOrBuilder - getSwitchFirmwareResponseOrBuilder() { - if (this.switchFirmwareResponseBuilder_ != null) { - return this.switchFirmwareResponseBuilder_.getMessageOrBuilder(); - } else { - return this.switchFirmwareResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponseOrBuilder> - getSwitchFirmwareResponseFieldBuilder() { - if (this.switchFirmwareResponseBuilder_ == null) { - this.switchFirmwareResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponseOrBuilder>( - this.switchFirmwareResponse_, this.getParentForChildren(), this.isClean()); - this.switchFirmwareResponse_ = null; - } - return this.switchFirmwareResponseBuilder_; - } - - // optional .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; - private org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest - switchConfigurationRequest_ = - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequestOrBuilder> - switchConfigurationRequestBuilder_; - - @Override - public boolean hasSwitchConfigurationRequest() { - return ((this.bitField1_ & 0x00000400) == 0x00000400); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest - getSwitchConfigurationRequest() { - if (this.switchConfigurationRequestBuilder_ == null) { - return this.switchConfigurationRequest_; - } else { - return this.switchConfigurationRequestBuilder_.getMessage(); - } - } - - public Builder setSwitchConfigurationRequest( - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest value) { - if (this.switchConfigurationRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.switchConfigurationRequest_ = value; - this.onChanged(); - } else { - this.switchConfigurationRequestBuilder_.setMessage(value); - } - this.bitField1_ |= 0x00000400; - return this; - } - - public Builder setSwitchConfigurationRequest( - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.Builder - builderForValue) { - if (this.switchConfigurationRequestBuilder_ == null) { - this.switchConfigurationRequest_ = builderForValue.build(); - this.onChanged(); - } else { - this.switchConfigurationRequestBuilder_.setMessage(builderForValue.build()); - } - this.bitField1_ |= 0x00000400; - return this; - } - - public Builder mergeSwitchConfigurationRequest( - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest value) { - if (this.switchConfigurationRequestBuilder_ == null) { - if (((this.bitField1_ & 0x00000400) == 0x00000400) - && this.switchConfigurationRequest_ - != org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest - .getDefaultInstance()) { - this.switchConfigurationRequest_ = - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.newBuilder( - this.switchConfigurationRequest_) - .mergeFrom(value) - .buildPartial(); - } else { - this.switchConfigurationRequest_ = value; - } - this.onChanged(); - } else { - this.switchConfigurationRequestBuilder_.mergeFrom(value); - } - this.bitField1_ |= 0x00000400; - return this; - } - - public Builder clearSwitchConfigurationRequest() { - if (this.switchConfigurationRequestBuilder_ == null) { - this.switchConfigurationRequest_ = - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.getDefaultInstance(); - this.onChanged(); - } else { - this.switchConfigurationRequestBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000400); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.Builder - getSwitchConfigurationRequestBuilder() { - this.bitField1_ |= 0x00000400; - this.onChanged(); - return this.getSwitchConfigurationRequestFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequestOrBuilder - getSwitchConfigurationRequestOrBuilder() { - if (this.switchConfigurationRequestBuilder_ != null) { - return this.switchConfigurationRequestBuilder_.getMessageOrBuilder(); - } else { - return this.switchConfigurationRequest_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequestOrBuilder> - getSwitchConfigurationRequestFieldBuilder() { - if (this.switchConfigurationRequestBuilder_ == null) { - this.switchConfigurationRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.Builder, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequestOrBuilder>( - this.switchConfigurationRequest_, this.getParentForChildren(), this.isClean()); - this.switchConfigurationRequest_ = null; - } - return this.switchConfigurationRequestBuilder_; - } - - // optional .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; - private org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse - switchConfigurationResponse_ = - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponseOrBuilder> - switchConfigurationResponseBuilder_; - - @Override - public boolean hasSwitchConfigurationResponse() { - return ((this.bitField1_ & 0x00000800) == 0x00000800); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse - getSwitchConfigurationResponse() { - if (this.switchConfigurationResponseBuilder_ == null) { - return this.switchConfigurationResponse_; - } else { - return this.switchConfigurationResponseBuilder_.getMessage(); - } - } - - public Builder setSwitchConfigurationResponse( - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse value) { - if (this.switchConfigurationResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.switchConfigurationResponse_ = value; - this.onChanged(); - } else { - this.switchConfigurationResponseBuilder_.setMessage(value); - } - this.bitField1_ |= 0x00000800; - return this; - } - - public Builder setSwitchConfigurationResponse( - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.Builder - builderForValue) { - if (this.switchConfigurationResponseBuilder_ == null) { - this.switchConfigurationResponse_ = builderForValue.build(); - this.onChanged(); - } else { - this.switchConfigurationResponseBuilder_.setMessage(builderForValue.build()); - } - this.bitField1_ |= 0x00000800; - return this; - } - - public Builder mergeSwitchConfigurationResponse( - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse value) { - if (this.switchConfigurationResponseBuilder_ == null) { - if (((this.bitField1_ & 0x00000800) == 0x00000800) - && this.switchConfigurationResponse_ - != org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse - .getDefaultInstance()) { - this.switchConfigurationResponse_ = - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.newBuilder( - this.switchConfigurationResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - this.switchConfigurationResponse_ = value; - } - this.onChanged(); - } else { - this.switchConfigurationResponseBuilder_.mergeFrom(value); - } - this.bitField1_ |= 0x00000800; - return this; - } - - public Builder clearSwitchConfigurationResponse() { - if (this.switchConfigurationResponseBuilder_ == null) { - this.switchConfigurationResponse_ = - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.getDefaultInstance(); - this.onChanged(); - } else { - this.switchConfigurationResponseBuilder_.clear(); - } - this.bitField1_ = (this.bitField1_ & ~0x00000800); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.Builder - getSwitchConfigurationResponseBuilder() { - this.bitField1_ |= 0x00000800; - this.onChanged(); - return this.getSwitchConfigurationResponseFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponseOrBuilder - getSwitchConfigurationResponseOrBuilder() { - if (this.switchConfigurationResponseBuilder_ != null) { - return this.switchConfigurationResponseBuilder_.getMessageOrBuilder(); - } else { - return this.switchConfigurationResponse_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponseOrBuilder> - getSwitchConfigurationResponseFieldBuilder() { - if (this.switchConfigurationResponseBuilder_ == null) { - this.switchConfigurationResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.Builder, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponseOrBuilder>( - this.switchConfigurationResponse_, this.getParentForChildren(), this.isClean()); - this.switchConfigurationResponse_ = null; - } - return this.switchConfigurationResponseBuilder_; - } - - // @@protoc_insertion_point(builder_scope:oslp.Message) - } - - static { - defaultInstance = new Message(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.Message) - } - - public interface RegisterDeviceRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required string deviceIdentification = 1; - boolean hasDeviceIdentification(); - - String getDeviceIdentification(); - - // required bytes ipAddress = 2; - boolean hasIpAddress(); - - com.google.protobuf.ByteString getIpAddress(); - - // required .oslp.DeviceType deviceType = 3; - boolean hasDeviceType(); - - org.opensmartgridplatform.oslp.Oslp.DeviceType getDeviceType(); - - // required bool hasSchedule = 4; - boolean hasHasSchedule(); - - boolean getHasSchedule(); - - // required uint32 randomDevice = 5; - boolean hasRandomDevice(); - - int getRandomDevice(); - } - - public static final class RegisterDeviceRequest extends com.google.protobuf.GeneratedMessage - implements RegisterDeviceRequestOrBuilder { - // Use RegisterDeviceRequest.newBuilder() to construct. - private RegisterDeviceRequest(final Builder builder) { - super(builder); - } - - private RegisterDeviceRequest(final boolean noInit) {} - - private static final RegisterDeviceRequest defaultInstance; - - public static RegisterDeviceRequest getDefaultInstance() { - return defaultInstance; - } - - @Override - public RegisterDeviceRequest getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_RegisterDeviceRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_RegisterDeviceRequest_fieldAccessorTable; - } - - private int bitField0_; - // required string deviceIdentification = 1; - public static final int DEVICEIDENTIFICATION_FIELD_NUMBER = 1; - private java.lang.Object deviceIdentification_; - - @Override - public boolean hasDeviceIdentification() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public String getDeviceIdentification() { - final java.lang.Object ref = this.deviceIdentification_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.deviceIdentification_ = s; - } - return s; - } - } - - private com.google.protobuf.ByteString getDeviceIdentificationBytes() { - final java.lang.Object ref = this.deviceIdentification_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.deviceIdentification_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required bytes ipAddress = 2; - public static final int IPADDRESS_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString ipAddress_; - - @Override - public boolean hasIpAddress() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public com.google.protobuf.ByteString getIpAddress() { - return this.ipAddress_; - } - - // required .oslp.DeviceType deviceType = 3; - public static final int DEVICETYPE_FIELD_NUMBER = 3; - private org.opensmartgridplatform.oslp.Oslp.DeviceType deviceType_; - - @Override - public boolean hasDeviceType() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.DeviceType getDeviceType() { - return this.deviceType_; - } - - // required bool hasSchedule = 4; - public static final int HASSCHEDULE_FIELD_NUMBER = 4; - private boolean hasSchedule_; - - @Override - public boolean hasHasSchedule() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public boolean getHasSchedule() { - return this.hasSchedule_; - } - - // required uint32 randomDevice = 5; - public static final int RANDOMDEVICE_FIELD_NUMBER = 5; - private int randomDevice_; - - @Override - public boolean hasRandomDevice() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } - - @Override - public int getRandomDevice() { - return this.randomDevice_; - } - - private void initFields() { - this.deviceIdentification_ = ""; - this.ipAddress_ = com.google.protobuf.ByteString.EMPTY; - this.deviceType_ = org.opensmartgridplatform.oslp.Oslp.DeviceType.PSLD; - this.hasSchedule_ = false; - this.randomDevice_ = 0; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasDeviceIdentification()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasIpAddress()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasDeviceType()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasHasSchedule()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasRandomDevice()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, this.getDeviceIdentificationBytes()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, this.ipAddress_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, this.deviceType_.getNumber()); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(4, this.hasSchedule_); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - output.writeUInt32(5, this.randomDevice_); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, this.getDeviceIdentificationBytes()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, this.ipAddress_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(3, this.deviceType_.getNumber()); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, this.hasSchedule_); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, this.randomDevice_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_RegisterDeviceRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_RegisterDeviceRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.deviceIdentification_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.ipAddress_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.deviceType_ = org.opensmartgridplatform.oslp.Oslp.DeviceType.PSLD; - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.hasSchedule_ = false; - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.randomDevice_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000010); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest build() { - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest result = - new org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.deviceIdentification_ = this.deviceIdentification_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.ipAddress_ = this.ipAddress_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.deviceType_ = this.deviceType_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.hasSchedule_ = this.hasSchedule_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.randomDevice_ = this.randomDevice_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.getDefaultInstance()) { - return this; - } - if (other.hasDeviceIdentification()) { - this.setDeviceIdentification(other.getDeviceIdentification()); - } - if (other.hasIpAddress()) { - this.setIpAddress(other.getIpAddress()); - } - if (other.hasDeviceType()) { - this.setDeviceType(other.getDeviceType()); - } - if (other.hasHasSchedule()) { - this.setHasSchedule(other.getHasSchedule()); - } - if (other.hasRandomDevice()) { - this.setRandomDevice(other.getRandomDevice()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasDeviceIdentification()) { - - return false; - } - if (!this.hasIpAddress()) { - - return false; - } - if (!this.hasDeviceType()) { - - return false; - } - if (!this.hasHasSchedule()) { - - return false; - } - if (!this.hasRandomDevice()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - this.bitField0_ |= 0x00000001; - this.deviceIdentification_ = input.readBytes(); - break; - } - case 18: - { - this.bitField0_ |= 0x00000002; - this.ipAddress_ = input.readBytes(); - break; - } - case 24: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.DeviceType value = - org.opensmartgridplatform.oslp.Oslp.DeviceType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - this.bitField0_ |= 0x00000004; - this.deviceType_ = value; - } - break; - } - case 32: - { - this.bitField0_ |= 0x00000008; - this.hasSchedule_ = input.readBool(); - break; - } - case 40: - { - this.bitField0_ |= 0x00000010; - this.randomDevice_ = input.readUInt32(); - break; - } - } - } - } - - private int bitField0_; - - // required string deviceIdentification = 1; - private java.lang.Object deviceIdentification_ = ""; - - @Override - public boolean hasDeviceIdentification() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public String getDeviceIdentification() { - final java.lang.Object ref = this.deviceIdentification_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.deviceIdentification_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setDeviceIdentification(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.deviceIdentification_ = value; - this.onChanged(); - return this; - } - - public Builder clearDeviceIdentification() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.deviceIdentification_ = getDefaultInstance().getDeviceIdentification(); - this.onChanged(); - return this; - } - - void setDeviceIdentification(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000001; - this.deviceIdentification_ = value; - this.onChanged(); - } - - // required bytes ipAddress = 2; - private com.google.protobuf.ByteString ipAddress_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasIpAddress() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public com.google.protobuf.ByteString getIpAddress() { - return this.ipAddress_; - } - - public Builder setIpAddress(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000002; - this.ipAddress_ = value; - this.onChanged(); - return this; - } - - public Builder clearIpAddress() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.ipAddress_ = getDefaultInstance().getIpAddress(); - this.onChanged(); - return this; - } - - // required .oslp.DeviceType deviceType = 3; - private org.opensmartgridplatform.oslp.Oslp.DeviceType deviceType_ = - org.opensmartgridplatform.oslp.Oslp.DeviceType.PSLD; - - @Override - public boolean hasDeviceType() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.DeviceType getDeviceType() { - return this.deviceType_; - } - - public Builder setDeviceType(final org.opensmartgridplatform.oslp.Oslp.DeviceType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000004; - this.deviceType_ = value; - this.onChanged(); - return this; - } - - public Builder clearDeviceType() { - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.deviceType_ = org.opensmartgridplatform.oslp.Oslp.DeviceType.PSLD; - this.onChanged(); - return this; - } - - // required bool hasSchedule = 4; - private boolean hasSchedule_; - - @Override - public boolean hasHasSchedule() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public boolean getHasSchedule() { - return this.hasSchedule_; - } - - public Builder setHasSchedule(final boolean value) { - this.bitField0_ |= 0x00000008; - this.hasSchedule_ = value; - this.onChanged(); - return this; - } - - public Builder clearHasSchedule() { - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.hasSchedule_ = false; - this.onChanged(); - return this; - } - - // required uint32 randomDevice = 5; - private int randomDevice_; - - @Override - public boolean hasRandomDevice() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } - - @Override - public int getRandomDevice() { - return this.randomDevice_; - } - - public Builder setRandomDevice(final int value) { - this.bitField0_ |= 0x00000010; - this.randomDevice_ = value; - this.onChanged(); - return this; - } - - public Builder clearRandomDevice() { - this.bitField0_ = (this.bitField0_ & ~0x00000010); - this.randomDevice_ = 0; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.RegisterDeviceRequest) - } - - static { - defaultInstance = new RegisterDeviceRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.RegisterDeviceRequest) - } - - public interface RegisterDeviceResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required .oslp.Status status = 1; - boolean hasStatus(); - - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - - // required string currentTime = 2; - boolean hasCurrentTime(); - - String getCurrentTime(); - - // required uint32 randomDevice = 3; - boolean hasRandomDevice(); - - int getRandomDevice(); - - // required uint32 randomPlatform = 4; - boolean hasRandomPlatform(); - - int getRandomPlatform(); - - // optional .oslp.LocationInfo locationInfo = 5; - boolean hasLocationInfo(); - - org.opensmartgridplatform.oslp.Oslp.LocationInfo getLocationInfo(); - - org.opensmartgridplatform.oslp.Oslp.LocationInfoOrBuilder getLocationInfoOrBuilder(); - } - - public static final class RegisterDeviceResponse extends com.google.protobuf.GeneratedMessage - implements RegisterDeviceResponseOrBuilder { - // Use RegisterDeviceResponse.newBuilder() to construct. - private RegisterDeviceResponse(final Builder builder) { - super(builder); - } - - private RegisterDeviceResponse(final boolean noInit) {} - - private static final RegisterDeviceResponse defaultInstance; - - public static RegisterDeviceResponse getDefaultInstance() { - return defaultInstance; - } - - @Override - public RegisterDeviceResponse getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_RegisterDeviceResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_RegisterDeviceResponse_fieldAccessorTable; - } - - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - // required string currentTime = 2; - public static final int CURRENTTIME_FIELD_NUMBER = 2; - private java.lang.Object currentTime_; - - @Override - public boolean hasCurrentTime() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public String getCurrentTime() { - final java.lang.Object ref = this.currentTime_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.currentTime_ = s; - } - return s; - } - } - - private com.google.protobuf.ByteString getCurrentTimeBytes() { - final java.lang.Object ref = this.currentTime_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.currentTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required uint32 randomDevice = 3; - public static final int RANDOMDEVICE_FIELD_NUMBER = 3; - private int randomDevice_; - - @Override - public boolean hasRandomDevice() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public int getRandomDevice() { - return this.randomDevice_; - } - - // required uint32 randomPlatform = 4; - public static final int RANDOMPLATFORM_FIELD_NUMBER = 4; - private int randomPlatform_; - - @Override - public boolean hasRandomPlatform() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public int getRandomPlatform() { - return this.randomPlatform_; - } - - // optional .oslp.LocationInfo locationInfo = 5; - public static final int LOCATIONINFO_FIELD_NUMBER = 5; - private org.opensmartgridplatform.oslp.Oslp.LocationInfo locationInfo_; - - @Override - public boolean hasLocationInfo() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LocationInfo getLocationInfo() { - return this.locationInfo_; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LocationInfoOrBuilder getLocationInfoOrBuilder() { - return this.locationInfo_; - } - - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.currentTime_ = ""; - this.randomDevice_ = 0; - this.randomPlatform_ = 0; - this.locationInfo_ = org.opensmartgridplatform.oslp.Oslp.LocationInfo.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasCurrentTime()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasRandomDevice()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasRandomPlatform()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, this.getCurrentTimeBytes()); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeUInt32(3, this.randomDevice_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - output.writeUInt32(4, this.randomPlatform_); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, this.locationInfo_); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize(2, this.getCurrentTimeBytes()); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, this.randomDevice_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, this.randomPlatform_); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, this.locationInfo_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_RegisterDeviceResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_RegisterDeviceResponse_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getLocationInfoFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.currentTime_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.randomDevice_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.randomPlatform_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000008); - if (this.locationInfoBuilder_ == null) { - this.locationInfo_ = - org.opensmartgridplatform.oslp.Oslp.LocationInfo.getDefaultInstance(); - } else { - this.locationInfoBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000010); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse build() { - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse result = - new org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.currentTime_ = this.currentTime_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.randomDevice_ = this.randomDevice_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.randomPlatform_ = this.randomPlatform_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - if (this.locationInfoBuilder_ == null) { - result.locationInfo_ = this.locationInfo_; - } else { - result.locationInfo_ = this.locationInfoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - if (other.hasCurrentTime()) { - this.setCurrentTime(other.getCurrentTime()); - } - if (other.hasRandomDevice()) { - this.setRandomDevice(other.getRandomDevice()); - } - if (other.hasRandomPlatform()) { - this.setRandomPlatform(other.getRandomPlatform()); - } - if (other.hasLocationInfo()) { - this.mergeLocationInfo(other.getLocationInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - if (!this.hasCurrentTime()) { - - return false; - } - if (!this.hasRandomDevice()) { - - return false; - } - if (!this.hasRandomPlatform()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - case 18: - { - this.bitField0_ |= 0x00000002; - this.currentTime_ = input.readBytes(); - break; - } - case 24: - { - this.bitField0_ |= 0x00000004; - this.randomDevice_ = input.readUInt32(); - break; - } - case 32: - { - this.bitField0_ |= 0x00000008; - this.randomPlatform_ = input.readUInt32(); - break; - } - case 42: - { - final org.opensmartgridplatform.oslp.Oslp.LocationInfo.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.LocationInfo.newBuilder(); - if (this.hasLocationInfo()) { - subBuilder.mergeFrom(this.getLocationInfo()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setLocationInfo(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // required string currentTime = 2; - private java.lang.Object currentTime_ = ""; - - @Override - public boolean hasCurrentTime() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public String getCurrentTime() { - final java.lang.Object ref = this.currentTime_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.currentTime_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setCurrentTime(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000002; - this.currentTime_ = value; - this.onChanged(); - return this; - } - - public Builder clearCurrentTime() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.currentTime_ = getDefaultInstance().getCurrentTime(); - this.onChanged(); - return this; - } - - void setCurrentTime(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000002; - this.currentTime_ = value; - this.onChanged(); - } - - // required uint32 randomDevice = 3; - private int randomDevice_; - - @Override - public boolean hasRandomDevice() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public int getRandomDevice() { - return this.randomDevice_; - } - - public Builder setRandomDevice(final int value) { - this.bitField0_ |= 0x00000004; - this.randomDevice_ = value; - this.onChanged(); - return this; - } - - public Builder clearRandomDevice() { - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.randomDevice_ = 0; - this.onChanged(); - return this; - } - - // required uint32 randomPlatform = 4; - private int randomPlatform_; - - @Override - public boolean hasRandomPlatform() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public int getRandomPlatform() { - return this.randomPlatform_; - } - - public Builder setRandomPlatform(final int value) { - this.bitField0_ |= 0x00000008; - this.randomPlatform_ = value; - this.onChanged(); - return this; - } - - public Builder clearRandomPlatform() { - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.randomPlatform_ = 0; - this.onChanged(); - return this; - } - - // optional .oslp.LocationInfo locationInfo = 5; - private org.opensmartgridplatform.oslp.Oslp.LocationInfo locationInfo_ = - org.opensmartgridplatform.oslp.Oslp.LocationInfo.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.LocationInfo, - org.opensmartgridplatform.oslp.Oslp.LocationInfo.Builder, - org.opensmartgridplatform.oslp.Oslp.LocationInfoOrBuilder> - locationInfoBuilder_; - - @Override - public boolean hasLocationInfo() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LocationInfo getLocationInfo() { - if (this.locationInfoBuilder_ == null) { - return this.locationInfo_; - } else { - return this.locationInfoBuilder_.getMessage(); - } - } - - public Builder setLocationInfo(final org.opensmartgridplatform.oslp.Oslp.LocationInfo value) { - if (this.locationInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.locationInfo_ = value; - this.onChanged(); - } else { - this.locationInfoBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000010; - return this; - } - - public Builder setLocationInfo( - final org.opensmartgridplatform.oslp.Oslp.LocationInfo.Builder builderForValue) { - if (this.locationInfoBuilder_ == null) { - this.locationInfo_ = builderForValue.build(); - this.onChanged(); - } else { - this.locationInfoBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000010; - return this; - } - - public Builder mergeLocationInfo( - final org.opensmartgridplatform.oslp.Oslp.LocationInfo value) { - if (this.locationInfoBuilder_ == null) { - if (((this.bitField0_ & 0x00000010) == 0x00000010) - && this.locationInfo_ - != org.opensmartgridplatform.oslp.Oslp.LocationInfo.getDefaultInstance()) { - this.locationInfo_ = - org.opensmartgridplatform.oslp.Oslp.LocationInfo.newBuilder(this.locationInfo_) - .mergeFrom(value) - .buildPartial(); - } else { - this.locationInfo_ = value; - } - this.onChanged(); - } else { - this.locationInfoBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000010; - return this; - } - - public Builder clearLocationInfo() { - if (this.locationInfoBuilder_ == null) { - this.locationInfo_ = - org.opensmartgridplatform.oslp.Oslp.LocationInfo.getDefaultInstance(); - this.onChanged(); - } else { - this.locationInfoBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000010); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.LocationInfo.Builder getLocationInfoBuilder() { - this.bitField0_ |= 0x00000010; - this.onChanged(); - return this.getLocationInfoFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LocationInfoOrBuilder getLocationInfoOrBuilder() { - if (this.locationInfoBuilder_ != null) { - return this.locationInfoBuilder_.getMessageOrBuilder(); - } else { - return this.locationInfo_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.LocationInfo, - org.opensmartgridplatform.oslp.Oslp.LocationInfo.Builder, - org.opensmartgridplatform.oslp.Oslp.LocationInfoOrBuilder> - getLocationInfoFieldBuilder() { - if (this.locationInfoBuilder_ == null) { - this.locationInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.LocationInfo, - org.opensmartgridplatform.oslp.Oslp.LocationInfo.Builder, - org.opensmartgridplatform.oslp.Oslp.LocationInfoOrBuilder>( - this.locationInfo_, this.getParentForChildren(), this.isClean()); - this.locationInfo_ = null; - } - return this.locationInfoBuilder_; - } - - // @@protoc_insertion_point(builder_scope:oslp.RegisterDeviceResponse) - } - - static { - defaultInstance = new RegisterDeviceResponse(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.RegisterDeviceResponse) - } - - public interface StartSelfTestRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // optional bool present = 1 [default = true]; - boolean hasPresent(); - - boolean getPresent(); - } - - public static final class StartSelfTestRequest extends com.google.protobuf.GeneratedMessage - implements StartSelfTestRequestOrBuilder { - // Use StartSelfTestRequest.newBuilder() to construct. - private StartSelfTestRequest(final Builder builder) { - super(builder); - } - - private StartSelfTestRequest(final boolean noInit) {} - - private static final StartSelfTestRequest defaultInstance; - - public static StartSelfTestRequest getDefaultInstance() { - return defaultInstance; - } - - @Override - public StartSelfTestRequest getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StartSelfTestRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StartSelfTestRequest_fieldAccessorTable; - } - - private int bitField0_; - // optional bool present = 1 [default = true]; - public static final int PRESENT_FIELD_NUMBER = 1; - private boolean present_; - - @Override - public boolean hasPresent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public boolean getPresent() { - return this.present_; - } - - private void initFields() { - this.present_ = true; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(1, this.present_); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, this.present_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StartSelfTestRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StartSelfTestRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.present_ = true; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest build() { - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest result = - new org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.present_ = this.present_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.getDefaultInstance()) { - return this; - } - if (other.hasPresent()) { - this.setPresent(other.getPresent()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - this.bitField0_ |= 0x00000001; - this.present_ = input.readBool(); - break; - } - } - } - } - - private int bitField0_; - - // optional bool present = 1 [default = true]; - private boolean present_ = true; - - @Override - public boolean hasPresent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public boolean getPresent() { - return this.present_; - } - - public Builder setPresent(final boolean value) { - this.bitField0_ |= 0x00000001; - this.present_ = value; - this.onChanged(); - return this; - } - - public Builder clearPresent() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.present_ = true; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.StartSelfTestRequest) - } - - static { - defaultInstance = new StartSelfTestRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.StartSelfTestRequest) - } - - public interface StartSelfTestResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required .oslp.Status status = 1; - boolean hasStatus(); - - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - } - - public static final class StartSelfTestResponse extends com.google.protobuf.GeneratedMessage - implements StartSelfTestResponseOrBuilder { - // Use StartSelfTestResponse.newBuilder() to construct. - private StartSelfTestResponse(final Builder builder) { - super(builder); - } - - private StartSelfTestResponse(final boolean noInit) {} - - private static final StartSelfTestResponse defaultInstance; - - public static StartSelfTestResponse getDefaultInstance() { - return defaultInstance; - } - - @Override - public StartSelfTestResponse getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StartSelfTestResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StartSelfTestResponse_fieldAccessorTable; - } - - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StartSelfTestResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StartSelfTestResponse_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse build() { - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse result = - new org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.StartSelfTestResponse) - } - - static { - defaultInstance = new StartSelfTestResponse(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.StartSelfTestResponse) - } - - public interface StopSelfTestRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // optional bool present = 1 [default = true]; - boolean hasPresent(); - - boolean getPresent(); - } - - public static final class StopSelfTestRequest extends com.google.protobuf.GeneratedMessage - implements StopSelfTestRequestOrBuilder { - // Use StopSelfTestRequest.newBuilder() to construct. - private StopSelfTestRequest(final Builder builder) { - super(builder); - } - - private StopSelfTestRequest(final boolean noInit) {} - - private static final StopSelfTestRequest defaultInstance; - - public static StopSelfTestRequest getDefaultInstance() { - return defaultInstance; - } - - @Override - public StopSelfTestRequest getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StopSelfTestRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StopSelfTestRequest_fieldAccessorTable; - } - - private int bitField0_; - // optional bool present = 1 [default = true]; - public static final int PRESENT_FIELD_NUMBER = 1; - private boolean present_; - - @Override - public boolean hasPresent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public boolean getPresent() { - return this.present_; - } - - private void initFields() { - this.present_ = true; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(1, this.present_); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, this.present_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StopSelfTestRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StopSelfTestRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.present_ = true; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest build() { - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest result = - new org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.present_ = this.present_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest other) { - if (other == org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.getDefaultInstance()) { - return this; - } - if (other.hasPresent()) { - this.setPresent(other.getPresent()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - this.bitField0_ |= 0x00000001; - this.present_ = input.readBool(); - break; - } - } - } - } - - private int bitField0_; - - // optional bool present = 1 [default = true]; - private boolean present_ = true; - - @Override - public boolean hasPresent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public boolean getPresent() { - return this.present_; - } - - public Builder setPresent(final boolean value) { - this.bitField0_ |= 0x00000001; - this.present_ = value; - this.onChanged(); - return this; - } - - public Builder clearPresent() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.present_ = true; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.StopSelfTestRequest) - } - - static { - defaultInstance = new StopSelfTestRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.StopSelfTestRequest) - } - - public interface StopSelfTestResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required .oslp.Status status = 1; - boolean hasStatus(); - - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - - // required bytes selfTestResult = 2; - boolean hasSelfTestResult(); - - com.google.protobuf.ByteString getSelfTestResult(); - } - - public static final class StopSelfTestResponse extends com.google.protobuf.GeneratedMessage - implements StopSelfTestResponseOrBuilder { - // Use StopSelfTestResponse.newBuilder() to construct. - private StopSelfTestResponse(final Builder builder) { - super(builder); - } - - private StopSelfTestResponse(final boolean noInit) {} - - private static final StopSelfTestResponse defaultInstance; - - public static StopSelfTestResponse getDefaultInstance() { - return defaultInstance; - } - - @Override - public StopSelfTestResponse getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StopSelfTestResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StopSelfTestResponse_fieldAccessorTable; - } - - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - // required bytes selfTestResult = 2; - public static final int SELFTESTRESULT_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString selfTestResult_; - - @Override - public boolean hasSelfTestResult() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public com.google.protobuf.ByteString getSelfTestResult() { - return this.selfTestResult_; - } - - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.selfTestResult_ = com.google.protobuf.ByteString.EMPTY; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasSelfTestResult()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, this.selfTestResult_); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, this.selfTestResult_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StopSelfTestResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_StopSelfTestResponse_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.selfTestResult_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse build() { - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse result = - new org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.selfTestResult_ = this.selfTestResult_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - if (other.hasSelfTestResult()) { - this.setSelfTestResult(other.getSelfTestResult()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - if (!this.hasSelfTestResult()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - case 18: - { - this.bitField0_ |= 0x00000002; - this.selfTestResult_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // required bytes selfTestResult = 2; - private com.google.protobuf.ByteString selfTestResult_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasSelfTestResult() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public com.google.protobuf.ByteString getSelfTestResult() { - return this.selfTestResult_; - } - - public Builder setSelfTestResult(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000002; - this.selfTestResult_ = value; - this.onChanged(); - return this; - } - - public Builder clearSelfTestResult() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.selfTestResult_ = getDefaultInstance().getSelfTestResult(); - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.StopSelfTestResponse) - } - - static { - defaultInstance = new StopSelfTestResponse(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.StopSelfTestResponse) - } - - public interface GetFirmwareVersionRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // optional bool present = 1 [default = true]; - boolean hasPresent(); - - boolean getPresent(); - } - - public static final class GetFirmwareVersionRequest extends com.google.protobuf.GeneratedMessage - implements GetFirmwareVersionRequestOrBuilder { - // Use GetFirmwareVersionRequest.newBuilder() to construct. - private GetFirmwareVersionRequest(final Builder builder) { - super(builder); - } - - private GetFirmwareVersionRequest(final boolean noInit) {} - - private static final GetFirmwareVersionRequest defaultInstance; - - public static GetFirmwareVersionRequest getDefaultInstance() { - return defaultInstance; - } - - @Override - public GetFirmwareVersionRequest getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetFirmwareVersionRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetFirmwareVersionRequest_fieldAccessorTable; - } - - private int bitField0_; - // optional bool present = 1 [default = true]; - public static final int PRESENT_FIELD_NUMBER = 1; - private boolean present_; - - @Override - public boolean hasPresent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public boolean getPresent() { - return this.present_; - } - - private void initFields() { - this.present_ = true; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(1, this.present_); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, this.present_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetFirmwareVersionRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetFirmwareVersionRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.present_ = true; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest build() { - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest result = - new org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.present_ = this.present_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.getDefaultInstance()) { - return this; - } - if (other.hasPresent()) { - this.setPresent(other.getPresent()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - this.bitField0_ |= 0x00000001; - this.present_ = input.readBool(); - break; - } - } - } - } - - private int bitField0_; - - // optional bool present = 1 [default = true]; - private boolean present_ = true; - - @Override - public boolean hasPresent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public boolean getPresent() { - return this.present_; - } - - public Builder setPresent(final boolean value) { - this.bitField0_ |= 0x00000001; - this.present_ = value; - this.onChanged(); - return this; - } - - public Builder clearPresent() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.present_ = true; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.GetFirmwareVersionRequest) - } - - static { - defaultInstance = new GetFirmwareVersionRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.GetFirmwareVersionRequest) - } - - public interface GetFirmwareVersionResponseOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string firmwareVersion = 1; - boolean hasFirmwareVersion(); - - String getFirmwareVersion(); - } - - public static final class GetFirmwareVersionResponse extends com.google.protobuf.GeneratedMessage - implements GetFirmwareVersionResponseOrBuilder { - // Use GetFirmwareVersionResponse.newBuilder() to construct. - private GetFirmwareVersionResponse(final Builder builder) { - super(builder); - } - - private GetFirmwareVersionResponse(final boolean noInit) {} - - private static final GetFirmwareVersionResponse defaultInstance; - - public static GetFirmwareVersionResponse getDefaultInstance() { - return defaultInstance; - } - - @Override - public GetFirmwareVersionResponse getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetFirmwareVersionResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetFirmwareVersionResponse_fieldAccessorTable; - } - - private int bitField0_; - // required string firmwareVersion = 1; - public static final int FIRMWAREVERSION_FIELD_NUMBER = 1; - private java.lang.Object firmwareVersion_; - - @Override - public boolean hasFirmwareVersion() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public String getFirmwareVersion() { - final java.lang.Object ref = this.firmwareVersion_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.firmwareVersion_ = s; - } - return s; - } - } - - private com.google.protobuf.ByteString getFirmwareVersionBytes() { - final java.lang.Object ref = this.firmwareVersion_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.firmwareVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - this.firmwareVersion_ = ""; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasFirmwareVersion()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, this.getFirmwareVersionBytes()); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, this.getFirmwareVersionBytes()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetFirmwareVersionResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetFirmwareVersionResponse_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.firmwareVersion_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse build() { - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse result = - new org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.firmwareVersion_ = this.firmwareVersion_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse - .getDefaultInstance()) { - return this; - } - if (other.hasFirmwareVersion()) { - this.setFirmwareVersion(other.getFirmwareVersion()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasFirmwareVersion()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - this.bitField0_ |= 0x00000001; - this.firmwareVersion_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required string firmwareVersion = 1; - private java.lang.Object firmwareVersion_ = ""; - - @Override - public boolean hasFirmwareVersion() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public String getFirmwareVersion() { - final java.lang.Object ref = this.firmwareVersion_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.firmwareVersion_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setFirmwareVersion(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.firmwareVersion_ = value; - this.onChanged(); - return this; - } - - public Builder clearFirmwareVersion() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.firmwareVersion_ = getDefaultInstance().getFirmwareVersion(); - this.onChanged(); - return this; - } - - void setFirmwareVersion(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000001; - this.firmwareVersion_ = value; - this.onChanged(); - } - - // @@protoc_insertion_point(builder_scope:oslp.GetFirmwareVersionResponse) - } - - static { - defaultInstance = new GetFirmwareVersionResponse(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.GetFirmwareVersionResponse) - } - - public interface UpdateFirmwareRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required string firmwareDomain = 1; - boolean hasFirmwareDomain(); - - String getFirmwareDomain(); - - // required string firmwareUrl = 2; - boolean hasFirmwareUrl(); - - String getFirmwareUrl(); - } - - public static final class UpdateFirmwareRequest extends com.google.protobuf.GeneratedMessage - implements UpdateFirmwareRequestOrBuilder { - // Use UpdateFirmwareRequest.newBuilder() to construct. - private UpdateFirmwareRequest(final Builder builder) { - super(builder); - } - - private UpdateFirmwareRequest(final boolean noInit) {} - - private static final UpdateFirmwareRequest defaultInstance; - - public static UpdateFirmwareRequest getDefaultInstance() { - return defaultInstance; - } - - @Override - public UpdateFirmwareRequest getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateFirmwareRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateFirmwareRequest_fieldAccessorTable; - } - - private int bitField0_; - // required string firmwareDomain = 1; - public static final int FIRMWAREDOMAIN_FIELD_NUMBER = 1; - private java.lang.Object firmwareDomain_; - - @Override - public boolean hasFirmwareDomain() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public String getFirmwareDomain() { - final java.lang.Object ref = this.firmwareDomain_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.firmwareDomain_ = s; - } - return s; - } - } - - private com.google.protobuf.ByteString getFirmwareDomainBytes() { - final java.lang.Object ref = this.firmwareDomain_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.firmwareDomain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string firmwareUrl = 2; - public static final int FIRMWAREURL_FIELD_NUMBER = 2; - private java.lang.Object firmwareUrl_; - - @Override - public boolean hasFirmwareUrl() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public String getFirmwareUrl() { - final java.lang.Object ref = this.firmwareUrl_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.firmwareUrl_ = s; - } - return s; - } - } - - private com.google.protobuf.ByteString getFirmwareUrlBytes() { - final java.lang.Object ref = this.firmwareUrl_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.firmwareUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - this.firmwareDomain_ = ""; - this.firmwareUrl_ = ""; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasFirmwareDomain()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasFirmwareUrl()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, this.getFirmwareDomainBytes()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, this.getFirmwareUrlBytes()); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, this.getFirmwareDomainBytes()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize(2, this.getFirmwareUrlBytes()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateFirmwareRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateFirmwareRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.firmwareDomain_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.firmwareUrl_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest build() { - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest result = - new org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.firmwareDomain_ = this.firmwareDomain_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.firmwareUrl_ = this.firmwareUrl_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.getDefaultInstance()) { - return this; - } - if (other.hasFirmwareDomain()) { - this.setFirmwareDomain(other.getFirmwareDomain()); - } - if (other.hasFirmwareUrl()) { - this.setFirmwareUrl(other.getFirmwareUrl()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasFirmwareDomain()) { - - return false; - } - if (!this.hasFirmwareUrl()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - this.bitField0_ |= 0x00000001; - this.firmwareDomain_ = input.readBytes(); - break; - } - case 18: - { - this.bitField0_ |= 0x00000002; - this.firmwareUrl_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required string firmwareDomain = 1; - private java.lang.Object firmwareDomain_ = ""; - - @Override - public boolean hasFirmwareDomain() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public String getFirmwareDomain() { - final java.lang.Object ref = this.firmwareDomain_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.firmwareDomain_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setFirmwareDomain(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.firmwareDomain_ = value; - this.onChanged(); - return this; - } - - public Builder clearFirmwareDomain() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.firmwareDomain_ = getDefaultInstance().getFirmwareDomain(); - this.onChanged(); - return this; - } - - void setFirmwareDomain(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000001; - this.firmwareDomain_ = value; - this.onChanged(); - } - - // required string firmwareUrl = 2; - private java.lang.Object firmwareUrl_ = ""; - - @Override - public boolean hasFirmwareUrl() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public String getFirmwareUrl() { - final java.lang.Object ref = this.firmwareUrl_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.firmwareUrl_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setFirmwareUrl(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000002; - this.firmwareUrl_ = value; - this.onChanged(); - return this; - } - - public Builder clearFirmwareUrl() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.firmwareUrl_ = getDefaultInstance().getFirmwareUrl(); - this.onChanged(); - return this; - } - - void setFirmwareUrl(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000002; - this.firmwareUrl_ = value; - this.onChanged(); - } - - // @@protoc_insertion_point(builder_scope:oslp.UpdateFirmwareRequest) - } - - static { - defaultInstance = new UpdateFirmwareRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.UpdateFirmwareRequest) - } - - public interface UpdateFirmwareResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required .oslp.Status status = 1; - boolean hasStatus(); - - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - } - - public static final class UpdateFirmwareResponse extends com.google.protobuf.GeneratedMessage - implements UpdateFirmwareResponseOrBuilder { - // Use UpdateFirmwareResponse.newBuilder() to construct. - private UpdateFirmwareResponse(final Builder builder) { - super(builder); - } - - private UpdateFirmwareResponse(final boolean noInit) {} - - private static final UpdateFirmwareResponse defaultInstance; - - public static UpdateFirmwareResponse getDefaultInstance() { - return defaultInstance; - } - - @Override - public UpdateFirmwareResponse getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateFirmwareResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateFirmwareResponse_fieldAccessorTable; - } - - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateFirmwareResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateFirmwareResponse_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse build() { - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse result = - new org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.UpdateFirmwareResponse) - } - - static { - defaultInstance = new UpdateFirmwareResponse(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.UpdateFirmwareResponse) - } - - public interface SwitchFirmwareRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required string newFirmwareVersion = 1; - boolean hasNewFirmwareVersion(); - - String getNewFirmwareVersion(); - } - - public static final class SwitchFirmwareRequest extends com.google.protobuf.GeneratedMessage - implements SwitchFirmwareRequestOrBuilder { - // Use SwitchFirmwareRequest.newBuilder() to construct. - private SwitchFirmwareRequest(final Builder builder) { - super(builder); - } - - private SwitchFirmwareRequest(final boolean noInit) {} - - private static final SwitchFirmwareRequest defaultInstance; - - public static SwitchFirmwareRequest getDefaultInstance() { - return defaultInstance; - } - - @Override - public SwitchFirmwareRequest getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchFirmwareRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchFirmwareRequest_fieldAccessorTable; - } - - private int bitField0_; - // required string newFirmwareVersion = 1; - public static final int NEWFIRMWAREVERSION_FIELD_NUMBER = 1; - private java.lang.Object newFirmwareVersion_; - - @Override - public boolean hasNewFirmwareVersion() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public String getNewFirmwareVersion() { - final java.lang.Object ref = this.newFirmwareVersion_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.newFirmwareVersion_ = s; - } - return s; - } - } - - private com.google.protobuf.ByteString getNewFirmwareVersionBytes() { - final java.lang.Object ref = this.newFirmwareVersion_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.newFirmwareVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - this.newFirmwareVersion_ = ""; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasNewFirmwareVersion()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, this.getNewFirmwareVersionBytes()); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, this.getNewFirmwareVersionBytes()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchFirmwareRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchFirmwareRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.newFirmwareVersion_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest build() { - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest result = - new org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.newFirmwareVersion_ = this.newFirmwareVersion_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.getDefaultInstance()) { - return this; - } - if (other.hasNewFirmwareVersion()) { - this.setNewFirmwareVersion(other.getNewFirmwareVersion()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasNewFirmwareVersion()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - this.bitField0_ |= 0x00000001; - this.newFirmwareVersion_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required string newFirmwareVersion = 1; - private java.lang.Object newFirmwareVersion_ = ""; - - @Override - public boolean hasNewFirmwareVersion() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public String getNewFirmwareVersion() { - final java.lang.Object ref = this.newFirmwareVersion_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.newFirmwareVersion_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setNewFirmwareVersion(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.newFirmwareVersion_ = value; - this.onChanged(); - return this; - } - - public Builder clearNewFirmwareVersion() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.newFirmwareVersion_ = getDefaultInstance().getNewFirmwareVersion(); - this.onChanged(); - return this; - } - - void setNewFirmwareVersion(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000001; - this.newFirmwareVersion_ = value; - this.onChanged(); - } - - // @@protoc_insertion_point(builder_scope:oslp.SwitchFirmwareRequest) - } - - static { - defaultInstance = new SwitchFirmwareRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.SwitchFirmwareRequest) - } - - public interface SwitchFirmwareResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required .oslp.Status status = 1; - boolean hasStatus(); - - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - } - - public static final class SwitchFirmwareResponse extends com.google.protobuf.GeneratedMessage - implements SwitchFirmwareResponseOrBuilder { - // Use SwitchFirmwareResponse.newBuilder() to construct. - private SwitchFirmwareResponse(final Builder builder) { - super(builder); - } - - private SwitchFirmwareResponse(final boolean noInit) {} - - private static final SwitchFirmwareResponse defaultInstance; - - public static SwitchFirmwareResponse getDefaultInstance() { - return defaultInstance; - } - - @Override - public SwitchFirmwareResponse getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchFirmwareResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchFirmwareResponse_fieldAccessorTable; - } - - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchFirmwareResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchFirmwareResponse_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse build() { - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse result = - new org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.SwitchFirmwareResponse) - } - - static { - defaultInstance = new SwitchFirmwareResponse(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.SwitchFirmwareResponse) - } - - public interface SetLightRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // repeated .oslp.LightValue values = 1; - java.util.List getValuesList(); - - org.opensmartgridplatform.oslp.Oslp.LightValue getValues(int index); - - int getValuesCount(); - - java.util.List - getValuesOrBuilderList(); - - org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValuesOrBuilder(int index); - } - - public static final class SetLightRequest extends com.google.protobuf.GeneratedMessage - implements SetLightRequestOrBuilder { - // Use SetLightRequest.newBuilder() to construct. - private SetLightRequest(final Builder builder) { - super(builder); - } - - private SetLightRequest(final boolean noInit) {} - - private static final SetLightRequest defaultInstance; - - public static SetLightRequest getDefaultInstance() { - return defaultInstance; - } - - @Override - public SetLightRequest getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetLightRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetLightRequest_fieldAccessorTable; - } - - // repeated .oslp.LightValue values = 1; - public static final int VALUES_FIELD_NUMBER = 1; - private java.util.List values_; - - @Override - public java.util.List getValuesList() { - return this.values_; - } - - @Override - public java.util.List - getValuesOrBuilderList() { - return this.values_; - } - - @Override - public int getValuesCount() { - return this.values_.size(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightValue getValues(final int index) { - return this.values_.get(index); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValuesOrBuilder( - final int index) { - return this.values_.get(index); - } - - private void initFields() { - this.values_ = java.util.Collections.emptyList(); - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - for (int i = 0; i < this.getValuesCount(); i++) { - if (!this.getValues(i).isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - for (int i = 0; i < this.values_.size(); i++) { - output.writeMessage(1, this.values_.get(i)); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - for (int i = 0; i < this.values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, this.values_.get(i)); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SetLightRequest prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SetLightRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetLightRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetLightRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.SetLightRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getValuesFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - if (this.valuesBuilder_ == null) { - this.values_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000001); - } else { - this.valuesBuilder_.clear(); - } - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SetLightRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetLightRequest getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SetLightRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetLightRequest build() { - final org.opensmartgridplatform.oslp.Oslp.SetLightRequest result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SetLightRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SetLightRequest result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetLightRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SetLightRequest result = - new org.opensmartgridplatform.oslp.Oslp.SetLightRequest(this); - final int from_bitField0_ = this.bitField0_; - if (this.valuesBuilder_ == null) { - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - this.values_ = java.util.Collections.unmodifiableList(this.values_); - this.bitField0_ = (this.bitField0_ & ~0x00000001); - } - result.values_ = this.values_; - } else { - result.values_ = this.valuesBuilder_.build(); - } - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetLightRequest) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetLightRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.SetLightRequest other) { - if (other == org.opensmartgridplatform.oslp.Oslp.SetLightRequest.getDefaultInstance()) { - return this; - } - if (this.valuesBuilder_ == null) { - if (!other.values_.isEmpty()) { - if (this.values_.isEmpty()) { - this.values_ = other.values_; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - } else { - this.ensureValuesIsMutable(); - this.values_.addAll(other.values_); - } - this.onChanged(); - } - } else { - if (!other.values_.isEmpty()) { - if (this.valuesBuilder_.isEmpty()) { - this.valuesBuilder_.dispose(); - this.valuesBuilder_ = null; - this.values_ = other.values_; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.valuesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? this.getValuesFieldBuilder() - : null; - } else { - this.valuesBuilder_.addAllMessages(other.values_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - for (int i = 0; i < this.getValuesCount(); i++) { - if (!this.getValues(i).isInitialized()) { - - return false; - } - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - final org.opensmartgridplatform.oslp.Oslp.LightValue.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.LightValue.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - this.addValues(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // repeated .oslp.LightValue values = 1; - private java.util.List values_ = - java.util.Collections.emptyList(); - - private void ensureValuesIsMutable() { - if (!((this.bitField0_ & 0x00000001) == 0x00000001)) { - this.values_ = - new java.util.ArrayList(this.values_); - this.bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.LightValue, - org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, - org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder> - valuesBuilder_; - - @Override - public java.util.List getValuesList() { - if (this.valuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(this.values_); - } else { - return this.valuesBuilder_.getMessageList(); - } - } - - @Override - public int getValuesCount() { - if (this.valuesBuilder_ == null) { - return this.values_.size(); - } else { - return this.valuesBuilder_.getCount(); - } - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightValue getValues(final int index) { - if (this.valuesBuilder_ == null) { - return this.values_.get(index); - } else { - return this.valuesBuilder_.getMessage(index); - } - } - - public Builder setValues( - final int index, final org.opensmartgridplatform.oslp.Oslp.LightValue value) { - if (this.valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureValuesIsMutable(); - this.values_.set(index, value); - this.onChanged(); - } else { - this.valuesBuilder_.setMessage(index, value); - } - return this; - } - - public Builder setValues( - final int index, - final org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { - if (this.valuesBuilder_ == null) { - this.ensureValuesIsMutable(); - this.values_.set(index, builderForValue.build()); - this.onChanged(); - } else { - this.valuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addValues(final org.opensmartgridplatform.oslp.Oslp.LightValue value) { - if (this.valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureValuesIsMutable(); - this.values_.add(value); - this.onChanged(); - } else { - this.valuesBuilder_.addMessage(value); - } - return this; - } - - public Builder addValues( - final int index, final org.opensmartgridplatform.oslp.Oslp.LightValue value) { - if (this.valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureValuesIsMutable(); - this.values_.add(index, value); - this.onChanged(); - } else { - this.valuesBuilder_.addMessage(index, value); - } - return this; - } - - public Builder addValues( - final org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { - if (this.valuesBuilder_ == null) { - this.ensureValuesIsMutable(); - this.values_.add(builderForValue.build()); - this.onChanged(); - } else { - this.valuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - public Builder addValues( - final int index, - final org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { - if (this.valuesBuilder_ == null) { - this.ensureValuesIsMutable(); - this.values_.add(index, builderForValue.build()); - this.onChanged(); - } else { - this.valuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addAllValues( - final java.lang.Iterable - values) { - if (this.valuesBuilder_ == null) { - this.ensureValuesIsMutable(); - super.addAll(values, this.values_); - this.onChanged(); - } else { - this.valuesBuilder_.addAllMessages(values); - } - return this; - } - - public Builder clearValues() { - if (this.valuesBuilder_ == null) { - this.values_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.onChanged(); - } else { - this.valuesBuilder_.clear(); - } - return this; - } - - public Builder removeValues(final int index) { - if (this.valuesBuilder_ == null) { - this.ensureValuesIsMutable(); - this.values_.remove(index); - this.onChanged(); - } else { - this.valuesBuilder_.remove(index); - } - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder getValuesBuilder( - final int index) { - return this.getValuesFieldBuilder().getBuilder(index); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValuesOrBuilder( - final int index) { - if (this.valuesBuilder_ == null) { - return this.values_.get(index); - } else { - return this.valuesBuilder_.getMessageOrBuilder(index); - } - } - - @Override - public java.util.List - getValuesOrBuilderList() { - if (this.valuesBuilder_ != null) { - return this.valuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(this.values_); - } - } - - public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder addValuesBuilder() { - return this.getValuesFieldBuilder() - .addBuilder(org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance()); - } - - public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder addValuesBuilder( - final int index) { - return this.getValuesFieldBuilder() - .addBuilder(index, org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance()); - } - - public java.util.List - getValuesBuilderList() { - return this.getValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.LightValue, - org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, - org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder> - getValuesFieldBuilder() { - if (this.valuesBuilder_ == null) { - this.valuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.LightValue, - org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, - org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder>( - this.values_, - ((this.bitField0_ & 0x00000001) == 0x00000001), - this.getParentForChildren(), - this.isClean()); - this.values_ = null; - } - return this.valuesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:oslp.SetLightRequest) - } - - static { - defaultInstance = new SetLightRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.SetLightRequest) - } - - public interface SetLightResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required .oslp.Status status = 1; - boolean hasStatus(); - - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - } - - public static final class SetLightResponse extends com.google.protobuf.GeneratedMessage - implements SetLightResponseOrBuilder { - // Use SetLightResponse.newBuilder() to construct. - private SetLightResponse(final Builder builder) { - super(builder); - } - - private SetLightResponse(final boolean noInit) {} - - private static final SetLightResponse defaultInstance; - - public static SetLightResponse getDefaultInstance() { - return defaultInstance; - } - - @Override - public SetLightResponse getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetLightResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetLightResponse_fieldAccessorTable; - } - - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SetLightResponse prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SetLightResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetLightResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetLightResponse_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.SetLightResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SetLightResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetLightResponse getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SetLightResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetLightResponse build() { - final org.opensmartgridplatform.oslp.Oslp.SetLightResponse result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SetLightResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SetLightResponse result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetLightResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SetLightResponse result = - new org.opensmartgridplatform.oslp.Oslp.SetLightResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetLightResponse) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetLightResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.SetLightResponse other) { - if (other == org.opensmartgridplatform.oslp.Oslp.SetLightResponse.getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.SetLightResponse) - } - - static { - defaultInstance = new SetLightResponse(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.SetLightResponse) - } - - public interface GetStatusRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // optional bool present = 1 [default = true]; - boolean hasPresent(); - - boolean getPresent(); - } - - public static final class GetStatusRequest extends com.google.protobuf.GeneratedMessage - implements GetStatusRequestOrBuilder { - // Use GetStatusRequest.newBuilder() to construct. - private GetStatusRequest(final Builder builder) { - super(builder); - } - - private GetStatusRequest(final boolean noInit) {} - - private static final GetStatusRequest defaultInstance; - - public static GetStatusRequest getDefaultInstance() { - return defaultInstance; - } - - @Override - public GetStatusRequest getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetStatusRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetStatusRequest_fieldAccessorTable; - } - - private int bitField0_; - // optional bool present = 1 [default = true]; - public static final int PRESENT_FIELD_NUMBER = 1; - private boolean present_; - - @Override - public boolean hasPresent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public boolean getPresent() { - return this.present_; - } - - private void initFields() { - this.present_ = true; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(1, this.present_); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, this.present_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.GetStatusRequest prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.GetStatusRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetStatusRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetStatusRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.present_ = true; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetStatusRequest getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetStatusRequest build() { - final org.opensmartgridplatform.oslp.Oslp.GetStatusRequest result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.GetStatusRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.GetStatusRequest result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetStatusRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.GetStatusRequest result = - new org.opensmartgridplatform.oslp.Oslp.GetStatusRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.present_ = this.present_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetStatusRequest) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.GetStatusRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.GetStatusRequest other) { - if (other == org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.getDefaultInstance()) { - return this; - } - if (other.hasPresent()) { - this.setPresent(other.getPresent()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - this.bitField0_ |= 0x00000001; - this.present_ = input.readBool(); - break; - } - } - } - } - - private int bitField0_; - - // optional bool present = 1 [default = true]; - private boolean present_ = true; - - @Override - public boolean hasPresent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public boolean getPresent() { - return this.present_; - } - - public Builder setPresent(final boolean value) { - this.bitField0_ |= 0x00000001; - this.present_ = value; - this.onChanged(); - return this; - } - - public Builder clearPresent() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.present_ = true; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.GetStatusRequest) - } - - static { - defaultInstance = new GetStatusRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.GetStatusRequest) - } - - public interface GetStatusResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required .oslp.Status status = 1; - boolean hasStatus(); - - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - - // repeated .oslp.LightValue value = 2; - java.util.List getValueList(); - - org.opensmartgridplatform.oslp.Oslp.LightValue getValue(int index); - - int getValueCount(); - - java.util.List - getValueOrBuilderList(); - - org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValueOrBuilder(int index); - - // required .oslp.LinkType preferredLinktype = 3; - boolean hasPreferredLinktype(); - - org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinktype(); - - // required .oslp.LinkType actualLinktype = 4; - boolean hasActualLinktype(); - - org.opensmartgridplatform.oslp.Oslp.LinkType getActualLinktype(); - - // required .oslp.LightType lightType = 5; - boolean hasLightType(); - - org.opensmartgridplatform.oslp.Oslp.LightType getLightType(); - - // required uint32 eventNotificationMask = 6; - boolean hasEventNotificationMask(); - - int getEventNotificationMask(); - - // optional uint32 numberOfOutputs = 7; - boolean hasNumberOfOutputs(); - - int getNumberOfOutputs(); - - // optional uint32 dcOutputVoltageMaximum = 8; - boolean hasDcOutputVoltageMaximum(); - - int getDcOutputVoltageMaximum(); - - // optional uint32 dcOutputVoltageCurrent = 9; - boolean hasDcOutputVoltageCurrent(); - - int getDcOutputVoltageCurrent(); - - // optional uint32 maximumOutputPowerOnDcOutput = 10; - boolean hasMaximumOutputPowerOnDcOutput(); - - int getMaximumOutputPowerOnDcOutput(); - - // optional bytes serialNumber = 11; - boolean hasSerialNumber(); - - com.google.protobuf.ByteString getSerialNumber(); - - // optional bytes macAddress = 12; - boolean hasMacAddress(); - - com.google.protobuf.ByteString getMacAddress(); - - // optional string hardwareId = 13; - boolean hasHardwareId(); - - String getHardwareId(); - - // optional uint32 internalFlashMemSize = 14; - boolean hasInternalFlashMemSize(); - - int getInternalFlashMemSize(); - - // optional uint32 externalFlashMemSize = 15; - boolean hasExternalFlashMemSize(); - - int getExternalFlashMemSize(); - - // optional uint32 lastInternalTestResultCode = 16; - boolean hasLastInternalTestResultCode(); - - int getLastInternalTestResultCode(); - - // optional uint32 startupCounter = 17; - boolean hasStartupCounter(); - - int getStartupCounter(); - - // optional string bootLoaderVersion = 18; - boolean hasBootLoaderVersion(); - - String getBootLoaderVersion(); - - // optional string firmwareVersion = 19; - boolean hasFirmwareVersion(); - - String getFirmwareVersion(); - - // optional bytes currentConfigurationBackUsed = 20; - boolean hasCurrentConfigurationBackUsed(); - - com.google.protobuf.ByteString getCurrentConfigurationBackUsed(); - - // optional string name = 21; - boolean hasName(); - - String getName(); - - // optional string currentTime = 22; - boolean hasCurrentTime(); - - String getCurrentTime(); - - // optional string currentIp = 23; - boolean hasCurrentIp(); - - String getCurrentIp(); - } - - public static final class GetStatusResponse extends com.google.protobuf.GeneratedMessage - implements GetStatusResponseOrBuilder { - // Use GetStatusResponse.newBuilder() to construct. - private GetStatusResponse(final Builder builder) { - super(builder); - } - - private GetStatusResponse(final boolean noInit) {} - - private static final GetStatusResponse defaultInstance; - - public static GetStatusResponse getDefaultInstance() { - return defaultInstance; - } - - @Override - public GetStatusResponse getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetStatusResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetStatusResponse_fieldAccessorTable; - } - - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - // repeated .oslp.LightValue value = 2; - public static final int VALUE_FIELD_NUMBER = 2; - private java.util.List value_; - - @Override - public java.util.List getValueList() { - return this.value_; - } - - @Override - public java.util.List - getValueOrBuilderList() { - return this.value_; - } - - @Override - public int getValueCount() { - return this.value_.size(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightValue getValue(final int index) { - return this.value_.get(index); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValueOrBuilder( - final int index) { - return this.value_.get(index); - } - - // required .oslp.LinkType preferredLinktype = 3; - public static final int PREFERREDLINKTYPE_FIELD_NUMBER = 3; - private org.opensmartgridplatform.oslp.Oslp.LinkType preferredLinktype_; - - @Override - public boolean hasPreferredLinktype() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinktype() { - return this.preferredLinktype_; - } - - // required .oslp.LinkType actualLinktype = 4; - public static final int ACTUALLINKTYPE_FIELD_NUMBER = 4; - private org.opensmartgridplatform.oslp.Oslp.LinkType actualLinktype_; - - @Override - public boolean hasActualLinktype() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LinkType getActualLinktype() { - return this.actualLinktype_; - } - - // required .oslp.LightType lightType = 5; - public static final int LIGHTTYPE_FIELD_NUMBER = 5; - private org.opensmartgridplatform.oslp.Oslp.LightType lightType_; - - @Override - public boolean hasLightType() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightType getLightType() { - return this.lightType_; - } - - // required uint32 eventNotificationMask = 6; - public static final int EVENTNOTIFICATIONMASK_FIELD_NUMBER = 6; - private int eventNotificationMask_; - - @Override - public boolean hasEventNotificationMask() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } - - @Override - public int getEventNotificationMask() { - return this.eventNotificationMask_; - } - - // optional uint32 numberOfOutputs = 7; - public static final int NUMBEROFOUTPUTS_FIELD_NUMBER = 7; - private int numberOfOutputs_; - - @Override - public boolean hasNumberOfOutputs() { - return ((this.bitField0_ & 0x00000020) == 0x00000020); - } - - @Override - public int getNumberOfOutputs() { - return this.numberOfOutputs_; - } - - // optional uint32 dcOutputVoltageMaximum = 8; - public static final int DCOUTPUTVOLTAGEMAXIMUM_FIELD_NUMBER = 8; - private int dcOutputVoltageMaximum_; - - @Override - public boolean hasDcOutputVoltageMaximum() { - return ((this.bitField0_ & 0x00000040) == 0x00000040); - } - - @Override - public int getDcOutputVoltageMaximum() { - return this.dcOutputVoltageMaximum_; - } - - // optional uint32 dcOutputVoltageCurrent = 9; - public static final int DCOUTPUTVOLTAGECURRENT_FIELD_NUMBER = 9; - private int dcOutputVoltageCurrent_; - - @Override - public boolean hasDcOutputVoltageCurrent() { - return ((this.bitField0_ & 0x00000080) == 0x00000080); - } - - @Override - public int getDcOutputVoltageCurrent() { - return this.dcOutputVoltageCurrent_; - } - - // optional uint32 maximumOutputPowerOnDcOutput = 10; - public static final int MAXIMUMOUTPUTPOWERONDCOUTPUT_FIELD_NUMBER = 10; - private int maximumOutputPowerOnDcOutput_; - - @Override - public boolean hasMaximumOutputPowerOnDcOutput() { - return ((this.bitField0_ & 0x00000100) == 0x00000100); - } - - @Override - public int getMaximumOutputPowerOnDcOutput() { - return this.maximumOutputPowerOnDcOutput_; - } - - // optional bytes serialNumber = 11; - public static final int SERIALNUMBER_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString serialNumber_; - - @Override - public boolean hasSerialNumber() { - return ((this.bitField0_ & 0x00000200) == 0x00000200); - } - - @Override - public com.google.protobuf.ByteString getSerialNumber() { - return this.serialNumber_; - } - - // optional bytes macAddress = 12; - public static final int MACADDRESS_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString macAddress_; - - @Override - public boolean hasMacAddress() { - return ((this.bitField0_ & 0x00000400) == 0x00000400); - } - - @Override - public com.google.protobuf.ByteString getMacAddress() { - return this.macAddress_; - } - - // optional string hardwareId = 13; - public static final int HARDWAREID_FIELD_NUMBER = 13; - private java.lang.Object hardwareId_; - - @Override - public boolean hasHardwareId() { - return ((this.bitField0_ & 0x00000800) == 0x00000800); - } - - @Override - public String getHardwareId() { - final java.lang.Object ref = this.hardwareId_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.hardwareId_ = s; - } - return s; - } - } - - private com.google.protobuf.ByteString getHardwareIdBytes() { - final java.lang.Object ref = this.hardwareId_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.hardwareId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional uint32 internalFlashMemSize = 14; - public static final int INTERNALFLASHMEMSIZE_FIELD_NUMBER = 14; - private int internalFlashMemSize_; - - @Override - public boolean hasInternalFlashMemSize() { - return ((this.bitField0_ & 0x00001000) == 0x00001000); - } - - @Override - public int getInternalFlashMemSize() { - return this.internalFlashMemSize_; - } - - // optional uint32 externalFlashMemSize = 15; - public static final int EXTERNALFLASHMEMSIZE_FIELD_NUMBER = 15; - private int externalFlashMemSize_; - - @Override - public boolean hasExternalFlashMemSize() { - return ((this.bitField0_ & 0x00002000) == 0x00002000); - } - - @Override - public int getExternalFlashMemSize() { - return this.externalFlashMemSize_; - } - - // optional uint32 lastInternalTestResultCode = 16; - public static final int LASTINTERNALTESTRESULTCODE_FIELD_NUMBER = 16; - private int lastInternalTestResultCode_; - - @Override - public boolean hasLastInternalTestResultCode() { - return ((this.bitField0_ & 0x00004000) == 0x00004000); - } - - @Override - public int getLastInternalTestResultCode() { - return this.lastInternalTestResultCode_; - } - - // optional uint32 startupCounter = 17; - public static final int STARTUPCOUNTER_FIELD_NUMBER = 17; - private int startupCounter_; - - @Override - public boolean hasStartupCounter() { - return ((this.bitField0_ & 0x00008000) == 0x00008000); - } - - @Override - public int getStartupCounter() { - return this.startupCounter_; - } - - // optional string bootLoaderVersion = 18; - public static final int BOOTLOADERVERSION_FIELD_NUMBER = 18; - private java.lang.Object bootLoaderVersion_; - - @Override - public boolean hasBootLoaderVersion() { - return ((this.bitField0_ & 0x00010000) == 0x00010000); - } - - @Override - public String getBootLoaderVersion() { - final java.lang.Object ref = this.bootLoaderVersion_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.bootLoaderVersion_ = s; - } - return s; - } - } - - private com.google.protobuf.ByteString getBootLoaderVersionBytes() { - final java.lang.Object ref = this.bootLoaderVersion_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.bootLoaderVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string firmwareVersion = 19; - public static final int FIRMWAREVERSION_FIELD_NUMBER = 19; - private java.lang.Object firmwareVersion_; - - @Override - public boolean hasFirmwareVersion() { - return ((this.bitField0_ & 0x00020000) == 0x00020000); - } - - @Override - public String getFirmwareVersion() { - final java.lang.Object ref = this.firmwareVersion_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.firmwareVersion_ = s; - } - return s; - } - } - - private com.google.protobuf.ByteString getFirmwareVersionBytes() { - final java.lang.Object ref = this.firmwareVersion_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.firmwareVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional bytes currentConfigurationBackUsed = 20; - public static final int CURRENTCONFIGURATIONBACKUSED_FIELD_NUMBER = 20; - private com.google.protobuf.ByteString currentConfigurationBackUsed_; - - @Override - public boolean hasCurrentConfigurationBackUsed() { - return ((this.bitField0_ & 0x00040000) == 0x00040000); - } - - @Override - public com.google.protobuf.ByteString getCurrentConfigurationBackUsed() { - return this.currentConfigurationBackUsed_; - } - - // optional string name = 21; - public static final int NAME_FIELD_NUMBER = 21; - private java.lang.Object name_; - - @Override - public boolean hasName() { - return ((this.bitField0_ & 0x00080000) == 0x00080000); - } - - @Override - public String getName() { - final java.lang.Object ref = this.name_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.name_ = s; - } - return s; - } - } - - private com.google.protobuf.ByteString getNameBytes() { - final java.lang.Object ref = this.name_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string currentTime = 22; - public static final int CURRENTTIME_FIELD_NUMBER = 22; - private java.lang.Object currentTime_; - - @Override - public boolean hasCurrentTime() { - return ((this.bitField0_ & 0x00100000) == 0x00100000); - } - - @Override - public String getCurrentTime() { - final java.lang.Object ref = this.currentTime_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.currentTime_ = s; - } - return s; - } - } - - private com.google.protobuf.ByteString getCurrentTimeBytes() { - final java.lang.Object ref = this.currentTime_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.currentTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string currentIp = 23; - public static final int CURRENTIP_FIELD_NUMBER = 23; - private java.lang.Object currentIp_; - - @Override - public boolean hasCurrentIp() { - return ((this.bitField0_ & 0x00200000) == 0x00200000); - } - - @Override - public String getCurrentIp() { - final java.lang.Object ref = this.currentIp_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.currentIp_ = s; - } - return s; - } - } - - private com.google.protobuf.ByteString getCurrentIpBytes() { - final java.lang.Object ref = this.currentIp_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.currentIp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.value_ = java.util.Collections.emptyList(); - this.preferredLinktype_ = org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - this.actualLinktype_ = org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - this.lightType_ = org.opensmartgridplatform.oslp.Oslp.LightType.LT_NOT_SET; - this.eventNotificationMask_ = 0; - this.numberOfOutputs_ = 0; - this.dcOutputVoltageMaximum_ = 0; - this.dcOutputVoltageCurrent_ = 0; - this.maximumOutputPowerOnDcOutput_ = 0; - this.serialNumber_ = com.google.protobuf.ByteString.EMPTY; - this.macAddress_ = com.google.protobuf.ByteString.EMPTY; - this.hardwareId_ = ""; - this.internalFlashMemSize_ = 0; - this.externalFlashMemSize_ = 0; - this.lastInternalTestResultCode_ = 0; - this.startupCounter_ = 0; - this.bootLoaderVersion_ = ""; - this.firmwareVersion_ = ""; - this.currentConfigurationBackUsed_ = com.google.protobuf.ByteString.EMPTY; - this.name_ = ""; - this.currentTime_ = ""; - this.currentIp_ = ""; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasPreferredLinktype()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasActualLinktype()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasLightType()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasEventNotificationMask()) { - this.memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < this.getValueCount(); i++) { - if (!this.getValue(i).isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - for (int i = 0; i < this.value_.size(); i++) { - output.writeMessage(2, this.value_.get(i)); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(3, this.preferredLinktype_.getNumber()); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(4, this.actualLinktype_.getNumber()); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - output.writeEnum(5, this.lightType_.getNumber()); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - output.writeUInt32(6, this.eventNotificationMask_); - } - if (((this.bitField0_ & 0x00000020) == 0x00000020)) { - output.writeUInt32(7, this.numberOfOutputs_); - } - if (((this.bitField0_ & 0x00000040) == 0x00000040)) { - output.writeUInt32(8, this.dcOutputVoltageMaximum_); - } - if (((this.bitField0_ & 0x00000080) == 0x00000080)) { - output.writeUInt32(9, this.dcOutputVoltageCurrent_); - } - if (((this.bitField0_ & 0x00000100) == 0x00000100)) { - output.writeUInt32(10, this.maximumOutputPowerOnDcOutput_); - } - if (((this.bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(11, this.serialNumber_); - } - if (((this.bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(12, this.macAddress_); - } - if (((this.bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(13, this.getHardwareIdBytes()); - } - if (((this.bitField0_ & 0x00001000) == 0x00001000)) { - output.writeUInt32(14, this.internalFlashMemSize_); - } - if (((this.bitField0_ & 0x00002000) == 0x00002000)) { - output.writeUInt32(15, this.externalFlashMemSize_); - } - if (((this.bitField0_ & 0x00004000) == 0x00004000)) { - output.writeUInt32(16, this.lastInternalTestResultCode_); - } - if (((this.bitField0_ & 0x00008000) == 0x00008000)) { - output.writeUInt32(17, this.startupCounter_); - } - if (((this.bitField0_ & 0x00010000) == 0x00010000)) { - output.writeBytes(18, this.getBootLoaderVersionBytes()); - } - if (((this.bitField0_ & 0x00020000) == 0x00020000)) { - output.writeBytes(19, this.getFirmwareVersionBytes()); - } - if (((this.bitField0_ & 0x00040000) == 0x00040000)) { - output.writeBytes(20, this.currentConfigurationBackUsed_); - } - if (((this.bitField0_ & 0x00080000) == 0x00080000)) { - output.writeBytes(21, this.getNameBytes()); - } - if (((this.bitField0_ & 0x00100000) == 0x00100000)) { - output.writeBytes(22, this.getCurrentTimeBytes()); - } - if (((this.bitField0_ & 0x00200000) == 0x00200000)) { - output.writeBytes(23, this.getCurrentIpBytes()); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - for (int i = 0; i < this.value_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, this.value_.get(i)); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 3, this.preferredLinktype_.getNumber()); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 4, this.actualLinktype_.getNumber()); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(5, this.lightType_.getNumber()); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size(6, this.eventNotificationMask_); - } - if (((this.bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(7, this.numberOfOutputs_); - } - if (((this.bitField0_ & 0x00000040) == 0x00000040)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size( - 8, this.dcOutputVoltageMaximum_); - } - if (((this.bitField0_ & 0x00000080) == 0x00000080)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size( - 9, this.dcOutputVoltageCurrent_); - } - if (((this.bitField0_ & 0x00000100) == 0x00000100)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size( - 10, this.maximumOutputPowerOnDcOutput_); - } - if (((this.bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, this.serialNumber_); - } - if (((this.bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(12, this.macAddress_); - } - if (((this.bitField0_ & 0x00000800) == 0x00000800)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize(13, this.getHardwareIdBytes()); - } - if (((this.bitField0_ & 0x00001000) == 0x00001000)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size(14, this.internalFlashMemSize_); - } - if (((this.bitField0_ & 0x00002000) == 0x00002000)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size(15, this.externalFlashMemSize_); - } - if (((this.bitField0_ & 0x00004000) == 0x00004000)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size( - 16, this.lastInternalTestResultCode_); - } - if (((this.bitField0_ & 0x00008000) == 0x00008000)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(17, this.startupCounter_); - } - if (((this.bitField0_ & 0x00010000) == 0x00010000)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 18, this.getBootLoaderVersionBytes()); - } - if (((this.bitField0_ & 0x00020000) == 0x00020000)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 19, this.getFirmwareVersionBytes()); - } - if (((this.bitField0_ & 0x00040000) == 0x00040000)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 20, this.currentConfigurationBackUsed_); - } - if (((this.bitField0_ & 0x00080000) == 0x00080000)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(21, this.getNameBytes()); - } - if (((this.bitField0_ & 0x00100000) == 0x00100000)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize(22, this.getCurrentTimeBytes()); - } - if (((this.bitField0_ & 0x00200000) == 0x00200000)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize(23, this.getCurrentIpBytes()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.GetStatusResponse prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.GetStatusResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetStatusResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetStatusResponse_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getValueFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - if (this.valueBuilder_ == null) { - this.value_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000002); - } else { - this.valueBuilder_.clear(); - } - this.preferredLinktype_ = org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.actualLinktype_ = org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.lightType_ = org.opensmartgridplatform.oslp.Oslp.LightType.LT_NOT_SET; - this.bitField0_ = (this.bitField0_ & ~0x00000010); - this.eventNotificationMask_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000020); - this.numberOfOutputs_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000040); - this.dcOutputVoltageMaximum_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000080); - this.dcOutputVoltageCurrent_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000100); - this.maximumOutputPowerOnDcOutput_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000200); - this.serialNumber_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000400); - this.macAddress_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000800); - this.hardwareId_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00001000); - this.internalFlashMemSize_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00002000); - this.externalFlashMemSize_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00004000); - this.lastInternalTestResultCode_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00008000); - this.startupCounter_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00010000); - this.bootLoaderVersion_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00020000); - this.firmwareVersion_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00040000); - this.currentConfigurationBackUsed_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00080000); - this.name_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00100000); - this.currentTime_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00200000); - this.currentIp_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00400000); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetStatusResponse getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetStatusResponse build() { - final org.opensmartgridplatform.oslp.Oslp.GetStatusResponse result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.GetStatusResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.GetStatusResponse result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetStatusResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.GetStatusResponse result = - new org.opensmartgridplatform.oslp.Oslp.GetStatusResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - if (this.valueBuilder_ == null) { - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - this.value_ = java.util.Collections.unmodifiableList(this.value_); - this.bitField0_ = (this.bitField0_ & ~0x00000002); - } - result.value_ = this.value_; - } else { - result.value_ = this.valueBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000002; - } - result.preferredLinktype_ = this.preferredLinktype_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000004; - } - result.actualLinktype_ = this.actualLinktype_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000008; - } - result.lightType_ = this.lightType_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000010; - } - result.eventNotificationMask_ = this.eventNotificationMask_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000020; - } - result.numberOfOutputs_ = this.numberOfOutputs_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000040; - } - result.dcOutputVoltageMaximum_ = this.dcOutputVoltageMaximum_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000080; - } - result.dcOutputVoltageCurrent_ = this.dcOutputVoltageCurrent_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000100; - } - result.maximumOutputPowerOnDcOutput_ = this.maximumOutputPowerOnDcOutput_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000200; - } - result.serialNumber_ = this.serialNumber_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000400; - } - result.macAddress_ = this.macAddress_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00000800; - } - result.hardwareId_ = this.hardwareId_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00001000; - } - result.internalFlashMemSize_ = this.internalFlashMemSize_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00002000; - } - result.externalFlashMemSize_ = this.externalFlashMemSize_; - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { - to_bitField0_ |= 0x00004000; - } - result.lastInternalTestResultCode_ = this.lastInternalTestResultCode_; - if (((from_bitField0_ & 0x00010000) == 0x00010000)) { - to_bitField0_ |= 0x00008000; - } - result.startupCounter_ = this.startupCounter_; - if (((from_bitField0_ & 0x00020000) == 0x00020000)) { - to_bitField0_ |= 0x00010000; - } - result.bootLoaderVersion_ = this.bootLoaderVersion_; - if (((from_bitField0_ & 0x00040000) == 0x00040000)) { - to_bitField0_ |= 0x00020000; - } - result.firmwareVersion_ = this.firmwareVersion_; - if (((from_bitField0_ & 0x00080000) == 0x00080000)) { - to_bitField0_ |= 0x00040000; - } - result.currentConfigurationBackUsed_ = this.currentConfigurationBackUsed_; - if (((from_bitField0_ & 0x00100000) == 0x00100000)) { - to_bitField0_ |= 0x00080000; - } - result.name_ = this.name_; - if (((from_bitField0_ & 0x00200000) == 0x00200000)) { - to_bitField0_ |= 0x00100000; - } - result.currentTime_ = this.currentTime_; - if (((from_bitField0_ & 0x00400000) == 0x00400000)) { - to_bitField0_ |= 0x00200000; - } - result.currentIp_ = this.currentIp_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetStatusResponse) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.GetStatusResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.GetStatusResponse other) { - if (other == org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - if (this.valueBuilder_ == null) { - if (!other.value_.isEmpty()) { - if (this.value_.isEmpty()) { - this.value_ = other.value_; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - } else { - this.ensureValueIsMutable(); - this.value_.addAll(other.value_); - } - this.onChanged(); - } - } else { - if (!other.value_.isEmpty()) { - if (this.valueBuilder_.isEmpty()) { - this.valueBuilder_.dispose(); - this.valueBuilder_ = null; - this.value_ = other.value_; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.valueBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? this.getValueFieldBuilder() - : null; - } else { - this.valueBuilder_.addAllMessages(other.value_); - } - } - } - if (other.hasPreferredLinktype()) { - this.setPreferredLinktype(other.getPreferredLinktype()); - } - if (other.hasActualLinktype()) { - this.setActualLinktype(other.getActualLinktype()); - } - if (other.hasLightType()) { - this.setLightType(other.getLightType()); - } - if (other.hasEventNotificationMask()) { - this.setEventNotificationMask(other.getEventNotificationMask()); - } - if (other.hasNumberOfOutputs()) { - this.setNumberOfOutputs(other.getNumberOfOutputs()); - } - if (other.hasDcOutputVoltageMaximum()) { - this.setDcOutputVoltageMaximum(other.getDcOutputVoltageMaximum()); - } - if (other.hasDcOutputVoltageCurrent()) { - this.setDcOutputVoltageCurrent(other.getDcOutputVoltageCurrent()); - } - if (other.hasMaximumOutputPowerOnDcOutput()) { - this.setMaximumOutputPowerOnDcOutput(other.getMaximumOutputPowerOnDcOutput()); - } - if (other.hasSerialNumber()) { - this.setSerialNumber(other.getSerialNumber()); - } - if (other.hasMacAddress()) { - this.setMacAddress(other.getMacAddress()); - } - if (other.hasHardwareId()) { - this.setHardwareId(other.getHardwareId()); - } - if (other.hasInternalFlashMemSize()) { - this.setInternalFlashMemSize(other.getInternalFlashMemSize()); - } - if (other.hasExternalFlashMemSize()) { - this.setExternalFlashMemSize(other.getExternalFlashMemSize()); - } - if (other.hasLastInternalTestResultCode()) { - this.setLastInternalTestResultCode(other.getLastInternalTestResultCode()); - } - if (other.hasStartupCounter()) { - this.setStartupCounter(other.getStartupCounter()); - } - if (other.hasBootLoaderVersion()) { - this.setBootLoaderVersion(other.getBootLoaderVersion()); - } - if (other.hasFirmwareVersion()) { - this.setFirmwareVersion(other.getFirmwareVersion()); - } - if (other.hasCurrentConfigurationBackUsed()) { - this.setCurrentConfigurationBackUsed(other.getCurrentConfigurationBackUsed()); - } - if (other.hasName()) { - this.setName(other.getName()); - } - if (other.hasCurrentTime()) { - this.setCurrentTime(other.getCurrentTime()); - } - if (other.hasCurrentIp()) { - this.setCurrentIp(other.getCurrentIp()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - if (!this.hasPreferredLinktype()) { - - return false; - } - if (!this.hasActualLinktype()) { - - return false; - } - if (!this.hasLightType()) { - - return false; - } - if (!this.hasEventNotificationMask()) { - - return false; - } - for (int i = 0; i < this.getValueCount(); i++) { - if (!this.getValue(i).isInitialized()) { - - return false; - } - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - case 18: - { - final org.opensmartgridplatform.oslp.Oslp.LightValue.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.LightValue.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - this.addValue(subBuilder.buildPartial()); - break; - } - case 24: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.LinkType value = - org.opensmartgridplatform.oslp.Oslp.LinkType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - this.bitField0_ |= 0x00000004; - this.preferredLinktype_ = value; - } - break; - } - case 32: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.LinkType value = - org.opensmartgridplatform.oslp.Oslp.LinkType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - this.bitField0_ |= 0x00000008; - this.actualLinktype_ = value; - } - break; - } - case 40: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.LightType value = - org.opensmartgridplatform.oslp.Oslp.LightType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(5, rawValue); - } else { - this.bitField0_ |= 0x00000010; - this.lightType_ = value; - } - break; - } - case 48: - { - this.bitField0_ |= 0x00000020; - this.eventNotificationMask_ = input.readUInt32(); - break; - } - case 56: - { - this.bitField0_ |= 0x00000040; - this.numberOfOutputs_ = input.readUInt32(); - break; - } - case 64: - { - this.bitField0_ |= 0x00000080; - this.dcOutputVoltageMaximum_ = input.readUInt32(); - break; - } - case 72: - { - this.bitField0_ |= 0x00000100; - this.dcOutputVoltageCurrent_ = input.readUInt32(); - break; - } - case 80: - { - this.bitField0_ |= 0x00000200; - this.maximumOutputPowerOnDcOutput_ = input.readUInt32(); - break; - } - case 90: - { - this.bitField0_ |= 0x00000400; - this.serialNumber_ = input.readBytes(); - break; - } - case 98: - { - this.bitField0_ |= 0x00000800; - this.macAddress_ = input.readBytes(); - break; - } - case 106: - { - this.bitField0_ |= 0x00001000; - this.hardwareId_ = input.readBytes(); - break; - } - case 112: - { - this.bitField0_ |= 0x00002000; - this.internalFlashMemSize_ = input.readUInt32(); - break; - } - case 120: - { - this.bitField0_ |= 0x00004000; - this.externalFlashMemSize_ = input.readUInt32(); - break; - } - case 128: - { - this.bitField0_ |= 0x00008000; - this.lastInternalTestResultCode_ = input.readUInt32(); - break; - } - case 136: - { - this.bitField0_ |= 0x00010000; - this.startupCounter_ = input.readUInt32(); - break; - } - case 146: - { - this.bitField0_ |= 0x00020000; - this.bootLoaderVersion_ = input.readBytes(); - break; - } - case 154: - { - this.bitField0_ |= 0x00040000; - this.firmwareVersion_ = input.readBytes(); - break; - } - case 162: - { - this.bitField0_ |= 0x00080000; - this.currentConfigurationBackUsed_ = input.readBytes(); - break; - } - case 170: - { - this.bitField0_ |= 0x00100000; - this.name_ = input.readBytes(); - break; - } - case 178: - { - this.bitField0_ |= 0x00200000; - this.currentTime_ = input.readBytes(); - break; - } - case 186: - { - this.bitField0_ |= 0x00400000; - this.currentIp_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // repeated .oslp.LightValue value = 2; - private java.util.List value_ = - java.util.Collections.emptyList(); - - private void ensureValueIsMutable() { - if (!((this.bitField0_ & 0x00000002) == 0x00000002)) { - this.value_ = - new java.util.ArrayList(this.value_); - this.bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.LightValue, - org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, - org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder> - valueBuilder_; - - @Override - public java.util.List getValueList() { - if (this.valueBuilder_ == null) { - return java.util.Collections.unmodifiableList(this.value_); - } else { - return this.valueBuilder_.getMessageList(); - } - } - - @Override - public int getValueCount() { - if (this.valueBuilder_ == null) { - return this.value_.size(); - } else { - return this.valueBuilder_.getCount(); - } - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightValue getValue(final int index) { - if (this.valueBuilder_ == null) { - return this.value_.get(index); - } else { - return this.valueBuilder_.getMessage(index); - } - } - - public Builder setValue( - final int index, final org.opensmartgridplatform.oslp.Oslp.LightValue value) { - if (this.valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureValueIsMutable(); - this.value_.set(index, value); - this.onChanged(); - } else { - this.valueBuilder_.setMessage(index, value); - } - return this; - } - - public Builder setValue( - final int index, - final org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { - if (this.valueBuilder_ == null) { - this.ensureValueIsMutable(); - this.value_.set(index, builderForValue.build()); - this.onChanged(); - } else { - this.valueBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addValue(final org.opensmartgridplatform.oslp.Oslp.LightValue value) { - if (this.valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureValueIsMutable(); - this.value_.add(value); - this.onChanged(); - } else { - this.valueBuilder_.addMessage(value); - } - return this; - } - - public Builder addValue( - final int index, final org.opensmartgridplatform.oslp.Oslp.LightValue value) { - if (this.valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureValueIsMutable(); - this.value_.add(index, value); - this.onChanged(); - } else { - this.valueBuilder_.addMessage(index, value); - } - return this; - } - - public Builder addValue( - final org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { - if (this.valueBuilder_ == null) { - this.ensureValueIsMutable(); - this.value_.add(builderForValue.build()); - this.onChanged(); - } else { - this.valueBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - public Builder addValue( - final int index, - final org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { - if (this.valueBuilder_ == null) { - this.ensureValueIsMutable(); - this.value_.add(index, builderForValue.build()); - this.onChanged(); - } else { - this.valueBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addAllValue( - final java.lang.Iterable - values) { - if (this.valueBuilder_ == null) { - this.ensureValueIsMutable(); - super.addAll(values, this.value_); - this.onChanged(); - } else { - this.valueBuilder_.addAllMessages(values); - } - return this; - } - - public Builder clearValue() { - if (this.valueBuilder_ == null) { - this.value_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.onChanged(); - } else { - this.valueBuilder_.clear(); - } - return this; - } - - public Builder removeValue(final int index) { - if (this.valueBuilder_ == null) { - this.ensureValueIsMutable(); - this.value_.remove(index); - this.onChanged(); - } else { - this.valueBuilder_.remove(index); - } - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder getValueBuilder( - final int index) { - return this.getValueFieldBuilder().getBuilder(index); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValueOrBuilder( - final int index) { - if (this.valueBuilder_ == null) { - return this.value_.get(index); - } else { - return this.valueBuilder_.getMessageOrBuilder(index); - } - } - - @Override - public java.util.List - getValueOrBuilderList() { - if (this.valueBuilder_ != null) { - return this.valueBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(this.value_); - } - } - - public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder addValueBuilder() { - return this.getValueFieldBuilder() - .addBuilder(org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance()); - } - - public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder addValueBuilder( - final int index) { - return this.getValueFieldBuilder() - .addBuilder(index, org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance()); - } - - public java.util.List - getValueBuilderList() { - return this.getValueFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.LightValue, - org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, - org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder> - getValueFieldBuilder() { - if (this.valueBuilder_ == null) { - this.valueBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.LightValue, - org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, - org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder>( - this.value_, - ((this.bitField0_ & 0x00000002) == 0x00000002), - this.getParentForChildren(), - this.isClean()); - this.value_ = null; - } - return this.valueBuilder_; - } - - // required .oslp.LinkType preferredLinktype = 3; - private org.opensmartgridplatform.oslp.Oslp.LinkType preferredLinktype_ = - org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - - @Override - public boolean hasPreferredLinktype() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinktype() { - return this.preferredLinktype_; - } - - public Builder setPreferredLinktype( - final org.opensmartgridplatform.oslp.Oslp.LinkType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000004; - this.preferredLinktype_ = value; - this.onChanged(); - return this; - } - - public Builder clearPreferredLinktype() { - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.preferredLinktype_ = org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - this.onChanged(); - return this; - } - - // required .oslp.LinkType actualLinktype = 4; - private org.opensmartgridplatform.oslp.Oslp.LinkType actualLinktype_ = - org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - - @Override - public boolean hasActualLinktype() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LinkType getActualLinktype() { - return this.actualLinktype_; - } - - public Builder setActualLinktype(final org.opensmartgridplatform.oslp.Oslp.LinkType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000008; - this.actualLinktype_ = value; - this.onChanged(); - return this; - } - - public Builder clearActualLinktype() { - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.actualLinktype_ = org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - this.onChanged(); - return this; - } - - // required .oslp.LightType lightType = 5; - private org.opensmartgridplatform.oslp.Oslp.LightType lightType_ = - org.opensmartgridplatform.oslp.Oslp.LightType.LT_NOT_SET; - - @Override - public boolean hasLightType() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightType getLightType() { - return this.lightType_; - } - - public Builder setLightType(final org.opensmartgridplatform.oslp.Oslp.LightType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000010; - this.lightType_ = value; - this.onChanged(); - return this; - } - - public Builder clearLightType() { - this.bitField0_ = (this.bitField0_ & ~0x00000010); - this.lightType_ = org.opensmartgridplatform.oslp.Oslp.LightType.LT_NOT_SET; - this.onChanged(); - return this; - } - - // required uint32 eventNotificationMask = 6; - private int eventNotificationMask_; - - @Override - public boolean hasEventNotificationMask() { - return ((this.bitField0_ & 0x00000020) == 0x00000020); - } - - @Override - public int getEventNotificationMask() { - return this.eventNotificationMask_; - } - - public Builder setEventNotificationMask(final int value) { - this.bitField0_ |= 0x00000020; - this.eventNotificationMask_ = value; - this.onChanged(); - return this; - } - - public Builder clearEventNotificationMask() { - this.bitField0_ = (this.bitField0_ & ~0x00000020); - this.eventNotificationMask_ = 0; - this.onChanged(); - return this; - } - - // optional uint32 numberOfOutputs = 7; - private int numberOfOutputs_; - - @Override - public boolean hasNumberOfOutputs() { - return ((this.bitField0_ & 0x00000040) == 0x00000040); - } - - @Override - public int getNumberOfOutputs() { - return this.numberOfOutputs_; - } - - public Builder setNumberOfOutputs(final int value) { - this.bitField0_ |= 0x00000040; - this.numberOfOutputs_ = value; - this.onChanged(); - return this; - } - - public Builder clearNumberOfOutputs() { - this.bitField0_ = (this.bitField0_ & ~0x00000040); - this.numberOfOutputs_ = 0; - this.onChanged(); - return this; - } - - // optional uint32 dcOutputVoltageMaximum = 8; - private int dcOutputVoltageMaximum_; - - @Override - public boolean hasDcOutputVoltageMaximum() { - return ((this.bitField0_ & 0x00000080) == 0x00000080); - } - - @Override - public int getDcOutputVoltageMaximum() { - return this.dcOutputVoltageMaximum_; - } - - public Builder setDcOutputVoltageMaximum(final int value) { - this.bitField0_ |= 0x00000080; - this.dcOutputVoltageMaximum_ = value; - this.onChanged(); - return this; - } - - public Builder clearDcOutputVoltageMaximum() { - this.bitField0_ = (this.bitField0_ & ~0x00000080); - this.dcOutputVoltageMaximum_ = 0; - this.onChanged(); - return this; - } - - // optional uint32 dcOutputVoltageCurrent = 9; - private int dcOutputVoltageCurrent_; - - @Override - public boolean hasDcOutputVoltageCurrent() { - return ((this.bitField0_ & 0x00000100) == 0x00000100); - } - - @Override - public int getDcOutputVoltageCurrent() { - return this.dcOutputVoltageCurrent_; - } - - public Builder setDcOutputVoltageCurrent(final int value) { - this.bitField0_ |= 0x00000100; - this.dcOutputVoltageCurrent_ = value; - this.onChanged(); - return this; - } - - public Builder clearDcOutputVoltageCurrent() { - this.bitField0_ = (this.bitField0_ & ~0x00000100); - this.dcOutputVoltageCurrent_ = 0; - this.onChanged(); - return this; - } - - // optional uint32 maximumOutputPowerOnDcOutput = 10; - private int maximumOutputPowerOnDcOutput_; - - @Override - public boolean hasMaximumOutputPowerOnDcOutput() { - return ((this.bitField0_ & 0x00000200) == 0x00000200); - } - - @Override - public int getMaximumOutputPowerOnDcOutput() { - return this.maximumOutputPowerOnDcOutput_; - } - - public Builder setMaximumOutputPowerOnDcOutput(final int value) { - this.bitField0_ |= 0x00000200; - this.maximumOutputPowerOnDcOutput_ = value; - this.onChanged(); - return this; - } - - public Builder clearMaximumOutputPowerOnDcOutput() { - this.bitField0_ = (this.bitField0_ & ~0x00000200); - this.maximumOutputPowerOnDcOutput_ = 0; - this.onChanged(); - return this; - } - - // optional bytes serialNumber = 11; - private com.google.protobuf.ByteString serialNumber_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasSerialNumber() { - return ((this.bitField0_ & 0x00000400) == 0x00000400); - } - - @Override - public com.google.protobuf.ByteString getSerialNumber() { - return this.serialNumber_; - } - - public Builder setSerialNumber(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000400; - this.serialNumber_ = value; - this.onChanged(); - return this; - } - - public Builder clearSerialNumber() { - this.bitField0_ = (this.bitField0_ & ~0x00000400); - this.serialNumber_ = getDefaultInstance().getSerialNumber(); - this.onChanged(); - return this; - } - - // optional bytes macAddress = 12; - private com.google.protobuf.ByteString macAddress_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasMacAddress() { - return ((this.bitField0_ & 0x00000800) == 0x00000800); - } - - @Override - public com.google.protobuf.ByteString getMacAddress() { - return this.macAddress_; - } - - public Builder setMacAddress(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000800; - this.macAddress_ = value; - this.onChanged(); - return this; - } - - public Builder clearMacAddress() { - this.bitField0_ = (this.bitField0_ & ~0x00000800); - this.macAddress_ = getDefaultInstance().getMacAddress(); - this.onChanged(); - return this; - } - - // optional string hardwareId = 13; - private java.lang.Object hardwareId_ = ""; - - @Override - public boolean hasHardwareId() { - return ((this.bitField0_ & 0x00001000) == 0x00001000); - } - - @Override - public String getHardwareId() { - final java.lang.Object ref = this.hardwareId_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.hardwareId_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setHardwareId(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00001000; - this.hardwareId_ = value; - this.onChanged(); - return this; - } - - public Builder clearHardwareId() { - this.bitField0_ = (this.bitField0_ & ~0x00001000); - this.hardwareId_ = getDefaultInstance().getHardwareId(); - this.onChanged(); - return this; - } - - void setHardwareId(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00001000; - this.hardwareId_ = value; - this.onChanged(); - } - - // optional uint32 internalFlashMemSize = 14; - private int internalFlashMemSize_; - - @Override - public boolean hasInternalFlashMemSize() { - return ((this.bitField0_ & 0x00002000) == 0x00002000); - } - - @Override - public int getInternalFlashMemSize() { - return this.internalFlashMemSize_; - } - - public Builder setInternalFlashMemSize(final int value) { - this.bitField0_ |= 0x00002000; - this.internalFlashMemSize_ = value; - this.onChanged(); - return this; - } - - public Builder clearInternalFlashMemSize() { - this.bitField0_ = (this.bitField0_ & ~0x00002000); - this.internalFlashMemSize_ = 0; - this.onChanged(); - return this; - } - - // optional uint32 externalFlashMemSize = 15; - private int externalFlashMemSize_; - - @Override - public boolean hasExternalFlashMemSize() { - return ((this.bitField0_ & 0x00004000) == 0x00004000); - } - - @Override - public int getExternalFlashMemSize() { - return this.externalFlashMemSize_; - } - - public Builder setExternalFlashMemSize(final int value) { - this.bitField0_ |= 0x00004000; - this.externalFlashMemSize_ = value; - this.onChanged(); - return this; - } - - public Builder clearExternalFlashMemSize() { - this.bitField0_ = (this.bitField0_ & ~0x00004000); - this.externalFlashMemSize_ = 0; - this.onChanged(); - return this; - } - - // optional uint32 lastInternalTestResultCode = 16; - private int lastInternalTestResultCode_; - - @Override - public boolean hasLastInternalTestResultCode() { - return ((this.bitField0_ & 0x00008000) == 0x00008000); - } - - @Override - public int getLastInternalTestResultCode() { - return this.lastInternalTestResultCode_; - } - - public Builder setLastInternalTestResultCode(final int value) { - this.bitField0_ |= 0x00008000; - this.lastInternalTestResultCode_ = value; - this.onChanged(); - return this; - } - - public Builder clearLastInternalTestResultCode() { - this.bitField0_ = (this.bitField0_ & ~0x00008000); - this.lastInternalTestResultCode_ = 0; - this.onChanged(); - return this; - } - - // optional uint32 startupCounter = 17; - private int startupCounter_; - - @Override - public boolean hasStartupCounter() { - return ((this.bitField0_ & 0x00010000) == 0x00010000); - } - - @Override - public int getStartupCounter() { - return this.startupCounter_; - } - - public Builder setStartupCounter(final int value) { - this.bitField0_ |= 0x00010000; - this.startupCounter_ = value; - this.onChanged(); - return this; - } - - public Builder clearStartupCounter() { - this.bitField0_ = (this.bitField0_ & ~0x00010000); - this.startupCounter_ = 0; - this.onChanged(); - return this; - } - - // optional string bootLoaderVersion = 18; - private java.lang.Object bootLoaderVersion_ = ""; - - @Override - public boolean hasBootLoaderVersion() { - return ((this.bitField0_ & 0x00020000) == 0x00020000); - } - - @Override - public String getBootLoaderVersion() { - final java.lang.Object ref = this.bootLoaderVersion_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.bootLoaderVersion_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setBootLoaderVersion(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00020000; - this.bootLoaderVersion_ = value; - this.onChanged(); - return this; - } - - public Builder clearBootLoaderVersion() { - this.bitField0_ = (this.bitField0_ & ~0x00020000); - this.bootLoaderVersion_ = getDefaultInstance().getBootLoaderVersion(); - this.onChanged(); - return this; - } - - void setBootLoaderVersion(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00020000; - this.bootLoaderVersion_ = value; - this.onChanged(); - } - - // optional string firmwareVersion = 19; - private java.lang.Object firmwareVersion_ = ""; - - @Override - public boolean hasFirmwareVersion() { - return ((this.bitField0_ & 0x00040000) == 0x00040000); - } - - @Override - public String getFirmwareVersion() { - final java.lang.Object ref = this.firmwareVersion_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.firmwareVersion_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setFirmwareVersion(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00040000; - this.firmwareVersion_ = value; - this.onChanged(); - return this; - } - - public Builder clearFirmwareVersion() { - this.bitField0_ = (this.bitField0_ & ~0x00040000); - this.firmwareVersion_ = getDefaultInstance().getFirmwareVersion(); - this.onChanged(); - return this; - } - - void setFirmwareVersion(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00040000; - this.firmwareVersion_ = value; - this.onChanged(); - } - - // optional bytes currentConfigurationBackUsed = 20; - private com.google.protobuf.ByteString currentConfigurationBackUsed_ = - com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasCurrentConfigurationBackUsed() { - return ((this.bitField0_ & 0x00080000) == 0x00080000); - } - - @Override - public com.google.protobuf.ByteString getCurrentConfigurationBackUsed() { - return this.currentConfigurationBackUsed_; - } - - public Builder setCurrentConfigurationBackUsed(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00080000; - this.currentConfigurationBackUsed_ = value; - this.onChanged(); - return this; - } - - public Builder clearCurrentConfigurationBackUsed() { - this.bitField0_ = (this.bitField0_ & ~0x00080000); - this.currentConfigurationBackUsed_ = getDefaultInstance().getCurrentConfigurationBackUsed(); - this.onChanged(); - return this; - } - - // optional string name = 21; - private java.lang.Object name_ = ""; - - @Override - public boolean hasName() { - return ((this.bitField0_ & 0x00100000) == 0x00100000); - } - - @Override - public String getName() { - final java.lang.Object ref = this.name_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.name_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setName(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00100000; - this.name_ = value; - this.onChanged(); - return this; - } - - public Builder clearName() { - this.bitField0_ = (this.bitField0_ & ~0x00100000); - this.name_ = getDefaultInstance().getName(); - this.onChanged(); - return this; - } - - void setName(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00100000; - this.name_ = value; - this.onChanged(); - } - - // optional string currentTime = 22; - private java.lang.Object currentTime_ = ""; - - @Override - public boolean hasCurrentTime() { - return ((this.bitField0_ & 0x00200000) == 0x00200000); - } - - @Override - public String getCurrentTime() { - final java.lang.Object ref = this.currentTime_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.currentTime_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setCurrentTime(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00200000; - this.currentTime_ = value; - this.onChanged(); - return this; - } - - public Builder clearCurrentTime() { - this.bitField0_ = (this.bitField0_ & ~0x00200000); - this.currentTime_ = getDefaultInstance().getCurrentTime(); - this.onChanged(); - return this; - } - - void setCurrentTime(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00200000; - this.currentTime_ = value; - this.onChanged(); - } - - // optional string currentIp = 23; - private java.lang.Object currentIp_ = ""; - - @Override - public boolean hasCurrentIp() { - return ((this.bitField0_ & 0x00400000) == 0x00400000); - } - - @Override - public String getCurrentIp() { - final java.lang.Object ref = this.currentIp_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.currentIp_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setCurrentIp(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00400000; - this.currentIp_ = value; - this.onChanged(); - return this; - } - - public Builder clearCurrentIp() { - this.bitField0_ = (this.bitField0_ & ~0x00400000); - this.currentIp_ = getDefaultInstance().getCurrentIp(); - this.onChanged(); - return this; - } - - void setCurrentIp(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00400000; - this.currentIp_ = value; - this.onChanged(); - } - - // @@protoc_insertion_point(builder_scope:oslp.GetStatusResponse) - } - - static { - defaultInstance = new GetStatusResponse(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.GetStatusResponse) - } - - public interface ResumeScheduleRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // optional bytes index = 1; - boolean hasIndex(); - - com.google.protobuf.ByteString getIndex(); - - // required bool immediate = 2; - boolean hasImmediate(); - - boolean getImmediate(); - } - - public static final class ResumeScheduleRequest extends com.google.protobuf.GeneratedMessage - implements ResumeScheduleRequestOrBuilder { - // Use ResumeScheduleRequest.newBuilder() to construct. - private ResumeScheduleRequest(final Builder builder) { - super(builder); - } - - private ResumeScheduleRequest(final boolean noInit) {} - - private static final ResumeScheduleRequest defaultInstance; - - public static ResumeScheduleRequest getDefaultInstance() { - return defaultInstance; - } - - @Override - public ResumeScheduleRequest getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ResumeScheduleRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ResumeScheduleRequest_fieldAccessorTable; - } - - private int bitField0_; - // optional bytes index = 1; - public static final int INDEX_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString index_; - - @Override - public boolean hasIndex() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public com.google.protobuf.ByteString getIndex() { - return this.index_; - } - - // required bool immediate = 2; - public static final int IMMEDIATE_FIELD_NUMBER = 2; - private boolean immediate_; - - @Override - public boolean hasImmediate() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public boolean getImmediate() { - return this.immediate_; - } - - private void initFields() { - this.index_ = com.google.protobuf.ByteString.EMPTY; - this.immediate_ = false; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasImmediate()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, this.index_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBool(2, this.immediate_); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, this.index_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, this.immediate_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ResumeScheduleRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ResumeScheduleRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.index_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.immediate_ = false; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest build() { - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest result = - new org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.index_ = this.index_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.immediate_ = this.immediate_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.getDefaultInstance()) { - return this; - } - if (other.hasIndex()) { - this.setIndex(other.getIndex()); - } - if (other.hasImmediate()) { - this.setImmediate(other.getImmediate()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasImmediate()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - this.bitField0_ |= 0x00000001; - this.index_ = input.readBytes(); - break; - } - case 16: - { - this.bitField0_ |= 0x00000002; - this.immediate_ = input.readBool(); - break; - } - } - } - } - - private int bitField0_; - - // optional bytes index = 1; - private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasIndex() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public com.google.protobuf.ByteString getIndex() { - return this.index_; - } - - public Builder setIndex(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.index_ = value; - this.onChanged(); - return this; - } - - public Builder clearIndex() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.index_ = getDefaultInstance().getIndex(); - this.onChanged(); - return this; - } - - // required bool immediate = 2; - private boolean immediate_; - - @Override - public boolean hasImmediate() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public boolean getImmediate() { - return this.immediate_; - } - - public Builder setImmediate(final boolean value) { - this.bitField0_ |= 0x00000002; - this.immediate_ = value; - this.onChanged(); - return this; - } - - public Builder clearImmediate() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.immediate_ = false; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.ResumeScheduleRequest) - } - - static { - defaultInstance = new ResumeScheduleRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.ResumeScheduleRequest) - } - - public interface ResumeScheduleResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required .oslp.Status status = 1; - boolean hasStatus(); - - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - } - - public static final class ResumeScheduleResponse extends com.google.protobuf.GeneratedMessage - implements ResumeScheduleResponseOrBuilder { - // Use ResumeScheduleResponse.newBuilder() to construct. - private ResumeScheduleResponse(final Builder builder) { - super(builder); - } - - private ResumeScheduleResponse(final boolean noInit) {} - - private static final ResumeScheduleResponse defaultInstance; - - public static ResumeScheduleResponse getDefaultInstance() { - return defaultInstance; - } - - @Override - public ResumeScheduleResponse getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ResumeScheduleResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ResumeScheduleResponse_fieldAccessorTable; - } - - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ResumeScheduleResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ResumeScheduleResponse_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse build() { - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse result = - new org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.ResumeScheduleResponse) - } - - static { - defaultInstance = new ResumeScheduleResponse(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.ResumeScheduleResponse) - } - - public interface SetRebootRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // optional bool present = 1 [default = true]; - boolean hasPresent(); - - boolean getPresent(); - } - - public static final class SetRebootRequest extends com.google.protobuf.GeneratedMessage - implements SetRebootRequestOrBuilder { - // Use SetRebootRequest.newBuilder() to construct. - private SetRebootRequest(final Builder builder) { - super(builder); - } - - private SetRebootRequest(final boolean noInit) {} - - private static final SetRebootRequest defaultInstance; - - public static SetRebootRequest getDefaultInstance() { - return defaultInstance; - } - - @Override - public SetRebootRequest getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetRebootRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetRebootRequest_fieldAccessorTable; - } - - private int bitField0_; - // optional bool present = 1 [default = true]; - public static final int PRESENT_FIELD_NUMBER = 1; - private boolean present_; - - @Override - public boolean hasPresent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public boolean getPresent() { - return this.present_; - } - - private void initFields() { - this.present_ = true; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(1, this.present_); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, this.present_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SetRebootRequest prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SetRebootRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetRebootRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetRebootRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.present_ = true; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetRebootRequest getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetRebootRequest build() { - final org.opensmartgridplatform.oslp.Oslp.SetRebootRequest result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SetRebootRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SetRebootRequest result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetRebootRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SetRebootRequest result = - new org.opensmartgridplatform.oslp.Oslp.SetRebootRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.present_ = this.present_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetRebootRequest) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetRebootRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.SetRebootRequest other) { - if (other == org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.getDefaultInstance()) { - return this; - } - if (other.hasPresent()) { - this.setPresent(other.getPresent()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - this.bitField0_ |= 0x00000001; - this.present_ = input.readBool(); - break; - } - } - } - } - - private int bitField0_; - - // optional bool present = 1 [default = true]; - private boolean present_ = true; - - @Override - public boolean hasPresent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public boolean getPresent() { - return this.present_; - } - - public Builder setPresent(final boolean value) { - this.bitField0_ |= 0x00000001; - this.present_ = value; - this.onChanged(); - return this; - } - - public Builder clearPresent() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.present_ = true; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.SetRebootRequest) - } - - static { - defaultInstance = new SetRebootRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.SetRebootRequest) - } - - public interface SetRebootResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required .oslp.Status status = 1; - boolean hasStatus(); - - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - } - - public static final class SetRebootResponse extends com.google.protobuf.GeneratedMessage - implements SetRebootResponseOrBuilder { - // Use SetRebootResponse.newBuilder() to construct. - private SetRebootResponse(final Builder builder) { - super(builder); - } - - private SetRebootResponse(final boolean noInit) {} - - private static final SetRebootResponse defaultInstance; - - public static SetRebootResponse getDefaultInstance() { - return defaultInstance; - } - - @Override - public SetRebootResponse getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetRebootResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetRebootResponse_fieldAccessorTable; - } - - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SetRebootResponse prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SetRebootResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetRebootResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetRebootResponse_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetRebootResponse getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetRebootResponse build() { - final org.opensmartgridplatform.oslp.Oslp.SetRebootResponse result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SetRebootResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SetRebootResponse result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetRebootResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SetRebootResponse result = - new org.opensmartgridplatform.oslp.Oslp.SetRebootResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetRebootResponse) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetRebootResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.SetRebootResponse other) { - if (other == org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.SetRebootResponse) - } - - static { - defaultInstance = new SetRebootResponse(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.SetRebootResponse) - } - - public interface SetTransitionRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required .oslp.TransitionType transitionType = 1; - boolean hasTransitionType(); - - org.opensmartgridplatform.oslp.Oslp.TransitionType getTransitionType(); - - // optional string time = 2; - boolean hasTime(); - - String getTime(); - } - - public static final class SetTransitionRequest extends com.google.protobuf.GeneratedMessage - implements SetTransitionRequestOrBuilder { - // Use SetTransitionRequest.newBuilder() to construct. - private SetTransitionRequest(final Builder builder) { - super(builder); - } - - private SetTransitionRequest(final boolean noInit) {} - - private static final SetTransitionRequest defaultInstance; - - public static SetTransitionRequest getDefaultInstance() { - return defaultInstance; - } - - @Override - public SetTransitionRequest getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetTransitionRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetTransitionRequest_fieldAccessorTable; - } - - private int bitField0_; - // required .oslp.TransitionType transitionType = 1; - public static final int TRANSITIONTYPE_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.TransitionType transitionType_; - - @Override - public boolean hasTransitionType() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.TransitionType getTransitionType() { - return this.transitionType_; - } - - // optional string time = 2; - public static final int TIME_FIELD_NUMBER = 2; - private java.lang.Object time_; - - @Override - public boolean hasTime() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public String getTime() { - final java.lang.Object ref = this.time_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.time_ = s; - } - return s; - } - } - - private com.google.protobuf.ByteString getTimeBytes() { - final java.lang.Object ref = this.time_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.time_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - this.transitionType_ = org.opensmartgridplatform.oslp.Oslp.TransitionType.NIGHT_DAY; - this.time_ = ""; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasTransitionType()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.transitionType_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, this.getTimeBytes()); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 1, this.transitionType_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, this.getTimeBytes()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SetTransitionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetTransitionRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetTransitionRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.transitionType_ = org.opensmartgridplatform.oslp.Oslp.TransitionType.NIGHT_DAY; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.time_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest build() { - final org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest result = - new org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.transitionType_ = this.transitionType_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.time_ = this.time_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.getDefaultInstance()) { - return this; - } - if (other.hasTransitionType()) { - this.setTransitionType(other.getTransitionType()); - } - if (other.hasTime()) { - this.setTime(other.getTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasTransitionType()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.TransitionType value = - org.opensmartgridplatform.oslp.Oslp.TransitionType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.transitionType_ = value; - } - break; - } - case 18: - { - this.bitField0_ |= 0x00000002; - this.time_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.TransitionType transitionType = 1; - private org.opensmartgridplatform.oslp.Oslp.TransitionType transitionType_ = - org.opensmartgridplatform.oslp.Oslp.TransitionType.NIGHT_DAY; - - @Override - public boolean hasTransitionType() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.TransitionType getTransitionType() { - return this.transitionType_; - } - - public Builder setTransitionType( - final org.opensmartgridplatform.oslp.Oslp.TransitionType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.transitionType_ = value; - this.onChanged(); - return this; - } - - public Builder clearTransitionType() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.transitionType_ = org.opensmartgridplatform.oslp.Oslp.TransitionType.NIGHT_DAY; - this.onChanged(); - return this; - } - - // optional string time = 2; - private java.lang.Object time_ = ""; - - @Override - public boolean hasTime() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public String getTime() { - final java.lang.Object ref = this.time_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.time_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setTime(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000002; - this.time_ = value; - this.onChanged(); - return this; - } - - public Builder clearTime() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.time_ = getDefaultInstance().getTime(); - this.onChanged(); - return this; - } - - void setTime(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000002; - this.time_ = value; - this.onChanged(); - } - - // @@protoc_insertion_point(builder_scope:oslp.SetTransitionRequest) - } - - static { - defaultInstance = new SetTransitionRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.SetTransitionRequest) - } - - public interface SetTransitionResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required .oslp.Status status = 1; - boolean hasStatus(); - - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - } - - public static final class SetTransitionResponse extends com.google.protobuf.GeneratedMessage - implements SetTransitionResponseOrBuilder { - // Use SetTransitionResponse.newBuilder() to construct. - private SetTransitionResponse(final Builder builder) { - super(builder); - } - - private SetTransitionResponse(final boolean noInit) {} - - private static final SetTransitionResponse defaultInstance; - - public static SetTransitionResponse getDefaultInstance() { - return defaultInstance; - } - - @Override - public SetTransitionResponse getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetTransitionResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetTransitionResponse_fieldAccessorTable; - } - - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SetTransitionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetTransitionResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetTransitionResponse_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse build() { - final org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse result = - new org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.SetTransitionResponse) - } - - static { - defaultInstance = new SetTransitionResponse(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.SetTransitionResponse) - } - - public interface SetEventNotificationsRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required uint32 NotificationMask = 1; - boolean hasNotificationMask(); - - int getNotificationMask(); - } - - public static final class SetEventNotificationsRequest - extends com.google.protobuf.GeneratedMessage - implements SetEventNotificationsRequestOrBuilder { - // Use SetEventNotificationsRequest.newBuilder() to construct. - private SetEventNotificationsRequest(final Builder builder) { - super(builder); - } - - private SetEventNotificationsRequest(final boolean noInit) {} - - private static final SetEventNotificationsRequest defaultInstance; - - public static SetEventNotificationsRequest getDefaultInstance() { - return defaultInstance; - } - - @Override - public SetEventNotificationsRequest getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetEventNotificationsRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetEventNotificationsRequest_fieldAccessorTable; - } - - private int bitField0_; - // required uint32 NotificationMask = 1; - public static final int NOTIFICATIONMASK_FIELD_NUMBER = 1; - private int notificationMask_; - - @Override - public boolean hasNotificationMask() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public int getNotificationMask() { - return this.notificationMask_; - } - - private void initFields() { - this.notificationMask_ = 0; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasNotificationMask()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeUInt32(1, this.notificationMask_); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, this.notificationMask_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest - parseDelimitedFrom(final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest - parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetEventNotificationsRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetEventNotificationsRequest_fieldAccessorTable; - } - - // Construct using - // org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.notificationMask_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest - .getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest build() { - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest result = - new org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.notificationMask_ = this.notificationMask_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest - .getDefaultInstance()) { - return this; - } - if (other.hasNotificationMask()) { - this.setNotificationMask(other.getNotificationMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasNotificationMask()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - this.bitField0_ |= 0x00000001; - this.notificationMask_ = input.readUInt32(); - break; - } - } - } - } - - private int bitField0_; - - // required uint32 NotificationMask = 1; - private int notificationMask_; - - @Override - public boolean hasNotificationMask() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public int getNotificationMask() { - return this.notificationMask_; - } - - public Builder setNotificationMask(final int value) { - this.bitField0_ |= 0x00000001; - this.notificationMask_ = value; - this.onChanged(); - return this; - } - - public Builder clearNotificationMask() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.notificationMask_ = 0; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.SetEventNotificationsRequest) - } - - static { - defaultInstance = new SetEventNotificationsRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.SetEventNotificationsRequest) - } - - public interface SetEventNotificationsResponseOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required .oslp.Status status = 1; - boolean hasStatus(); - - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - } - - public static final class SetEventNotificationsResponse - extends com.google.protobuf.GeneratedMessage - implements SetEventNotificationsResponseOrBuilder { - // Use SetEventNotificationsResponse.newBuilder() to construct. - private SetEventNotificationsResponse(final Builder builder) { - super(builder); - } - - private SetEventNotificationsResponse(final boolean noInit) {} - - private static final SetEventNotificationsResponse defaultInstance; - - public static SetEventNotificationsResponse getDefaultInstance() { - return defaultInstance; - } - - @Override - public SetEventNotificationsResponse getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetEventNotificationsResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetEventNotificationsResponse_fieldAccessorTable; - } - - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse - parseDelimitedFrom(final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse - parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetEventNotificationsResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetEventNotificationsResponse_fieldAccessorTable; - } - - // Construct using - // org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse - .getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse build() { - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse result = - new org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse - .getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.SetEventNotificationsResponse) - } - - static { - defaultInstance = new SetEventNotificationsResponse(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.SetEventNotificationsResponse) - } - - public interface EventNotificationRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // repeated .oslp.EventNotification notifications = 1; - java.util.List getNotificationsList(); - - org.opensmartgridplatform.oslp.Oslp.EventNotification getNotifications(int index); - - int getNotificationsCount(); - - java.util.List - getNotificationsOrBuilderList(); - - org.opensmartgridplatform.oslp.Oslp.EventNotificationOrBuilder getNotificationsOrBuilder( - int index); - } - - public static final class EventNotificationRequest extends com.google.protobuf.GeneratedMessage - implements EventNotificationRequestOrBuilder { - // Use EventNotificationRequest.newBuilder() to construct. - private EventNotificationRequest(final Builder builder) { - super(builder); - } - - private EventNotificationRequest(final boolean noInit) {} - - private static final EventNotificationRequest defaultInstance; - - public static EventNotificationRequest getDefaultInstance() { - return defaultInstance; - } - - @Override - public EventNotificationRequest getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_EventNotificationRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_EventNotificationRequest_fieldAccessorTable; - } - - // repeated .oslp.EventNotification notifications = 1; - public static final int NOTIFICATIONS_FIELD_NUMBER = 1; - private java.util.List notifications_; - - @Override - public java.util.List - getNotificationsList() { - return this.notifications_; - } - - @Override - public java.util.List - getNotificationsOrBuilderList() { - return this.notifications_; - } - - @Override - public int getNotificationsCount() { - return this.notifications_.size(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotification getNotifications(final int index) { - return this.notifications_.get(index); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationOrBuilder getNotificationsOrBuilder( - final int index) { - return this.notifications_.get(index); - } - - private void initFields() { - this.notifications_ = java.util.Collections.emptyList(); - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - for (int i = 0; i < this.getNotificationsCount(); i++) { - if (!this.getNotifications(i).isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - for (int i = 0; i < this.notifications_.size(); i++) { - output.writeMessage(1, this.notifications_.get(i)); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - for (int i = 0; i < this.notifications_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, this.notifications_.get(i)); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } - - public static Builder newBuilder() { - return Builder.create(); - } - - @Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest prototype) { - return newBuilder().mergeFrom(prototype); - } - - @Override - public Builder toBuilder() { - return newBuilder(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } - - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.EventNotificationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_EventNotificationRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_EventNotificationRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getNotificationsFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - if (this.notificationsBuilder_ == null) { - this.notifications_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000001); - } else { - this.notificationsBuilder_.clear(); - } - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest build() { - final org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest result = - new org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest(this); - final int from_bitField0_ = this.bitField0_; - if (this.notificationsBuilder_ == null) { - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - this.notifications_ = java.util.Collections.unmodifiableList(this.notifications_); - this.bitField0_ = (this.bitField0_ & ~0x00000001); - } - result.notifications_ = this.notifications_; - } else { - result.notifications_ = this.notificationsBuilder_.build(); - } - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.getDefaultInstance()) { - return this; - } - if (this.notificationsBuilder_ == null) { - if (!other.notifications_.isEmpty()) { - if (this.notifications_.isEmpty()) { - this.notifications_ = other.notifications_; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - } else { - this.ensureNotificationsIsMutable(); - this.notifications_.addAll(other.notifications_); - } - this.onChanged(); - } - } else { - if (!other.notifications_.isEmpty()) { - if (this.notificationsBuilder_.isEmpty()) { - this.notificationsBuilder_.dispose(); - this.notificationsBuilder_ = null; - this.notifications_ = other.notifications_; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.notificationsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? this.getNotificationsFieldBuilder() - : null; - } else { - this.notificationsBuilder_.addAllMessages(other.notifications_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - for (int i = 0; i < this.getNotificationsCount(); i++) { - if (!this.getNotifications(i).isInitialized()) { - - return false; - } - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - final org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.EventNotification.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - this.addNotifications(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // repeated .oslp.EventNotification notifications = 1; - private java.util.List notifications_ = - java.util.Collections.emptyList(); - - private void ensureNotificationsIsMutable() { - if (!((this.bitField0_ & 0x00000001) == 0x00000001)) { - this.notifications_ = - new java.util.ArrayList( - this.notifications_); - this.bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.EventNotification, - org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder, - org.opensmartgridplatform.oslp.Oslp.EventNotificationOrBuilder> - notificationsBuilder_; - - @Override - public java.util.List - getNotificationsList() { - if (this.notificationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(this.notifications_); - } else { - return this.notificationsBuilder_.getMessageList(); - } - } - - @Override - public int getNotificationsCount() { - if (this.notificationsBuilder_ == null) { - return this.notifications_.size(); - } else { - return this.notificationsBuilder_.getCount(); - } - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotification getNotifications( - final int index) { - if (this.notificationsBuilder_ == null) { - return this.notifications_.get(index); - } else { - return this.notificationsBuilder_.getMessage(index); - } - } - - public Builder setNotifications( - final int index, final org.opensmartgridplatform.oslp.Oslp.EventNotification value) { - if (this.notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureNotificationsIsMutable(); - this.notifications_.set(index, value); - this.onChanged(); - } else { - this.notificationsBuilder_.setMessage(index, value); - } - return this; - } - - public Builder setNotifications( - final int index, - final org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder builderForValue) { - if (this.notificationsBuilder_ == null) { - this.ensureNotificationsIsMutable(); - this.notifications_.set(index, builderForValue.build()); - this.onChanged(); - } else { - this.notificationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addNotifications( - final org.opensmartgridplatform.oslp.Oslp.EventNotification value) { - if (this.notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureNotificationsIsMutable(); - this.notifications_.add(value); - this.onChanged(); - } else { - this.notificationsBuilder_.addMessage(value); - } - return this; - } - - public Builder addNotifications( - final int index, final org.opensmartgridplatform.oslp.Oslp.EventNotification value) { - if (this.notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureNotificationsIsMutable(); - this.notifications_.add(index, value); - this.onChanged(); - } else { - this.notificationsBuilder_.addMessage(index, value); - } - return this; - } - - public Builder addNotifications( - final org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder builderForValue) { - if (this.notificationsBuilder_ == null) { - this.ensureNotificationsIsMutable(); - this.notifications_.add(builderForValue.build()); - this.onChanged(); - } else { - this.notificationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - public Builder addNotifications( - final int index, - final org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder builderForValue) { - if (this.notificationsBuilder_ == null) { - this.ensureNotificationsIsMutable(); - this.notifications_.add(index, builderForValue.build()); - this.onChanged(); - } else { - this.notificationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addAllNotifications( - final java.lang.Iterable - values) { - if (this.notificationsBuilder_ == null) { - this.ensureNotificationsIsMutable(); - super.addAll(values, this.notifications_); - this.onChanged(); - } else { - this.notificationsBuilder_.addAllMessages(values); - } - return this; - } - - public Builder clearNotifications() { - if (this.notificationsBuilder_ == null) { - this.notifications_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.onChanged(); - } else { - this.notificationsBuilder_.clear(); - } - return this; - } - - public Builder removeNotifications(final int index) { - if (this.notificationsBuilder_ == null) { - this.ensureNotificationsIsMutable(); - this.notifications_.remove(index); - this.onChanged(); - } else { - this.notificationsBuilder_.remove(index); - } - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder getNotificationsBuilder( - final int index) { - return this.getNotificationsFieldBuilder().getBuilder(index); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationOrBuilder - getNotificationsOrBuilder(final int index) { - if (this.notificationsBuilder_ == null) { - return this.notifications_.get(index); - } else { - return this.notificationsBuilder_.getMessageOrBuilder(index); - } - } - - @Override - public java.util.List< - ? extends org.opensmartgridplatform.oslp.Oslp.EventNotificationOrBuilder> - getNotificationsOrBuilderList() { - if (this.notificationsBuilder_ != null) { - return this.notificationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(this.notifications_); - } - } - - public org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder - addNotificationsBuilder() { - return this.getNotificationsFieldBuilder() - .addBuilder(org.opensmartgridplatform.oslp.Oslp.EventNotification.getDefaultInstance()); - } - - public org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder addNotificationsBuilder( - final int index) { - return this.getNotificationsFieldBuilder() - .addBuilder( - index, org.opensmartgridplatform.oslp.Oslp.EventNotification.getDefaultInstance()); - } - - public java.util.List - getNotificationsBuilderList() { - return this.getNotificationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.EventNotification, - org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder, - org.opensmartgridplatform.oslp.Oslp.EventNotificationOrBuilder> - getNotificationsFieldBuilder() { - if (this.notificationsBuilder_ == null) { - this.notificationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.EventNotification, - org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder, - org.opensmartgridplatform.oslp.Oslp.EventNotificationOrBuilder>( - this.notifications_, - ((this.bitField0_ & 0x00000001) == 0x00000001), - this.getParentForChildren(), - this.isClean()); - this.notifications_ = null; - } - return this.notificationsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:oslp.EventNotificationRequest) - } - - static { - defaultInstance = new EventNotificationRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.EventNotificationRequest) - } - - public interface EventNotificationResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required .oslp.Status status = 1; - boolean hasStatus(); + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.Message result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.registerDeviceRequest_ = registerDeviceRequestBuilder_ == null + ? registerDeviceRequest_ + : registerDeviceRequestBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.registerDeviceResponse_ = registerDeviceResponseBuilder_ == null + ? registerDeviceResponse_ + : registerDeviceResponseBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startSelfTestRequest_ = startSelfTestRequestBuilder_ == null + ? startSelfTestRequest_ + : startSelfTestRequestBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.startSelfTestResponse_ = startSelfTestResponseBuilder_ == null + ? startSelfTestResponse_ + : startSelfTestResponseBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.stopSelfTestRequest_ = stopSelfTestRequestBuilder_ == null + ? stopSelfTestRequest_ + : stopSelfTestRequestBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.stopSelfTestResponse_ = stopSelfTestResponseBuilder_ == null + ? stopSelfTestResponse_ + : stopSelfTestResponseBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateFirmwareRequest_ = updateFirmwareRequestBuilder_ == null + ? updateFirmwareRequest_ + : updateFirmwareRequestBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateFirmwareResponse_ = updateFirmwareResponseBuilder_ == null + ? updateFirmwareResponse_ + : updateFirmwareResponseBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.setLightRequest_ = setLightRequestBuilder_ == null + ? setLightRequest_ + : setLightRequestBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.setLightResponse_ = setLightResponseBuilder_ == null + ? setLightResponse_ + : setLightResponseBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.getStatusRequest_ = getStatusRequestBuilder_ == null + ? getStatusRequest_ + : getStatusRequestBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.getStatusResponse_ = getStatusResponseBuilder_ == null + ? getStatusResponse_ + : getStatusResponseBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.resumeScheduleRequest_ = resumeScheduleRequestBuilder_ == null + ? resumeScheduleRequest_ + : resumeScheduleRequestBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.resumeScheduleResponse_ = resumeScheduleResponseBuilder_ == null + ? resumeScheduleResponse_ + : resumeScheduleResponseBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.setEventNotificationsRequest_ = setEventNotificationsRequestBuilder_ == null + ? setEventNotificationsRequest_ + : setEventNotificationsRequestBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.setEventNotificationsResponse_ = setEventNotificationsResponseBuilder_ == null + ? setEventNotificationsResponse_ + : setEventNotificationsResponseBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.eventNotificationRequest_ = eventNotificationRequestBuilder_ == null + ? eventNotificationRequest_ + : eventNotificationRequestBuilder_.build(); + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.eventNotificationResponse_ = eventNotificationResponseBuilder_ == null + ? eventNotificationResponse_ + : eventNotificationResponseBuilder_.build(); + to_bitField0_ |= 0x00020000; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.getFirmwareVersionRequest_ = getFirmwareVersionRequestBuilder_ == null + ? getFirmwareVersionRequest_ + : getFirmwareVersionRequestBuilder_.build(); + to_bitField0_ |= 0x00040000; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.getFirmwareVersionResponse_ = getFirmwareVersionResponseBuilder_ == null + ? getFirmwareVersionResponse_ + : getFirmwareVersionResponseBuilder_.build(); + to_bitField0_ |= 0x00080000; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.setScheduleRequest_ = setScheduleRequestBuilder_ == null + ? setScheduleRequest_ + : setScheduleRequestBuilder_.build(); + to_bitField0_ |= 0x00100000; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.setScheduleResponse_ = setScheduleResponseBuilder_ == null + ? setScheduleResponse_ + : setScheduleResponseBuilder_.build(); + to_bitField0_ |= 0x00200000; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.setConfigurationRequest_ = setConfigurationRequestBuilder_ == null + ? setConfigurationRequest_ + : setConfigurationRequestBuilder_.build(); + to_bitField0_ |= 0x00400000; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.setConfigurationResponse_ = setConfigurationResponseBuilder_ == null + ? setConfigurationResponse_ + : setConfigurationResponseBuilder_.build(); + to_bitField0_ |= 0x00800000; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.getPowerUsageHistoryRequest_ = getPowerUsageHistoryRequestBuilder_ == null + ? getPowerUsageHistoryRequest_ + : getPowerUsageHistoryRequestBuilder_.build(); + to_bitField0_ |= 0x01000000; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.getPowerUsageHistoryResponse_ = getPowerUsageHistoryResponseBuilder_ == null + ? getPowerUsageHistoryResponse_ + : getPowerUsageHistoryResponseBuilder_.build(); + to_bitField0_ |= 0x02000000; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.getActualPowerUsageRequest_ = getActualPowerUsageRequestBuilder_ == null + ? getActualPowerUsageRequest_ + : getActualPowerUsageRequestBuilder_.build(); + to_bitField0_ |= 0x04000000; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.getActualPowerUsageResponse_ = getActualPowerUsageResponseBuilder_ == null + ? getActualPowerUsageResponse_ + : getActualPowerUsageResponseBuilder_.build(); + to_bitField0_ |= 0x08000000; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.setRebootRequest_ = setRebootRequestBuilder_ == null + ? setRebootRequest_ + : setRebootRequestBuilder_.build(); + to_bitField0_ |= 0x10000000; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.setRebootResponse_ = setRebootResponseBuilder_ == null + ? setRebootResponse_ + : setRebootResponseBuilder_.build(); + to_bitField0_ |= 0x20000000; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.setTransitionRequest_ = setTransitionRequestBuilder_ == null + ? setTransitionRequest_ + : setTransitionRequestBuilder_.build(); + to_bitField0_ |= 0x40000000; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.setTransitionResponse_ = setTransitionResponseBuilder_ == null + ? setTransitionResponse_ + : setTransitionResponseBuilder_.build(); + to_bitField0_ |= 0x80000000; + } + result.bitField0_ |= to_bitField0_; + } - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - } + private void buildPartial1(org.opensmartgridplatform.oslp.Oslp.Message result) { + int from_bitField1_ = bitField1_; + int to_bitField1_ = 0; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.getConfigurationRequest_ = getConfigurationRequestBuilder_ == null + ? getConfigurationRequest_ + : getConfigurationRequestBuilder_.build(); + to_bitField1_ |= 0x00000001; + } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.getConfigurationResponse_ = getConfigurationResponseBuilder_ == null + ? getConfigurationResponse_ + : getConfigurationResponseBuilder_.build(); + to_bitField1_ |= 0x00000002; + } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.confirmRegisterDeviceRequest_ = confirmRegisterDeviceRequestBuilder_ == null + ? confirmRegisterDeviceRequest_ + : confirmRegisterDeviceRequestBuilder_.build(); + to_bitField1_ |= 0x00000004; + } + if (((from_bitField1_ & 0x00000008) != 0)) { + result.confirmRegisterDeviceResponse_ = confirmRegisterDeviceResponseBuilder_ == null + ? confirmRegisterDeviceResponse_ + : confirmRegisterDeviceResponseBuilder_.build(); + to_bitField1_ |= 0x00000008; + } + if (((from_bitField1_ & 0x00000010) != 0)) { + result.updateDeviceSslCertificationRequest_ = updateDeviceSslCertificationRequestBuilder_ == null + ? updateDeviceSslCertificationRequest_ + : updateDeviceSslCertificationRequestBuilder_.build(); + to_bitField1_ |= 0x00000010; + } + if (((from_bitField1_ & 0x00000020) != 0)) { + result.updateDeviceSslCertificationResponse_ = updateDeviceSslCertificationResponseBuilder_ == null + ? updateDeviceSslCertificationResponse_ + : updateDeviceSslCertificationResponseBuilder_.build(); + to_bitField1_ |= 0x00000020; + } + if (((from_bitField1_ & 0x00000040) != 0)) { + result.setDeviceVerificationKeyRequest_ = setDeviceVerificationKeyRequestBuilder_ == null + ? setDeviceVerificationKeyRequest_ + : setDeviceVerificationKeyRequestBuilder_.build(); + to_bitField1_ |= 0x00000040; + } + if (((from_bitField1_ & 0x00000080) != 0)) { + result.setDeviceVerificationKeyResponse_ = setDeviceVerificationKeyResponseBuilder_ == null + ? setDeviceVerificationKeyResponse_ + : setDeviceVerificationKeyResponseBuilder_.build(); + to_bitField1_ |= 0x00000080; + } + if (((from_bitField1_ & 0x00000100) != 0)) { + result.switchFirmwareRequest_ = switchFirmwareRequestBuilder_ == null + ? switchFirmwareRequest_ + : switchFirmwareRequestBuilder_.build(); + to_bitField1_ |= 0x00000100; + } + if (((from_bitField1_ & 0x00000200) != 0)) { + result.switchFirmwareResponse_ = switchFirmwareResponseBuilder_ == null + ? switchFirmwareResponse_ + : switchFirmwareResponseBuilder_.build(); + to_bitField1_ |= 0x00000200; + } + if (((from_bitField1_ & 0x00000400) != 0)) { + result.switchConfigurationRequest_ = switchConfigurationRequestBuilder_ == null + ? switchConfigurationRequest_ + : switchConfigurationRequestBuilder_.build(); + to_bitField1_ |= 0x00000400; + } + if (((from_bitField1_ & 0x00000800) != 0)) { + result.switchConfigurationResponse_ = switchConfigurationResponseBuilder_ == null + ? switchConfigurationResponse_ + : switchConfigurationResponseBuilder_.build(); + to_bitField1_ |= 0x00000800; + } + result.bitField1_ |= to_bitField1_; + } - public static final class EventNotificationResponse extends com.google.protobuf.GeneratedMessage - implements EventNotificationResponseOrBuilder { - // Use EventNotificationResponse.newBuilder() to construct. - private EventNotificationResponse(final Builder builder) { - super(builder); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.Message) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.Message)other); + } else { + super.mergeFrom(other); + return this; + } + } - private EventNotificationResponse(final boolean noInit) {} + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.Message other) { + if (other == org.opensmartgridplatform.oslp.Oslp.Message.getDefaultInstance()) return this; + if (other.hasRegisterDeviceRequest()) { + mergeRegisterDeviceRequest(other.getRegisterDeviceRequest()); + } + if (other.hasRegisterDeviceResponse()) { + mergeRegisterDeviceResponse(other.getRegisterDeviceResponse()); + } + if (other.hasStartSelfTestRequest()) { + mergeStartSelfTestRequest(other.getStartSelfTestRequest()); + } + if (other.hasStartSelfTestResponse()) { + mergeStartSelfTestResponse(other.getStartSelfTestResponse()); + } + if (other.hasStopSelfTestRequest()) { + mergeStopSelfTestRequest(other.getStopSelfTestRequest()); + } + if (other.hasStopSelfTestResponse()) { + mergeStopSelfTestResponse(other.getStopSelfTestResponse()); + } + if (other.hasUpdateFirmwareRequest()) { + mergeUpdateFirmwareRequest(other.getUpdateFirmwareRequest()); + } + if (other.hasUpdateFirmwareResponse()) { + mergeUpdateFirmwareResponse(other.getUpdateFirmwareResponse()); + } + if (other.hasSetLightRequest()) { + mergeSetLightRequest(other.getSetLightRequest()); + } + if (other.hasSetLightResponse()) { + mergeSetLightResponse(other.getSetLightResponse()); + } + if (other.hasGetStatusRequest()) { + mergeGetStatusRequest(other.getGetStatusRequest()); + } + if (other.hasGetStatusResponse()) { + mergeGetStatusResponse(other.getGetStatusResponse()); + } + if (other.hasResumeScheduleRequest()) { + mergeResumeScheduleRequest(other.getResumeScheduleRequest()); + } + if (other.hasResumeScheduleResponse()) { + mergeResumeScheduleResponse(other.getResumeScheduleResponse()); + } + if (other.hasSetEventNotificationsRequest()) { + mergeSetEventNotificationsRequest(other.getSetEventNotificationsRequest()); + } + if (other.hasSetEventNotificationsResponse()) { + mergeSetEventNotificationsResponse(other.getSetEventNotificationsResponse()); + } + if (other.hasEventNotificationRequest()) { + mergeEventNotificationRequest(other.getEventNotificationRequest()); + } + if (other.hasEventNotificationResponse()) { + mergeEventNotificationResponse(other.getEventNotificationResponse()); + } + if (other.hasGetFirmwareVersionRequest()) { + mergeGetFirmwareVersionRequest(other.getGetFirmwareVersionRequest()); + } + if (other.hasGetFirmwareVersionResponse()) { + mergeGetFirmwareVersionResponse(other.getGetFirmwareVersionResponse()); + } + if (other.hasSetScheduleRequest()) { + mergeSetScheduleRequest(other.getSetScheduleRequest()); + } + if (other.hasSetScheduleResponse()) { + mergeSetScheduleResponse(other.getSetScheduleResponse()); + } + if (other.hasSetConfigurationRequest()) { + mergeSetConfigurationRequest(other.getSetConfigurationRequest()); + } + if (other.hasSetConfigurationResponse()) { + mergeSetConfigurationResponse(other.getSetConfigurationResponse()); + } + if (other.hasGetPowerUsageHistoryRequest()) { + mergeGetPowerUsageHistoryRequest(other.getGetPowerUsageHistoryRequest()); + } + if (other.hasGetPowerUsageHistoryResponse()) { + mergeGetPowerUsageHistoryResponse(other.getGetPowerUsageHistoryResponse()); + } + if (other.hasGetActualPowerUsageRequest()) { + mergeGetActualPowerUsageRequest(other.getGetActualPowerUsageRequest()); + } + if (other.hasGetActualPowerUsageResponse()) { + mergeGetActualPowerUsageResponse(other.getGetActualPowerUsageResponse()); + } + if (other.hasSetRebootRequest()) { + mergeSetRebootRequest(other.getSetRebootRequest()); + } + if (other.hasSetRebootResponse()) { + mergeSetRebootResponse(other.getSetRebootResponse()); + } + if (other.hasSetTransitionRequest()) { + mergeSetTransitionRequest(other.getSetTransitionRequest()); + } + if (other.hasSetTransitionResponse()) { + mergeSetTransitionResponse(other.getSetTransitionResponse()); + } + if (other.hasGetConfigurationRequest()) { + mergeGetConfigurationRequest(other.getGetConfigurationRequest()); + } + if (other.hasGetConfigurationResponse()) { + mergeGetConfigurationResponse(other.getGetConfigurationResponse()); + } + if (other.hasConfirmRegisterDeviceRequest()) { + mergeConfirmRegisterDeviceRequest(other.getConfirmRegisterDeviceRequest()); + } + if (other.hasConfirmRegisterDeviceResponse()) { + mergeConfirmRegisterDeviceResponse(other.getConfirmRegisterDeviceResponse()); + } + if (other.hasUpdateDeviceSslCertificationRequest()) { + mergeUpdateDeviceSslCertificationRequest(other.getUpdateDeviceSslCertificationRequest()); + } + if (other.hasUpdateDeviceSslCertificationResponse()) { + mergeUpdateDeviceSslCertificationResponse(other.getUpdateDeviceSslCertificationResponse()); + } + if (other.hasSetDeviceVerificationKeyRequest()) { + mergeSetDeviceVerificationKeyRequest(other.getSetDeviceVerificationKeyRequest()); + } + if (other.hasSetDeviceVerificationKeyResponse()) { + mergeSetDeviceVerificationKeyResponse(other.getSetDeviceVerificationKeyResponse()); + } + if (other.hasSwitchFirmwareRequest()) { + mergeSwitchFirmwareRequest(other.getSwitchFirmwareRequest()); + } + if (other.hasSwitchFirmwareResponse()) { + mergeSwitchFirmwareResponse(other.getSwitchFirmwareResponse()); + } + if (other.hasSwitchConfigurationRequest()) { + mergeSwitchConfigurationRequest(other.getSwitchConfigurationRequest()); + } + if (other.hasSwitchConfigurationResponse()) { + mergeSwitchConfigurationResponse(other.getSwitchConfigurationResponse()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private static final EventNotificationResponse defaultInstance; + @java.lang.Override + public final boolean isInitialized() { + if (hasRegisterDeviceRequest()) { + if (!getRegisterDeviceRequest().isInitialized()) { + return false; + } + } + if (hasRegisterDeviceResponse()) { + if (!getRegisterDeviceResponse().isInitialized()) { + return false; + } + } + if (hasStartSelfTestResponse()) { + if (!getStartSelfTestResponse().isInitialized()) { + return false; + } + } + if (hasStopSelfTestResponse()) { + if (!getStopSelfTestResponse().isInitialized()) { + return false; + } + } + if (hasUpdateFirmwareRequest()) { + if (!getUpdateFirmwareRequest().isInitialized()) { + return false; + } + } + if (hasUpdateFirmwareResponse()) { + if (!getUpdateFirmwareResponse().isInitialized()) { + return false; + } + } + if (hasSetLightRequest()) { + if (!getSetLightRequest().isInitialized()) { + return false; + } + } + if (hasSetLightResponse()) { + if (!getSetLightResponse().isInitialized()) { + return false; + } + } + if (hasGetStatusResponse()) { + if (!getGetStatusResponse().isInitialized()) { + return false; + } + } + if (hasResumeScheduleRequest()) { + if (!getResumeScheduleRequest().isInitialized()) { + return false; + } + } + if (hasResumeScheduleResponse()) { + if (!getResumeScheduleResponse().isInitialized()) { + return false; + } + } + if (hasSetEventNotificationsRequest()) { + if (!getSetEventNotificationsRequest().isInitialized()) { + return false; + } + } + if (hasSetEventNotificationsResponse()) { + if (!getSetEventNotificationsResponse().isInitialized()) { + return false; + } + } + if (hasEventNotificationRequest()) { + if (!getEventNotificationRequest().isInitialized()) { + return false; + } + } + if (hasEventNotificationResponse()) { + if (!getEventNotificationResponse().isInitialized()) { + return false; + } + } + if (hasGetFirmwareVersionResponse()) { + if (!getGetFirmwareVersionResponse().isInitialized()) { + return false; + } + } + if (hasSetScheduleRequest()) { + if (!getSetScheduleRequest().isInitialized()) { + return false; + } + } + if (hasSetScheduleResponse()) { + if (!getSetScheduleResponse().isInitialized()) { + return false; + } + } + if (hasSetConfigurationRequest()) { + if (!getSetConfigurationRequest().isInitialized()) { + return false; + } + } + if (hasSetConfigurationResponse()) { + if (!getSetConfigurationResponse().isInitialized()) { + return false; + } + } + if (hasGetPowerUsageHistoryRequest()) { + if (!getGetPowerUsageHistoryRequest().isInitialized()) { + return false; + } + } + if (hasGetPowerUsageHistoryResponse()) { + if (!getGetPowerUsageHistoryResponse().isInitialized()) { + return false; + } + } + if (hasGetActualPowerUsageResponse()) { + if (!getGetActualPowerUsageResponse().isInitialized()) { + return false; + } + } + if (hasSetRebootResponse()) { + if (!getSetRebootResponse().isInitialized()) { + return false; + } + } + if (hasSetTransitionRequest()) { + if (!getSetTransitionRequest().isInitialized()) { + return false; + } + } + if (hasSetTransitionResponse()) { + if (!getSetTransitionResponse().isInitialized()) { + return false; + } + } + if (hasGetConfigurationResponse()) { + if (!getGetConfigurationResponse().isInitialized()) { + return false; + } + } + if (hasConfirmRegisterDeviceRequest()) { + if (!getConfirmRegisterDeviceRequest().isInitialized()) { + return false; + } + } + if (hasConfirmRegisterDeviceResponse()) { + if (!getConfirmRegisterDeviceResponse().isInitialized()) { + return false; + } + } + if (hasUpdateDeviceSslCertificationRequest()) { + if (!getUpdateDeviceSslCertificationRequest().isInitialized()) { + return false; + } + } + if (hasUpdateDeviceSslCertificationResponse()) { + if (!getUpdateDeviceSslCertificationResponse().isInitialized()) { + return false; + } + } + if (hasSetDeviceVerificationKeyRequest()) { + if (!getSetDeviceVerificationKeyRequest().isInitialized()) { + return false; + } + } + if (hasSetDeviceVerificationKeyResponse()) { + if (!getSetDeviceVerificationKeyResponse().isInitialized()) { + return false; + } + } + if (hasSwitchFirmwareRequest()) { + if (!getSwitchFirmwareRequest().isInitialized()) { + return false; + } + } + if (hasSwitchFirmwareResponse()) { + if (!getSwitchFirmwareResponse().isInitialized()) { + return false; + } + } + if (hasSwitchConfigurationRequest()) { + if (!getSwitchConfigurationRequest().isInitialized()) { + return false; + } + } + if (hasSwitchConfigurationResponse()) { + if (!getSwitchConfigurationResponse().isInitialized()) { + return false; + } + } + return true; + } - public static EventNotificationResponse getDefaultInstance() { - return defaultInstance; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + internalGetRegisterDeviceRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + internalGetRegisterDeviceResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + internalGetStartSelfTestRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + internalGetStartSelfTestResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + internalGetStopSelfTestRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + internalGetStopSelfTestResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + internalGetUpdateFirmwareRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + internalGetUpdateFirmwareResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + input.readMessage( + internalGetSetLightRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + input.readMessage( + internalGetSetLightResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + input.readMessage( + internalGetGetStatusRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + input.readMessage( + internalGetGetStatusResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + input.readMessage( + internalGetResumeScheduleRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: { + input.readMessage( + internalGetResumeScheduleResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: { + input.readMessage( + internalGetSetEventNotificationsRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: { + input.readMessage( + internalGetSetEventNotificationsResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138: { + input.readMessage( + internalGetEventNotificationRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 138 + case 146: { + input.readMessage( + internalGetEventNotificationResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 146 + case 154: { + input.readMessage( + internalGetGetFirmwareVersionRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 154 + case 162: { + input.readMessage( + internalGetGetFirmwareVersionResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 162 + case 170: { + input.readMessage( + internalGetSetScheduleRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 170 + case 178: { + input.readMessage( + internalGetSetScheduleResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 178 + case 202: { + input.readMessage( + internalGetSetConfigurationRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 202 + case 210: { + input.readMessage( + internalGetSetConfigurationResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 210 + case 218: { + input.readMessage( + internalGetGetPowerUsageHistoryRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 218 + case 226: { + input.readMessage( + internalGetGetPowerUsageHistoryResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 226 + case 234: { + input.readMessage( + internalGetGetActualPowerUsageRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x04000000; + break; + } // case 234 + case 242: { + input.readMessage( + internalGetGetActualPowerUsageResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 242 + case 250: { + input.readMessage( + internalGetSetRebootRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 250 + case 258: { + input.readMessage( + internalGetSetRebootResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x20000000; + break; + } // case 258 + case 266: { + input.readMessage( + internalGetSetTransitionRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x40000000; + break; + } // case 266 + case 274: { + input.readMessage( + internalGetSetTransitionResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x80000000; + break; + } // case 274 + case 282: { + input.readMessage( + internalGetGetConfigurationRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000001; + break; + } // case 282 + case 290: { + input.readMessage( + internalGetGetConfigurationResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000002; + break; + } // case 290 + case 298: { + input.readMessage( + internalGetConfirmRegisterDeviceRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000004; + break; + } // case 298 + case 306: { + input.readMessage( + internalGetConfirmRegisterDeviceResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000008; + break; + } // case 306 + case 314: { + input.readMessage( + internalGetUpdateDeviceSslCertificationRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000010; + break; + } // case 314 + case 322: { + input.readMessage( + internalGetUpdateDeviceSslCertificationResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000020; + break; + } // case 322 + case 330: { + input.readMessage( + internalGetSetDeviceVerificationKeyRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000040; + break; + } // case 330 + case 338: { + input.readMessage( + internalGetSetDeviceVerificationKeyResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000080; + break; + } // case 338 + case 346: { + input.readMessage( + internalGetSwitchFirmwareRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000100; + break; + } // case 346 + case 354: { + input.readMessage( + internalGetSwitchFirmwareResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000200; + break; + } // case 354 + case 362: { + input.readMessage( + internalGetSwitchConfigurationRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000400; + break; + } // case 362 + case 370: { + input.readMessage( + internalGetSwitchConfigurationResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000800; + break; + } // case 370 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + private int bitField1_; + + private org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest registerDeviceRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.Builder, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequestOrBuilder> registerDeviceRequestBuilder_; + /** + * .oslp.RegisterDeviceRequest registerDeviceRequest = 1; + * @return Whether the registerDeviceRequest field is set. + */ + public boolean hasRegisterDeviceRequest() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.RegisterDeviceRequest registerDeviceRequest = 1; + * @return The registerDeviceRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest getRegisterDeviceRequest() { + if (registerDeviceRequestBuilder_ == null) { + return registerDeviceRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.getDefaultInstance() : registerDeviceRequest_; + } else { + return registerDeviceRequestBuilder_.getMessage(); + } + } + /** + * .oslp.RegisterDeviceRequest registerDeviceRequest = 1; + */ + public Builder setRegisterDeviceRequest(org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest value) { + if (registerDeviceRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + registerDeviceRequest_ = value; + } else { + registerDeviceRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.RegisterDeviceRequest registerDeviceRequest = 1; + */ + public Builder setRegisterDeviceRequest( + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.Builder builderForValue) { + if (registerDeviceRequestBuilder_ == null) { + registerDeviceRequest_ = builderForValue.build(); + } else { + registerDeviceRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.RegisterDeviceRequest registerDeviceRequest = 1; + */ + public Builder mergeRegisterDeviceRequest(org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest value) { + if (registerDeviceRequestBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + registerDeviceRequest_ != null && + registerDeviceRequest_ != org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.getDefaultInstance()) { + getRegisterDeviceRequestBuilder().mergeFrom(value); + } else { + registerDeviceRequest_ = value; + } + } else { + registerDeviceRequestBuilder_.mergeFrom(value); + } + if (registerDeviceRequest_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .oslp.RegisterDeviceRequest registerDeviceRequest = 1; + */ + public Builder clearRegisterDeviceRequest() { + bitField0_ = (bitField0_ & ~0x00000001); + registerDeviceRequest_ = null; + if (registerDeviceRequestBuilder_ != null) { + registerDeviceRequestBuilder_.dispose(); + registerDeviceRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.RegisterDeviceRequest registerDeviceRequest = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.Builder getRegisterDeviceRequestBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetRegisterDeviceRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.RegisterDeviceRequest registerDeviceRequest = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequestOrBuilder getRegisterDeviceRequestOrBuilder() { + if (registerDeviceRequestBuilder_ != null) { + return registerDeviceRequestBuilder_.getMessageOrBuilder(); + } else { + return registerDeviceRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.getDefaultInstance() : registerDeviceRequest_; + } + } + /** + * .oslp.RegisterDeviceRequest registerDeviceRequest = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.Builder, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequestOrBuilder> + internalGetRegisterDeviceRequestFieldBuilder() { + if (registerDeviceRequestBuilder_ == null) { + registerDeviceRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.Builder, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequestOrBuilder>( + getRegisterDeviceRequest(), + getParentForChildren(), + isClean()); + registerDeviceRequest_ = null; + } + return registerDeviceRequestBuilder_; + } - @Override - public EventNotificationResponse getDefaultInstanceForType() { - return defaultInstance; - } + private org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse registerDeviceResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.Builder, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponseOrBuilder> registerDeviceResponseBuilder_; + /** + * .oslp.RegisterDeviceResponse registerDeviceResponse = 2; + * @return Whether the registerDeviceResponse field is set. + */ + public boolean hasRegisterDeviceResponse() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .oslp.RegisterDeviceResponse registerDeviceResponse = 2; + * @return The registerDeviceResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse getRegisterDeviceResponse() { + if (registerDeviceResponseBuilder_ == null) { + return registerDeviceResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.getDefaultInstance() : registerDeviceResponse_; + } else { + return registerDeviceResponseBuilder_.getMessage(); + } + } + /** + * .oslp.RegisterDeviceResponse registerDeviceResponse = 2; + */ + public Builder setRegisterDeviceResponse(org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse value) { + if (registerDeviceResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + registerDeviceResponse_ = value; + } else { + registerDeviceResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .oslp.RegisterDeviceResponse registerDeviceResponse = 2; + */ + public Builder setRegisterDeviceResponse( + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.Builder builderForValue) { + if (registerDeviceResponseBuilder_ == null) { + registerDeviceResponse_ = builderForValue.build(); + } else { + registerDeviceResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .oslp.RegisterDeviceResponse registerDeviceResponse = 2; + */ + public Builder mergeRegisterDeviceResponse(org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse value) { + if (registerDeviceResponseBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + registerDeviceResponse_ != null && + registerDeviceResponse_ != org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.getDefaultInstance()) { + getRegisterDeviceResponseBuilder().mergeFrom(value); + } else { + registerDeviceResponse_ = value; + } + } else { + registerDeviceResponseBuilder_.mergeFrom(value); + } + if (registerDeviceResponse_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .oslp.RegisterDeviceResponse registerDeviceResponse = 2; + */ + public Builder clearRegisterDeviceResponse() { + bitField0_ = (bitField0_ & ~0x00000002); + registerDeviceResponse_ = null; + if (registerDeviceResponseBuilder_ != null) { + registerDeviceResponseBuilder_.dispose(); + registerDeviceResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.RegisterDeviceResponse registerDeviceResponse = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.Builder getRegisterDeviceResponseBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRegisterDeviceResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.RegisterDeviceResponse registerDeviceResponse = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponseOrBuilder getRegisterDeviceResponseOrBuilder() { + if (registerDeviceResponseBuilder_ != null) { + return registerDeviceResponseBuilder_.getMessageOrBuilder(); + } else { + return registerDeviceResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.getDefaultInstance() : registerDeviceResponse_; + } + } + /** + * .oslp.RegisterDeviceResponse registerDeviceResponse = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.Builder, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponseOrBuilder> + internalGetRegisterDeviceResponseFieldBuilder() { + if (registerDeviceResponseBuilder_ == null) { + registerDeviceResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.Builder, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponseOrBuilder>( + getRegisterDeviceResponse(), + getParentForChildren(), + isClean()); + registerDeviceResponse_ = null; + } + return registerDeviceResponseBuilder_; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_EventNotificationResponse_descriptor; - } + private org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest startSelfTestRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest, org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.Builder, org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequestOrBuilder> startSelfTestRequestBuilder_; + /** + * .oslp.StartSelfTestRequest startSelfTestRequest = 3; + * @return Whether the startSelfTestRequest field is set. + */ + public boolean hasStartSelfTestRequest() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .oslp.StartSelfTestRequest startSelfTestRequest = 3; + * @return The startSelfTestRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest getStartSelfTestRequest() { + if (startSelfTestRequestBuilder_ == null) { + return startSelfTestRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.getDefaultInstance() : startSelfTestRequest_; + } else { + return startSelfTestRequestBuilder_.getMessage(); + } + } + /** + * .oslp.StartSelfTestRequest startSelfTestRequest = 3; + */ + public Builder setStartSelfTestRequest(org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest value) { + if (startSelfTestRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startSelfTestRequest_ = value; + } else { + startSelfTestRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .oslp.StartSelfTestRequest startSelfTestRequest = 3; + */ + public Builder setStartSelfTestRequest( + org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.Builder builderForValue) { + if (startSelfTestRequestBuilder_ == null) { + startSelfTestRequest_ = builderForValue.build(); + } else { + startSelfTestRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .oslp.StartSelfTestRequest startSelfTestRequest = 3; + */ + public Builder mergeStartSelfTestRequest(org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest value) { + if (startSelfTestRequestBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + startSelfTestRequest_ != null && + startSelfTestRequest_ != org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.getDefaultInstance()) { + getStartSelfTestRequestBuilder().mergeFrom(value); + } else { + startSelfTestRequest_ = value; + } + } else { + startSelfTestRequestBuilder_.mergeFrom(value); + } + if (startSelfTestRequest_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .oslp.StartSelfTestRequest startSelfTestRequest = 3; + */ + public Builder clearStartSelfTestRequest() { + bitField0_ = (bitField0_ & ~0x00000004); + startSelfTestRequest_ = null; + if (startSelfTestRequestBuilder_ != null) { + startSelfTestRequestBuilder_.dispose(); + startSelfTestRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.StartSelfTestRequest startSelfTestRequest = 3; + */ + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.Builder getStartSelfTestRequestBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetStartSelfTestRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.StartSelfTestRequest startSelfTestRequest = 3; + */ + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequestOrBuilder getStartSelfTestRequestOrBuilder() { + if (startSelfTestRequestBuilder_ != null) { + return startSelfTestRequestBuilder_.getMessageOrBuilder(); + } else { + return startSelfTestRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.getDefaultInstance() : startSelfTestRequest_; + } + } + /** + * .oslp.StartSelfTestRequest startSelfTestRequest = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest, org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.Builder, org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequestOrBuilder> + internalGetStartSelfTestRequestFieldBuilder() { + if (startSelfTestRequestBuilder_ == null) { + startSelfTestRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest, org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.Builder, org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequestOrBuilder>( + getStartSelfTestRequest(), + getParentForChildren(), + isClean()); + startSelfTestRequest_ = null; + } + return startSelfTestRequestBuilder_; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_EventNotificationResponse_fieldAccessorTable; - } + private org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse startSelfTestResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse, org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.Builder, org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponseOrBuilder> startSelfTestResponseBuilder_; + /** + * .oslp.StartSelfTestResponse startSelfTestResponse = 4; + * @return Whether the startSelfTestResponse field is set. + */ + public boolean hasStartSelfTestResponse() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .oslp.StartSelfTestResponse startSelfTestResponse = 4; + * @return The startSelfTestResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse getStartSelfTestResponse() { + if (startSelfTestResponseBuilder_ == null) { + return startSelfTestResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.getDefaultInstance() : startSelfTestResponse_; + } else { + return startSelfTestResponseBuilder_.getMessage(); + } + } + /** + * .oslp.StartSelfTestResponse startSelfTestResponse = 4; + */ + public Builder setStartSelfTestResponse(org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse value) { + if (startSelfTestResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startSelfTestResponse_ = value; + } else { + startSelfTestResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .oslp.StartSelfTestResponse startSelfTestResponse = 4; + */ + public Builder setStartSelfTestResponse( + org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.Builder builderForValue) { + if (startSelfTestResponseBuilder_ == null) { + startSelfTestResponse_ = builderForValue.build(); + } else { + startSelfTestResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .oslp.StartSelfTestResponse startSelfTestResponse = 4; + */ + public Builder mergeStartSelfTestResponse(org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse value) { + if (startSelfTestResponseBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + startSelfTestResponse_ != null && + startSelfTestResponse_ != org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.getDefaultInstance()) { + getStartSelfTestResponseBuilder().mergeFrom(value); + } else { + startSelfTestResponse_ = value; + } + } else { + startSelfTestResponseBuilder_.mergeFrom(value); + } + if (startSelfTestResponse_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * .oslp.StartSelfTestResponse startSelfTestResponse = 4; + */ + public Builder clearStartSelfTestResponse() { + bitField0_ = (bitField0_ & ~0x00000008); + startSelfTestResponse_ = null; + if (startSelfTestResponseBuilder_ != null) { + startSelfTestResponseBuilder_.dispose(); + startSelfTestResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.StartSelfTestResponse startSelfTestResponse = 4; + */ + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.Builder getStartSelfTestResponseBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetStartSelfTestResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.StartSelfTestResponse startSelfTestResponse = 4; + */ + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponseOrBuilder getStartSelfTestResponseOrBuilder() { + if (startSelfTestResponseBuilder_ != null) { + return startSelfTestResponseBuilder_.getMessageOrBuilder(); + } else { + return startSelfTestResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.getDefaultInstance() : startSelfTestResponse_; + } + } + /** + * .oslp.StartSelfTestResponse startSelfTestResponse = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse, org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.Builder, org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponseOrBuilder> + internalGetStartSelfTestResponseFieldBuilder() { + if (startSelfTestResponseBuilder_ == null) { + startSelfTestResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse, org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.Builder, org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponseOrBuilder>( + getStartSelfTestResponse(), + getParentForChildren(), + isClean()); + startSelfTestResponse_ = null; + } + return startSelfTestResponseBuilder_; + } - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; + private org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest stopSelfTestRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest, org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.Builder, org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequestOrBuilder> stopSelfTestRequestBuilder_; + /** + * .oslp.StopSelfTestRequest stopSelfTestRequest = 5; + * @return Whether the stopSelfTestRequest field is set. + */ + public boolean hasStopSelfTestRequest() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .oslp.StopSelfTestRequest stopSelfTestRequest = 5; + * @return The stopSelfTestRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest getStopSelfTestRequest() { + if (stopSelfTestRequestBuilder_ == null) { + return stopSelfTestRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.getDefaultInstance() : stopSelfTestRequest_; + } else { + return stopSelfTestRequestBuilder_.getMessage(); + } + } + /** + * .oslp.StopSelfTestRequest stopSelfTestRequest = 5; + */ + public Builder setStopSelfTestRequest(org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest value) { + if (stopSelfTestRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stopSelfTestRequest_ = value; + } else { + stopSelfTestRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .oslp.StopSelfTestRequest stopSelfTestRequest = 5; + */ + public Builder setStopSelfTestRequest( + org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.Builder builderForValue) { + if (stopSelfTestRequestBuilder_ == null) { + stopSelfTestRequest_ = builderForValue.build(); + } else { + stopSelfTestRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .oslp.StopSelfTestRequest stopSelfTestRequest = 5; + */ + public Builder mergeStopSelfTestRequest(org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest value) { + if (stopSelfTestRequestBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + stopSelfTestRequest_ != null && + stopSelfTestRequest_ != org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.getDefaultInstance()) { + getStopSelfTestRequestBuilder().mergeFrom(value); + } else { + stopSelfTestRequest_ = value; + } + } else { + stopSelfTestRequestBuilder_.mergeFrom(value); + } + if (stopSelfTestRequest_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * .oslp.StopSelfTestRequest stopSelfTestRequest = 5; + */ + public Builder clearStopSelfTestRequest() { + bitField0_ = (bitField0_ & ~0x00000010); + stopSelfTestRequest_ = null; + if (stopSelfTestRequestBuilder_ != null) { + stopSelfTestRequestBuilder_.dispose(); + stopSelfTestRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.StopSelfTestRequest stopSelfTestRequest = 5; + */ + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.Builder getStopSelfTestRequestBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetStopSelfTestRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.StopSelfTestRequest stopSelfTestRequest = 5; + */ + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequestOrBuilder getStopSelfTestRequestOrBuilder() { + if (stopSelfTestRequestBuilder_ != null) { + return stopSelfTestRequestBuilder_.getMessageOrBuilder(); + } else { + return stopSelfTestRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.getDefaultInstance() : stopSelfTestRequest_; + } + } + /** + * .oslp.StopSelfTestRequest stopSelfTestRequest = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest, org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.Builder, org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequestOrBuilder> + internalGetStopSelfTestRequestFieldBuilder() { + if (stopSelfTestRequestBuilder_ == null) { + stopSelfTestRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest, org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.Builder, org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequestOrBuilder>( + getStopSelfTestRequest(), + getParentForChildren(), + isClean()); + stopSelfTestRequest_ = null; + } + return stopSelfTestRequestBuilder_; + } - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + private org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse stopSelfTestResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse, org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.Builder, org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponseOrBuilder> stopSelfTestResponseBuilder_; + /** + * .oslp.StopSelfTestResponse stopSelfTestResponse = 6; + * @return Whether the stopSelfTestResponse field is set. + */ + public boolean hasStopSelfTestResponse() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .oslp.StopSelfTestResponse stopSelfTestResponse = 6; + * @return The stopSelfTestResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse getStopSelfTestResponse() { + if (stopSelfTestResponseBuilder_ == null) { + return stopSelfTestResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.getDefaultInstance() : stopSelfTestResponse_; + } else { + return stopSelfTestResponseBuilder_.getMessage(); + } + } + /** + * .oslp.StopSelfTestResponse stopSelfTestResponse = 6; + */ + public Builder setStopSelfTestResponse(org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse value) { + if (stopSelfTestResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stopSelfTestResponse_ = value; + } else { + stopSelfTestResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .oslp.StopSelfTestResponse stopSelfTestResponse = 6; + */ + public Builder setStopSelfTestResponse( + org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.Builder builderForValue) { + if (stopSelfTestResponseBuilder_ == null) { + stopSelfTestResponse_ = builderForValue.build(); + } else { + stopSelfTestResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .oslp.StopSelfTestResponse stopSelfTestResponse = 6; + */ + public Builder mergeStopSelfTestResponse(org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse value) { + if (stopSelfTestResponseBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + stopSelfTestResponse_ != null && + stopSelfTestResponse_ != org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.getDefaultInstance()) { + getStopSelfTestResponseBuilder().mergeFrom(value); + } else { + stopSelfTestResponse_ = value; + } + } else { + stopSelfTestResponseBuilder_.mergeFrom(value); + } + if (stopSelfTestResponse_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * .oslp.StopSelfTestResponse stopSelfTestResponse = 6; + */ + public Builder clearStopSelfTestResponse() { + bitField0_ = (bitField0_ & ~0x00000020); + stopSelfTestResponse_ = null; + if (stopSelfTestResponseBuilder_ != null) { + stopSelfTestResponseBuilder_.dispose(); + stopSelfTestResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.StopSelfTestResponse stopSelfTestResponse = 6; + */ + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.Builder getStopSelfTestResponseBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetStopSelfTestResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.StopSelfTestResponse stopSelfTestResponse = 6; + */ + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponseOrBuilder getStopSelfTestResponseOrBuilder() { + if (stopSelfTestResponseBuilder_ != null) { + return stopSelfTestResponseBuilder_.getMessageOrBuilder(); + } else { + return stopSelfTestResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.getDefaultInstance() : stopSelfTestResponse_; + } + } + /** + * .oslp.StopSelfTestResponse stopSelfTestResponse = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse, org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.Builder, org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponseOrBuilder> + internalGetStopSelfTestResponseFieldBuilder() { + if (stopSelfTestResponseBuilder_ == null) { + stopSelfTestResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse, org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.Builder, org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponseOrBuilder>( + getStopSelfTestResponse(), + getParentForChildren(), + isClean()); + stopSelfTestResponse_ = null; + } + return stopSelfTestResponseBuilder_; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } + private org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest updateFirmwareRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.Builder, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequestOrBuilder> updateFirmwareRequestBuilder_; + /** + * .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; + * @return Whether the updateFirmwareRequest field is set. + */ + public boolean hasUpdateFirmwareRequest() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; + * @return The updateFirmwareRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest getUpdateFirmwareRequest() { + if (updateFirmwareRequestBuilder_ == null) { + return updateFirmwareRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.getDefaultInstance() : updateFirmwareRequest_; + } else { + return updateFirmwareRequestBuilder_.getMessage(); + } + } + /** + * .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; + */ + public Builder setUpdateFirmwareRequest(org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest value) { + if (updateFirmwareRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateFirmwareRequest_ = value; + } else { + updateFirmwareRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; + */ + public Builder setUpdateFirmwareRequest( + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.Builder builderForValue) { + if (updateFirmwareRequestBuilder_ == null) { + updateFirmwareRequest_ = builderForValue.build(); + } else { + updateFirmwareRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; + */ + public Builder mergeUpdateFirmwareRequest(org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest value) { + if (updateFirmwareRequestBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + updateFirmwareRequest_ != null && + updateFirmwareRequest_ != org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.getDefaultInstance()) { + getUpdateFirmwareRequestBuilder().mergeFrom(value); + } else { + updateFirmwareRequest_ = value; + } + } else { + updateFirmwareRequestBuilder_.mergeFrom(value); + } + if (updateFirmwareRequest_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; + */ + public Builder clearUpdateFirmwareRequest() { + bitField0_ = (bitField0_ & ~0x00000040); + updateFirmwareRequest_ = null; + if (updateFirmwareRequestBuilder_ != null) { + updateFirmwareRequestBuilder_.dispose(); + updateFirmwareRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; + */ + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.Builder getUpdateFirmwareRequestBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUpdateFirmwareRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; + */ + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequestOrBuilder getUpdateFirmwareRequestOrBuilder() { + if (updateFirmwareRequestBuilder_ != null) { + return updateFirmwareRequestBuilder_.getMessageOrBuilder(); + } else { + return updateFirmwareRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.getDefaultInstance() : updateFirmwareRequest_; + } + } + /** + * .oslp.UpdateFirmwareRequest updateFirmwareRequest = 7; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.Builder, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequestOrBuilder> + internalGetUpdateFirmwareRequestFieldBuilder() { + if (updateFirmwareRequestBuilder_ == null) { + updateFirmwareRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.Builder, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequestOrBuilder>( + getUpdateFirmwareRequest(), + getParentForChildren(), + isClean()); + updateFirmwareRequest_ = null; + } + return updateFirmwareRequestBuilder_; + } - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - } + private org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse updateFirmwareResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.Builder, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponseOrBuilder> updateFirmwareResponseBuilder_; + /** + * .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; + * @return Whether the updateFirmwareResponse field is set. + */ + public boolean hasUpdateFirmwareResponse() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; + * @return The updateFirmwareResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse getUpdateFirmwareResponse() { + if (updateFirmwareResponseBuilder_ == null) { + return updateFirmwareResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.getDefaultInstance() : updateFirmwareResponse_; + } else { + return updateFirmwareResponseBuilder_.getMessage(); + } + } + /** + * .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; + */ + public Builder setUpdateFirmwareResponse(org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse value) { + if (updateFirmwareResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateFirmwareResponse_ = value; + } else { + updateFirmwareResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; + */ + public Builder setUpdateFirmwareResponse( + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.Builder builderForValue) { + if (updateFirmwareResponseBuilder_ == null) { + updateFirmwareResponse_ = builderForValue.build(); + } else { + updateFirmwareResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; + */ + public Builder mergeUpdateFirmwareResponse(org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse value) { + if (updateFirmwareResponseBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + updateFirmwareResponse_ != null && + updateFirmwareResponse_ != org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.getDefaultInstance()) { + getUpdateFirmwareResponseBuilder().mergeFrom(value); + } else { + updateFirmwareResponse_ = value; + } + } else { + updateFirmwareResponseBuilder_.mergeFrom(value); + } + if (updateFirmwareResponse_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; + */ + public Builder clearUpdateFirmwareResponse() { + bitField0_ = (bitField0_ & ~0x00000080); + updateFirmwareResponse_ = null; + if (updateFirmwareResponseBuilder_ != null) { + updateFirmwareResponseBuilder_.dispose(); + updateFirmwareResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; + */ + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.Builder getUpdateFirmwareResponseBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetUpdateFirmwareResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; + */ + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponseOrBuilder getUpdateFirmwareResponseOrBuilder() { + if (updateFirmwareResponseBuilder_ != null) { + return updateFirmwareResponseBuilder_.getMessageOrBuilder(); + } else { + return updateFirmwareResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.getDefaultInstance() : updateFirmwareResponse_; + } + } + /** + * .oslp.UpdateFirmwareResponse updateFirmwareResponse = 8; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.Builder, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponseOrBuilder> + internalGetUpdateFirmwareResponseFieldBuilder() { + if (updateFirmwareResponseBuilder_ == null) { + updateFirmwareResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.Builder, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponseOrBuilder>( + getUpdateFirmwareResponse(), + getParentForChildren(), + isClean()); + updateFirmwareResponse_ = null; + } + return updateFirmwareResponseBuilder_; + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + private org.opensmartgridplatform.oslp.Oslp.SetLightRequest setLightRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetLightRequest, org.opensmartgridplatform.oslp.Oslp.SetLightRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetLightRequestOrBuilder> setLightRequestBuilder_; + /** + * .oslp.SetLightRequest setLightRequest = 9; + * @return Whether the setLightRequest field is set. + */ + public boolean hasSetLightRequest() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * .oslp.SetLightRequest setLightRequest = 9; + * @return The setLightRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.SetLightRequest getSetLightRequest() { + if (setLightRequestBuilder_ == null) { + return setLightRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetLightRequest.getDefaultInstance() : setLightRequest_; + } else { + return setLightRequestBuilder_.getMessage(); + } + } + /** + * .oslp.SetLightRequest setLightRequest = 9; + */ + public Builder setSetLightRequest(org.opensmartgridplatform.oslp.Oslp.SetLightRequest value) { + if (setLightRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + setLightRequest_ = value; + } else { + setLightRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * .oslp.SetLightRequest setLightRequest = 9; + */ + public Builder setSetLightRequest( + org.opensmartgridplatform.oslp.Oslp.SetLightRequest.Builder builderForValue) { + if (setLightRequestBuilder_ == null) { + setLightRequest_ = builderForValue.build(); + } else { + setLightRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * .oslp.SetLightRequest setLightRequest = 9; + */ + public Builder mergeSetLightRequest(org.opensmartgridplatform.oslp.Oslp.SetLightRequest value) { + if (setLightRequestBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + setLightRequest_ != null && + setLightRequest_ != org.opensmartgridplatform.oslp.Oslp.SetLightRequest.getDefaultInstance()) { + getSetLightRequestBuilder().mergeFrom(value); + } else { + setLightRequest_ = value; + } + } else { + setLightRequestBuilder_.mergeFrom(value); + } + if (setLightRequest_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + * .oslp.SetLightRequest setLightRequest = 9; + */ + public Builder clearSetLightRequest() { + bitField0_ = (bitField0_ & ~0x00000100); + setLightRequest_ = null; + if (setLightRequestBuilder_ != null) { + setLightRequestBuilder_.dispose(); + setLightRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SetLightRequest setLightRequest = 9; + */ + public org.opensmartgridplatform.oslp.Oslp.SetLightRequest.Builder getSetLightRequestBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetSetLightRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.SetLightRequest setLightRequest = 9; + */ + public org.opensmartgridplatform.oslp.Oslp.SetLightRequestOrBuilder getSetLightRequestOrBuilder() { + if (setLightRequestBuilder_ != null) { + return setLightRequestBuilder_.getMessageOrBuilder(); + } else { + return setLightRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.SetLightRequest.getDefaultInstance() : setLightRequest_; + } + } + /** + * .oslp.SetLightRequest setLightRequest = 9; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetLightRequest, org.opensmartgridplatform.oslp.Oslp.SetLightRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetLightRequestOrBuilder> + internalGetSetLightRequestFieldBuilder() { + if (setLightRequestBuilder_ == null) { + setLightRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetLightRequest, org.opensmartgridplatform.oslp.Oslp.SetLightRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetLightRequestOrBuilder>( + getSetLightRequest(), + getParentForChildren(), + isClean()); + setLightRequest_ = null; + } + return setLightRequestBuilder_; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } + private org.opensmartgridplatform.oslp.Oslp.SetLightResponse setLightResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetLightResponse, org.opensmartgridplatform.oslp.Oslp.SetLightResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetLightResponseOrBuilder> setLightResponseBuilder_; + /** + * .oslp.SetLightResponse setLightResponse = 10; + * @return Whether the setLightResponse field is set. + */ + public boolean hasSetLightResponse() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * .oslp.SetLightResponse setLightResponse = 10; + * @return The setLightResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.SetLightResponse getSetLightResponse() { + if (setLightResponseBuilder_ == null) { + return setLightResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetLightResponse.getDefaultInstance() : setLightResponse_; + } else { + return setLightResponseBuilder_.getMessage(); + } + } + /** + * .oslp.SetLightResponse setLightResponse = 10; + */ + public Builder setSetLightResponse(org.opensmartgridplatform.oslp.Oslp.SetLightResponse value) { + if (setLightResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + setLightResponse_ = value; + } else { + setLightResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * .oslp.SetLightResponse setLightResponse = 10; + */ + public Builder setSetLightResponse( + org.opensmartgridplatform.oslp.Oslp.SetLightResponse.Builder builderForValue) { + if (setLightResponseBuilder_ == null) { + setLightResponse_ = builderForValue.build(); + } else { + setLightResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * .oslp.SetLightResponse setLightResponse = 10; + */ + public Builder mergeSetLightResponse(org.opensmartgridplatform.oslp.Oslp.SetLightResponse value) { + if (setLightResponseBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + setLightResponse_ != null && + setLightResponse_ != org.opensmartgridplatform.oslp.Oslp.SetLightResponse.getDefaultInstance()) { + getSetLightResponseBuilder().mergeFrom(value); + } else { + setLightResponse_ = value; + } + } else { + setLightResponseBuilder_.mergeFrom(value); + } + if (setLightResponse_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * .oslp.SetLightResponse setLightResponse = 10; + */ + public Builder clearSetLightResponse() { + bitField0_ = (bitField0_ & ~0x00000200); + setLightResponse_ = null; + if (setLightResponseBuilder_ != null) { + setLightResponseBuilder_.dispose(); + setLightResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SetLightResponse setLightResponse = 10; + */ + public org.opensmartgridplatform.oslp.Oslp.SetLightResponse.Builder getSetLightResponseBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetSetLightResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.SetLightResponse setLightResponse = 10; + */ + public org.opensmartgridplatform.oslp.Oslp.SetLightResponseOrBuilder getSetLightResponseOrBuilder() { + if (setLightResponseBuilder_ != null) { + return setLightResponseBuilder_.getMessageOrBuilder(); + } else { + return setLightResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.SetLightResponse.getDefaultInstance() : setLightResponse_; + } + } + /** + * .oslp.SetLightResponse setLightResponse = 10; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetLightResponse, org.opensmartgridplatform.oslp.Oslp.SetLightResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetLightResponseOrBuilder> + internalGetSetLightResponseFieldBuilder() { + if (setLightResponseBuilder_ == null) { + setLightResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetLightResponse, org.opensmartgridplatform.oslp.Oslp.SetLightResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetLightResponseOrBuilder>( + getSetLightResponse(), + getParentForChildren(), + isClean()); + setLightResponse_ = null; + } + return setLightResponseBuilder_; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + private org.opensmartgridplatform.oslp.Oslp.GetStatusRequest getStatusRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetStatusRequest, org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.Builder, org.opensmartgridplatform.oslp.Oslp.GetStatusRequestOrBuilder> getStatusRequestBuilder_; + /** + * .oslp.GetStatusRequest getStatusRequest = 11; + * @return Whether the getStatusRequest field is set. + */ + public boolean hasGetStatusRequest() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * .oslp.GetStatusRequest getStatusRequest = 11; + * @return The getStatusRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.GetStatusRequest getGetStatusRequest() { + if (getStatusRequestBuilder_ == null) { + return getStatusRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.getDefaultInstance() : getStatusRequest_; + } else { + return getStatusRequestBuilder_.getMessage(); + } + } + /** + * .oslp.GetStatusRequest getStatusRequest = 11; + */ + public Builder setGetStatusRequest(org.opensmartgridplatform.oslp.Oslp.GetStatusRequest value) { + if (getStatusRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + getStatusRequest_ = value; + } else { + getStatusRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * .oslp.GetStatusRequest getStatusRequest = 11; + */ + public Builder setGetStatusRequest( + org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.Builder builderForValue) { + if (getStatusRequestBuilder_ == null) { + getStatusRequest_ = builderForValue.build(); + } else { + getStatusRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * .oslp.GetStatusRequest getStatusRequest = 11; + */ + public Builder mergeGetStatusRequest(org.opensmartgridplatform.oslp.Oslp.GetStatusRequest value) { + if (getStatusRequestBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) && + getStatusRequest_ != null && + getStatusRequest_ != org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.getDefaultInstance()) { + getGetStatusRequestBuilder().mergeFrom(value); + } else { + getStatusRequest_ = value; + } + } else { + getStatusRequestBuilder_.mergeFrom(value); + } + if (getStatusRequest_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + * .oslp.GetStatusRequest getStatusRequest = 11; + */ + public Builder clearGetStatusRequest() { + bitField0_ = (bitField0_ & ~0x00000400); + getStatusRequest_ = null; + if (getStatusRequestBuilder_ != null) { + getStatusRequestBuilder_.dispose(); + getStatusRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.GetStatusRequest getStatusRequest = 11; + */ + public org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.Builder getGetStatusRequestBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetGetStatusRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.GetStatusRequest getStatusRequest = 11; + */ + public org.opensmartgridplatform.oslp.Oslp.GetStatusRequestOrBuilder getGetStatusRequestOrBuilder() { + if (getStatusRequestBuilder_ != null) { + return getStatusRequestBuilder_.getMessageOrBuilder(); + } else { + return getStatusRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.getDefaultInstance() : getStatusRequest_; + } + } + /** + * .oslp.GetStatusRequest getStatusRequest = 11; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetStatusRequest, org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.Builder, org.opensmartgridplatform.oslp.Oslp.GetStatusRequestOrBuilder> + internalGetGetStatusRequestFieldBuilder() { + if (getStatusRequestBuilder_ == null) { + getStatusRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetStatusRequest, org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.Builder, org.opensmartgridplatform.oslp.Oslp.GetStatusRequestOrBuilder>( + getGetStatusRequest(), + getParentForChildren(), + isClean()); + getStatusRequest_ = null; + } + return getStatusRequestBuilder_; + } - private static final long serialVersionUID = 0L; + private org.opensmartgridplatform.oslp.Oslp.GetStatusResponse getStatusResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetStatusResponse, org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.Builder, org.opensmartgridplatform.oslp.Oslp.GetStatusResponseOrBuilder> getStatusResponseBuilder_; + /** + * .oslp.GetStatusResponse getStatusResponse = 12; + * @return Whether the getStatusResponse field is set. + */ + public boolean hasGetStatusResponse() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * .oslp.GetStatusResponse getStatusResponse = 12; + * @return The getStatusResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.GetStatusResponse getGetStatusResponse() { + if (getStatusResponseBuilder_ == null) { + return getStatusResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.getDefaultInstance() : getStatusResponse_; + } else { + return getStatusResponseBuilder_.getMessage(); + } + } + /** + * .oslp.GetStatusResponse getStatusResponse = 12; + */ + public Builder setGetStatusResponse(org.opensmartgridplatform.oslp.Oslp.GetStatusResponse value) { + if (getStatusResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + getStatusResponse_ = value; + } else { + getStatusResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * .oslp.GetStatusResponse getStatusResponse = 12; + */ + public Builder setGetStatusResponse( + org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.Builder builderForValue) { + if (getStatusResponseBuilder_ == null) { + getStatusResponse_ = builderForValue.build(); + } else { + getStatusResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * .oslp.GetStatusResponse getStatusResponse = 12; + */ + public Builder mergeGetStatusResponse(org.opensmartgridplatform.oslp.Oslp.GetStatusResponse value) { + if (getStatusResponseBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + getStatusResponse_ != null && + getStatusResponse_ != org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.getDefaultInstance()) { + getGetStatusResponseBuilder().mergeFrom(value); + } else { + getStatusResponse_ = value; + } + } else { + getStatusResponseBuilder_.mergeFrom(value); + } + if (getStatusResponse_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + * .oslp.GetStatusResponse getStatusResponse = 12; + */ + public Builder clearGetStatusResponse() { + bitField0_ = (bitField0_ & ~0x00000800); + getStatusResponse_ = null; + if (getStatusResponseBuilder_ != null) { + getStatusResponseBuilder_.dispose(); + getStatusResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.GetStatusResponse getStatusResponse = 12; + */ + public org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.Builder getGetStatusResponseBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetGetStatusResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.GetStatusResponse getStatusResponse = 12; + */ + public org.opensmartgridplatform.oslp.Oslp.GetStatusResponseOrBuilder getGetStatusResponseOrBuilder() { + if (getStatusResponseBuilder_ != null) { + return getStatusResponseBuilder_.getMessageOrBuilder(); + } else { + return getStatusResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.getDefaultInstance() : getStatusResponse_; + } + } + /** + * .oslp.GetStatusResponse getStatusResponse = 12; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetStatusResponse, org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.Builder, org.opensmartgridplatform.oslp.Oslp.GetStatusResponseOrBuilder> + internalGetGetStatusResponseFieldBuilder() { + if (getStatusResponseBuilder_ == null) { + getStatusResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetStatusResponse, org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.Builder, org.opensmartgridplatform.oslp.Oslp.GetStatusResponseOrBuilder>( + getGetStatusResponse(), + getParentForChildren(), + isClean()); + getStatusResponse_ = null; + } + return getStatusResponseBuilder_; + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + private org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest resumeScheduleRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.Builder, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequestOrBuilder> resumeScheduleRequestBuilder_; + /** + * .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; + * @return Whether the resumeScheduleRequest field is set. + */ + public boolean hasResumeScheduleRequest() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; + * @return The resumeScheduleRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest getResumeScheduleRequest() { + if (resumeScheduleRequestBuilder_ == null) { + return resumeScheduleRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.getDefaultInstance() : resumeScheduleRequest_; + } else { + return resumeScheduleRequestBuilder_.getMessage(); + } + } + /** + * .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; + */ + public Builder setResumeScheduleRequest(org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest value) { + if (resumeScheduleRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resumeScheduleRequest_ = value; + } else { + resumeScheduleRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; + */ + public Builder setResumeScheduleRequest( + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.Builder builderForValue) { + if (resumeScheduleRequestBuilder_ == null) { + resumeScheduleRequest_ = builderForValue.build(); + } else { + resumeScheduleRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; + */ + public Builder mergeResumeScheduleRequest(org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest value) { + if (resumeScheduleRequestBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) && + resumeScheduleRequest_ != null && + resumeScheduleRequest_ != org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.getDefaultInstance()) { + getResumeScheduleRequestBuilder().mergeFrom(value); + } else { + resumeScheduleRequest_ = value; + } + } else { + resumeScheduleRequestBuilder_.mergeFrom(value); + } + if (resumeScheduleRequest_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + * .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; + */ + public Builder clearResumeScheduleRequest() { + bitField0_ = (bitField0_ & ~0x00001000); + resumeScheduleRequest_ = null; + if (resumeScheduleRequestBuilder_ != null) { + resumeScheduleRequestBuilder_.dispose(); + resumeScheduleRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; + */ + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.Builder getResumeScheduleRequestBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetResumeScheduleRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; + */ + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequestOrBuilder getResumeScheduleRequestOrBuilder() { + if (resumeScheduleRequestBuilder_ != null) { + return resumeScheduleRequestBuilder_.getMessageOrBuilder(); + } else { + return resumeScheduleRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.getDefaultInstance() : resumeScheduleRequest_; + } + } + /** + * .oslp.ResumeScheduleRequest resumeScheduleRequest = 13; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.Builder, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequestOrBuilder> + internalGetResumeScheduleRequestFieldBuilder() { + if (resumeScheduleRequestBuilder_ == null) { + resumeScheduleRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.Builder, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequestOrBuilder>( + getResumeScheduleRequest(), + getParentForChildren(), + isClean()); + resumeScheduleRequest_ = null; + } + return resumeScheduleRequestBuilder_; + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse resumeScheduleResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.Builder, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponseOrBuilder> resumeScheduleResponseBuilder_; + /** + * .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; + * @return Whether the resumeScheduleResponse field is set. + */ + public boolean hasResumeScheduleResponse() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; + * @return The resumeScheduleResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse getResumeScheduleResponse() { + if (resumeScheduleResponseBuilder_ == null) { + return resumeScheduleResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.getDefaultInstance() : resumeScheduleResponse_; + } else { + return resumeScheduleResponseBuilder_.getMessage(); + } + } + /** + * .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; + */ + public Builder setResumeScheduleResponse(org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse value) { + if (resumeScheduleResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resumeScheduleResponse_ = value; + } else { + resumeScheduleResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; + */ + public Builder setResumeScheduleResponse( + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.Builder builderForValue) { + if (resumeScheduleResponseBuilder_ == null) { + resumeScheduleResponse_ = builderForValue.build(); + } else { + resumeScheduleResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; + */ + public Builder mergeResumeScheduleResponse(org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse value) { + if (resumeScheduleResponseBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) && + resumeScheduleResponse_ != null && + resumeScheduleResponse_ != org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.getDefaultInstance()) { + getResumeScheduleResponseBuilder().mergeFrom(value); + } else { + resumeScheduleResponse_ = value; + } + } else { + resumeScheduleResponseBuilder_.mergeFrom(value); + } + if (resumeScheduleResponse_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + * .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; + */ + public Builder clearResumeScheduleResponse() { + bitField0_ = (bitField0_ & ~0x00002000); + resumeScheduleResponse_ = null; + if (resumeScheduleResponseBuilder_ != null) { + resumeScheduleResponseBuilder_.dispose(); + resumeScheduleResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; + */ + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.Builder getResumeScheduleResponseBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return internalGetResumeScheduleResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; + */ + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponseOrBuilder getResumeScheduleResponseOrBuilder() { + if (resumeScheduleResponseBuilder_ != null) { + return resumeScheduleResponseBuilder_.getMessageOrBuilder(); + } else { + return resumeScheduleResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.getDefaultInstance() : resumeScheduleResponse_; + } + } + /** + * .oslp.ResumeScheduleResponse resumeScheduleResponse = 14; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.Builder, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponseOrBuilder> + internalGetResumeScheduleResponseFieldBuilder() { + if (resumeScheduleResponseBuilder_ == null) { + resumeScheduleResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.Builder, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponseOrBuilder>( + getResumeScheduleResponse(), + getParentForChildren(), + isClean()); + resumeScheduleResponse_ = null; + } + return resumeScheduleResponseBuilder_; + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + private org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest setEventNotificationsRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequestOrBuilder> setEventNotificationsRequestBuilder_; + /** + * .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; + * @return Whether the setEventNotificationsRequest field is set. + */ + public boolean hasSetEventNotificationsRequest() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; + * @return The setEventNotificationsRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest getSetEventNotificationsRequest() { + if (setEventNotificationsRequestBuilder_ == null) { + return setEventNotificationsRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.getDefaultInstance() : setEventNotificationsRequest_; + } else { + return setEventNotificationsRequestBuilder_.getMessage(); + } + } + /** + * .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; + */ + public Builder setSetEventNotificationsRequest(org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest value) { + if (setEventNotificationsRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + setEventNotificationsRequest_ = value; + } else { + setEventNotificationsRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; + */ + public Builder setSetEventNotificationsRequest( + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.Builder builderForValue) { + if (setEventNotificationsRequestBuilder_ == null) { + setEventNotificationsRequest_ = builderForValue.build(); + } else { + setEventNotificationsRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; + */ + public Builder mergeSetEventNotificationsRequest(org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest value) { + if (setEventNotificationsRequestBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) && + setEventNotificationsRequest_ != null && + setEventNotificationsRequest_ != org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.getDefaultInstance()) { + getSetEventNotificationsRequestBuilder().mergeFrom(value); + } else { + setEventNotificationsRequest_ = value; + } + } else { + setEventNotificationsRequestBuilder_.mergeFrom(value); + } + if (setEventNotificationsRequest_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + * .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; + */ + public Builder clearSetEventNotificationsRequest() { + bitField0_ = (bitField0_ & ~0x00004000); + setEventNotificationsRequest_ = null; + if (setEventNotificationsRequestBuilder_ != null) { + setEventNotificationsRequestBuilder_.dispose(); + setEventNotificationsRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; + */ + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.Builder getSetEventNotificationsRequestBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return internalGetSetEventNotificationsRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; + */ + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequestOrBuilder getSetEventNotificationsRequestOrBuilder() { + if (setEventNotificationsRequestBuilder_ != null) { + return setEventNotificationsRequestBuilder_.getMessageOrBuilder(); + } else { + return setEventNotificationsRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.getDefaultInstance() : setEventNotificationsRequest_; + } + } + /** + * .oslp.SetEventNotificationsRequest setEventNotificationsRequest = 15; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequestOrBuilder> + internalGetSetEventNotificationsRequestFieldBuilder() { + if (setEventNotificationsRequestBuilder_ == null) { + setEventNotificationsRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequestOrBuilder>( + getSetEventNotificationsRequest(), + getParentForChildren(), + isClean()); + setEventNotificationsRequest_ = null; + } + return setEventNotificationsRequestBuilder_; + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse setEventNotificationsResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponseOrBuilder> setEventNotificationsResponseBuilder_; + /** + * .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; + * @return Whether the setEventNotificationsResponse field is set. + */ + public boolean hasSetEventNotificationsResponse() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; + * @return The setEventNotificationsResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse getSetEventNotificationsResponse() { + if (setEventNotificationsResponseBuilder_ == null) { + return setEventNotificationsResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.getDefaultInstance() : setEventNotificationsResponse_; + } else { + return setEventNotificationsResponseBuilder_.getMessage(); + } + } + /** + * .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; + */ + public Builder setSetEventNotificationsResponse(org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse value) { + if (setEventNotificationsResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + setEventNotificationsResponse_ = value; + } else { + setEventNotificationsResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; + */ + public Builder setSetEventNotificationsResponse( + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.Builder builderForValue) { + if (setEventNotificationsResponseBuilder_ == null) { + setEventNotificationsResponse_ = builderForValue.build(); + } else { + setEventNotificationsResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; + */ + public Builder mergeSetEventNotificationsResponse(org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse value) { + if (setEventNotificationsResponseBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) && + setEventNotificationsResponse_ != null && + setEventNotificationsResponse_ != org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.getDefaultInstance()) { + getSetEventNotificationsResponseBuilder().mergeFrom(value); + } else { + setEventNotificationsResponse_ = value; + } + } else { + setEventNotificationsResponseBuilder_.mergeFrom(value); + } + if (setEventNotificationsResponse_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + * .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; + */ + public Builder clearSetEventNotificationsResponse() { + bitField0_ = (bitField0_ & ~0x00008000); + setEventNotificationsResponse_ = null; + if (setEventNotificationsResponseBuilder_ != null) { + setEventNotificationsResponseBuilder_.dispose(); + setEventNotificationsResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; + */ + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.Builder getSetEventNotificationsResponseBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return internalGetSetEventNotificationsResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; + */ + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponseOrBuilder getSetEventNotificationsResponseOrBuilder() { + if (setEventNotificationsResponseBuilder_ != null) { + return setEventNotificationsResponseBuilder_.getMessageOrBuilder(); + } else { + return setEventNotificationsResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.getDefaultInstance() : setEventNotificationsResponse_; + } + } + /** + * .oslp.SetEventNotificationsResponse setEventNotificationsResponse = 16; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponseOrBuilder> + internalGetSetEventNotificationsResponseFieldBuilder() { + if (setEventNotificationsResponseBuilder_ == null) { + setEventNotificationsResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponseOrBuilder>( + getSetEventNotificationsResponse(), + getParentForChildren(), + isClean()); + setEventNotificationsResponse_ = null; + } + return setEventNotificationsResponseBuilder_; + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + private org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest eventNotificationRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest, org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.Builder, org.opensmartgridplatform.oslp.Oslp.EventNotificationRequestOrBuilder> eventNotificationRequestBuilder_; + /** + * .oslp.EventNotificationRequest eventNotificationRequest = 17; + * @return Whether the eventNotificationRequest field is set. + */ + public boolean hasEventNotificationRequest() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * .oslp.EventNotificationRequest eventNotificationRequest = 17; + * @return The eventNotificationRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest getEventNotificationRequest() { + if (eventNotificationRequestBuilder_ == null) { + return eventNotificationRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.getDefaultInstance() : eventNotificationRequest_; + } else { + return eventNotificationRequestBuilder_.getMessage(); + } + } + /** + * .oslp.EventNotificationRequest eventNotificationRequest = 17; + */ + public Builder setEventNotificationRequest(org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest value) { + if (eventNotificationRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventNotificationRequest_ = value; + } else { + eventNotificationRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * .oslp.EventNotificationRequest eventNotificationRequest = 17; + */ + public Builder setEventNotificationRequest( + org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.Builder builderForValue) { + if (eventNotificationRequestBuilder_ == null) { + eventNotificationRequest_ = builderForValue.build(); + } else { + eventNotificationRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * .oslp.EventNotificationRequest eventNotificationRequest = 17; + */ + public Builder mergeEventNotificationRequest(org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest value) { + if (eventNotificationRequestBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) && + eventNotificationRequest_ != null && + eventNotificationRequest_ != org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.getDefaultInstance()) { + getEventNotificationRequestBuilder().mergeFrom(value); + } else { + eventNotificationRequest_ = value; + } + } else { + eventNotificationRequestBuilder_.mergeFrom(value); + } + if (eventNotificationRequest_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + * .oslp.EventNotificationRequest eventNotificationRequest = 17; + */ + public Builder clearEventNotificationRequest() { + bitField0_ = (bitField0_ & ~0x00010000); + eventNotificationRequest_ = null; + if (eventNotificationRequestBuilder_ != null) { + eventNotificationRequestBuilder_.dispose(); + eventNotificationRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.EventNotificationRequest eventNotificationRequest = 17; + */ + public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.Builder getEventNotificationRequestBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return internalGetEventNotificationRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.EventNotificationRequest eventNotificationRequest = 17; + */ + public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequestOrBuilder getEventNotificationRequestOrBuilder() { + if (eventNotificationRequestBuilder_ != null) { + return eventNotificationRequestBuilder_.getMessageOrBuilder(); + } else { + return eventNotificationRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.getDefaultInstance() : eventNotificationRequest_; + } + } + /** + * .oslp.EventNotificationRequest eventNotificationRequest = 17; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest, org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.Builder, org.opensmartgridplatform.oslp.Oslp.EventNotificationRequestOrBuilder> + internalGetEventNotificationRequestFieldBuilder() { + if (eventNotificationRequestBuilder_ == null) { + eventNotificationRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest, org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.Builder, org.opensmartgridplatform.oslp.Oslp.EventNotificationRequestOrBuilder>( + getEventNotificationRequest(), + getParentForChildren(), + isClean()); + eventNotificationRequest_ = null; + } + return eventNotificationRequestBuilder_; + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse eventNotificationResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse, org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.Builder, org.opensmartgridplatform.oslp.Oslp.EventNotificationResponseOrBuilder> eventNotificationResponseBuilder_; + /** + * .oslp.EventNotificationResponse eventNotificationResponse = 18; + * @return Whether the eventNotificationResponse field is set. + */ + public boolean hasEventNotificationResponse() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * .oslp.EventNotificationResponse eventNotificationResponse = 18; + * @return The eventNotificationResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse getEventNotificationResponse() { + if (eventNotificationResponseBuilder_ == null) { + return eventNotificationResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.getDefaultInstance() : eventNotificationResponse_; + } else { + return eventNotificationResponseBuilder_.getMessage(); + } + } + /** + * .oslp.EventNotificationResponse eventNotificationResponse = 18; + */ + public Builder setEventNotificationResponse(org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse value) { + if (eventNotificationResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventNotificationResponse_ = value; + } else { + eventNotificationResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * .oslp.EventNotificationResponse eventNotificationResponse = 18; + */ + public Builder setEventNotificationResponse( + org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.Builder builderForValue) { + if (eventNotificationResponseBuilder_ == null) { + eventNotificationResponse_ = builderForValue.build(); + } else { + eventNotificationResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * .oslp.EventNotificationResponse eventNotificationResponse = 18; + */ + public Builder mergeEventNotificationResponse(org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse value) { + if (eventNotificationResponseBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) && + eventNotificationResponse_ != null && + eventNotificationResponse_ != org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.getDefaultInstance()) { + getEventNotificationResponseBuilder().mergeFrom(value); + } else { + eventNotificationResponse_ = value; + } + } else { + eventNotificationResponseBuilder_.mergeFrom(value); + } + if (eventNotificationResponse_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + * .oslp.EventNotificationResponse eventNotificationResponse = 18; + */ + public Builder clearEventNotificationResponse() { + bitField0_ = (bitField0_ & ~0x00020000); + eventNotificationResponse_ = null; + if (eventNotificationResponseBuilder_ != null) { + eventNotificationResponseBuilder_.dispose(); + eventNotificationResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.EventNotificationResponse eventNotificationResponse = 18; + */ + public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.Builder getEventNotificationResponseBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return internalGetEventNotificationResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.EventNotificationResponse eventNotificationResponse = 18; + */ + public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponseOrBuilder getEventNotificationResponseOrBuilder() { + if (eventNotificationResponseBuilder_ != null) { + return eventNotificationResponseBuilder_.getMessageOrBuilder(); + } else { + return eventNotificationResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.getDefaultInstance() : eventNotificationResponse_; + } + } + /** + * .oslp.EventNotificationResponse eventNotificationResponse = 18; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse, org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.Builder, org.opensmartgridplatform.oslp.Oslp.EventNotificationResponseOrBuilder> + internalGetEventNotificationResponseFieldBuilder() { + if (eventNotificationResponseBuilder_ == null) { + eventNotificationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse, org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.Builder, org.opensmartgridplatform.oslp.Oslp.EventNotificationResponseOrBuilder>( + getEventNotificationResponse(), + getParentForChildren(), + isClean()); + eventNotificationResponse_ = null; + } + return eventNotificationResponseBuilder_; + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + private org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest getFirmwareVersionRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.Builder, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequestOrBuilder> getFirmwareVersionRequestBuilder_; + /** + * .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; + * @return Whether the getFirmwareVersionRequest field is set. + */ + public boolean hasGetFirmwareVersionRequest() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; + * @return The getFirmwareVersionRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest getGetFirmwareVersionRequest() { + if (getFirmwareVersionRequestBuilder_ == null) { + return getFirmwareVersionRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.getDefaultInstance() : getFirmwareVersionRequest_; + } else { + return getFirmwareVersionRequestBuilder_.getMessage(); + } + } + /** + * .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; + */ + public Builder setGetFirmwareVersionRequest(org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest value) { + if (getFirmwareVersionRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + getFirmwareVersionRequest_ = value; + } else { + getFirmwareVersionRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; + */ + public Builder setGetFirmwareVersionRequest( + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.Builder builderForValue) { + if (getFirmwareVersionRequestBuilder_ == null) { + getFirmwareVersionRequest_ = builderForValue.build(); + } else { + getFirmwareVersionRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; + */ + public Builder mergeGetFirmwareVersionRequest(org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest value) { + if (getFirmwareVersionRequestBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) && + getFirmwareVersionRequest_ != null && + getFirmwareVersionRequest_ != org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.getDefaultInstance()) { + getGetFirmwareVersionRequestBuilder().mergeFrom(value); + } else { + getFirmwareVersionRequest_ = value; + } + } else { + getFirmwareVersionRequestBuilder_.mergeFrom(value); + } + if (getFirmwareVersionRequest_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + * .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; + */ + public Builder clearGetFirmwareVersionRequest() { + bitField0_ = (bitField0_ & ~0x00040000); + getFirmwareVersionRequest_ = null; + if (getFirmwareVersionRequestBuilder_ != null) { + getFirmwareVersionRequestBuilder_.dispose(); + getFirmwareVersionRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; + */ + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.Builder getGetFirmwareVersionRequestBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return internalGetGetFirmwareVersionRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; + */ + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequestOrBuilder getGetFirmwareVersionRequestOrBuilder() { + if (getFirmwareVersionRequestBuilder_ != null) { + return getFirmwareVersionRequestBuilder_.getMessageOrBuilder(); + } else { + return getFirmwareVersionRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.getDefaultInstance() : getFirmwareVersionRequest_; + } + } + /** + * .oslp.GetFirmwareVersionRequest getFirmwareVersionRequest = 19; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.Builder, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequestOrBuilder> + internalGetGetFirmwareVersionRequestFieldBuilder() { + if (getFirmwareVersionRequestBuilder_ == null) { + getFirmwareVersionRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.Builder, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequestOrBuilder>( + getGetFirmwareVersionRequest(), + getParentForChildren(), + isClean()); + getFirmwareVersionRequest_ = null; + } + return getFirmwareVersionRequestBuilder_; + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + private org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse getFirmwareVersionResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.Builder, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponseOrBuilder> getFirmwareVersionResponseBuilder_; + /** + * .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; + * @return Whether the getFirmwareVersionResponse field is set. + */ + public boolean hasGetFirmwareVersionResponse() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + * .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; + * @return The getFirmwareVersionResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse getGetFirmwareVersionResponse() { + if (getFirmwareVersionResponseBuilder_ == null) { + return getFirmwareVersionResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.getDefaultInstance() : getFirmwareVersionResponse_; + } else { + return getFirmwareVersionResponseBuilder_.getMessage(); + } + } + /** + * .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; + */ + public Builder setGetFirmwareVersionResponse(org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse value) { + if (getFirmwareVersionResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + getFirmwareVersionResponse_ = value; + } else { + getFirmwareVersionResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; + */ + public Builder setGetFirmwareVersionResponse( + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.Builder builderForValue) { + if (getFirmwareVersionResponseBuilder_ == null) { + getFirmwareVersionResponse_ = builderForValue.build(); + } else { + getFirmwareVersionResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; + */ + public Builder mergeGetFirmwareVersionResponse(org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse value) { + if (getFirmwareVersionResponseBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) && + getFirmwareVersionResponse_ != null && + getFirmwareVersionResponse_ != org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.getDefaultInstance()) { + getGetFirmwareVersionResponseBuilder().mergeFrom(value); + } else { + getFirmwareVersionResponse_ = value; + } + } else { + getFirmwareVersionResponseBuilder_.mergeFrom(value); + } + if (getFirmwareVersionResponse_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + /** + * .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; + */ + public Builder clearGetFirmwareVersionResponse() { + bitField0_ = (bitField0_ & ~0x00080000); + getFirmwareVersionResponse_ = null; + if (getFirmwareVersionResponseBuilder_ != null) { + getFirmwareVersionResponseBuilder_.dispose(); + getFirmwareVersionResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; + */ + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.Builder getGetFirmwareVersionResponseBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return internalGetGetFirmwareVersionResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; + */ + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponseOrBuilder getGetFirmwareVersionResponseOrBuilder() { + if (getFirmwareVersionResponseBuilder_ != null) { + return getFirmwareVersionResponseBuilder_.getMessageOrBuilder(); + } else { + return getFirmwareVersionResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.getDefaultInstance() : getFirmwareVersionResponse_; + } + } + /** + * .oslp.GetFirmwareVersionResponse getFirmwareVersionResponse = 20; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.Builder, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponseOrBuilder> + internalGetGetFirmwareVersionResponseFieldBuilder() { + if (getFirmwareVersionResponseBuilder_ == null) { + getFirmwareVersionResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.Builder, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponseOrBuilder>( + getGetFirmwareVersionResponse(), + getParentForChildren(), + isClean()); + getFirmwareVersionResponse_ = null; + } + return getFirmwareVersionResponseBuilder_; + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + private org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest setScheduleRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest, org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetScheduleRequestOrBuilder> setScheduleRequestBuilder_; + /** + * .oslp.SetScheduleRequest setScheduleRequest = 21; + * @return Whether the setScheduleRequest field is set. + */ + public boolean hasSetScheduleRequest() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + * .oslp.SetScheduleRequest setScheduleRequest = 21; + * @return The setScheduleRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest getSetScheduleRequest() { + if (setScheduleRequestBuilder_ == null) { + return setScheduleRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.getDefaultInstance() : setScheduleRequest_; + } else { + return setScheduleRequestBuilder_.getMessage(); + } + } + /** + * .oslp.SetScheduleRequest setScheduleRequest = 21; + */ + public Builder setSetScheduleRequest(org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest value) { + if (setScheduleRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + setScheduleRequest_ = value; + } else { + setScheduleRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * .oslp.SetScheduleRequest setScheduleRequest = 21; + */ + public Builder setSetScheduleRequest( + org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.Builder builderForValue) { + if (setScheduleRequestBuilder_ == null) { + setScheduleRequest_ = builderForValue.build(); + } else { + setScheduleRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * .oslp.SetScheduleRequest setScheduleRequest = 21; + */ + public Builder mergeSetScheduleRequest(org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest value) { + if (setScheduleRequestBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) && + setScheduleRequest_ != null && + setScheduleRequest_ != org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.getDefaultInstance()) { + getSetScheduleRequestBuilder().mergeFrom(value); + } else { + setScheduleRequest_ = value; + } + } else { + setScheduleRequestBuilder_.mergeFrom(value); + } + if (setScheduleRequest_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + /** + * .oslp.SetScheduleRequest setScheduleRequest = 21; + */ + public Builder clearSetScheduleRequest() { + bitField0_ = (bitField0_ & ~0x00100000); + setScheduleRequest_ = null; + if (setScheduleRequestBuilder_ != null) { + setScheduleRequestBuilder_.dispose(); + setScheduleRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SetScheduleRequest setScheduleRequest = 21; + */ + public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.Builder getSetScheduleRequestBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return internalGetSetScheduleRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.SetScheduleRequest setScheduleRequest = 21; + */ + public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequestOrBuilder getSetScheduleRequestOrBuilder() { + if (setScheduleRequestBuilder_ != null) { + return setScheduleRequestBuilder_.getMessageOrBuilder(); + } else { + return setScheduleRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.getDefaultInstance() : setScheduleRequest_; + } + } + /** + * .oslp.SetScheduleRequest setScheduleRequest = 21; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest, org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetScheduleRequestOrBuilder> + internalGetSetScheduleRequestFieldBuilder() { + if (setScheduleRequestBuilder_ == null) { + setScheduleRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest, org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetScheduleRequestOrBuilder>( + getSetScheduleRequest(), + getParentForChildren(), + isClean()); + setScheduleRequest_ = null; + } + return setScheduleRequestBuilder_; + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse setScheduleResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse, org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetScheduleResponseOrBuilder> setScheduleResponseBuilder_; + /** + * .oslp.SetScheduleResponse setScheduleResponse = 22; + * @return Whether the setScheduleResponse field is set. + */ + public boolean hasSetScheduleResponse() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + * .oslp.SetScheduleResponse setScheduleResponse = 22; + * @return The setScheduleResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse getSetScheduleResponse() { + if (setScheduleResponseBuilder_ == null) { + return setScheduleResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.getDefaultInstance() : setScheduleResponse_; + } else { + return setScheduleResponseBuilder_.getMessage(); + } + } + /** + * .oslp.SetScheduleResponse setScheduleResponse = 22; + */ + public Builder setSetScheduleResponse(org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse value) { + if (setScheduleResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + setScheduleResponse_ = value; + } else { + setScheduleResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + * .oslp.SetScheduleResponse setScheduleResponse = 22; + */ + public Builder setSetScheduleResponse( + org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.Builder builderForValue) { + if (setScheduleResponseBuilder_ == null) { + setScheduleResponse_ = builderForValue.build(); + } else { + setScheduleResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + * .oslp.SetScheduleResponse setScheduleResponse = 22; + */ + public Builder mergeSetScheduleResponse(org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse value) { + if (setScheduleResponseBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) && + setScheduleResponse_ != null && + setScheduleResponse_ != org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.getDefaultInstance()) { + getSetScheduleResponseBuilder().mergeFrom(value); + } else { + setScheduleResponse_ = value; + } + } else { + setScheduleResponseBuilder_.mergeFrom(value); + } + if (setScheduleResponse_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; + } + /** + * .oslp.SetScheduleResponse setScheduleResponse = 22; + */ + public Builder clearSetScheduleResponse() { + bitField0_ = (bitField0_ & ~0x00200000); + setScheduleResponse_ = null; + if (setScheduleResponseBuilder_ != null) { + setScheduleResponseBuilder_.dispose(); + setScheduleResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SetScheduleResponse setScheduleResponse = 22; + */ + public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.Builder getSetScheduleResponseBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return internalGetSetScheduleResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.SetScheduleResponse setScheduleResponse = 22; + */ + public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponseOrBuilder getSetScheduleResponseOrBuilder() { + if (setScheduleResponseBuilder_ != null) { + return setScheduleResponseBuilder_.getMessageOrBuilder(); + } else { + return setScheduleResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.getDefaultInstance() : setScheduleResponse_; + } + } + /** + * .oslp.SetScheduleResponse setScheduleResponse = 22; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse, org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetScheduleResponseOrBuilder> + internalGetSetScheduleResponseFieldBuilder() { + if (setScheduleResponseBuilder_ == null) { + setScheduleResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse, org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetScheduleResponseOrBuilder>( + getSetScheduleResponse(), + getParentForChildren(), + isClean()); + setScheduleResponse_ = null; + } + return setScheduleResponseBuilder_; + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + private org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest setConfigurationRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest, org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequestOrBuilder> setConfigurationRequestBuilder_; + /** + * .oslp.SetConfigurationRequest setConfigurationRequest = 25; + * @return Whether the setConfigurationRequest field is set. + */ + public boolean hasSetConfigurationRequest() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + * .oslp.SetConfigurationRequest setConfigurationRequest = 25; + * @return The setConfigurationRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest getSetConfigurationRequest() { + if (setConfigurationRequestBuilder_ == null) { + return setConfigurationRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.getDefaultInstance() : setConfigurationRequest_; + } else { + return setConfigurationRequestBuilder_.getMessage(); + } + } + /** + * .oslp.SetConfigurationRequest setConfigurationRequest = 25; + */ + public Builder setSetConfigurationRequest(org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest value) { + if (setConfigurationRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + setConfigurationRequest_ = value; + } else { + setConfigurationRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * .oslp.SetConfigurationRequest setConfigurationRequest = 25; + */ + public Builder setSetConfigurationRequest( + org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.Builder builderForValue) { + if (setConfigurationRequestBuilder_ == null) { + setConfigurationRequest_ = builderForValue.build(); + } else { + setConfigurationRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * .oslp.SetConfigurationRequest setConfigurationRequest = 25; + */ + public Builder mergeSetConfigurationRequest(org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest value) { + if (setConfigurationRequestBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) && + setConfigurationRequest_ != null && + setConfigurationRequest_ != org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.getDefaultInstance()) { + getSetConfigurationRequestBuilder().mergeFrom(value); + } else { + setConfigurationRequest_ = value; + } + } else { + setConfigurationRequestBuilder_.mergeFrom(value); + } + if (setConfigurationRequest_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; + } + /** + * .oslp.SetConfigurationRequest setConfigurationRequest = 25; + */ + public Builder clearSetConfigurationRequest() { + bitField0_ = (bitField0_ & ~0x00400000); + setConfigurationRequest_ = null; + if (setConfigurationRequestBuilder_ != null) { + setConfigurationRequestBuilder_.dispose(); + setConfigurationRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SetConfigurationRequest setConfigurationRequest = 25; + */ + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.Builder getSetConfigurationRequestBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return internalGetSetConfigurationRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.SetConfigurationRequest setConfigurationRequest = 25; + */ + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequestOrBuilder getSetConfigurationRequestOrBuilder() { + if (setConfigurationRequestBuilder_ != null) { + return setConfigurationRequestBuilder_.getMessageOrBuilder(); + } else { + return setConfigurationRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.getDefaultInstance() : setConfigurationRequest_; + } + } + /** + * .oslp.SetConfigurationRequest setConfigurationRequest = 25; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest, org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequestOrBuilder> + internalGetSetConfigurationRequestFieldBuilder() { + if (setConfigurationRequestBuilder_ == null) { + setConfigurationRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest, org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequestOrBuilder>( + getSetConfigurationRequest(), + getParentForChildren(), + isClean()); + setConfigurationRequest_ = null; + } + return setConfigurationRequestBuilder_; + } - public static Builder newBuilder() { - return Builder.create(); - } + private org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse setConfigurationResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse, org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponseOrBuilder> setConfigurationResponseBuilder_; + /** + * .oslp.SetConfigurationResponse setConfigurationResponse = 26; + * @return Whether the setConfigurationResponse field is set. + */ + public boolean hasSetConfigurationResponse() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + * .oslp.SetConfigurationResponse setConfigurationResponse = 26; + * @return The setConfigurationResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse getSetConfigurationResponse() { + if (setConfigurationResponseBuilder_ == null) { + return setConfigurationResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.getDefaultInstance() : setConfigurationResponse_; + } else { + return setConfigurationResponseBuilder_.getMessage(); + } + } + /** + * .oslp.SetConfigurationResponse setConfigurationResponse = 26; + */ + public Builder setSetConfigurationResponse(org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse value) { + if (setConfigurationResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + setConfigurationResponse_ = value; + } else { + setConfigurationResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * .oslp.SetConfigurationResponse setConfigurationResponse = 26; + */ + public Builder setSetConfigurationResponse( + org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.Builder builderForValue) { + if (setConfigurationResponseBuilder_ == null) { + setConfigurationResponse_ = builderForValue.build(); + } else { + setConfigurationResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * .oslp.SetConfigurationResponse setConfigurationResponse = 26; + */ + public Builder mergeSetConfigurationResponse(org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse value) { + if (setConfigurationResponseBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) && + setConfigurationResponse_ != null && + setConfigurationResponse_ != org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.getDefaultInstance()) { + getSetConfigurationResponseBuilder().mergeFrom(value); + } else { + setConfigurationResponse_ = value; + } + } else { + setConfigurationResponseBuilder_.mergeFrom(value); + } + if (setConfigurationResponse_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + * .oslp.SetConfigurationResponse setConfigurationResponse = 26; + */ + public Builder clearSetConfigurationResponse() { + bitField0_ = (bitField0_ & ~0x00800000); + setConfigurationResponse_ = null; + if (setConfigurationResponseBuilder_ != null) { + setConfigurationResponseBuilder_.dispose(); + setConfigurationResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SetConfigurationResponse setConfigurationResponse = 26; + */ + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.Builder getSetConfigurationResponseBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return internalGetSetConfigurationResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.SetConfigurationResponse setConfigurationResponse = 26; + */ + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponseOrBuilder getSetConfigurationResponseOrBuilder() { + if (setConfigurationResponseBuilder_ != null) { + return setConfigurationResponseBuilder_.getMessageOrBuilder(); + } else { + return setConfigurationResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.getDefaultInstance() : setConfigurationResponse_; + } + } + /** + * .oslp.SetConfigurationResponse setConfigurationResponse = 26; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse, org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponseOrBuilder> + internalGetSetConfigurationResponseFieldBuilder() { + if (setConfigurationResponseBuilder_ == null) { + setConfigurationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse, org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponseOrBuilder>( + getSetConfigurationResponse(), + getParentForChildren(), + isClean()); + setConfigurationResponse_ = null; + } + return setConfigurationResponseBuilder_; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + private org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.Builder, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequestOrBuilder> getPowerUsageHistoryRequestBuilder_; + /** + * .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; + * @return Whether the getPowerUsageHistoryRequest field is set. + */ + public boolean hasGetPowerUsageHistoryRequest() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + * .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; + * @return The getPowerUsageHistoryRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest getGetPowerUsageHistoryRequest() { + if (getPowerUsageHistoryRequestBuilder_ == null) { + return getPowerUsageHistoryRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.getDefaultInstance() : getPowerUsageHistoryRequest_; + } else { + return getPowerUsageHistoryRequestBuilder_.getMessage(); + } + } + /** + * .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; + */ + public Builder setGetPowerUsageHistoryRequest(org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest value) { + if (getPowerUsageHistoryRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + getPowerUsageHistoryRequest_ = value; + } else { + getPowerUsageHistoryRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + /** + * .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; + */ + public Builder setGetPowerUsageHistoryRequest( + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.Builder builderForValue) { + if (getPowerUsageHistoryRequestBuilder_ == null) { + getPowerUsageHistoryRequest_ = builderForValue.build(); + } else { + getPowerUsageHistoryRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + /** + * .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; + */ + public Builder mergeGetPowerUsageHistoryRequest(org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest value) { + if (getPowerUsageHistoryRequestBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0) && + getPowerUsageHistoryRequest_ != null && + getPowerUsageHistoryRequest_ != org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.getDefaultInstance()) { + getGetPowerUsageHistoryRequestBuilder().mergeFrom(value); + } else { + getPowerUsageHistoryRequest_ = value; + } + } else { + getPowerUsageHistoryRequestBuilder_.mergeFrom(value); + } + if (getPowerUsageHistoryRequest_ != null) { + bitField0_ |= 0x01000000; + onChanged(); + } + return this; + } + /** + * .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; + */ + public Builder clearGetPowerUsageHistoryRequest() { + bitField0_ = (bitField0_ & ~0x01000000); + getPowerUsageHistoryRequest_ = null; + if (getPowerUsageHistoryRequestBuilder_ != null) { + getPowerUsageHistoryRequestBuilder_.dispose(); + getPowerUsageHistoryRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; + */ + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.Builder getGetPowerUsageHistoryRequestBuilder() { + bitField0_ |= 0x01000000; + onChanged(); + return internalGetGetPowerUsageHistoryRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; + */ + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequestOrBuilder getGetPowerUsageHistoryRequestOrBuilder() { + if (getPowerUsageHistoryRequestBuilder_ != null) { + return getPowerUsageHistoryRequestBuilder_.getMessageOrBuilder(); + } else { + return getPowerUsageHistoryRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.getDefaultInstance() : getPowerUsageHistoryRequest_; + } + } + /** + * .oslp.GetPowerUsageHistoryRequest getPowerUsageHistoryRequest = 27; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.Builder, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequestOrBuilder> + internalGetGetPowerUsageHistoryRequestFieldBuilder() { + if (getPowerUsageHistoryRequestBuilder_ == null) { + getPowerUsageHistoryRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.Builder, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequestOrBuilder>( + getGetPowerUsageHistoryRequest(), + getParentForChildren(), + isClean()); + getPowerUsageHistoryRequest_ = null; + } + return getPowerUsageHistoryRequestBuilder_; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse prototype) { - return newBuilder().mergeFrom(prototype); - } + private org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.Builder, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponseOrBuilder> getPowerUsageHistoryResponseBuilder_; + /** + * .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; + * @return Whether the getPowerUsageHistoryResponse field is set. + */ + public boolean hasGetPowerUsageHistoryResponse() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + * .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; + * @return The getPowerUsageHistoryResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse getGetPowerUsageHistoryResponse() { + if (getPowerUsageHistoryResponseBuilder_ == null) { + return getPowerUsageHistoryResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.getDefaultInstance() : getPowerUsageHistoryResponse_; + } else { + return getPowerUsageHistoryResponseBuilder_.getMessage(); + } + } + /** + * .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; + */ + public Builder setGetPowerUsageHistoryResponse(org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse value) { + if (getPowerUsageHistoryResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + getPowerUsageHistoryResponse_ = value; + } else { + getPowerUsageHistoryResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + * .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; + */ + public Builder setGetPowerUsageHistoryResponse( + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.Builder builderForValue) { + if (getPowerUsageHistoryResponseBuilder_ == null) { + getPowerUsageHistoryResponse_ = builderForValue.build(); + } else { + getPowerUsageHistoryResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + * .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; + */ + public Builder mergeGetPowerUsageHistoryResponse(org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse value) { + if (getPowerUsageHistoryResponseBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0) && + getPowerUsageHistoryResponse_ != null && + getPowerUsageHistoryResponse_ != org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.getDefaultInstance()) { + getGetPowerUsageHistoryResponseBuilder().mergeFrom(value); + } else { + getPowerUsageHistoryResponse_ = value; + } + } else { + getPowerUsageHistoryResponseBuilder_.mergeFrom(value); + } + if (getPowerUsageHistoryResponse_ != null) { + bitField0_ |= 0x02000000; + onChanged(); + } + return this; + } + /** + * .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; + */ + public Builder clearGetPowerUsageHistoryResponse() { + bitField0_ = (bitField0_ & ~0x02000000); + getPowerUsageHistoryResponse_ = null; + if (getPowerUsageHistoryResponseBuilder_ != null) { + getPowerUsageHistoryResponseBuilder_.dispose(); + getPowerUsageHistoryResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; + */ + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.Builder getGetPowerUsageHistoryResponseBuilder() { + bitField0_ |= 0x02000000; + onChanged(); + return internalGetGetPowerUsageHistoryResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; + */ + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponseOrBuilder getGetPowerUsageHistoryResponseOrBuilder() { + if (getPowerUsageHistoryResponseBuilder_ != null) { + return getPowerUsageHistoryResponseBuilder_.getMessageOrBuilder(); + } else { + return getPowerUsageHistoryResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.getDefaultInstance() : getPowerUsageHistoryResponse_; + } + } + /** + * .oslp.GetPowerUsageHistoryResponse getPowerUsageHistoryResponse = 28; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.Builder, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponseOrBuilder> + internalGetGetPowerUsageHistoryResponseFieldBuilder() { + if (getPowerUsageHistoryResponseBuilder_ == null) { + getPowerUsageHistoryResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.Builder, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponseOrBuilder>( + getGetPowerUsageHistoryResponse(), + getParentForChildren(), + isClean()); + getPowerUsageHistoryResponse_ = null; + } + return getPowerUsageHistoryResponseBuilder_; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + private org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest getActualPowerUsageRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.Builder, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequestOrBuilder> getActualPowerUsageRequestBuilder_; + /** + * .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; + * @return Whether the getActualPowerUsageRequest field is set. + */ + public boolean hasGetActualPowerUsageRequest() { + return ((bitField0_ & 0x04000000) != 0); + } + /** + * .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; + * @return The getActualPowerUsageRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest getGetActualPowerUsageRequest() { + if (getActualPowerUsageRequestBuilder_ == null) { + return getActualPowerUsageRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.getDefaultInstance() : getActualPowerUsageRequest_; + } else { + return getActualPowerUsageRequestBuilder_.getMessage(); + } + } + /** + * .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; + */ + public Builder setGetActualPowerUsageRequest(org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest value) { + if (getActualPowerUsageRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + getActualPowerUsageRequest_ = value; + } else { + getActualPowerUsageRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + * .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; + */ + public Builder setGetActualPowerUsageRequest( + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.Builder builderForValue) { + if (getActualPowerUsageRequestBuilder_ == null) { + getActualPowerUsageRequest_ = builderForValue.build(); + } else { + getActualPowerUsageRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + * .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; + */ + public Builder mergeGetActualPowerUsageRequest(org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest value) { + if (getActualPowerUsageRequestBuilder_ == null) { + if (((bitField0_ & 0x04000000) != 0) && + getActualPowerUsageRequest_ != null && + getActualPowerUsageRequest_ != org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.getDefaultInstance()) { + getGetActualPowerUsageRequestBuilder().mergeFrom(value); + } else { + getActualPowerUsageRequest_ = value; + } + } else { + getActualPowerUsageRequestBuilder_.mergeFrom(value); + } + if (getActualPowerUsageRequest_ != null) { + bitField0_ |= 0x04000000; + onChanged(); + } + return this; + } + /** + * .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; + */ + public Builder clearGetActualPowerUsageRequest() { + bitField0_ = (bitField0_ & ~0x04000000); + getActualPowerUsageRequest_ = null; + if (getActualPowerUsageRequestBuilder_ != null) { + getActualPowerUsageRequestBuilder_.dispose(); + getActualPowerUsageRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; + */ + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.Builder getGetActualPowerUsageRequestBuilder() { + bitField0_ |= 0x04000000; + onChanged(); + return internalGetGetActualPowerUsageRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; + */ + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequestOrBuilder getGetActualPowerUsageRequestOrBuilder() { + if (getActualPowerUsageRequestBuilder_ != null) { + return getActualPowerUsageRequestBuilder_.getMessageOrBuilder(); + } else { + return getActualPowerUsageRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.getDefaultInstance() : getActualPowerUsageRequest_; + } + } + /** + * .oslp.GetActualPowerUsageRequest getActualPowerUsageRequest = 29; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.Builder, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequestOrBuilder> + internalGetGetActualPowerUsageRequestFieldBuilder() { + if (getActualPowerUsageRequestBuilder_ == null) { + getActualPowerUsageRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.Builder, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequestOrBuilder>( + getGetActualPowerUsageRequest(), + getParentForChildren(), + isClean()); + getActualPowerUsageRequest_ = null; + } + return getActualPowerUsageRequestBuilder_; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + private org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse getActualPowerUsageResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.Builder, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponseOrBuilder> getActualPowerUsageResponseBuilder_; + /** + * .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; + * @return Whether the getActualPowerUsageResponse field is set. + */ + public boolean hasGetActualPowerUsageResponse() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + * .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; + * @return The getActualPowerUsageResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse getGetActualPowerUsageResponse() { + if (getActualPowerUsageResponseBuilder_ == null) { + return getActualPowerUsageResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.getDefaultInstance() : getActualPowerUsageResponse_; + } else { + return getActualPowerUsageResponseBuilder_.getMessage(); + } + } + /** + * .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; + */ + public Builder setGetActualPowerUsageResponse(org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse value) { + if (getActualPowerUsageResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + getActualPowerUsageResponse_ = value; + } else { + getActualPowerUsageResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + * .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; + */ + public Builder setGetActualPowerUsageResponse( + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.Builder builderForValue) { + if (getActualPowerUsageResponseBuilder_ == null) { + getActualPowerUsageResponse_ = builderForValue.build(); + } else { + getActualPowerUsageResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + * .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; + */ + public Builder mergeGetActualPowerUsageResponse(org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse value) { + if (getActualPowerUsageResponseBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) && + getActualPowerUsageResponse_ != null && + getActualPowerUsageResponse_ != org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.getDefaultInstance()) { + getGetActualPowerUsageResponseBuilder().mergeFrom(value); + } else { + getActualPowerUsageResponse_ = value; + } + } else { + getActualPowerUsageResponseBuilder_.mergeFrom(value); + } + if (getActualPowerUsageResponse_ != null) { + bitField0_ |= 0x08000000; + onChanged(); + } + return this; + } + /** + * .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; + */ + public Builder clearGetActualPowerUsageResponse() { + bitField0_ = (bitField0_ & ~0x08000000); + getActualPowerUsageResponse_ = null; + if (getActualPowerUsageResponseBuilder_ != null) { + getActualPowerUsageResponseBuilder_.dispose(); + getActualPowerUsageResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; + */ + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.Builder getGetActualPowerUsageResponseBuilder() { + bitField0_ |= 0x08000000; + onChanged(); + return internalGetGetActualPowerUsageResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; + */ + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponseOrBuilder getGetActualPowerUsageResponseOrBuilder() { + if (getActualPowerUsageResponseBuilder_ != null) { + return getActualPowerUsageResponseBuilder_.getMessageOrBuilder(); + } else { + return getActualPowerUsageResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.getDefaultInstance() : getActualPowerUsageResponse_; + } + } + /** + * .oslp.GetActualPowerUsageResponse getActualPowerUsageResponse = 30; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.Builder, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponseOrBuilder> + internalGetGetActualPowerUsageResponseFieldBuilder() { + if (getActualPowerUsageResponseBuilder_ == null) { + getActualPowerUsageResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.Builder, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponseOrBuilder>( + getGetActualPowerUsageResponse(), + getParentForChildren(), + isClean()); + getActualPowerUsageResponse_ = null; + } + return getActualPowerUsageResponseBuilder_; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.EventNotificationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_EventNotificationResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_EventNotificationResponse_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse build() { - final org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse result = - new org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.EventNotificationResponse) - } + private org.opensmartgridplatform.oslp.Oslp.SetRebootRequest setRebootRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetRebootRequest, org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetRebootRequestOrBuilder> setRebootRequestBuilder_; + /** + * .oslp.SetRebootRequest setRebootRequest = 31; + * @return Whether the setRebootRequest field is set. + */ + public boolean hasSetRebootRequest() { + return ((bitField0_ & 0x10000000) != 0); + } + /** + * .oslp.SetRebootRequest setRebootRequest = 31; + * @return The setRebootRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.SetRebootRequest getSetRebootRequest() { + if (setRebootRequestBuilder_ == null) { + return setRebootRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.getDefaultInstance() : setRebootRequest_; + } else { + return setRebootRequestBuilder_.getMessage(); + } + } + /** + * .oslp.SetRebootRequest setRebootRequest = 31; + */ + public Builder setSetRebootRequest(org.opensmartgridplatform.oslp.Oslp.SetRebootRequest value) { + if (setRebootRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + setRebootRequest_ = value; + } else { + setRebootRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + * .oslp.SetRebootRequest setRebootRequest = 31; + */ + public Builder setSetRebootRequest( + org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.Builder builderForValue) { + if (setRebootRequestBuilder_ == null) { + setRebootRequest_ = builderForValue.build(); + } else { + setRebootRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + * .oslp.SetRebootRequest setRebootRequest = 31; + */ + public Builder mergeSetRebootRequest(org.opensmartgridplatform.oslp.Oslp.SetRebootRequest value) { + if (setRebootRequestBuilder_ == null) { + if (((bitField0_ & 0x10000000) != 0) && + setRebootRequest_ != null && + setRebootRequest_ != org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.getDefaultInstance()) { + getSetRebootRequestBuilder().mergeFrom(value); + } else { + setRebootRequest_ = value; + } + } else { + setRebootRequestBuilder_.mergeFrom(value); + } + if (setRebootRequest_ != null) { + bitField0_ |= 0x10000000; + onChanged(); + } + return this; + } + /** + * .oslp.SetRebootRequest setRebootRequest = 31; + */ + public Builder clearSetRebootRequest() { + bitField0_ = (bitField0_ & ~0x10000000); + setRebootRequest_ = null; + if (setRebootRequestBuilder_ != null) { + setRebootRequestBuilder_.dispose(); + setRebootRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SetRebootRequest setRebootRequest = 31; + */ + public org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.Builder getSetRebootRequestBuilder() { + bitField0_ |= 0x10000000; + onChanged(); + return internalGetSetRebootRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.SetRebootRequest setRebootRequest = 31; + */ + public org.opensmartgridplatform.oslp.Oslp.SetRebootRequestOrBuilder getSetRebootRequestOrBuilder() { + if (setRebootRequestBuilder_ != null) { + return setRebootRequestBuilder_.getMessageOrBuilder(); + } else { + return setRebootRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.getDefaultInstance() : setRebootRequest_; + } + } + /** + * .oslp.SetRebootRequest setRebootRequest = 31; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetRebootRequest, org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetRebootRequestOrBuilder> + internalGetSetRebootRequestFieldBuilder() { + if (setRebootRequestBuilder_ == null) { + setRebootRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetRebootRequest, org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetRebootRequestOrBuilder>( + getSetRebootRequest(), + getParentForChildren(), + isClean()); + setRebootRequest_ = null; + } + return setRebootRequestBuilder_; + } - static { - defaultInstance = new EventNotificationResponse(true); - defaultInstance.initFields(); - } + private org.opensmartgridplatform.oslp.Oslp.SetRebootResponse setRebootResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetRebootResponse, org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetRebootResponseOrBuilder> setRebootResponseBuilder_; + /** + * .oslp.SetRebootResponse setRebootResponse = 32; + * @return Whether the setRebootResponse field is set. + */ + public boolean hasSetRebootResponse() { + return ((bitField0_ & 0x20000000) != 0); + } + /** + * .oslp.SetRebootResponse setRebootResponse = 32; + * @return The setRebootResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.SetRebootResponse getSetRebootResponse() { + if (setRebootResponseBuilder_ == null) { + return setRebootResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.getDefaultInstance() : setRebootResponse_; + } else { + return setRebootResponseBuilder_.getMessage(); + } + } + /** + * .oslp.SetRebootResponse setRebootResponse = 32; + */ + public Builder setSetRebootResponse(org.opensmartgridplatform.oslp.Oslp.SetRebootResponse value) { + if (setRebootResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + setRebootResponse_ = value; + } else { + setRebootResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** + * .oslp.SetRebootResponse setRebootResponse = 32; + */ + public Builder setSetRebootResponse( + org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.Builder builderForValue) { + if (setRebootResponseBuilder_ == null) { + setRebootResponse_ = builderForValue.build(); + } else { + setRebootResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** + * .oslp.SetRebootResponse setRebootResponse = 32; + */ + public Builder mergeSetRebootResponse(org.opensmartgridplatform.oslp.Oslp.SetRebootResponse value) { + if (setRebootResponseBuilder_ == null) { + if (((bitField0_ & 0x20000000) != 0) && + setRebootResponse_ != null && + setRebootResponse_ != org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.getDefaultInstance()) { + getSetRebootResponseBuilder().mergeFrom(value); + } else { + setRebootResponse_ = value; + } + } else { + setRebootResponseBuilder_.mergeFrom(value); + } + if (setRebootResponse_ != null) { + bitField0_ |= 0x20000000; + onChanged(); + } + return this; + } + /** + * .oslp.SetRebootResponse setRebootResponse = 32; + */ + public Builder clearSetRebootResponse() { + bitField0_ = (bitField0_ & ~0x20000000); + setRebootResponse_ = null; + if (setRebootResponseBuilder_ != null) { + setRebootResponseBuilder_.dispose(); + setRebootResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SetRebootResponse setRebootResponse = 32; + */ + public org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.Builder getSetRebootResponseBuilder() { + bitField0_ |= 0x20000000; + onChanged(); + return internalGetSetRebootResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.SetRebootResponse setRebootResponse = 32; + */ + public org.opensmartgridplatform.oslp.Oslp.SetRebootResponseOrBuilder getSetRebootResponseOrBuilder() { + if (setRebootResponseBuilder_ != null) { + return setRebootResponseBuilder_.getMessageOrBuilder(); + } else { + return setRebootResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.getDefaultInstance() : setRebootResponse_; + } + } + /** + * .oslp.SetRebootResponse setRebootResponse = 32; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetRebootResponse, org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetRebootResponseOrBuilder> + internalGetSetRebootResponseFieldBuilder() { + if (setRebootResponseBuilder_ == null) { + setRebootResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetRebootResponse, org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetRebootResponseOrBuilder>( + getSetRebootResponse(), + getParentForChildren(), + isClean()); + setRebootResponse_ = null; + } + return setRebootResponseBuilder_; + } - // @@protoc_insertion_point(class_scope:oslp.EventNotificationResponse) - } + private org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest setTransitionRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest, org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetTransitionRequestOrBuilder> setTransitionRequestBuilder_; + /** + * .oslp.SetTransitionRequest setTransitionRequest = 33; + * @return Whether the setTransitionRequest field is set. + */ + public boolean hasSetTransitionRequest() { + return ((bitField0_ & 0x40000000) != 0); + } + /** + * .oslp.SetTransitionRequest setTransitionRequest = 33; + * @return The setTransitionRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest getSetTransitionRequest() { + if (setTransitionRequestBuilder_ == null) { + return setTransitionRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.getDefaultInstance() : setTransitionRequest_; + } else { + return setTransitionRequestBuilder_.getMessage(); + } + } + /** + * .oslp.SetTransitionRequest setTransitionRequest = 33; + */ + public Builder setSetTransitionRequest(org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest value) { + if (setTransitionRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + setTransitionRequest_ = value; + } else { + setTransitionRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + * .oslp.SetTransitionRequest setTransitionRequest = 33; + */ + public Builder setSetTransitionRequest( + org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.Builder builderForValue) { + if (setTransitionRequestBuilder_ == null) { + setTransitionRequest_ = builderForValue.build(); + } else { + setTransitionRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + * .oslp.SetTransitionRequest setTransitionRequest = 33; + */ + public Builder mergeSetTransitionRequest(org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest value) { + if (setTransitionRequestBuilder_ == null) { + if (((bitField0_ & 0x40000000) != 0) && + setTransitionRequest_ != null && + setTransitionRequest_ != org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.getDefaultInstance()) { + getSetTransitionRequestBuilder().mergeFrom(value); + } else { + setTransitionRequest_ = value; + } + } else { + setTransitionRequestBuilder_.mergeFrom(value); + } + if (setTransitionRequest_ != null) { + bitField0_ |= 0x40000000; + onChanged(); + } + return this; + } + /** + * .oslp.SetTransitionRequest setTransitionRequest = 33; + */ + public Builder clearSetTransitionRequest() { + bitField0_ = (bitField0_ & ~0x40000000); + setTransitionRequest_ = null; + if (setTransitionRequestBuilder_ != null) { + setTransitionRequestBuilder_.dispose(); + setTransitionRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SetTransitionRequest setTransitionRequest = 33; + */ + public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.Builder getSetTransitionRequestBuilder() { + bitField0_ |= 0x40000000; + onChanged(); + return internalGetSetTransitionRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.SetTransitionRequest setTransitionRequest = 33; + */ + public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequestOrBuilder getSetTransitionRequestOrBuilder() { + if (setTransitionRequestBuilder_ != null) { + return setTransitionRequestBuilder_.getMessageOrBuilder(); + } else { + return setTransitionRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.getDefaultInstance() : setTransitionRequest_; + } + } + /** + * .oslp.SetTransitionRequest setTransitionRequest = 33; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest, org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetTransitionRequestOrBuilder> + internalGetSetTransitionRequestFieldBuilder() { + if (setTransitionRequestBuilder_ == null) { + setTransitionRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest, org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetTransitionRequestOrBuilder>( + getSetTransitionRequest(), + getParentForChildren(), + isClean()); + setTransitionRequest_ = null; + } + return setTransitionRequestBuilder_; + } - public interface SetScheduleRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { + private org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse setTransitionResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse, org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetTransitionResponseOrBuilder> setTransitionResponseBuilder_; + /** + * .oslp.SetTransitionResponse setTransitionResponse = 34; + * @return Whether the setTransitionResponse field is set. + */ + public boolean hasSetTransitionResponse() { + return ((bitField0_ & 0x80000000) != 0); + } + /** + * .oslp.SetTransitionResponse setTransitionResponse = 34; + * @return The setTransitionResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse getSetTransitionResponse() { + if (setTransitionResponseBuilder_ == null) { + return setTransitionResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.getDefaultInstance() : setTransitionResponse_; + } else { + return setTransitionResponseBuilder_.getMessage(); + } + } + /** + * .oslp.SetTransitionResponse setTransitionResponse = 34; + */ + public Builder setSetTransitionResponse(org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse value) { + if (setTransitionResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + setTransitionResponse_ = value; + } else { + setTransitionResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + * .oslp.SetTransitionResponse setTransitionResponse = 34; + */ + public Builder setSetTransitionResponse( + org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.Builder builderForValue) { + if (setTransitionResponseBuilder_ == null) { + setTransitionResponse_ = builderForValue.build(); + } else { + setTransitionResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + * .oslp.SetTransitionResponse setTransitionResponse = 34; + */ + public Builder mergeSetTransitionResponse(org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse value) { + if (setTransitionResponseBuilder_ == null) { + if (((bitField0_ & 0x80000000) != 0) && + setTransitionResponse_ != null && + setTransitionResponse_ != org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.getDefaultInstance()) { + getSetTransitionResponseBuilder().mergeFrom(value); + } else { + setTransitionResponse_ = value; + } + } else { + setTransitionResponseBuilder_.mergeFrom(value); + } + if (setTransitionResponse_ != null) { + bitField0_ |= 0x80000000; + onChanged(); + } + return this; + } + /** + * .oslp.SetTransitionResponse setTransitionResponse = 34; + */ + public Builder clearSetTransitionResponse() { + bitField0_ = (bitField0_ & ~0x80000000); + setTransitionResponse_ = null; + if (setTransitionResponseBuilder_ != null) { + setTransitionResponseBuilder_.dispose(); + setTransitionResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SetTransitionResponse setTransitionResponse = 34; + */ + public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.Builder getSetTransitionResponseBuilder() { + bitField0_ |= 0x80000000; + onChanged(); + return internalGetSetTransitionResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.SetTransitionResponse setTransitionResponse = 34; + */ + public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponseOrBuilder getSetTransitionResponseOrBuilder() { + if (setTransitionResponseBuilder_ != null) { + return setTransitionResponseBuilder_.getMessageOrBuilder(); + } else { + return setTransitionResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.getDefaultInstance() : setTransitionResponse_; + } + } + /** + * .oslp.SetTransitionResponse setTransitionResponse = 34; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse, org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetTransitionResponseOrBuilder> + internalGetSetTransitionResponseFieldBuilder() { + if (setTransitionResponseBuilder_ == null) { + setTransitionResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse, org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetTransitionResponseOrBuilder>( + getSetTransitionResponse(), + getParentForChildren(), + isClean()); + setTransitionResponse_ = null; + } + return setTransitionResponseBuilder_; + } - // repeated .oslp.Schedule schedules = 1; - java.util.List getSchedulesList(); + private org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest getConfigurationRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest, org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.Builder, org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequestOrBuilder> getConfigurationRequestBuilder_; + /** + * .oslp.GetConfigurationRequest getConfigurationRequest = 35; + * @return Whether the getConfigurationRequest field is set. + */ + public boolean hasGetConfigurationRequest() { + return ((bitField1_ & 0x00000001) != 0); + } + /** + * .oslp.GetConfigurationRequest getConfigurationRequest = 35; + * @return The getConfigurationRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest getGetConfigurationRequest() { + if (getConfigurationRequestBuilder_ == null) { + return getConfigurationRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.getDefaultInstance() : getConfigurationRequest_; + } else { + return getConfigurationRequestBuilder_.getMessage(); + } + } + /** + * .oslp.GetConfigurationRequest getConfigurationRequest = 35; + */ + public Builder setGetConfigurationRequest(org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest value) { + if (getConfigurationRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + getConfigurationRequest_ = value; + } else { + getConfigurationRequestBuilder_.setMessage(value); + } + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.GetConfigurationRequest getConfigurationRequest = 35; + */ + public Builder setGetConfigurationRequest( + org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.Builder builderForValue) { + if (getConfigurationRequestBuilder_ == null) { + getConfigurationRequest_ = builderForValue.build(); + } else { + getConfigurationRequestBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.GetConfigurationRequest getConfigurationRequest = 35; + */ + public Builder mergeGetConfigurationRequest(org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest value) { + if (getConfigurationRequestBuilder_ == null) { + if (((bitField1_ & 0x00000001) != 0) && + getConfigurationRequest_ != null && + getConfigurationRequest_ != org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.getDefaultInstance()) { + getGetConfigurationRequestBuilder().mergeFrom(value); + } else { + getConfigurationRequest_ = value; + } + } else { + getConfigurationRequestBuilder_.mergeFrom(value); + } + if (getConfigurationRequest_ != null) { + bitField1_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .oslp.GetConfigurationRequest getConfigurationRequest = 35; + */ + public Builder clearGetConfigurationRequest() { + bitField1_ = (bitField1_ & ~0x00000001); + getConfigurationRequest_ = null; + if (getConfigurationRequestBuilder_ != null) { + getConfigurationRequestBuilder_.dispose(); + getConfigurationRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.GetConfigurationRequest getConfigurationRequest = 35; + */ + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.Builder getGetConfigurationRequestBuilder() { + bitField1_ |= 0x00000001; + onChanged(); + return internalGetGetConfigurationRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.GetConfigurationRequest getConfigurationRequest = 35; + */ + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequestOrBuilder getGetConfigurationRequestOrBuilder() { + if (getConfigurationRequestBuilder_ != null) { + return getConfigurationRequestBuilder_.getMessageOrBuilder(); + } else { + return getConfigurationRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.getDefaultInstance() : getConfigurationRequest_; + } + } + /** + * .oslp.GetConfigurationRequest getConfigurationRequest = 35; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest, org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.Builder, org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequestOrBuilder> + internalGetGetConfigurationRequestFieldBuilder() { + if (getConfigurationRequestBuilder_ == null) { + getConfigurationRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest, org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.Builder, org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequestOrBuilder>( + getGetConfigurationRequest(), + getParentForChildren(), + isClean()); + getConfigurationRequest_ = null; + } + return getConfigurationRequestBuilder_; + } - org.opensmartgridplatform.oslp.Oslp.Schedule getSchedules(int index); + private org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse getConfigurationResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse, org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.Builder, org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponseOrBuilder> getConfigurationResponseBuilder_; + /** + * .oslp.GetConfigurationResponse getConfigurationResponse = 36; + * @return Whether the getConfigurationResponse field is set. + */ + public boolean hasGetConfigurationResponse() { + return ((bitField1_ & 0x00000002) != 0); + } + /** + * .oslp.GetConfigurationResponse getConfigurationResponse = 36; + * @return The getConfigurationResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse getGetConfigurationResponse() { + if (getConfigurationResponseBuilder_ == null) { + return getConfigurationResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.getDefaultInstance() : getConfigurationResponse_; + } else { + return getConfigurationResponseBuilder_.getMessage(); + } + } + /** + * .oslp.GetConfigurationResponse getConfigurationResponse = 36; + */ + public Builder setGetConfigurationResponse(org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse value) { + if (getConfigurationResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + getConfigurationResponse_ = value; + } else { + getConfigurationResponseBuilder_.setMessage(value); + } + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .oslp.GetConfigurationResponse getConfigurationResponse = 36; + */ + public Builder setGetConfigurationResponse( + org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.Builder builderForValue) { + if (getConfigurationResponseBuilder_ == null) { + getConfigurationResponse_ = builderForValue.build(); + } else { + getConfigurationResponseBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .oslp.GetConfigurationResponse getConfigurationResponse = 36; + */ + public Builder mergeGetConfigurationResponse(org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse value) { + if (getConfigurationResponseBuilder_ == null) { + if (((bitField1_ & 0x00000002) != 0) && + getConfigurationResponse_ != null && + getConfigurationResponse_ != org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.getDefaultInstance()) { + getGetConfigurationResponseBuilder().mergeFrom(value); + } else { + getConfigurationResponse_ = value; + } + } else { + getConfigurationResponseBuilder_.mergeFrom(value); + } + if (getConfigurationResponse_ != null) { + bitField1_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .oslp.GetConfigurationResponse getConfigurationResponse = 36; + */ + public Builder clearGetConfigurationResponse() { + bitField1_ = (bitField1_ & ~0x00000002); + getConfigurationResponse_ = null; + if (getConfigurationResponseBuilder_ != null) { + getConfigurationResponseBuilder_.dispose(); + getConfigurationResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.GetConfigurationResponse getConfigurationResponse = 36; + */ + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.Builder getGetConfigurationResponseBuilder() { + bitField1_ |= 0x00000002; + onChanged(); + return internalGetGetConfigurationResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.GetConfigurationResponse getConfigurationResponse = 36; + */ + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponseOrBuilder getGetConfigurationResponseOrBuilder() { + if (getConfigurationResponseBuilder_ != null) { + return getConfigurationResponseBuilder_.getMessageOrBuilder(); + } else { + return getConfigurationResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.getDefaultInstance() : getConfigurationResponse_; + } + } + /** + * .oslp.GetConfigurationResponse getConfigurationResponse = 36; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse, org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.Builder, org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponseOrBuilder> + internalGetGetConfigurationResponseFieldBuilder() { + if (getConfigurationResponseBuilder_ == null) { + getConfigurationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse, org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.Builder, org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponseOrBuilder>( + getGetConfigurationResponse(), + getParentForChildren(), + isClean()); + getConfigurationResponse_ = null; + } + return getConfigurationResponseBuilder_; + } - int getSchedulesCount(); + private org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.Builder, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequestOrBuilder> confirmRegisterDeviceRequestBuilder_; + /** + * .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; + * @return Whether the confirmRegisterDeviceRequest field is set. + */ + public boolean hasConfirmRegisterDeviceRequest() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + * .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; + * @return The confirmRegisterDeviceRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest getConfirmRegisterDeviceRequest() { + if (confirmRegisterDeviceRequestBuilder_ == null) { + return confirmRegisterDeviceRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.getDefaultInstance() : confirmRegisterDeviceRequest_; + } else { + return confirmRegisterDeviceRequestBuilder_.getMessage(); + } + } + /** + * .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; + */ + public Builder setConfirmRegisterDeviceRequest(org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest value) { + if (confirmRegisterDeviceRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + confirmRegisterDeviceRequest_ = value; + } else { + confirmRegisterDeviceRequestBuilder_.setMessage(value); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; + */ + public Builder setConfirmRegisterDeviceRequest( + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.Builder builderForValue) { + if (confirmRegisterDeviceRequestBuilder_ == null) { + confirmRegisterDeviceRequest_ = builderForValue.build(); + } else { + confirmRegisterDeviceRequestBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; + */ + public Builder mergeConfirmRegisterDeviceRequest(org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest value) { + if (confirmRegisterDeviceRequestBuilder_ == null) { + if (((bitField1_ & 0x00000004) != 0) && + confirmRegisterDeviceRequest_ != null && + confirmRegisterDeviceRequest_ != org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.getDefaultInstance()) { + getConfirmRegisterDeviceRequestBuilder().mergeFrom(value); + } else { + confirmRegisterDeviceRequest_ = value; + } + } else { + confirmRegisterDeviceRequestBuilder_.mergeFrom(value); + } + if (confirmRegisterDeviceRequest_ != null) { + bitField1_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; + */ + public Builder clearConfirmRegisterDeviceRequest() { + bitField1_ = (bitField1_ & ~0x00000004); + confirmRegisterDeviceRequest_ = null; + if (confirmRegisterDeviceRequestBuilder_ != null) { + confirmRegisterDeviceRequestBuilder_.dispose(); + confirmRegisterDeviceRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; + */ + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.Builder getConfirmRegisterDeviceRequestBuilder() { + bitField1_ |= 0x00000004; + onChanged(); + return internalGetConfirmRegisterDeviceRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; + */ + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequestOrBuilder getConfirmRegisterDeviceRequestOrBuilder() { + if (confirmRegisterDeviceRequestBuilder_ != null) { + return confirmRegisterDeviceRequestBuilder_.getMessageOrBuilder(); + } else { + return confirmRegisterDeviceRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.getDefaultInstance() : confirmRegisterDeviceRequest_; + } + } + /** + * .oslp.ConfirmRegisterDeviceRequest confirmRegisterDeviceRequest = 37; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.Builder, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequestOrBuilder> + internalGetConfirmRegisterDeviceRequestFieldBuilder() { + if (confirmRegisterDeviceRequestBuilder_ == null) { + confirmRegisterDeviceRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.Builder, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequestOrBuilder>( + getConfirmRegisterDeviceRequest(), + getParentForChildren(), + isClean()); + confirmRegisterDeviceRequest_ = null; + } + return confirmRegisterDeviceRequestBuilder_; + } - java.util.List - getSchedulesOrBuilderList(); + private org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.Builder, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponseOrBuilder> confirmRegisterDeviceResponseBuilder_; + /** + * .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; + * @return Whether the confirmRegisterDeviceResponse field is set. + */ + public boolean hasConfirmRegisterDeviceResponse() { + return ((bitField1_ & 0x00000008) != 0); + } + /** + * .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; + * @return The confirmRegisterDeviceResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse getConfirmRegisterDeviceResponse() { + if (confirmRegisterDeviceResponseBuilder_ == null) { + return confirmRegisterDeviceResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.getDefaultInstance() : confirmRegisterDeviceResponse_; + } else { + return confirmRegisterDeviceResponseBuilder_.getMessage(); + } + } + /** + * .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; + */ + public Builder setConfirmRegisterDeviceResponse(org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse value) { + if (confirmRegisterDeviceResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + confirmRegisterDeviceResponse_ = value; + } else { + confirmRegisterDeviceResponseBuilder_.setMessage(value); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; + */ + public Builder setConfirmRegisterDeviceResponse( + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.Builder builderForValue) { + if (confirmRegisterDeviceResponseBuilder_ == null) { + confirmRegisterDeviceResponse_ = builderForValue.build(); + } else { + confirmRegisterDeviceResponseBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; + */ + public Builder mergeConfirmRegisterDeviceResponse(org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse value) { + if (confirmRegisterDeviceResponseBuilder_ == null) { + if (((bitField1_ & 0x00000008) != 0) && + confirmRegisterDeviceResponse_ != null && + confirmRegisterDeviceResponse_ != org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.getDefaultInstance()) { + getConfirmRegisterDeviceResponseBuilder().mergeFrom(value); + } else { + confirmRegisterDeviceResponse_ = value; + } + } else { + confirmRegisterDeviceResponseBuilder_.mergeFrom(value); + } + if (confirmRegisterDeviceResponse_ != null) { + bitField1_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; + */ + public Builder clearConfirmRegisterDeviceResponse() { + bitField1_ = (bitField1_ & ~0x00000008); + confirmRegisterDeviceResponse_ = null; + if (confirmRegisterDeviceResponseBuilder_ != null) { + confirmRegisterDeviceResponseBuilder_.dispose(); + confirmRegisterDeviceResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; + */ + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.Builder getConfirmRegisterDeviceResponseBuilder() { + bitField1_ |= 0x00000008; + onChanged(); + return internalGetConfirmRegisterDeviceResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; + */ + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponseOrBuilder getConfirmRegisterDeviceResponseOrBuilder() { + if (confirmRegisterDeviceResponseBuilder_ != null) { + return confirmRegisterDeviceResponseBuilder_.getMessageOrBuilder(); + } else { + return confirmRegisterDeviceResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.getDefaultInstance() : confirmRegisterDeviceResponse_; + } + } + /** + * .oslp.ConfirmRegisterDeviceResponse confirmRegisterDeviceResponse = 38; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.Builder, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponseOrBuilder> + internalGetConfirmRegisterDeviceResponseFieldBuilder() { + if (confirmRegisterDeviceResponseBuilder_ == null) { + confirmRegisterDeviceResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.Builder, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponseOrBuilder>( + getConfirmRegisterDeviceResponse(), + getParentForChildren(), + isClean()); + confirmRegisterDeviceResponse_ = null; + } + return confirmRegisterDeviceResponseBuilder_; + } - org.opensmartgridplatform.oslp.Oslp.ScheduleOrBuilder getSchedulesOrBuilder(int index); + private org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.Builder, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequestOrBuilder> updateDeviceSslCertificationRequestBuilder_; + /** + * .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; + * @return Whether the updateDeviceSslCertificationRequest field is set. + */ + public boolean hasUpdateDeviceSslCertificationRequest() { + return ((bitField1_ & 0x00000010) != 0); + } + /** + * .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; + * @return The updateDeviceSslCertificationRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest getUpdateDeviceSslCertificationRequest() { + if (updateDeviceSslCertificationRequestBuilder_ == null) { + return updateDeviceSslCertificationRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.getDefaultInstance() : updateDeviceSslCertificationRequest_; + } else { + return updateDeviceSslCertificationRequestBuilder_.getMessage(); + } + } + /** + * .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; + */ + public Builder setUpdateDeviceSslCertificationRequest(org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest value) { + if (updateDeviceSslCertificationRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateDeviceSslCertificationRequest_ = value; + } else { + updateDeviceSslCertificationRequestBuilder_.setMessage(value); + } + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; + */ + public Builder setUpdateDeviceSslCertificationRequest( + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.Builder builderForValue) { + if (updateDeviceSslCertificationRequestBuilder_ == null) { + updateDeviceSslCertificationRequest_ = builderForValue.build(); + } else { + updateDeviceSslCertificationRequestBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; + */ + public Builder mergeUpdateDeviceSslCertificationRequest(org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest value) { + if (updateDeviceSslCertificationRequestBuilder_ == null) { + if (((bitField1_ & 0x00000010) != 0) && + updateDeviceSslCertificationRequest_ != null && + updateDeviceSslCertificationRequest_ != org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.getDefaultInstance()) { + getUpdateDeviceSslCertificationRequestBuilder().mergeFrom(value); + } else { + updateDeviceSslCertificationRequest_ = value; + } + } else { + updateDeviceSslCertificationRequestBuilder_.mergeFrom(value); + } + if (updateDeviceSslCertificationRequest_ != null) { + bitField1_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; + */ + public Builder clearUpdateDeviceSslCertificationRequest() { + bitField1_ = (bitField1_ & ~0x00000010); + updateDeviceSslCertificationRequest_ = null; + if (updateDeviceSslCertificationRequestBuilder_ != null) { + updateDeviceSslCertificationRequestBuilder_.dispose(); + updateDeviceSslCertificationRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; + */ + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.Builder getUpdateDeviceSslCertificationRequestBuilder() { + bitField1_ |= 0x00000010; + onChanged(); + return internalGetUpdateDeviceSslCertificationRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; + */ + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequestOrBuilder getUpdateDeviceSslCertificationRequestOrBuilder() { + if (updateDeviceSslCertificationRequestBuilder_ != null) { + return updateDeviceSslCertificationRequestBuilder_.getMessageOrBuilder(); + } else { + return updateDeviceSslCertificationRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.getDefaultInstance() : updateDeviceSslCertificationRequest_; + } + } + /** + * .oslp.UpdateDeviceSslCertificationRequest updateDeviceSslCertificationRequest = 39; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.Builder, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequestOrBuilder> + internalGetUpdateDeviceSslCertificationRequestFieldBuilder() { + if (updateDeviceSslCertificationRequestBuilder_ == null) { + updateDeviceSslCertificationRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.Builder, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequestOrBuilder>( + getUpdateDeviceSslCertificationRequest(), + getParentForChildren(), + isClean()); + updateDeviceSslCertificationRequest_ = null; + } + return updateDeviceSslCertificationRequestBuilder_; + } - // optional .oslp.PageInfo pageInfo = 2; - boolean hasPageInfo(); + private org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.Builder, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponseOrBuilder> updateDeviceSslCertificationResponseBuilder_; + /** + * .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = 40; + * @return Whether the updateDeviceSslCertificationResponse field is set. + */ + public boolean hasUpdateDeviceSslCertificationResponse() { + return ((bitField1_ & 0x00000020) != 0); + } + /** + * .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = 40; + * @return The updateDeviceSslCertificationResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse getUpdateDeviceSslCertificationResponse() { + if (updateDeviceSslCertificationResponseBuilder_ == null) { + return updateDeviceSslCertificationResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.getDefaultInstance() : updateDeviceSslCertificationResponse_; + } else { + return updateDeviceSslCertificationResponseBuilder_.getMessage(); + } + } + /** + * .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = 40; + */ + public Builder setUpdateDeviceSslCertificationResponse(org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse value) { + if (updateDeviceSslCertificationResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateDeviceSslCertificationResponse_ = value; + } else { + updateDeviceSslCertificationResponseBuilder_.setMessage(value); + } + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = 40; + */ + public Builder setUpdateDeviceSslCertificationResponse( + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.Builder builderForValue) { + if (updateDeviceSslCertificationResponseBuilder_ == null) { + updateDeviceSslCertificationResponse_ = builderForValue.build(); + } else { + updateDeviceSslCertificationResponseBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = 40; + */ + public Builder mergeUpdateDeviceSslCertificationResponse(org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse value) { + if (updateDeviceSslCertificationResponseBuilder_ == null) { + if (((bitField1_ & 0x00000020) != 0) && + updateDeviceSslCertificationResponse_ != null && + updateDeviceSslCertificationResponse_ != org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.getDefaultInstance()) { + getUpdateDeviceSslCertificationResponseBuilder().mergeFrom(value); + } else { + updateDeviceSslCertificationResponse_ = value; + } + } else { + updateDeviceSslCertificationResponseBuilder_.mergeFrom(value); + } + if (updateDeviceSslCertificationResponse_ != null) { + bitField1_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = 40; + */ + public Builder clearUpdateDeviceSslCertificationResponse() { + bitField1_ = (bitField1_ & ~0x00000020); + updateDeviceSslCertificationResponse_ = null; + if (updateDeviceSslCertificationResponseBuilder_ != null) { + updateDeviceSslCertificationResponseBuilder_.dispose(); + updateDeviceSslCertificationResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = 40; + */ + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.Builder getUpdateDeviceSslCertificationResponseBuilder() { + bitField1_ |= 0x00000020; + onChanged(); + return internalGetUpdateDeviceSslCertificationResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = 40; + */ + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponseOrBuilder getUpdateDeviceSslCertificationResponseOrBuilder() { + if (updateDeviceSslCertificationResponseBuilder_ != null) { + return updateDeviceSslCertificationResponseBuilder_.getMessageOrBuilder(); + } else { + return updateDeviceSslCertificationResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.getDefaultInstance() : updateDeviceSslCertificationResponse_; + } + } + /** + * .oslp.UpdateDeviceSslCertificationResponse updateDeviceSslCertificationResponse = 40; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.Builder, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponseOrBuilder> + internalGetUpdateDeviceSslCertificationResponseFieldBuilder() { + if (updateDeviceSslCertificationResponseBuilder_ == null) { + updateDeviceSslCertificationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.Builder, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponseOrBuilder>( + getUpdateDeviceSslCertificationResponse(), + getParentForChildren(), + isClean()); + updateDeviceSslCertificationResponse_ = null; + } + return updateDeviceSslCertificationResponseBuilder_; + } - org.opensmartgridplatform.oslp.Oslp.PageInfo getPageInfo(); + private org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequestOrBuilder> setDeviceVerificationKeyRequestBuilder_; + /** + * .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; + * @return Whether the setDeviceVerificationKeyRequest field is set. + */ + public boolean hasSetDeviceVerificationKeyRequest() { + return ((bitField1_ & 0x00000040) != 0); + } + /** + * .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; + * @return The setDeviceVerificationKeyRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest getSetDeviceVerificationKeyRequest() { + if (setDeviceVerificationKeyRequestBuilder_ == null) { + return setDeviceVerificationKeyRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.getDefaultInstance() : setDeviceVerificationKeyRequest_; + } else { + return setDeviceVerificationKeyRequestBuilder_.getMessage(); + } + } + /** + * .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; + */ + public Builder setSetDeviceVerificationKeyRequest(org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest value) { + if (setDeviceVerificationKeyRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + setDeviceVerificationKeyRequest_ = value; + } else { + setDeviceVerificationKeyRequestBuilder_.setMessage(value); + } + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; + */ + public Builder setSetDeviceVerificationKeyRequest( + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.Builder builderForValue) { + if (setDeviceVerificationKeyRequestBuilder_ == null) { + setDeviceVerificationKeyRequest_ = builderForValue.build(); + } else { + setDeviceVerificationKeyRequestBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; + */ + public Builder mergeSetDeviceVerificationKeyRequest(org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest value) { + if (setDeviceVerificationKeyRequestBuilder_ == null) { + if (((bitField1_ & 0x00000040) != 0) && + setDeviceVerificationKeyRequest_ != null && + setDeviceVerificationKeyRequest_ != org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.getDefaultInstance()) { + getSetDeviceVerificationKeyRequestBuilder().mergeFrom(value); + } else { + setDeviceVerificationKeyRequest_ = value; + } + } else { + setDeviceVerificationKeyRequestBuilder_.mergeFrom(value); + } + if (setDeviceVerificationKeyRequest_ != null) { + bitField1_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; + */ + public Builder clearSetDeviceVerificationKeyRequest() { + bitField1_ = (bitField1_ & ~0x00000040); + setDeviceVerificationKeyRequest_ = null; + if (setDeviceVerificationKeyRequestBuilder_ != null) { + setDeviceVerificationKeyRequestBuilder_.dispose(); + setDeviceVerificationKeyRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; + */ + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.Builder getSetDeviceVerificationKeyRequestBuilder() { + bitField1_ |= 0x00000040; + onChanged(); + return internalGetSetDeviceVerificationKeyRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; + */ + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequestOrBuilder getSetDeviceVerificationKeyRequestOrBuilder() { + if (setDeviceVerificationKeyRequestBuilder_ != null) { + return setDeviceVerificationKeyRequestBuilder_.getMessageOrBuilder(); + } else { + return setDeviceVerificationKeyRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.getDefaultInstance() : setDeviceVerificationKeyRequest_; + } + } + /** + * .oslp.SetDeviceVerificationKeyRequest setDeviceVerificationKeyRequest = 41; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequestOrBuilder> + internalGetSetDeviceVerificationKeyRequestFieldBuilder() { + if (setDeviceVerificationKeyRequestBuilder_ == null) { + setDeviceVerificationKeyRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequestOrBuilder>( + getSetDeviceVerificationKeyRequest(), + getParentForChildren(), + isClean()); + setDeviceVerificationKeyRequest_ = null; + } + return setDeviceVerificationKeyRequestBuilder_; + } - org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder getPageInfoOrBuilder(); + private org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponseOrBuilder> setDeviceVerificationKeyResponseBuilder_; + /** + * .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; + * @return Whether the setDeviceVerificationKeyResponse field is set. + */ + public boolean hasSetDeviceVerificationKeyResponse() { + return ((bitField1_ & 0x00000080) != 0); + } + /** + * .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; + * @return The setDeviceVerificationKeyResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse getSetDeviceVerificationKeyResponse() { + if (setDeviceVerificationKeyResponseBuilder_ == null) { + return setDeviceVerificationKeyResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.getDefaultInstance() : setDeviceVerificationKeyResponse_; + } else { + return setDeviceVerificationKeyResponseBuilder_.getMessage(); + } + } + /** + * .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; + */ + public Builder setSetDeviceVerificationKeyResponse(org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse value) { + if (setDeviceVerificationKeyResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + setDeviceVerificationKeyResponse_ = value; + } else { + setDeviceVerificationKeyResponseBuilder_.setMessage(value); + } + bitField1_ |= 0x00000080; + onChanged(); + return this; + } + /** + * .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; + */ + public Builder setSetDeviceVerificationKeyResponse( + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.Builder builderForValue) { + if (setDeviceVerificationKeyResponseBuilder_ == null) { + setDeviceVerificationKeyResponse_ = builderForValue.build(); + } else { + setDeviceVerificationKeyResponseBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000080; + onChanged(); + return this; + } + /** + * .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; + */ + public Builder mergeSetDeviceVerificationKeyResponse(org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse value) { + if (setDeviceVerificationKeyResponseBuilder_ == null) { + if (((bitField1_ & 0x00000080) != 0) && + setDeviceVerificationKeyResponse_ != null && + setDeviceVerificationKeyResponse_ != org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.getDefaultInstance()) { + getSetDeviceVerificationKeyResponseBuilder().mergeFrom(value); + } else { + setDeviceVerificationKeyResponse_ = value; + } + } else { + setDeviceVerificationKeyResponseBuilder_.mergeFrom(value); + } + if (setDeviceVerificationKeyResponse_ != null) { + bitField1_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; + */ + public Builder clearSetDeviceVerificationKeyResponse() { + bitField1_ = (bitField1_ & ~0x00000080); + setDeviceVerificationKeyResponse_ = null; + if (setDeviceVerificationKeyResponseBuilder_ != null) { + setDeviceVerificationKeyResponseBuilder_.dispose(); + setDeviceVerificationKeyResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; + */ + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.Builder getSetDeviceVerificationKeyResponseBuilder() { + bitField1_ |= 0x00000080; + onChanged(); + return internalGetSetDeviceVerificationKeyResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; + */ + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponseOrBuilder getSetDeviceVerificationKeyResponseOrBuilder() { + if (setDeviceVerificationKeyResponseBuilder_ != null) { + return setDeviceVerificationKeyResponseBuilder_.getMessageOrBuilder(); + } else { + return setDeviceVerificationKeyResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.getDefaultInstance() : setDeviceVerificationKeyResponse_; + } + } + /** + * .oslp.SetDeviceVerificationKeyResponse setDeviceVerificationKeyResponse = 42; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponseOrBuilder> + internalGetSetDeviceVerificationKeyResponseFieldBuilder() { + if (setDeviceVerificationKeyResponseBuilder_ == null) { + setDeviceVerificationKeyResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponseOrBuilder>( + getSetDeviceVerificationKeyResponse(), + getParentForChildren(), + isClean()); + setDeviceVerificationKeyResponse_ = null; + } + return setDeviceVerificationKeyResponseBuilder_; + } - // required .oslp.RelayType scheduleType = 3; - boolean hasScheduleType(); + private org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest switchFirmwareRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequestOrBuilder> switchFirmwareRequestBuilder_; + /** + * .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; + * @return Whether the switchFirmwareRequest field is set. + */ + public boolean hasSwitchFirmwareRequest() { + return ((bitField1_ & 0x00000100) != 0); + } + /** + * .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; + * @return The switchFirmwareRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest getSwitchFirmwareRequest() { + if (switchFirmwareRequestBuilder_ == null) { + return switchFirmwareRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.getDefaultInstance() : switchFirmwareRequest_; + } else { + return switchFirmwareRequestBuilder_.getMessage(); + } + } + /** + * .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; + */ + public Builder setSwitchFirmwareRequest(org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest value) { + if (switchFirmwareRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + switchFirmwareRequest_ = value; + } else { + switchFirmwareRequestBuilder_.setMessage(value); + } + bitField1_ |= 0x00000100; + onChanged(); + return this; + } + /** + * .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; + */ + public Builder setSwitchFirmwareRequest( + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.Builder builderForValue) { + if (switchFirmwareRequestBuilder_ == null) { + switchFirmwareRequest_ = builderForValue.build(); + } else { + switchFirmwareRequestBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000100; + onChanged(); + return this; + } + /** + * .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; + */ + public Builder mergeSwitchFirmwareRequest(org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest value) { + if (switchFirmwareRequestBuilder_ == null) { + if (((bitField1_ & 0x00000100) != 0) && + switchFirmwareRequest_ != null && + switchFirmwareRequest_ != org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.getDefaultInstance()) { + getSwitchFirmwareRequestBuilder().mergeFrom(value); + } else { + switchFirmwareRequest_ = value; + } + } else { + switchFirmwareRequestBuilder_.mergeFrom(value); + } + if (switchFirmwareRequest_ != null) { + bitField1_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + * .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; + */ + public Builder clearSwitchFirmwareRequest() { + bitField1_ = (bitField1_ & ~0x00000100); + switchFirmwareRequest_ = null; + if (switchFirmwareRequestBuilder_ != null) { + switchFirmwareRequestBuilder_.dispose(); + switchFirmwareRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; + */ + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.Builder getSwitchFirmwareRequestBuilder() { + bitField1_ |= 0x00000100; + onChanged(); + return internalGetSwitchFirmwareRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; + */ + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequestOrBuilder getSwitchFirmwareRequestOrBuilder() { + if (switchFirmwareRequestBuilder_ != null) { + return switchFirmwareRequestBuilder_.getMessageOrBuilder(); + } else { + return switchFirmwareRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.getDefaultInstance() : switchFirmwareRequest_; + } + } + /** + * .oslp.SwitchFirmwareRequest switchFirmwareRequest = 43; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequestOrBuilder> + internalGetSwitchFirmwareRequestFieldBuilder() { + if (switchFirmwareRequestBuilder_ == null) { + switchFirmwareRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequestOrBuilder>( + getSwitchFirmwareRequest(), + getParentForChildren(), + isClean()); + switchFirmwareRequest_ = null; + } + return switchFirmwareRequestBuilder_; + } - org.opensmartgridplatform.oslp.Oslp.RelayType getScheduleType(); - } + private org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse switchFirmwareResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponseOrBuilder> switchFirmwareResponseBuilder_; + /** + * .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; + * @return Whether the switchFirmwareResponse field is set. + */ + public boolean hasSwitchFirmwareResponse() { + return ((bitField1_ & 0x00000200) != 0); + } + /** + * .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; + * @return The switchFirmwareResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse getSwitchFirmwareResponse() { + if (switchFirmwareResponseBuilder_ == null) { + return switchFirmwareResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.getDefaultInstance() : switchFirmwareResponse_; + } else { + return switchFirmwareResponseBuilder_.getMessage(); + } + } + /** + * .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; + */ + public Builder setSwitchFirmwareResponse(org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse value) { + if (switchFirmwareResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + switchFirmwareResponse_ = value; + } else { + switchFirmwareResponseBuilder_.setMessage(value); + } + bitField1_ |= 0x00000200; + onChanged(); + return this; + } + /** + * .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; + */ + public Builder setSwitchFirmwareResponse( + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.Builder builderForValue) { + if (switchFirmwareResponseBuilder_ == null) { + switchFirmwareResponse_ = builderForValue.build(); + } else { + switchFirmwareResponseBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000200; + onChanged(); + return this; + } + /** + * .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; + */ + public Builder mergeSwitchFirmwareResponse(org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse value) { + if (switchFirmwareResponseBuilder_ == null) { + if (((bitField1_ & 0x00000200) != 0) && + switchFirmwareResponse_ != null && + switchFirmwareResponse_ != org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.getDefaultInstance()) { + getSwitchFirmwareResponseBuilder().mergeFrom(value); + } else { + switchFirmwareResponse_ = value; + } + } else { + switchFirmwareResponseBuilder_.mergeFrom(value); + } + if (switchFirmwareResponse_ != null) { + bitField1_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; + */ + public Builder clearSwitchFirmwareResponse() { + bitField1_ = (bitField1_ & ~0x00000200); + switchFirmwareResponse_ = null; + if (switchFirmwareResponseBuilder_ != null) { + switchFirmwareResponseBuilder_.dispose(); + switchFirmwareResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; + */ + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.Builder getSwitchFirmwareResponseBuilder() { + bitField1_ |= 0x00000200; + onChanged(); + return internalGetSwitchFirmwareResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; + */ + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponseOrBuilder getSwitchFirmwareResponseOrBuilder() { + if (switchFirmwareResponseBuilder_ != null) { + return switchFirmwareResponseBuilder_.getMessageOrBuilder(); + } else { + return switchFirmwareResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.getDefaultInstance() : switchFirmwareResponse_; + } + } + /** + * .oslp.SwitchFirmwareResponse switchFirmwareResponse = 44; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponseOrBuilder> + internalGetSwitchFirmwareResponseFieldBuilder() { + if (switchFirmwareResponseBuilder_ == null) { + switchFirmwareResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponseOrBuilder>( + getSwitchFirmwareResponse(), + getParentForChildren(), + isClean()); + switchFirmwareResponse_ = null; + } + return switchFirmwareResponseBuilder_; + } - public static final class SetScheduleRequest extends com.google.protobuf.GeneratedMessage - implements SetScheduleRequestOrBuilder { - // Use SetScheduleRequest.newBuilder() to construct. - private SetScheduleRequest(final Builder builder) { - super(builder); - } + private org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest switchConfigurationRequest_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequestOrBuilder> switchConfigurationRequestBuilder_; + /** + * .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; + * @return Whether the switchConfigurationRequest field is set. + */ + public boolean hasSwitchConfigurationRequest() { + return ((bitField1_ & 0x00000400) != 0); + } + /** + * .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; + * @return The switchConfigurationRequest. + */ + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest getSwitchConfigurationRequest() { + if (switchConfigurationRequestBuilder_ == null) { + return switchConfigurationRequest_ == null ? org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.getDefaultInstance() : switchConfigurationRequest_; + } else { + return switchConfigurationRequestBuilder_.getMessage(); + } + } + /** + * .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; + */ + public Builder setSwitchConfigurationRequest(org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest value) { + if (switchConfigurationRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + switchConfigurationRequest_ = value; + } else { + switchConfigurationRequestBuilder_.setMessage(value); + } + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + /** + * .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; + */ + public Builder setSwitchConfigurationRequest( + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.Builder builderForValue) { + if (switchConfigurationRequestBuilder_ == null) { + switchConfigurationRequest_ = builderForValue.build(); + } else { + switchConfigurationRequestBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + /** + * .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; + */ + public Builder mergeSwitchConfigurationRequest(org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest value) { + if (switchConfigurationRequestBuilder_ == null) { + if (((bitField1_ & 0x00000400) != 0) && + switchConfigurationRequest_ != null && + switchConfigurationRequest_ != org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.getDefaultInstance()) { + getSwitchConfigurationRequestBuilder().mergeFrom(value); + } else { + switchConfigurationRequest_ = value; + } + } else { + switchConfigurationRequestBuilder_.mergeFrom(value); + } + if (switchConfigurationRequest_ != null) { + bitField1_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + * .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; + */ + public Builder clearSwitchConfigurationRequest() { + bitField1_ = (bitField1_ & ~0x00000400); + switchConfigurationRequest_ = null; + if (switchConfigurationRequestBuilder_ != null) { + switchConfigurationRequestBuilder_.dispose(); + switchConfigurationRequestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; + */ + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.Builder getSwitchConfigurationRequestBuilder() { + bitField1_ |= 0x00000400; + onChanged(); + return internalGetSwitchConfigurationRequestFieldBuilder().getBuilder(); + } + /** + * .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; + */ + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequestOrBuilder getSwitchConfigurationRequestOrBuilder() { + if (switchConfigurationRequestBuilder_ != null) { + return switchConfigurationRequestBuilder_.getMessageOrBuilder(); + } else { + return switchConfigurationRequest_ == null ? + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.getDefaultInstance() : switchConfigurationRequest_; + } + } + /** + * .oslp.SwitchConfigurationRequest switchConfigurationRequest = 45; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequestOrBuilder> + internalGetSwitchConfigurationRequestFieldBuilder() { + if (switchConfigurationRequestBuilder_ == null) { + switchConfigurationRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.Builder, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequestOrBuilder>( + getSwitchConfigurationRequest(), + getParentForChildren(), + isClean()); + switchConfigurationRequest_ = null; + } + return switchConfigurationRequestBuilder_; + } - private SetScheduleRequest(final boolean noInit) {} + private org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse switchConfigurationResponse_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponseOrBuilder> switchConfigurationResponseBuilder_; + /** + * .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; + * @return Whether the switchConfigurationResponse field is set. + */ + public boolean hasSwitchConfigurationResponse() { + return ((bitField1_ & 0x00000800) != 0); + } + /** + * .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; + * @return The switchConfigurationResponse. + */ + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse getSwitchConfigurationResponse() { + if (switchConfigurationResponseBuilder_ == null) { + return switchConfigurationResponse_ == null ? org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.getDefaultInstance() : switchConfigurationResponse_; + } else { + return switchConfigurationResponseBuilder_.getMessage(); + } + } + /** + * .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; + */ + public Builder setSwitchConfigurationResponse(org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse value) { + if (switchConfigurationResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + switchConfigurationResponse_ = value; + } else { + switchConfigurationResponseBuilder_.setMessage(value); + } + bitField1_ |= 0x00000800; + onChanged(); + return this; + } + /** + * .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; + */ + public Builder setSwitchConfigurationResponse( + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.Builder builderForValue) { + if (switchConfigurationResponseBuilder_ == null) { + switchConfigurationResponse_ = builderForValue.build(); + } else { + switchConfigurationResponseBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000800; + onChanged(); + return this; + } + /** + * .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; + */ + public Builder mergeSwitchConfigurationResponse(org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse value) { + if (switchConfigurationResponseBuilder_ == null) { + if (((bitField1_ & 0x00000800) != 0) && + switchConfigurationResponse_ != null && + switchConfigurationResponse_ != org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.getDefaultInstance()) { + getSwitchConfigurationResponseBuilder().mergeFrom(value); + } else { + switchConfigurationResponse_ = value; + } + } else { + switchConfigurationResponseBuilder_.mergeFrom(value); + } + if (switchConfigurationResponse_ != null) { + bitField1_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + * .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; + */ + public Builder clearSwitchConfigurationResponse() { + bitField1_ = (bitField1_ & ~0x00000800); + switchConfigurationResponse_ = null; + if (switchConfigurationResponseBuilder_ != null) { + switchConfigurationResponseBuilder_.dispose(); + switchConfigurationResponseBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; + */ + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.Builder getSwitchConfigurationResponseBuilder() { + bitField1_ |= 0x00000800; + onChanged(); + return internalGetSwitchConfigurationResponseFieldBuilder().getBuilder(); + } + /** + * .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; + */ + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponseOrBuilder getSwitchConfigurationResponseOrBuilder() { + if (switchConfigurationResponseBuilder_ != null) { + return switchConfigurationResponseBuilder_.getMessageOrBuilder(); + } else { + return switchConfigurationResponse_ == null ? + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.getDefaultInstance() : switchConfigurationResponse_; + } + } + /** + * .oslp.SwitchConfigurationResponse switchConfigurationResponse = 46; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponseOrBuilder> + internalGetSwitchConfigurationResponseFieldBuilder() { + if (switchConfigurationResponseBuilder_ == null) { + switchConfigurationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.Builder, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponseOrBuilder>( + getSwitchConfigurationResponse(), + getParentForChildren(), + isClean()); + switchConfigurationResponse_ = null; + } + return switchConfigurationResponseBuilder_; + } - private static final SetScheduleRequest defaultInstance; + // @@protoc_insertion_point(builder_scope:oslp.Message) + } - public static SetScheduleRequest getDefaultInstance() { - return defaultInstance; - } + // @@protoc_insertion_point(class_scope:oslp.Message) + private static final org.opensmartgridplatform.oslp.Oslp.Message DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.Message(); + } - @Override - public SetScheduleRequest getDefaultInstanceForType() { - return defaultInstance; - } + public static org.opensmartgridplatform.oslp.Oslp.Message getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetScheduleRequest_descriptor; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Message parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Message getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RegisterDeviceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.RegisterDeviceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_size = 41];
+         * 
+ * + * string deviceIdentification = 1 [features = { ... } + * @return Whether the deviceIdentification field is set. + */ + boolean hasDeviceIdentification(); + /** + *
+         * [(nanopb).max_size = 41];
+         * 
+ * + * string deviceIdentification = 1 [features = { ... } + * @return The deviceIdentification. + */ + java.lang.String getDeviceIdentification(); + /** + *
+         * [(nanopb).max_size = 41];
+         * 
+ * + * string deviceIdentification = 1 [features = { ... } + * @return The bytes for deviceIdentification. + */ + com.google.protobuf.ByteString + getDeviceIdentificationBytes(); + + /** + *
+         * [(nanopb).max_size = 4];
+         * 
+ * + * bytes ipAddress = 2 [features = { ... } + * @return Whether the ipAddress field is set. + */ + boolean hasIpAddress(); + /** + *
+         * [(nanopb).max_size = 4];
+         * 
+ * + * bytes ipAddress = 2 [features = { ... } + * @return The ipAddress. + */ + com.google.protobuf.ByteString getIpAddress(); + + /** + * .oslp.DeviceType deviceType = 3 [features = { ... } + * @return Whether the deviceType field is set. + */ + boolean hasDeviceType(); + /** + * .oslp.DeviceType deviceType = 3 [features = { ... } + * @return The enum numeric value on the wire for deviceType. + */ + int getDeviceTypeValue(); + /** + * .oslp.DeviceType deviceType = 3 [features = { ... } + * @return The deviceType. + */ + org.opensmartgridplatform.oslp.Oslp.DeviceType getDeviceType(); + + /** + * bool hasSchedule = 4 [features = { ... } + * @return Whether the hasSchedule field is set. + */ + boolean hasHasSchedule(); + /** + * bool hasSchedule = 4 [features = { ... } + * @return The hasSchedule. + */ + boolean getHasSchedule(); + + /** + *
+         * 16 bits
+         * 
+ * + * uint32 randomDevice = 5 [features = { ... } + * @return Whether the randomDevice field is set. + */ + boolean hasRandomDevice(); + /** + *
+         * 16 bits
+         * 
+ * + * uint32 randomDevice = 5 [features = { ... } + * @return The randomDevice. + */ + int getRandomDevice(); + } + /** + *
+     * ========= Device Installation
+     * 
+ * + * Protobuf type {@code oslp.RegisterDeviceRequest} + */ + public static final class RegisterDeviceRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.RegisterDeviceRequest) + RegisterDeviceRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + RegisterDeviceRequest.class.getName()); + } + // Use RegisterDeviceRequest.newBuilder() to construct. + private RegisterDeviceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private RegisterDeviceRequest() { + deviceIdentification_ = ""; + ipAddress_ = com.google.protobuf.ByteString.EMPTY; + deviceType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RegisterDeviceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetScheduleRequest_fieldAccessorTable; - } - - private int bitField0_; - // repeated .oslp.Schedule schedules = 1; - public static final int SCHEDULES_FIELD_NUMBER = 1; - private java.util.List schedules_; - - @Override - public java.util.List getSchedulesList() { - return this.schedules_; - } - - @Override - public java.util.List - getSchedulesOrBuilderList() { - return this.schedules_; - } - - @Override - public int getSchedulesCount() { - return this.schedules_.size(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Schedule getSchedules(final int index) { - return this.schedules_.get(index); - } + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RegisterDeviceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.class, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.Builder.class); + } + + private int bitField0_; + public static final int DEVICEIDENTIFICATION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object deviceIdentification_ = ""; + /** + *
+         * [(nanopb).max_size = 41];
+         * 
+ * + * string deviceIdentification = 1 [features = { ... } + * @return Whether the deviceIdentification field is set. + */ + @java.lang.Override + public boolean hasDeviceIdentification() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * [(nanopb).max_size = 41];
+         * 
+ * + * string deviceIdentification = 1 [features = { ... } + * @return The deviceIdentification. + */ + @java.lang.Override + public java.lang.String getDeviceIdentification() { + java.lang.Object ref = deviceIdentification_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceIdentification_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 41];
+         * 
+ * + * string deviceIdentification = 1 [features = { ... } + * @return The bytes for deviceIdentification. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDeviceIdentificationBytes() { + java.lang.Object ref = deviceIdentification_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceIdentification_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @Override - public org.opensmartgridplatform.oslp.Oslp.ScheduleOrBuilder getSchedulesOrBuilder( - final int index) { - return this.schedules_.get(index); - } + public static final int IPADDRESS_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString ipAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_size = 4];
+         * 
+ * + * bytes ipAddress = 2 [features = { ... } + * @return Whether the ipAddress field is set. + */ + @java.lang.Override + public boolean hasIpAddress() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * [(nanopb).max_size = 4];
+         * 
+ * + * bytes ipAddress = 2 [features = { ... } + * @return The ipAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpAddress() { + return ipAddress_; + } + + public static final int DEVICETYPE_FIELD_NUMBER = 3; + private int deviceType_ = 0; + /** + * .oslp.DeviceType deviceType = 3 [features = { ... } + * @return Whether the deviceType field is set. + */ + @java.lang.Override public boolean hasDeviceType() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .oslp.DeviceType deviceType = 3 [features = { ... } + * @return The enum numeric value on the wire for deviceType. + */ + @java.lang.Override public int getDeviceTypeValue() { + return deviceType_; + } + /** + * .oslp.DeviceType deviceType = 3 [features = { ... } + * @return The deviceType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.DeviceType getDeviceType() { + org.opensmartgridplatform.oslp.Oslp.DeviceType result = org.opensmartgridplatform.oslp.Oslp.DeviceType.forNumber(deviceType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.DeviceType.UNRECOGNIZED : result; + } + + public static final int HASSCHEDULE_FIELD_NUMBER = 4; + private boolean hasSchedule_ = false; + /** + * bool hasSchedule = 4 [features = { ... } + * @return Whether the hasSchedule field is set. + */ + @java.lang.Override + public boolean hasHasSchedule() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * bool hasSchedule = 4 [features = { ... } + * @return The hasSchedule. + */ + @java.lang.Override + public boolean getHasSchedule() { + return hasSchedule_; + } + + public static final int RANDOMDEVICE_FIELD_NUMBER = 5; + private int randomDevice_ = 0; + /** + *
+         * 16 bits
+         * 
+ * + * uint32 randomDevice = 5 [features = { ... } + * @return Whether the randomDevice field is set. + */ + @java.lang.Override + public boolean hasRandomDevice() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+         * 16 bits
+         * 
+ * + * uint32 randomDevice = 5 [features = { ... } + * @return The randomDevice. + */ + @java.lang.Override + public int getRandomDevice() { + return randomDevice_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasDeviceIdentification()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasIpAddress()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasDeviceType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasHasSchedule()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRandomDevice()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - // optional .oslp.PageInfo pageInfo = 2; - public static final int PAGEINFO_FIELD_NUMBER = 2; - private org.opensmartgridplatform.oslp.Oslp.PageInfo pageInfo_; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, deviceIdentification_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBytes(2, ipAddress_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, deviceType_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(4, hasSchedule_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeUInt32(5, randomDevice_); + } + getUnknownFields().writeTo(output); + } - @Override - public boolean hasPageInfo() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public org.opensmartgridplatform.oslp.Oslp.PageInfo getPageInfo() { - return this.pageInfo_; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, deviceIdentification_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, ipAddress_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, deviceType_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, hasSchedule_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, randomDevice_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder getPageInfoOrBuilder() { - return this.pageInfo_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest other = (org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest) obj; - // required .oslp.RelayType scheduleType = 3; - public static final int SCHEDULETYPE_FIELD_NUMBER = 3; - private org.opensmartgridplatform.oslp.Oslp.RelayType scheduleType_; + if (hasDeviceIdentification() != other.hasDeviceIdentification()) return false; + if (hasDeviceIdentification()) { + if (!getDeviceIdentification() + .equals(other.getDeviceIdentification())) return false; + } + if (hasIpAddress() != other.hasIpAddress()) return false; + if (hasIpAddress()) { + if (!getIpAddress() + .equals(other.getIpAddress())) return false; + } + if (hasDeviceType() != other.hasDeviceType()) return false; + if (hasDeviceType()) { + if (deviceType_ != other.deviceType_) return false; + } + if (hasHasSchedule() != other.hasHasSchedule()) return false; + if (hasHasSchedule()) { + if (getHasSchedule() + != other.getHasSchedule()) return false; + } + if (hasRandomDevice() != other.hasRandomDevice()) return false; + if (hasRandomDevice()) { + if (getRandomDevice() + != other.getRandomDevice()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public boolean hasScheduleType() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDeviceIdentification()) { + hash = (37 * hash) + DEVICEIDENTIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getDeviceIdentification().hashCode(); + } + if (hasIpAddress()) { + hash = (37 * hash) + IPADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getIpAddress().hashCode(); + } + if (hasDeviceType()) { + hash = (37 * hash) + DEVICETYPE_FIELD_NUMBER; + hash = (53 * hash) + deviceType_; + } + if (hasHasSchedule()) { + hash = (37 * hash) + HASSCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasSchedule()); + } + if (hasRandomDevice()) { + hash = (37 * hash) + RANDOMDEVICE_FIELD_NUMBER; + hash = (53 * hash) + getRandomDevice(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * ========= Device Installation
+         * 
+ * + * Protobuf type {@code oslp.RegisterDeviceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.RegisterDeviceRequest) + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RegisterDeviceRequest_descriptor; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayType getScheduleType() { - return this.scheduleType_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RegisterDeviceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.class, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.Builder.class); + } - private void initFields() { - this.schedules_ = java.util.Collections.emptyList(); - this.pageInfo_ = org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance(); - this.scheduleType_ = org.opensmartgridplatform.oslp.Oslp.RelayType.RT_NOT_SET; - } + // Construct using org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.newBuilder() + private Builder() { - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasScheduleType()) { - this.memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < this.getSchedulesCount(); i++) { - if (!this.getSchedules(i).isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasPageInfo()) { - if (!this.getPageInfo().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - this.memoizedIsInitialized = 1; - return true; - } + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - for (int i = 0; i < this.schedules_.size(); i++) { - output.writeMessage(1, this.schedules_.get(i)); - } - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(2, this.pageInfo_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(3, this.scheduleType_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - for (int i = 0; i < this.schedules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, this.schedules_.get(i)); - } - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, this.pageInfo_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 3, this.scheduleType_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deviceIdentification_ = ""; + ipAddress_ = com.google.protobuf.ByteString.EMPTY; + deviceType_ = 0; + hasSchedule_ = false; + randomDevice_ = 0; + return this; + } - private static final long serialVersionUID = 0L; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RegisterDeviceRequest_descriptor; + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.getDefaultInstance(); + } - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest build() { + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest result = new org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deviceIdentification_ = deviceIdentification_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ipAddress_ = ipAddress_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deviceType_ = deviceType_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.hasSchedule_ = hasSchedule_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.randomDevice_ = randomDevice_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.getDefaultInstance()) return this; + if (other.hasDeviceIdentification()) { + deviceIdentification_ = other.deviceIdentification_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIpAddress()) { + setIpAddress(other.getIpAddress()); + } + if (other.hasDeviceType()) { + setDeviceTypeValue(other.getDeviceTypeValue()); + } + if (other.hasHasSchedule()) { + setHasSchedule(other.getHasSchedule()); + } + if (other.hasRandomDevice()) { + setRandomDevice(other.getRandomDevice()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasDeviceIdentification()) { + return false; + } + if (!hasIpAddress()) { + return false; + } + if (!hasDeviceType()) { + return false; + } + if (!hasHasSchedule()) { + return false; + } + if (!hasRandomDevice()) { + return false; + } + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + deviceIdentification_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + ipAddress_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + deviceType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + hasSchedule_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + randomDevice_ = input.readUInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object deviceIdentification_ = ""; + /** + *
+             * [(nanopb).max_size = 41];
+             * 
+ * + * string deviceIdentification = 1 [features = { ... } + * @return Whether the deviceIdentification field is set. + */ + public boolean hasDeviceIdentification() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * [(nanopb).max_size = 41];
+             * 
+ * + * string deviceIdentification = 1 [features = { ... } + * @return The deviceIdentification. + */ + public java.lang.String getDeviceIdentification() { + java.lang.Object ref = deviceIdentification_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceIdentification_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 41];
+             * 
+ * + * string deviceIdentification = 1 [features = { ... } + * @return The bytes for deviceIdentification. + */ + public com.google.protobuf.ByteString + getDeviceIdentificationBytes() { + java.lang.Object ref = deviceIdentification_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceIdentification_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 41];
+             * 
+ * + * string deviceIdentification = 1 [features = { ... } + * @param value The deviceIdentification to set. + * @return This builder for chaining. + */ + public Builder setDeviceIdentification( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + deviceIdentification_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 41];
+             * 
+ * + * string deviceIdentification = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearDeviceIdentification() { + deviceIdentification_ = getDefaultInstance().getDeviceIdentification(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 41];
+             * 
+ * + * string deviceIdentification = 1 [features = { ... } + * @param value The bytes for deviceIdentification to set. + * @return This builder for chaining. + */ + public Builder setDeviceIdentificationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + deviceIdentification_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + private com.google.protobuf.ByteString ipAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_size = 4];
+             * 
+ * + * bytes ipAddress = 2 [features = { ... } + * @return Whether the ipAddress field is set. + */ + @java.lang.Override + public boolean hasIpAddress() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * [(nanopb).max_size = 4];
+             * 
+ * + * bytes ipAddress = 2 [features = { ... } + * @return The ipAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpAddress() { + return ipAddress_; + } + /** + *
+             * [(nanopb).max_size = 4];
+             * 
+ * + * bytes ipAddress = 2 [features = { ... } + * @param value The ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddress(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + ipAddress_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 4];
+             * 
+ * + * bytes ipAddress = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearIpAddress() { + bitField0_ = (bitField0_ & ~0x00000002); + ipAddress_ = getDefaultInstance().getIpAddress(); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private int deviceType_ = 0; + /** + * .oslp.DeviceType deviceType = 3 [features = { ... } + * @return Whether the deviceType field is set. + */ + @java.lang.Override public boolean hasDeviceType() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .oslp.DeviceType deviceType = 3 [features = { ... } + * @return The enum numeric value on the wire for deviceType. + */ + @java.lang.Override public int getDeviceTypeValue() { + return deviceType_; + } + /** + * .oslp.DeviceType deviceType = 3 [features = { ... } + * @param value The enum numeric value on the wire for deviceType to set. + * @return This builder for chaining. + */ + public Builder setDeviceTypeValue(int value) { + deviceType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .oslp.DeviceType deviceType = 3 [features = { ... } + * @return The deviceType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.DeviceType getDeviceType() { + org.opensmartgridplatform.oslp.Oslp.DeviceType result = org.opensmartgridplatform.oslp.Oslp.DeviceType.forNumber(deviceType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.DeviceType.UNRECOGNIZED : result; + } + /** + * .oslp.DeviceType deviceType = 3 [features = { ... } + * @param value The deviceType to set. + * @return This builder for chaining. + */ + public Builder setDeviceType(org.opensmartgridplatform.oslp.Oslp.DeviceType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000004; + deviceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.DeviceType deviceType = 3 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearDeviceType() { + bitField0_ = (bitField0_ & ~0x00000004); + deviceType_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + private boolean hasSchedule_ ; + /** + * bool hasSchedule = 4 [features = { ... } + * @return Whether the hasSchedule field is set. + */ + @java.lang.Override + public boolean hasHasSchedule() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * bool hasSchedule = 4 [features = { ... } + * @return The hasSchedule. + */ + @java.lang.Override + public boolean getHasSchedule() { + return hasSchedule_; + } + /** + * bool hasSchedule = 4 [features = { ... } + * @param value The hasSchedule to set. + * @return This builder for chaining. + */ + public Builder setHasSchedule(boolean value) { + + hasSchedule_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * bool hasSchedule = 4 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearHasSchedule() { + bitField0_ = (bitField0_ & ~0x00000008); + hasSchedule_ = false; + onChanged(); + return this; + } - public static Builder newBuilder() { - return Builder.create(); - } + private int randomDevice_ ; + /** + *
+             * 16 bits
+             * 
+ * + * uint32 randomDevice = 5 [features = { ... } + * @return Whether the randomDevice field is set. + */ + @java.lang.Override + public boolean hasRandomDevice() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+             * 16 bits
+             * 
+ * + * uint32 randomDevice = 5 [features = { ... } + * @return The randomDevice. + */ + @java.lang.Override + public int getRandomDevice() { + return randomDevice_; + } + /** + *
+             * 16 bits
+             * 
+ * + * uint32 randomDevice = 5 [features = { ... } + * @param value The randomDevice to set. + * @return This builder for chaining. + */ + public Builder setRandomDevice(int value) { + + randomDevice_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+             * 16 bits
+             * 
+ * + * uint32 randomDevice = 5 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearRandomDevice() { + bitField0_ = (bitField0_ & ~0x00000010); + randomDevice_ = 0; + onChanged(); + return this; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + // @@protoc_insertion_point(builder_scope:oslp.RegisterDeviceRequest) + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest prototype) { - return newBuilder().mergeFrom(prototype); - } + // @@protoc_insertion_point(class_scope:oslp.RegisterDeviceRequest) + private static final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest(); + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegisterDeviceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SetScheduleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetScheduleRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetScheduleRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getSchedulesFieldBuilder(); - this.getPageInfoFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - if (this.schedulesBuilder_ == null) { - this.schedules_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000001); - } else { - this.schedulesBuilder_.clear(); - } - if (this.pageInfoBuilder_ == null) { - this.pageInfo_ = org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance(); - } else { - this.pageInfoBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.scheduleType_ = org.opensmartgridplatform.oslp.Oslp.RelayType.RT_NOT_SET; - this.bitField0_ = (this.bitField0_ & ~0x00000004); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest build() { - final org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest result = - new org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (this.schedulesBuilder_ == null) { - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - this.schedules_ = java.util.Collections.unmodifiableList(this.schedules_); - this.bitField0_ = (this.bitField0_ & ~0x00000001); - } - result.schedules_ = this.schedules_; - } else { - result.schedules_ = this.schedulesBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000001; - } - if (this.pageInfoBuilder_ == null) { - result.pageInfo_ = this.pageInfo_; - } else { - result.pageInfo_ = this.pageInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000002; - } - result.scheduleType_ = this.scheduleType_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest other) { - if (other == org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.getDefaultInstance()) { - return this; - } - if (this.schedulesBuilder_ == null) { - if (!other.schedules_.isEmpty()) { - if (this.schedules_.isEmpty()) { - this.schedules_ = other.schedules_; - this.bitField0_ = (this.bitField0_ & ~0x00000001); + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RegisterDeviceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.RegisterDeviceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); + + /** + *
+         * [(nanopb).max_size = 15];// - Format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string currentTime = 2 [features = { ... } + * @return Whether the currentTime field is set. + */ + boolean hasCurrentTime(); + /** + *
+         * [(nanopb).max_size = 15];// - Format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string currentTime = 2 [features = { ... } + * @return The currentTime. + */ + java.lang.String getCurrentTime(); + /** + *
+         * [(nanopb).max_size = 15];// - Format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string currentTime = 2 [features = { ... } + * @return The bytes for currentTime. + */ + com.google.protobuf.ByteString + getCurrentTimeBytes(); + + /** + * uint32 randomDevice = 3 [features = { ... } + * @return Whether the randomDevice field is set. + */ + boolean hasRandomDevice(); + /** + * uint32 randomDevice = 3 [features = { ... } + * @return The randomDevice. + */ + int getRandomDevice(); + + /** + * uint32 randomPlatform = 4 [features = { ... } + * @return Whether the randomPlatform field is set. + */ + boolean hasRandomPlatform(); + /** + * uint32 randomPlatform = 4 [features = { ... } + * @return The randomPlatform. + */ + int getRandomPlatform(); + + /** + *
+         * Location information of device.
+         * 
+ * + * .oslp.LocationInfo locationInfo = 5; + * @return Whether the locationInfo field is set. + */ + boolean hasLocationInfo(); + /** + *
+         * Location information of device.
+         * 
+ * + * .oslp.LocationInfo locationInfo = 5; + * @return The locationInfo. + */ + org.opensmartgridplatform.oslp.Oslp.LocationInfo getLocationInfo(); + /** + *
+         * Location information of device.
+         * 
+ * + * .oslp.LocationInfo locationInfo = 5; + */ + org.opensmartgridplatform.oslp.Oslp.LocationInfoOrBuilder getLocationInfoOrBuilder(); + } + /** + * Protobuf type {@code oslp.RegisterDeviceResponse} + */ + public static final class RegisterDeviceResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.RegisterDeviceResponse) + RegisterDeviceResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + RegisterDeviceResponse.class.getName()); + } + // Use RegisterDeviceResponse.newBuilder() to construct. + private RegisterDeviceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private RegisterDeviceResponse() { + status_ = 0; + currentTime_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RegisterDeviceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RegisterDeviceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.class, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + public static final int CURRENTTIME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object currentTime_ = ""; + /** + *
+         * [(nanopb).max_size = 15];// - Format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string currentTime = 2 [features = { ... } + * @return Whether the currentTime field is set. + */ + @java.lang.Override + public boolean hasCurrentTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * [(nanopb).max_size = 15];// - Format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string currentTime = 2 [features = { ... } + * @return The currentTime. + */ + @java.lang.Override + public java.lang.String getCurrentTime() { + java.lang.Object ref = currentTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - this.ensureSchedulesIsMutable(); - this.schedules_.addAll(other.schedules_); - } - this.onChanged(); - } - } else { - if (!other.schedules_.isEmpty()) { - if (this.schedulesBuilder_.isEmpty()) { - this.schedulesBuilder_.dispose(); - this.schedulesBuilder_ = null; - this.schedules_ = other.schedules_; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.schedulesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? this.getSchedulesFieldBuilder() - : null; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentTime_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 15];// - Format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string currentTime = 2 [features = { ... } + * @return The bytes for currentTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCurrentTimeBytes() { + java.lang.Object ref = currentTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentTime_ = b; + return b; } else { - this.schedulesBuilder_.addAllMessages(other.schedules_); - } - } - } - if (other.hasPageInfo()) { - this.mergePageInfo(other.getPageInfo()); - } - if (other.hasScheduleType()) { - this.setScheduleType(other.getScheduleType()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasScheduleType()) { - - return false; - } - for (int i = 0; i < this.getSchedulesCount(); i++) { - if (!this.getSchedules(i).isInitialized()) { - - return false; - } - } - if (this.hasPageInfo()) { - if (!this.getPageInfo().isInitialized()) { - - return false; - } - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - final org.opensmartgridplatform.oslp.Oslp.Schedule.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.Schedule.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - this.addSchedules(subBuilder.buildPartial()); - break; - } - case 18: - { - final org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.PageInfo.newBuilder(); - if (this.hasPageInfo()) { - subBuilder.mergeFrom(this.getPageInfo()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setPageInfo(subBuilder.buildPartial()); - break; - } - case 24: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.RelayType value = - org.opensmartgridplatform.oslp.Oslp.RelayType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - this.bitField0_ |= 0x00000004; - this.scheduleType_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // repeated .oslp.Schedule schedules = 1; - private java.util.List schedules_ = - java.util.Collections.emptyList(); - - private void ensureSchedulesIsMutable() { - if (!((this.bitField0_ & 0x00000001) == 0x00000001)) { - this.schedules_ = - new java.util.ArrayList( - this.schedules_); - this.bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.Schedule, - org.opensmartgridplatform.oslp.Oslp.Schedule.Builder, - org.opensmartgridplatform.oslp.Oslp.ScheduleOrBuilder> - schedulesBuilder_; - - @Override - public java.util.List getSchedulesList() { - if (this.schedulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(this.schedules_); - } else { - return this.schedulesBuilder_.getMessageList(); - } - } - - @Override - public int getSchedulesCount() { - if (this.schedulesBuilder_ == null) { - return this.schedules_.size(); - } else { - return this.schedulesBuilder_.getCount(); - } - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Schedule getSchedules(final int index) { - if (this.schedulesBuilder_ == null) { - return this.schedules_.get(index); - } else { - return this.schedulesBuilder_.getMessage(index); - } - } - - public Builder setSchedules( - final int index, final org.opensmartgridplatform.oslp.Oslp.Schedule value) { - if (this.schedulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureSchedulesIsMutable(); - this.schedules_.set(index, value); - this.onChanged(); - } else { - this.schedulesBuilder_.setMessage(index, value); - } - return this; - } - - public Builder setSchedules( - final int index, - final org.opensmartgridplatform.oslp.Oslp.Schedule.Builder builderForValue) { - if (this.schedulesBuilder_ == null) { - this.ensureSchedulesIsMutable(); - this.schedules_.set(index, builderForValue.build()); - this.onChanged(); - } else { - this.schedulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addSchedules(final org.opensmartgridplatform.oslp.Oslp.Schedule value) { - if (this.schedulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureSchedulesIsMutable(); - this.schedules_.add(value); - this.onChanged(); - } else { - this.schedulesBuilder_.addMessage(value); - } - return this; - } - - public Builder addSchedules( - final int index, final org.opensmartgridplatform.oslp.Oslp.Schedule value) { - if (this.schedulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureSchedulesIsMutable(); - this.schedules_.add(index, value); - this.onChanged(); - } else { - this.schedulesBuilder_.addMessage(index, value); - } - return this; - } - - public Builder addSchedules( - final org.opensmartgridplatform.oslp.Oslp.Schedule.Builder builderForValue) { - if (this.schedulesBuilder_ == null) { - this.ensureSchedulesIsMutable(); - this.schedules_.add(builderForValue.build()); - this.onChanged(); - } else { - this.schedulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - public Builder addSchedules( - final int index, - final org.opensmartgridplatform.oslp.Oslp.Schedule.Builder builderForValue) { - if (this.schedulesBuilder_ == null) { - this.ensureSchedulesIsMutable(); - this.schedules_.add(index, builderForValue.build()); - this.onChanged(); - } else { - this.schedulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addAllSchedules( - final java.lang.Iterable values) { - if (this.schedulesBuilder_ == null) { - this.ensureSchedulesIsMutable(); - super.addAll(values, this.schedules_); - this.onChanged(); - } else { - this.schedulesBuilder_.addAllMessages(values); - } - return this; - } - - public Builder clearSchedules() { - if (this.schedulesBuilder_ == null) { - this.schedules_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.onChanged(); - } else { - this.schedulesBuilder_.clear(); - } - return this; - } - - public Builder removeSchedules(final int index) { - if (this.schedulesBuilder_ == null) { - this.ensureSchedulesIsMutable(); - this.schedules_.remove(index); - this.onChanged(); - } else { - this.schedulesBuilder_.remove(index); - } - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.Schedule.Builder getSchedulesBuilder( - final int index) { - return this.getSchedulesFieldBuilder().getBuilder(index); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ScheduleOrBuilder getSchedulesOrBuilder( - final int index) { - if (this.schedulesBuilder_ == null) { - return this.schedules_.get(index); - } else { - return this.schedulesBuilder_.getMessageOrBuilder(index); - } - } - - @Override - public java.util.List - getSchedulesOrBuilderList() { - if (this.schedulesBuilder_ != null) { - return this.schedulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(this.schedules_); - } - } - - public org.opensmartgridplatform.oslp.Oslp.Schedule.Builder addSchedulesBuilder() { - return this.getSchedulesFieldBuilder() - .addBuilder(org.opensmartgridplatform.oslp.Oslp.Schedule.getDefaultInstance()); - } - - public org.opensmartgridplatform.oslp.Oslp.Schedule.Builder addSchedulesBuilder( - final int index) { - return this.getSchedulesFieldBuilder() - .addBuilder(index, org.opensmartgridplatform.oslp.Oslp.Schedule.getDefaultInstance()); - } - - public java.util.List - getSchedulesBuilderList() { - return this.getSchedulesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.Schedule, - org.opensmartgridplatform.oslp.Oslp.Schedule.Builder, - org.opensmartgridplatform.oslp.Oslp.ScheduleOrBuilder> - getSchedulesFieldBuilder() { - if (this.schedulesBuilder_ == null) { - this.schedulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.Schedule, - org.opensmartgridplatform.oslp.Oslp.Schedule.Builder, - org.opensmartgridplatform.oslp.Oslp.ScheduleOrBuilder>( - this.schedules_, - ((this.bitField0_ & 0x00000001) == 0x00000001), - this.getParentForChildren(), - this.isClean()); - this.schedules_ = null; - } - return this.schedulesBuilder_; - } - - // optional .oslp.PageInfo pageInfo = 2; - private org.opensmartgridplatform.oslp.Oslp.PageInfo pageInfo_ = - org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.PageInfo, - org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder, - org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder> - pageInfoBuilder_; - - @Override - public boolean hasPageInfo() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PageInfo getPageInfo() { - if (this.pageInfoBuilder_ == null) { - return this.pageInfo_; - } else { - return this.pageInfoBuilder_.getMessage(); - } - } - - public Builder setPageInfo(final org.opensmartgridplatform.oslp.Oslp.PageInfo value) { - if (this.pageInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.pageInfo_ = value; - this.onChanged(); - } else { - this.pageInfoBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000002; - return this; - } - - public Builder setPageInfo( - final org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder builderForValue) { - if (this.pageInfoBuilder_ == null) { - this.pageInfo_ = builderForValue.build(); - this.onChanged(); - } else { - this.pageInfoBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000002; - return this; - } - - public Builder mergePageInfo(final org.opensmartgridplatform.oslp.Oslp.PageInfo value) { - if (this.pageInfoBuilder_ == null) { - if (((this.bitField0_ & 0x00000002) == 0x00000002) - && this.pageInfo_ - != org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance()) { - this.pageInfo_ = - org.opensmartgridplatform.oslp.Oslp.PageInfo.newBuilder(this.pageInfo_) - .mergeFrom(value) - .buildPartial(); - } else { - this.pageInfo_ = value; - } - this.onChanged(); - } else { - this.pageInfoBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000002; - return this; - } - - public Builder clearPageInfo() { - if (this.pageInfoBuilder_ == null) { - this.pageInfo_ = org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance(); - this.onChanged(); - } else { - this.pageInfoBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000002); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder getPageInfoBuilder() { - this.bitField0_ |= 0x00000002; - this.onChanged(); - return this.getPageInfoFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder getPageInfoOrBuilder() { - if (this.pageInfoBuilder_ != null) { - return this.pageInfoBuilder_.getMessageOrBuilder(); - } else { - return this.pageInfo_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.PageInfo, - org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder, - org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder> - getPageInfoFieldBuilder() { - if (this.pageInfoBuilder_ == null) { - this.pageInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.PageInfo, - org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder, - org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder>( - this.pageInfo_, this.getParentForChildren(), this.isClean()); - this.pageInfo_ = null; - } - return this.pageInfoBuilder_; - } - - // required .oslp.RelayType scheduleType = 3; - private org.opensmartgridplatform.oslp.Oslp.RelayType scheduleType_ = - org.opensmartgridplatform.oslp.Oslp.RelayType.RT_NOT_SET; - - @Override - public boolean hasScheduleType() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayType getScheduleType() { - return this.scheduleType_; - } - - public Builder setScheduleType(final org.opensmartgridplatform.oslp.Oslp.RelayType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000004; - this.scheduleType_ = value; - this.onChanged(); - return this; - } - - public Builder clearScheduleType() { - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.scheduleType_ = org.opensmartgridplatform.oslp.Oslp.RelayType.RT_NOT_SET; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.SetScheduleRequest) - } - - static { - defaultInstance = new SetScheduleRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.SetScheduleRequest) - } - - public interface SetScheduleResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - - // required .oslp.Status status = 1; - boolean hasStatus(); - - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - } - - public static final class SetScheduleResponse extends com.google.protobuf.GeneratedMessage - implements SetScheduleResponseOrBuilder { - // Use SetScheduleResponse.newBuilder() to construct. - private SetScheduleResponse(final Builder builder) { - super(builder); - } - - private SetScheduleResponse(final boolean noInit) {} - - private static final SetScheduleResponse defaultInstance; - - public static SetScheduleResponse getDefaultInstance() { - return defaultInstance; - } - - @Override - public SetScheduleResponse getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetScheduleResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetScheduleResponse_fieldAccessorTable; - } - - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - } - - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + return (com.google.protobuf.ByteString) ref; + } + } - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + public static final int RANDOMDEVICE_FIELD_NUMBER = 3; + private int randomDevice_ = 0; + /** + * uint32 randomDevice = 3 [features = { ... } + * @return Whether the randomDevice field is set. + */ + @java.lang.Override + public boolean hasRandomDevice() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * uint32 randomDevice = 3 [features = { ... } + * @return The randomDevice. + */ + @java.lang.Override + public int getRandomDevice() { + return randomDevice_; + } + + public static final int RANDOMPLATFORM_FIELD_NUMBER = 4; + private int randomPlatform_ = 0; + /** + * uint32 randomPlatform = 4 [features = { ... } + * @return Whether the randomPlatform field is set. + */ + @java.lang.Override + public boolean hasRandomPlatform() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * uint32 randomPlatform = 4 [features = { ... } + * @return The randomPlatform. + */ + @java.lang.Override + public int getRandomPlatform() { + return randomPlatform_; + } + + public static final int LOCATIONINFO_FIELD_NUMBER = 5; + private org.opensmartgridplatform.oslp.Oslp.LocationInfo locationInfo_; + /** + *
+         * Location information of device.
+         * 
+ * + * .oslp.LocationInfo locationInfo = 5; + * @return Whether the locationInfo field is set. + */ + @java.lang.Override + public boolean hasLocationInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+         * Location information of device.
+         * 
+ * + * .oslp.LocationInfo locationInfo = 5; + * @return The locationInfo. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LocationInfo getLocationInfo() { + return locationInfo_ == null ? org.opensmartgridplatform.oslp.Oslp.LocationInfo.getDefaultInstance() : locationInfo_; + } + /** + *
+         * Location information of device.
+         * 
+ * + * .oslp.LocationInfo locationInfo = 5; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LocationInfoOrBuilder getLocationInfoOrBuilder() { + return locationInfo_ == null ? org.opensmartgridplatform.oslp.Oslp.LocationInfo.getDefaultInstance() : locationInfo_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasCurrentTime()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRandomDevice()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRandomPlatform()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, currentTime_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeUInt32(3, randomDevice_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeUInt32(4, randomPlatform_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getLocationInfo()); + } + getUnknownFields().writeTo(output); + } - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, currentTime_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, randomDevice_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, randomPlatform_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getLocationInfo()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static Builder newBuilder() { - return Builder.create(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse other = (org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse) obj; - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (hasCurrentTime() != other.hasCurrentTime()) return false; + if (hasCurrentTime()) { + if (!getCurrentTime() + .equals(other.getCurrentTime())) return false; + } + if (hasRandomDevice() != other.hasRandomDevice()) return false; + if (hasRandomDevice()) { + if (getRandomDevice() + != other.getRandomDevice()) return false; + } + if (hasRandomPlatform() != other.hasRandomPlatform()) return false; + if (hasRandomPlatform()) { + if (getRandomPlatform() + != other.getRandomPlatform()) return false; + } + if (hasLocationInfo() != other.hasLocationInfo()) return false; + if (hasLocationInfo()) { + if (!getLocationInfo() + .equals(other.getLocationInfo())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse prototype) { - return newBuilder().mergeFrom(prototype); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasCurrentTime()) { + hash = (37 * hash) + CURRENTTIME_FIELD_NUMBER; + hash = (53 * hash) + getCurrentTime().hashCode(); + } + if (hasRandomDevice()) { + hash = (37 * hash) + RANDOMDEVICE_FIELD_NUMBER; + hash = (53 * hash) + getRandomDevice(); + } + if (hasRandomPlatform()) { + hash = (37 * hash) + RANDOMPLATFORM_FIELD_NUMBER; + hash = (53 * hash) + getRandomPlatform(); + } + if (hasLocationInfo()) { + hash = (37 * hash) + LOCATIONINFO_FIELD_NUMBER; + hash = (53 * hash) + getLocationInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.RegisterDeviceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.RegisterDeviceResponse) + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RegisterDeviceResponse_descriptor; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RegisterDeviceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.class, org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.Builder.class); + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + // Construct using org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SetScheduleResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetScheduleResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetScheduleResponse_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse build() { - final org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse result = - new org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse other) { - if (other == org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.SetScheduleResponse) - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + internalGetLocationInfoFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + currentTime_ = ""; + randomDevice_ = 0; + randomPlatform_ = 0; + locationInfo_ = null; + if (locationInfoBuilder_ != null) { + locationInfoBuilder_.dispose(); + locationInfoBuilder_ = null; + } + return this; + } - static { - defaultInstance = new SetScheduleResponse(true); - defaultInstance.initFields(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RegisterDeviceResponse_descriptor; + } - // @@protoc_insertion_point(class_scope:oslp.SetScheduleResponse) - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.getDefaultInstance(); + } - public interface SetConfigurationRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse build() { + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - // optional .oslp.LightType lightType = 1; - boolean hasLightType(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse result = new org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - org.opensmartgridplatform.oslp.Oslp.LightType getLightType(); + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.currentTime_ = currentTime_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.randomDevice_ = randomDevice_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.randomPlatform_ = randomPlatform_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.locationInfo_ = locationInfoBuilder_ == null + ? locationInfo_ + : locationInfoBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } - // optional .oslp.DaliConfiguration daliConfiguration = 2; - boolean hasDaliConfiguration(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDaliConfiguration(); + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + if (other.hasCurrentTime()) { + currentTime_ = other.currentTime_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRandomDevice()) { + setRandomDevice(other.getRandomDevice()); + } + if (other.hasRandomPlatform()) { + setRandomPlatform(other.getRandomPlatform()); + } + if (other.hasLocationInfo()) { + mergeLocationInfo(other.getLocationInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder getDaliConfigurationOrBuilder(); + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + if (!hasCurrentTime()) { + return false; + } + if (!hasRandomDevice()) { + return false; + } + if (!hasRandomPlatform()) { + return false; + } + return true; + } - // optional .oslp.RelayConfiguration relayConfiguration = 3; - boolean hasRelayConfiguration(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + currentTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + randomDevice_ = input.readUInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + randomPlatform_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + internalGetLocationInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getRelayConfiguration(); + private java.lang.Object currentTime_ = ""; + /** + *
+             * [(nanopb).max_size = 15];// - Format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string currentTime = 2 [features = { ... } + * @return Whether the currentTime field is set. + */ + public boolean hasCurrentTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * [(nanopb).max_size = 15];// - Format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string currentTime = 2 [features = { ... } + * @return The currentTime. + */ + public java.lang.String getCurrentTime() { + java.lang.Object ref = currentTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 15];// - Format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string currentTime = 2 [features = { ... } + * @return The bytes for currentTime. + */ + public com.google.protobuf.ByteString + getCurrentTimeBytes() { + java.lang.Object ref = currentTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 15];// - Format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string currentTime = 2 [features = { ... } + * @param value The currentTime to set. + * @return This builder for chaining. + */ + public Builder setCurrentTime( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + currentTime_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 15];// - Format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string currentTime = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearCurrentTime() { + currentTime_ = getDefaultInstance().getCurrentTime(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 15];// - Format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string currentTime = 2 [features = { ... } + * @param value The bytes for currentTime to set. + * @return This builder for chaining. + */ + public Builder setCurrentTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + currentTime_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder - getRelayConfigurationOrBuilder(); + private int randomDevice_ ; + /** + * uint32 randomDevice = 3 [features = { ... } + * @return Whether the randomDevice field is set. + */ + @java.lang.Override + public boolean hasRandomDevice() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * uint32 randomDevice = 3 [features = { ... } + * @return The randomDevice. + */ + @java.lang.Override + public int getRandomDevice() { + return randomDevice_; + } + /** + * uint32 randomDevice = 3 [features = { ... } + * @param value The randomDevice to set. + * @return This builder for chaining. + */ + public Builder setRandomDevice(int value) { + + randomDevice_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * uint32 randomDevice = 3 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearRandomDevice() { + bitField0_ = (bitField0_ & ~0x00000004); + randomDevice_ = 0; + onChanged(); + return this; + } - // optional uint32 shortTermHistoryIntervalMinutes = 4; - boolean hasShortTermHistoryIntervalMinutes(); + private int randomPlatform_ ; + /** + * uint32 randomPlatform = 4 [features = { ... } + * @return Whether the randomPlatform field is set. + */ + @java.lang.Override + public boolean hasRandomPlatform() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * uint32 randomPlatform = 4 [features = { ... } + * @return The randomPlatform. + */ + @java.lang.Override + public int getRandomPlatform() { + return randomPlatform_; + } + /** + * uint32 randomPlatform = 4 [features = { ... } + * @param value The randomPlatform to set. + * @return This builder for chaining. + */ + public Builder setRandomPlatform(int value) { + + randomPlatform_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * uint32 randomPlatform = 4 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearRandomPlatform() { + bitField0_ = (bitField0_ & ~0x00000008); + randomPlatform_ = 0; + onChanged(); + return this; + } - int getShortTermHistoryIntervalMinutes(); + private org.opensmartgridplatform.oslp.Oslp.LocationInfo locationInfo_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.LocationInfo, org.opensmartgridplatform.oslp.Oslp.LocationInfo.Builder, org.opensmartgridplatform.oslp.Oslp.LocationInfoOrBuilder> locationInfoBuilder_; + /** + *
+             * Location information of device.
+             * 
+ * + * .oslp.LocationInfo locationInfo = 5; + * @return Whether the locationInfo field is set. + */ + public boolean hasLocationInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+             * Location information of device.
+             * 
+ * + * .oslp.LocationInfo locationInfo = 5; + * @return The locationInfo. + */ + public org.opensmartgridplatform.oslp.Oslp.LocationInfo getLocationInfo() { + if (locationInfoBuilder_ == null) { + return locationInfo_ == null ? org.opensmartgridplatform.oslp.Oslp.LocationInfo.getDefaultInstance() : locationInfo_; + } else { + return locationInfoBuilder_.getMessage(); + } + } + /** + *
+             * Location information of device.
+             * 
+ * + * .oslp.LocationInfo locationInfo = 5; + */ + public Builder setLocationInfo(org.opensmartgridplatform.oslp.Oslp.LocationInfo value) { + if (locationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + locationInfo_ = value; + } else { + locationInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+             * Location information of device.
+             * 
+ * + * .oslp.LocationInfo locationInfo = 5; + */ + public Builder setLocationInfo( + org.opensmartgridplatform.oslp.Oslp.LocationInfo.Builder builderForValue) { + if (locationInfoBuilder_ == null) { + locationInfo_ = builderForValue.build(); + } else { + locationInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+             * Location information of device.
+             * 
+ * + * .oslp.LocationInfo locationInfo = 5; + */ + public Builder mergeLocationInfo(org.opensmartgridplatform.oslp.Oslp.LocationInfo value) { + if (locationInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + locationInfo_ != null && + locationInfo_ != org.opensmartgridplatform.oslp.Oslp.LocationInfo.getDefaultInstance()) { + getLocationInfoBuilder().mergeFrom(value); + } else { + locationInfo_ = value; + } + } else { + locationInfoBuilder_.mergeFrom(value); + } + if (locationInfo_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+             * Location information of device.
+             * 
+ * + * .oslp.LocationInfo locationInfo = 5; + */ + public Builder clearLocationInfo() { + bitField0_ = (bitField0_ & ~0x00000010); + locationInfo_ = null; + if (locationInfoBuilder_ != null) { + locationInfoBuilder_.dispose(); + locationInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * Location information of device.
+             * 
+ * + * .oslp.LocationInfo locationInfo = 5; + */ + public org.opensmartgridplatform.oslp.Oslp.LocationInfo.Builder getLocationInfoBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetLocationInfoFieldBuilder().getBuilder(); + } + /** + *
+             * Location information of device.
+             * 
+ * + * .oslp.LocationInfo locationInfo = 5; + */ + public org.opensmartgridplatform.oslp.Oslp.LocationInfoOrBuilder getLocationInfoOrBuilder() { + if (locationInfoBuilder_ != null) { + return locationInfoBuilder_.getMessageOrBuilder(); + } else { + return locationInfo_ == null ? + org.opensmartgridplatform.oslp.Oslp.LocationInfo.getDefaultInstance() : locationInfo_; + } + } + /** + *
+             * Location information of device.
+             * 
+ * + * .oslp.LocationInfo locationInfo = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.LocationInfo, org.opensmartgridplatform.oslp.Oslp.LocationInfo.Builder, org.opensmartgridplatform.oslp.Oslp.LocationInfoOrBuilder> + internalGetLocationInfoFieldBuilder() { + if (locationInfoBuilder_ == null) { + locationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.LocationInfo, org.opensmartgridplatform.oslp.Oslp.LocationInfo.Builder, org.opensmartgridplatform.oslp.Oslp.LocationInfoOrBuilder>( + getLocationInfo(), + getParentForChildren(), + isClean()); + locationInfo_ = null; + } + return locationInfoBuilder_; + } - // optional .oslp.LinkType preferredLinkType = 5; - boolean hasPreferredLinkType(); + // @@protoc_insertion_point(builder_scope:oslp.RegisterDeviceResponse) + } - org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinkType(); + // @@protoc_insertion_point(class_scope:oslp.RegisterDeviceResponse) + private static final org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse(); + } - // optional .oslp.MeterType meterType = 6; - boolean hasMeterType(); + public static org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegisterDeviceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - // optional uint32 longTermHistoryInterval = 7; - boolean hasLongTermHistoryInterval(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } - int getLongTermHistoryInterval(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - // optional .oslp.LongTermIntervalType longTermHistoryIntervalType = 8; - boolean hasLongTermHistoryIntervalType(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType getLongTermHistoryIntervalType(); + } - // optional uint32 timeSyncFrequency = 9 [default = 86400]; - boolean hasTimeSyncFrequency(); + public interface StartSelfTestRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.StartSelfTestRequest) + com.google.protobuf.MessageOrBuilder { - int getTimeSyncFrequency(); + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + boolean hasPresent(); + /** + * bool present = 1 [default = true]; + * @return The present. + */ + boolean getPresent(); + } + /** + * Protobuf type {@code oslp.StartSelfTestRequest} + */ + public static final class StartSelfTestRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.StartSelfTestRequest) + StartSelfTestRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + StartSelfTestRequest.class.getName()); + } + // Use StartSelfTestRequest.newBuilder() to construct. + private StartSelfTestRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StartSelfTestRequest() { + present_ = true; + } - // optional bytes deviceFixIpValue = 10; - boolean hasDeviceFixIpValue(); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StartSelfTestRequest_descriptor; + } - com.google.protobuf.ByteString getDeviceFixIpValue(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StartSelfTestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.class, org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.Builder.class); + } + + private int bitField0_; + public static final int PRESENT_FIELD_NUMBER = 1; + private boolean present_ = true; + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + @java.lang.Override + public boolean hasPresent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * bool present = 1 [default = true]; + * @return The present. + */ + @java.lang.Override + public boolean getPresent() { + return present_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, present_); + } + getUnknownFields().writeTo(output); + } - // optional bytes netMask = 11; - boolean hasNetMask(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - com.google.protobuf.ByteString getNetMask(); + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, present_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - // optional bytes gateWay = 12; - boolean hasGateWay(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest other = (org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest) obj; - com.google.protobuf.ByteString getGateWay(); + if (hasPresent() != other.hasPresent()) return false; + if (hasPresent()) { + if (getPresent() + != other.getPresent()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - // optional bool isDhcpEnabled = 13 [default = true]; - boolean hasIsDhcpEnabled(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPresent()) { + hash = (37 * hash) + PRESENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPresent()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.StartSelfTestRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.StartSelfTestRequest) + org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StartSelfTestRequest_descriptor; + } - boolean getIsDhcpEnabled(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StartSelfTestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.class, org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.Builder.class); + } - // optional uint32 communicationTimeout = 14 [default = 20]; - boolean hasCommunicationTimeout(); + // Construct using org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.newBuilder() + private Builder() { - int getCommunicationTimeout(); + } - // optional uint32 communicationNumberOfRetries = 15 [default = 3]; - boolean hasCommunicationNumberOfRetries(); + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - int getCommunicationNumberOfRetries(); + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + present_ = true; + return this; + } - // optional uint32 communicationPauseTimeBetweenConnectionTrials = 16 [default = 60]; - boolean hasCommunicationPauseTimeBetweenConnectionTrials(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StartSelfTestRequest_descriptor; + } - int getCommunicationPauseTimeBetweenConnectionTrials(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.getDefaultInstance(); + } - // optional bytes ospgIpAddress = 17; - boolean hasOspgIpAddress(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest build() { + org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - com.google.protobuf.ByteString getOspgIpAddress(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest result = new org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - // optional uint32 osgpPortNumber = 18; - boolean hasOsgpPortNumber(); + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.present_ = present_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - int getOsgpPortNumber(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - // optional bool isTestButtonEnabled = 19 [default = true]; - boolean hasIsTestButtonEnabled(); + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.getDefaultInstance()) return this; + if (other.hasPresent()) { + setPresent(other.getPresent()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - boolean getIsTestButtonEnabled(); + @java.lang.Override + public final boolean isInitialized() { + return true; + } - // optional bool isAutomaticSummerTimingEnabled = 20 [default = true]; - boolean hasIsAutomaticSummerTimingEnabled(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + present_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean present_ = true; + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + @java.lang.Override + public boolean hasPresent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * bool present = 1 [default = true]; + * @return The present. + */ + @java.lang.Override + public boolean getPresent() { + return present_; + } + /** + * bool present = 1 [default = true]; + * @param value The present to set. + * @return This builder for chaining. + */ + public Builder setPresent(boolean value) { + + present_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool present = 1 [default = true]; + * @return This builder for chaining. + */ + public Builder clearPresent() { + bitField0_ = (bitField0_ & ~0x00000001); + present_ = true; + onChanged(); + return this; + } - boolean getIsAutomaticSummerTimingEnabled(); + // @@protoc_insertion_point(builder_scope:oslp.StartSelfTestRequest) + } - // optional sint32 astroGateSunRiseOffset = 21 [default = 0]; - boolean hasAstroGateSunRiseOffset(); + // @@protoc_insertion_point(class_scope:oslp.StartSelfTestRequest) + private static final org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest(); + } - int getAstroGateSunRiseOffset(); + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // optional sint32 astroGateSunSetOffset = 22 [default = 0]; - boolean hasAstroGateSunSetOffset(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartSelfTestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - int getAstroGateSunSetOffset(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // repeated uint32 switchingDelay = 23; - java.util.List getSwitchingDelayList(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - int getSwitchingDelayCount(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - int getSwitchingDelay(int index); + } - // repeated .oslp.RelayMatrix relayLinking = 24; - java.util.List getRelayLinkingList(); + public interface StartSelfTestResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.StartSelfTestResponse) + com.google.protobuf.MessageOrBuilder { - org.opensmartgridplatform.oslp.Oslp.RelayMatrix getRelayLinking(int index); + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); + } + /** + * Protobuf type {@code oslp.StartSelfTestResponse} + */ + public static final class StartSelfTestResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.StartSelfTestResponse) + StartSelfTestResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + StartSelfTestResponse.class.getName()); + } + // Use StartSelfTestResponse.newBuilder() to construct. + private StartSelfTestResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StartSelfTestResponse() { + status_ = 0; + } - int getRelayLinkingCount(); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StartSelfTestResponse_descriptor; + } - java.util.List - getRelayLinkingOrBuilderList(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StartSelfTestResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.class, org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder getRelayLinkingOrBuilder(int index); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + getUnknownFields().writeTo(output); + } - // optional bool relayRefreshing = 25 [default = true]; - boolean hasRelayRefreshing(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - boolean getRelayRefreshing(); + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - // optional string summerTimeDetails = 26 [default = "0360100"]; - boolean hasSummerTimeDetails(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse other = (org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse) obj; - String getSummerTimeDetails(); + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - // optional string winterTimeDetails = 27 [default = "1060200"]; - boolean hasWinterTimeDetails(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.StartSelfTestResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.StartSelfTestResponse) + org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StartSelfTestResponse_descriptor; + } - String getWinterTimeDetails(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StartSelfTestResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.class, org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.Builder.class); + } - public static final class SetConfigurationRequest extends com.google.protobuf.GeneratedMessage - implements SetConfigurationRequestOrBuilder { - // Use SetConfigurationRequest.newBuilder() to construct. - private SetConfigurationRequest(final Builder builder) { - super(builder); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.newBuilder() + private Builder() { - private SetConfigurationRequest(final boolean noInit) {} + } - private static final SetConfigurationRequest defaultInstance; + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static SetConfigurationRequest getDefaultInstance() { - return defaultInstance; - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + return this; + } - @Override - public SetConfigurationRequest getDefaultInstanceForType() { - return defaultInstance; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StartSelfTestResponse_descriptor; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetConfigurationRequest_descriptor; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.getDefaultInstance(); + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetConfigurationRequest_fieldAccessorTable; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse build() { + org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - private int bitField0_; - // optional .oslp.LightType lightType = 1; - public static final int LIGHTTYPE_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.LightType lightType_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse result = new org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - @Override - public boolean hasLightType() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.LightType getLightType() { - return this.lightType_; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - // optional .oslp.DaliConfiguration daliConfiguration = 2; - public static final int DALICONFIGURATION_FIELD_NUMBER = 2; - private org.opensmartgridplatform.oslp.Oslp.DaliConfiguration daliConfiguration_; + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public boolean hasDaliConfiguration() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + return true; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDaliConfiguration() { - return this.daliConfiguration_; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder - getDaliConfigurationOrBuilder() { - return this.daliConfiguration_; - } + // @@protoc_insertion_point(builder_scope:oslp.StartSelfTestResponse) + } - // optional .oslp.RelayConfiguration relayConfiguration = 3; - public static final int RELAYCONFIGURATION_FIELD_NUMBER = 3; - private org.opensmartgridplatform.oslp.Oslp.RelayConfiguration relayConfiguration_; + // @@protoc_insertion_point(class_scope:oslp.StartSelfTestResponse) + private static final org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse(); + } - @Override - public boolean hasRelayConfiguration() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } + public static org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getRelayConfiguration() { - return this.relayConfiguration_; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartSelfTestResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder - getRelayConfigurationOrBuilder() { - return this.relayConfiguration_; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // optional uint32 shortTermHistoryIntervalMinutes = 4; - public static final int SHORTTERMHISTORYINTERVALMINUTES_FIELD_NUMBER = 4; - private int shortTermHistoryIntervalMinutes_; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @Override - public boolean hasShortTermHistoryIntervalMinutes() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @Override - public int getShortTermHistoryIntervalMinutes() { - return this.shortTermHistoryIntervalMinutes_; } - // optional .oslp.LinkType preferredLinkType = 5; - public static final int PREFERREDLINKTYPE_FIELD_NUMBER = 5; - private org.opensmartgridplatform.oslp.Oslp.LinkType preferredLinkType_; + public interface StopSelfTestRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.StopSelfTestRequest) + com.google.protobuf.MessageOrBuilder { - @Override - public boolean hasPreferredLinkType() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + boolean hasPresent(); + /** + * bool present = 1 [default = true]; + * @return The present. + */ + boolean getPresent(); } + /** + * Protobuf type {@code oslp.StopSelfTestRequest} + */ + public static final class StopSelfTestRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.StopSelfTestRequest) + StopSelfTestRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + StopSelfTestRequest.class.getName()); + } + // Use StopSelfTestRequest.newBuilder() to construct. + private StopSelfTestRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StopSelfTestRequest() { + present_ = true; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinkType() { - return this.preferredLinkType_; - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StopSelfTestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StopSelfTestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.class, org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.Builder.class); + } + + private int bitField0_; + public static final int PRESENT_FIELD_NUMBER = 1; + private boolean present_ = true; + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + @java.lang.Override + public boolean hasPresent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * bool present = 1 [default = true]; + * @return The present. + */ + @java.lang.Override + public boolean getPresent() { + return present_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, present_); + } + getUnknownFields().writeTo(output); + } - // optional .oslp.MeterType meterType = 6; - public static final int METERTYPE_FIELD_NUMBER = 6; - private org.opensmartgridplatform.oslp.Oslp.MeterType meterType_; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public boolean hasMeterType() { - return ((this.bitField0_ & 0x00000020) == 0x00000020); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, present_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType() { - return this.meterType_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest other = (org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest) obj; - // optional uint32 longTermHistoryInterval = 7; - public static final int LONGTERMHISTORYINTERVAL_FIELD_NUMBER = 7; - private int longTermHistoryInterval_; + if (hasPresent() != other.hasPresent()) return false; + if (hasPresent()) { + if (getPresent() + != other.getPresent()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public boolean hasLongTermHistoryInterval() { - return ((this.bitField0_ & 0x00000040) == 0x00000040); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPresent()) { + hash = (37 * hash) + PRESENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPresent()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.StopSelfTestRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.StopSelfTestRequest) + org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StopSelfTestRequest_descriptor; + } - @Override - public int getLongTermHistoryInterval() { - return this.longTermHistoryInterval_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StopSelfTestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.class, org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.Builder.class); + } - // optional .oslp.LongTermIntervalType longTermHistoryIntervalType = 8; - public static final int LONGTERMHISTORYINTERVALTYPE_FIELD_NUMBER = 8; - private org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType longTermHistoryIntervalType_; + // Construct using org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.newBuilder() + private Builder() { - @Override - public boolean hasLongTermHistoryIntervalType() { - return ((this.bitField0_ & 0x00000080) == 0x00000080); - } + } - @Override - public org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType - getLongTermHistoryIntervalType() { - return this.longTermHistoryIntervalType_; - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - // optional uint32 timeSyncFrequency = 9 [default = 86400]; - public static final int TIMESYNCFREQUENCY_FIELD_NUMBER = 9; - private int timeSyncFrequency_; + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + present_ = true; + return this; + } - @Override - public boolean hasTimeSyncFrequency() { - return ((this.bitField0_ & 0x00000100) == 0x00000100); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StopSelfTestRequest_descriptor; + } - @Override - public int getTimeSyncFrequency() { - return this.timeSyncFrequency_; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.getDefaultInstance(); + } - // optional bytes deviceFixIpValue = 10; - public static final int DEVICEFIXIPVALUE_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString deviceFixIpValue_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest build() { + org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public boolean hasDeviceFixIpValue() { - return ((this.bitField0_ & 0x00000200) == 0x00000200); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest result = new org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - @Override - public com.google.protobuf.ByteString getDeviceFixIpValue() { - return this.deviceFixIpValue_; - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.present_ = present_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - // optional bytes netMask = 11; - public static final int NETMASK_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString netMask_; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - @Override - public boolean hasNetMask() { - return ((this.bitField0_ & 0x00000400) == 0x00000400); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.getDefaultInstance()) return this; + if (other.hasPresent()) { + setPresent(other.getPresent()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public com.google.protobuf.ByteString getNetMask() { - return this.netMask_; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - // optional bytes gateWay = 12; - public static final int GATEWAY_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString gateWay_; + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + present_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean present_ = true; + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + @java.lang.Override + public boolean hasPresent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * bool present = 1 [default = true]; + * @return The present. + */ + @java.lang.Override + public boolean getPresent() { + return present_; + } + /** + * bool present = 1 [default = true]; + * @param value The present to set. + * @return This builder for chaining. + */ + public Builder setPresent(boolean value) { + + present_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool present = 1 [default = true]; + * @return This builder for chaining. + */ + public Builder clearPresent() { + bitField0_ = (bitField0_ & ~0x00000001); + present_ = true; + onChanged(); + return this; + } - @Override - public boolean hasGateWay() { - return ((this.bitField0_ & 0x00000800) == 0x00000800); - } + // @@protoc_insertion_point(builder_scope:oslp.StopSelfTestRequest) + } - @Override - public com.google.protobuf.ByteString getGateWay() { - return this.gateWay_; - } + // @@protoc_insertion_point(class_scope:oslp.StopSelfTestRequest) + private static final org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest(); + } - // optional bool isDhcpEnabled = 13 [default = true]; - public static final int ISDHCPENABLED_FIELD_NUMBER = 13; - private boolean isDhcpEnabled_; + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public boolean hasIsDhcpEnabled() { - return ((this.bitField0_ & 0x00001000) == 0x00001000); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopSelfTestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public boolean getIsDhcpEnabled() { - return this.isDhcpEnabled_; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StopSelfTestResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.StopSelfTestResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); + + /** + *
+         * [(nanopb).max_size = 1];
+         * 
+ * + * bytes selfTestResult = 2 [features = { ... } + * @return Whether the selfTestResult field is set. + */ + boolean hasSelfTestResult(); + /** + *
+         * [(nanopb).max_size = 1];
+         * 
+ * + * bytes selfTestResult = 2 [features = { ... } + * @return The selfTestResult. + */ + com.google.protobuf.ByteString getSelfTestResult(); + } + /** + * Protobuf type {@code oslp.StopSelfTestResponse} + */ + public static final class StopSelfTestResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.StopSelfTestResponse) + StopSelfTestResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + StopSelfTestResponse.class.getName()); + } + // Use StopSelfTestResponse.newBuilder() to construct. + private StopSelfTestResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StopSelfTestResponse() { + status_ = 0; + selfTestResult_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StopSelfTestResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StopSelfTestResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.class, org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + public static final int SELFTESTRESULT_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString selfTestResult_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_size = 1];
+         * 
+ * + * bytes selfTestResult = 2 [features = { ... } + * @return Whether the selfTestResult field is set. + */ + @java.lang.Override + public boolean hasSelfTestResult() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * [(nanopb).max_size = 1];
+         * 
+ * + * bytes selfTestResult = 2 [features = { ... } + * @return The selfTestResult. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfTestResult() { + return selfTestResult_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasSelfTestResult()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - // optional uint32 communicationTimeout = 14 [default = 20]; - public static final int COMMUNICATIONTIMEOUT_FIELD_NUMBER = 14; - private int communicationTimeout_; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBytes(2, selfTestResult_); + } + getUnknownFields().writeTo(output); + } - @Override - public boolean hasCommunicationTimeout() { - return ((this.bitField0_ & 0x00002000) == 0x00002000); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public int getCommunicationTimeout() { - return this.communicationTimeout_; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, selfTestResult_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - // optional uint32 communicationNumberOfRetries = 15 [default = 3]; - public static final int COMMUNICATIONNUMBEROFRETRIES_FIELD_NUMBER = 15; - private int communicationNumberOfRetries_; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse other = (org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse) obj; - @Override - public boolean hasCommunicationNumberOfRetries() { - return ((this.bitField0_ & 0x00004000) == 0x00004000); - } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (hasSelfTestResult() != other.hasSelfTestResult()) return false; + if (hasSelfTestResult()) { + if (!getSelfTestResult() + .equals(other.getSelfTestResult())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public int getCommunicationNumberOfRetries() { - return this.communicationNumberOfRetries_; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasSelfTestResult()) { + hash = (37 * hash) + SELFTESTRESULT_FIELD_NUMBER; + hash = (53 * hash) + getSelfTestResult().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.StopSelfTestResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.StopSelfTestResponse) + org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StopSelfTestResponse_descriptor; + } - // optional uint32 communicationPauseTimeBetweenConnectionTrials = 16 [default = 60]; - public static final int COMMUNICATIONPAUSETIMEBETWEENCONNECTIONTRIALS_FIELD_NUMBER = 16; - private int communicationPauseTimeBetweenConnectionTrials_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StopSelfTestResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.class, org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.Builder.class); + } - @Override - public boolean hasCommunicationPauseTimeBetweenConnectionTrials() { - return ((this.bitField0_ & 0x00008000) == 0x00008000); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.newBuilder() + private Builder() { - @Override - public int getCommunicationPauseTimeBetweenConnectionTrials() { - return this.communicationPauseTimeBetweenConnectionTrials_; - } + } - // optional bytes ospgIpAddress = 17; - public static final int OSPGIPADDRESS_FIELD_NUMBER = 17; - private com.google.protobuf.ByteString ospgIpAddress_; + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - @Override - public boolean hasOspgIpAddress() { - return ((this.bitField0_ & 0x00010000) == 0x00010000); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + selfTestResult_ = com.google.protobuf.ByteString.EMPTY; + return this; + } - @Override - public com.google.protobuf.ByteString getOspgIpAddress() { - return this.ospgIpAddress_; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_StopSelfTestResponse_descriptor; + } - // optional uint32 osgpPortNumber = 18; - public static final int OSGPPORTNUMBER_FIELD_NUMBER = 18; - private int osgpPortNumber_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.getDefaultInstance(); + } - @Override - public boolean hasOsgpPortNumber() { - return ((this.bitField0_ & 0x00020000) == 0x00020000); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse build() { + org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public int getOsgpPortNumber() { - return this.osgpPortNumber_; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse result = new org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - // optional bool isTestButtonEnabled = 19 [default = true]; - public static final int ISTESTBUTTONENABLED_FIELD_NUMBER = 19; - private boolean isTestButtonEnabled_; + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.selfTestResult_ = selfTestResult_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } - @Override - public boolean hasIsTestButtonEnabled() { - return ((this.bitField0_ & 0x00040000) == 0x00040000); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - @Override - public boolean getIsTestButtonEnabled() { - return this.isTestButtonEnabled_; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + if (other.hasSelfTestResult()) { + setSelfTestResult(other.getSelfTestResult()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - // optional bool isAutomaticSummerTimingEnabled = 20 [default = true]; - public static final int ISAUTOMATICSUMMERTIMINGENABLED_FIELD_NUMBER = 20; - private boolean isAutomaticSummerTimingEnabled_; + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + if (!hasSelfTestResult()) { + return false; + } + return true; + } - @Override - public boolean hasIsAutomaticSummerTimingEnabled() { - return ((this.bitField0_ & 0x00080000) == 0x00080000); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + selfTestResult_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - @Override - public boolean getIsAutomaticSummerTimingEnabled() { - return this.isAutomaticSummerTimingEnabled_; - } + private com.google.protobuf.ByteString selfTestResult_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_size = 1];
+             * 
+ * + * bytes selfTestResult = 2 [features = { ... } + * @return Whether the selfTestResult field is set. + */ + @java.lang.Override + public boolean hasSelfTestResult() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * [(nanopb).max_size = 1];
+             * 
+ * + * bytes selfTestResult = 2 [features = { ... } + * @return The selfTestResult. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfTestResult() { + return selfTestResult_; + } + /** + *
+             * [(nanopb).max_size = 1];
+             * 
+ * + * bytes selfTestResult = 2 [features = { ... } + * @param value The selfTestResult to set. + * @return This builder for chaining. + */ + public Builder setSelfTestResult(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + selfTestResult_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 1];
+             * 
+ * + * bytes selfTestResult = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearSelfTestResult() { + bitField0_ = (bitField0_ & ~0x00000002); + selfTestResult_ = getDefaultInstance().getSelfTestResult(); + onChanged(); + return this; + } - // optional sint32 astroGateSunRiseOffset = 21 [default = 0]; - public static final int ASTROGATESUNRISEOFFSET_FIELD_NUMBER = 21; - private int astroGateSunRiseOffset_; + // @@protoc_insertion_point(builder_scope:oslp.StopSelfTestResponse) + } - @Override - public boolean hasAstroGateSunRiseOffset() { - return ((this.bitField0_ & 0x00100000) == 0x00100000); - } + // @@protoc_insertion_point(class_scope:oslp.StopSelfTestResponse) + private static final org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse(); + } - @Override - public int getAstroGateSunRiseOffset() { - return this.astroGateSunRiseOffset_; - } + public static org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // optional sint32 astroGateSunSetOffset = 22 [default = 0]; - public static final int ASTROGATESUNSETOFFSET_FIELD_NUMBER = 22; - private int astroGateSunSetOffset_; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopSelfTestResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public boolean hasAstroGateSunSetOffset() { - return ((this.bitField0_ & 0x00200000) == 0x00200000); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @Override - public int getAstroGateSunSetOffset() { - return this.astroGateSunSetOffset_; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - // repeated uint32 switchingDelay = 23; - public static final int SWITCHINGDELAY_FIELD_NUMBER = 23; - private java.util.List switchingDelay_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @Override - public java.util.List getSwitchingDelayList() { - return this.switchingDelay_; } - @Override - public int getSwitchingDelayCount() { - return this.switchingDelay_.size(); - } + public interface GetFirmwareVersionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.GetFirmwareVersionRequest) + com.google.protobuf.MessageOrBuilder { - @Override - public int getSwitchingDelay(final int index) { - return this.switchingDelay_.get(index); + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + boolean hasPresent(); + /** + * bool present = 1 [default = true]; + * @return The present. + */ + boolean getPresent(); } + /** + *
+     * ========= Firmware Management
+     * 
+ * + * Protobuf type {@code oslp.GetFirmwareVersionRequest} + */ + public static final class GetFirmwareVersionRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.GetFirmwareVersionRequest) + GetFirmwareVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + GetFirmwareVersionRequest.class.getName()); + } + // Use GetFirmwareVersionRequest.newBuilder() to construct. + private GetFirmwareVersionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetFirmwareVersionRequest() { + present_ = true; + } - // repeated .oslp.RelayMatrix relayLinking = 24; - public static final int RELAYLINKING_FIELD_NUMBER = 24; - private java.util.List relayLinking_; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetFirmwareVersionRequest_descriptor; + } - @Override - public java.util.List getRelayLinkingList() { - return this.relayLinking_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetFirmwareVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.class, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.Builder.class); + } + + private int bitField0_; + public static final int PRESENT_FIELD_NUMBER = 1; + private boolean present_ = true; + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + @java.lang.Override + public boolean hasPresent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * bool present = 1 [default = true]; + * @return The present. + */ + @java.lang.Override + public boolean getPresent() { + return present_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, present_); + } + getUnknownFields().writeTo(output); + } - @Override - public java.util.List - getRelayLinkingOrBuilderList() { - return this.relayLinking_; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public int getRelayLinkingCount() { - return this.relayLinking_.size(); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, present_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayMatrix getRelayLinking(final int index) { - return this.relayLinking_.get(index); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest other = (org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest) obj; - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder getRelayLinkingOrBuilder( - final int index) { - return this.relayLinking_.get(index); - } + if (hasPresent() != other.hasPresent()) return false; + if (hasPresent()) { + if (getPresent() + != other.getPresent()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - // optional bool relayRefreshing = 25 [default = true]; - public static final int RELAYREFRESHING_FIELD_NUMBER = 25; - private boolean relayRefreshing_; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPresent()) { + hash = (37 * hash) + PRESENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPresent()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * ========= Firmware Management
+         * 
+ * + * Protobuf type {@code oslp.GetFirmwareVersionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.GetFirmwareVersionRequest) + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetFirmwareVersionRequest_descriptor; + } - @Override - public boolean hasRelayRefreshing() { - return ((this.bitField0_ & 0x00400000) == 0x00400000); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetFirmwareVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.class, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.Builder.class); + } - @Override - public boolean getRelayRefreshing() { - return this.relayRefreshing_; - } + // Construct using org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.newBuilder() + private Builder() { - // optional string summerTimeDetails = 26 [default = "0360100"]; - public static final int SUMMERTIMEDETAILS_FIELD_NUMBER = 26; - private java.lang.Object summerTimeDetails_; + } - @Override - public boolean hasSummerTimeDetails() { - return ((this.bitField0_ & 0x00800000) == 0x00800000); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - @Override - public String getSummerTimeDetails() { - final java.lang.Object ref = this.summerTimeDetails_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.summerTimeDetails_ = s; - } - return s; - } - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + present_ = true; + return this; + } - private com.google.protobuf.ByteString getSummerTimeDetailsBytes() { - final java.lang.Object ref = this.summerTimeDetails_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.summerTimeDetails_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetFirmwareVersionRequest_descriptor; + } - // optional string winterTimeDetails = 27 [default = "1060200"]; - public static final int WINTERTIMEDETAILS_FIELD_NUMBER = 27; - private java.lang.Object winterTimeDetails_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.getDefaultInstance(); + } - @Override - public boolean hasWinterTimeDetails() { - return ((this.bitField0_ & 0x01000000) == 0x01000000); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest build() { + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public String getWinterTimeDetails() { - final java.lang.Object ref = this.winterTimeDetails_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.winterTimeDetails_ = s; - } - return s; - } - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest result = new org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - private com.google.protobuf.ByteString getWinterTimeDetailsBytes() { - final java.lang.Object ref = this.winterTimeDetails_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.winterTimeDetails_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.present_ = present_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - private void initFields() { - this.lightType_ = org.opensmartgridplatform.oslp.Oslp.LightType.LT_NOT_SET; - this.daliConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance(); - this.relayConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance(); - this.shortTermHistoryIntervalMinutes_ = 0; - this.preferredLinkType_ = org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - this.meterType_ = org.opensmartgridplatform.oslp.Oslp.MeterType.MT_NOT_SET; - this.longTermHistoryInterval_ = 0; - this.longTermHistoryIntervalType_ = - org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.LT_INT_NOT_SET; - this.timeSyncFrequency_ = 86400; - this.deviceFixIpValue_ = com.google.protobuf.ByteString.EMPTY; - this.netMask_ = com.google.protobuf.ByteString.EMPTY; - this.gateWay_ = com.google.protobuf.ByteString.EMPTY; - this.isDhcpEnabled_ = true; - this.communicationTimeout_ = 20; - this.communicationNumberOfRetries_ = 3; - this.communicationPauseTimeBetweenConnectionTrials_ = 60; - this.ospgIpAddress_ = com.google.protobuf.ByteString.EMPTY; - this.osgpPortNumber_ = 0; - this.isTestButtonEnabled_ = true; - this.isAutomaticSummerTimingEnabled_ = true; - this.astroGateSunRiseOffset_ = 0; - this.astroGateSunSetOffset_ = 0; - this.switchingDelay_ = java.util.Collections.emptyList(); - - this.relayLinking_ = java.util.Collections.emptyList(); - this.relayRefreshing_ = true; - this.summerTimeDetails_ = "0360100"; - this.winterTimeDetails_ = "1060200"; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (this.hasDaliConfiguration()) { - if (!this.getDaliConfiguration().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasRelayConfiguration()) { - if (!this.getRelayConfiguration().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < this.getRelayLinkingCount(); i++) { - if (!this.getRelayLinking(i).isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - this.memoizedIsInitialized = 1; - return true; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.getDefaultInstance()) return this; + if (other.hasPresent()) { + setPresent(other.getPresent()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.lightType_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, this.daliConfiguration_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, this.relayConfiguration_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - output.writeUInt32(4, this.shortTermHistoryIntervalMinutes_); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(5, this.preferredLinkType_.getNumber()); - } - if (((this.bitField0_ & 0x00000020) == 0x00000020)) { - output.writeEnum(6, this.meterType_.getNumber()); - } - if (((this.bitField0_ & 0x00000040) == 0x00000040)) { - output.writeUInt32(7, this.longTermHistoryInterval_); - } - if (((this.bitField0_ & 0x00000080) == 0x00000080)) { - output.writeEnum(8, this.longTermHistoryIntervalType_.getNumber()); - } - if (((this.bitField0_ & 0x00000100) == 0x00000100)) { - output.writeUInt32(9, this.timeSyncFrequency_); - } - if (((this.bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(10, this.deviceFixIpValue_); - } - if (((this.bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(11, this.netMask_); - } - if (((this.bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(12, this.gateWay_); - } - if (((this.bitField0_ & 0x00001000) == 0x00001000)) { - output.writeBool(13, this.isDhcpEnabled_); - } - if (((this.bitField0_ & 0x00002000) == 0x00002000)) { - output.writeUInt32(14, this.communicationTimeout_); - } - if (((this.bitField0_ & 0x00004000) == 0x00004000)) { - output.writeUInt32(15, this.communicationNumberOfRetries_); - } - if (((this.bitField0_ & 0x00008000) == 0x00008000)) { - output.writeUInt32(16, this.communicationPauseTimeBetweenConnectionTrials_); - } - if (((this.bitField0_ & 0x00010000) == 0x00010000)) { - output.writeBytes(17, this.ospgIpAddress_); - } - if (((this.bitField0_ & 0x00020000) == 0x00020000)) { - output.writeUInt32(18, this.osgpPortNumber_); - } - if (((this.bitField0_ & 0x00040000) == 0x00040000)) { - output.writeBool(19, this.isTestButtonEnabled_); - } - if (((this.bitField0_ & 0x00080000) == 0x00080000)) { - output.writeBool(20, this.isAutomaticSummerTimingEnabled_); - } - if (((this.bitField0_ & 0x00100000) == 0x00100000)) { - output.writeSInt32(21, this.astroGateSunRiseOffset_); - } - if (((this.bitField0_ & 0x00200000) == 0x00200000)) { - output.writeSInt32(22, this.astroGateSunSetOffset_); - } - for (int i = 0; i < this.switchingDelay_.size(); i++) { - output.writeUInt32(23, this.switchingDelay_.get(i)); - } - for (int i = 0; i < this.relayLinking_.size(); i++) { - output.writeMessage(24, this.relayLinking_.get(i)); - } - if (((this.bitField0_ & 0x00400000) == 0x00400000)) { - output.writeBool(25, this.relayRefreshing_); - } - if (((this.bitField0_ & 0x00800000) == 0x00800000)) { - output.writeBytes(26, this.getSummerTimeDetailsBytes()); - } - if (((this.bitField0_ & 0x01000000) == 0x01000000)) { - output.writeBytes(27, this.getWinterTimeDetailsBytes()); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.lightType_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, this.daliConfiguration_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, this.relayConfiguration_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size( - 4, this.shortTermHistoryIntervalMinutes_); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 5, this.preferredLinkType_.getNumber()); - } - if (((this.bitField0_ & 0x00000020) == 0x00000020)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(6, this.meterType_.getNumber()); - } - if (((this.bitField0_ & 0x00000040) == 0x00000040)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size( - 7, this.longTermHistoryInterval_); - } - if (((this.bitField0_ & 0x00000080) == 0x00000080)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 8, this.longTermHistoryIntervalType_.getNumber()); - } - if (((this.bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(9, this.timeSyncFrequency_); - } - if (((this.bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, this.deviceFixIpValue_); - } - if (((this.bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, this.netMask_); - } - if (((this.bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(12, this.gateWay_); - } - if (((this.bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, this.isDhcpEnabled_); - } - if (((this.bitField0_ & 0x00002000) == 0x00002000)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size(14, this.communicationTimeout_); - } - if (((this.bitField0_ & 0x00004000) == 0x00004000)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size( - 15, this.communicationNumberOfRetries_); - } - if (((this.bitField0_ & 0x00008000) == 0x00008000)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size( - 16, this.communicationPauseTimeBetweenConnectionTrials_); - } - if (((this.bitField0_ & 0x00010000) == 0x00010000)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(17, this.ospgIpAddress_); - } - if (((this.bitField0_ & 0x00020000) == 0x00020000)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(18, this.osgpPortNumber_); - } - if (((this.bitField0_ & 0x00040000) == 0x00040000)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(19, this.isTestButtonEnabled_); - } - if (((this.bitField0_ & 0x00080000) == 0x00080000)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 20, this.isAutomaticSummerTimingEnabled_); - } - if (((this.bitField0_ & 0x00100000) == 0x00100000)) { - size += - com.google.protobuf.CodedOutputStream.computeSInt32Size( - 21, this.astroGateSunRiseOffset_); - } - if (((this.bitField0_ & 0x00200000) == 0x00200000)) { - size += - com.google.protobuf.CodedOutputStream.computeSInt32Size( - 22, this.astroGateSunSetOffset_); - } - { - int dataSize = 0; - for (int i = 0; i < this.switchingDelay_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag( - this.switchingDelay_.get(i)); - } - size += dataSize; - size += 2 * this.getSwitchingDelayList().size(); - } - for (int i = 0; i < this.relayLinking_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(24, this.relayLinking_.get(i)); - } - if (((this.bitField0_ & 0x00400000) == 0x00400000)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, this.relayRefreshing_); - } - if (((this.bitField0_ & 0x00800000) == 0x00800000)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 26, this.getSummerTimeDetailsBytes()); - } - if (((this.bitField0_ & 0x01000000) == 0x01000000)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 27, this.getWinterTimeDetailsBytes()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + present_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean present_ = true; + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + @java.lang.Override + public boolean hasPresent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * bool present = 1 [default = true]; + * @return The present. + */ + @java.lang.Override + public boolean getPresent() { + return present_; + } + /** + * bool present = 1 [default = true]; + * @param value The present to set. + * @return This builder for chaining. + */ + public Builder setPresent(boolean value) { + + present_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool present = 1 [default = true]; + * @return This builder for chaining. + */ + public Builder clearPresent() { + bitField0_ = (bitField0_ & ~0x00000001); + present_ = true; + onChanged(); + return this; + } - private static final long serialVersionUID = 0L; + // @@protoc_insertion_point(builder_scope:oslp.GetFirmwareVersionRequest) + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + // @@protoc_insertion_point(class_scope:oslp.GetFirmwareVersionRequest) + private static final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest(); + } - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFirmwareVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetFirmwareVersionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.GetFirmwareVersionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_size = 7]; // RXX
+         * 
+ * + * string firmwareVersion = 1 [features = { ... } + * @return Whether the firmwareVersion field is set. + */ + boolean hasFirmwareVersion(); + /** + *
+         * [(nanopb).max_size = 7]; // RXX
+         * 
+ * + * string firmwareVersion = 1 [features = { ... } + * @return The firmwareVersion. + */ + java.lang.String getFirmwareVersion(); + /** + *
+         * [(nanopb).max_size = 7]; // RXX
+         * 
+ * + * string firmwareVersion = 1 [features = { ... } + * @return The bytes for firmwareVersion. + */ + com.google.protobuf.ByteString + getFirmwareVersionBytes(); + } + /** + * Protobuf type {@code oslp.GetFirmwareVersionResponse} + */ + public static final class GetFirmwareVersionResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.GetFirmwareVersionResponse) + GetFirmwareVersionResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + GetFirmwareVersionResponse.class.getName()); + } + // Use GetFirmwareVersionResponse.newBuilder() to construct. + private GetFirmwareVersionResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetFirmwareVersionResponse() { + firmwareVersion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetFirmwareVersionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetFirmwareVersionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.class, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.Builder.class); + } + + private int bitField0_; + public static final int FIRMWAREVERSION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object firmwareVersion_ = ""; + /** + *
+         * [(nanopb).max_size = 7]; // RXX
+         * 
+ * + * string firmwareVersion = 1 [features = { ... } + * @return Whether the firmwareVersion field is set. + */ + @java.lang.Override + public boolean hasFirmwareVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * [(nanopb).max_size = 7]; // RXX
+         * 
+ * + * string firmwareVersion = 1 [features = { ... } + * @return The firmwareVersion. + */ + @java.lang.Override + public java.lang.String getFirmwareVersion() { + java.lang.Object ref = firmwareVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firmwareVersion_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 7]; // RXX
+         * 
+ * + * string firmwareVersion = 1 [features = { ... } + * @return The bytes for firmwareVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFirmwareVersionBytes() { + java.lang.Object ref = firmwareVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firmwareVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + if (!hasFirmwareVersion()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, firmwareVersion_); + } + getUnknownFields().writeTo(output); + } - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, firmwareVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse other = (org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse) obj; - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + if (hasFirmwareVersion() != other.hasFirmwareVersion()) return false; + if (hasFirmwareVersion()) { + if (!getFirmwareVersion() + .equals(other.getFirmwareVersion())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static Builder newBuilder() { - return Builder.create(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFirmwareVersion()) { + hash = (37 * hash) + FIRMWAREVERSION_FIELD_NUMBER; + hash = (53 * hash) + getFirmwareVersion().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.GetFirmwareVersionResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.GetFirmwareVersionResponse) + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetFirmwareVersionResponse_descriptor; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetFirmwareVersionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.class, org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.Builder.class); + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest prototype) { - return newBuilder().mergeFrom(prototype); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.newBuilder() + private Builder() { - @Override - public Builder toBuilder() { - return newBuilder(this); - } + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetConfigurationRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetConfigurationRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getDaliConfigurationFieldBuilder(); - this.getRelayConfigurationFieldBuilder(); - this.getRelayLinkingFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.lightType_ = org.opensmartgridplatform.oslp.Oslp.LightType.LT_NOT_SET; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - if (this.daliConfigurationBuilder_ == null) { - this.daliConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance(); - } else { - this.daliConfigurationBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000002); - if (this.relayConfigurationBuilder_ == null) { - this.relayConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance(); - } else { - this.relayConfigurationBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.shortTermHistoryIntervalMinutes_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.preferredLinkType_ = org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - this.bitField0_ = (this.bitField0_ & ~0x00000010); - this.meterType_ = org.opensmartgridplatform.oslp.Oslp.MeterType.MT_NOT_SET; - this.bitField0_ = (this.bitField0_ & ~0x00000020); - this.longTermHistoryInterval_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000040); - this.longTermHistoryIntervalType_ = - org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.LT_INT_NOT_SET; - this.bitField0_ = (this.bitField0_ & ~0x00000080); - this.timeSyncFrequency_ = 86400; - this.bitField0_ = (this.bitField0_ & ~0x00000100); - this.deviceFixIpValue_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000200); - this.netMask_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000400); - this.gateWay_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000800); - this.isDhcpEnabled_ = true; - this.bitField0_ = (this.bitField0_ & ~0x00001000); - this.communicationTimeout_ = 20; - this.bitField0_ = (this.bitField0_ & ~0x00002000); - this.communicationNumberOfRetries_ = 3; - this.bitField0_ = (this.bitField0_ & ~0x00004000); - this.communicationPauseTimeBetweenConnectionTrials_ = 60; - this.bitField0_ = (this.bitField0_ & ~0x00008000); - this.ospgIpAddress_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00010000); - this.osgpPortNumber_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00020000); - this.isTestButtonEnabled_ = true; - this.bitField0_ = (this.bitField0_ & ~0x00040000); - this.isAutomaticSummerTimingEnabled_ = true; - this.bitField0_ = (this.bitField0_ & ~0x00080000); - this.astroGateSunRiseOffset_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00100000); - this.astroGateSunSetOffset_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00200000); - this.switchingDelay_ = java.util.Collections.emptyList(); - - this.bitField0_ = (this.bitField0_ & ~0x00400000); - if (this.relayLinkingBuilder_ == null) { - this.relayLinking_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00800000); - } else { - this.relayLinkingBuilder_.clear(); - } - this.relayRefreshing_ = true; - this.bitField0_ = (this.bitField0_ & ~0x01000000); - this.summerTimeDetails_ = "0360100"; - this.bitField0_ = (this.bitField0_ & ~0x02000000); - this.winterTimeDetails_ = "1060200"; - this.bitField0_ = (this.bitField0_ & ~0x04000000); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest build() { - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest result = - new org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.lightType_ = this.lightType_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (this.daliConfigurationBuilder_ == null) { - result.daliConfiguration_ = this.daliConfiguration_; - } else { - result.daliConfiguration_ = this.daliConfigurationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (this.relayConfigurationBuilder_ == null) { - result.relayConfiguration_ = this.relayConfiguration_; - } else { - result.relayConfiguration_ = this.relayConfigurationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.shortTermHistoryIntervalMinutes_ = this.shortTermHistoryIntervalMinutes_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.preferredLinkType_ = this.preferredLinkType_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.meterType_ = this.meterType_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.longTermHistoryInterval_ = this.longTermHistoryInterval_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.longTermHistoryIntervalType_ = this.longTermHistoryIntervalType_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.timeSyncFrequency_ = this.timeSyncFrequency_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - result.deviceFixIpValue_ = this.deviceFixIpValue_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - result.netMask_ = this.netMask_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000800; - } - result.gateWay_ = this.gateWay_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00001000; - } - result.isDhcpEnabled_ = this.isDhcpEnabled_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00002000; - } - result.communicationTimeout_ = this.communicationTimeout_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00004000; - } - result.communicationNumberOfRetries_ = this.communicationNumberOfRetries_; - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { - to_bitField0_ |= 0x00008000; - } - result.communicationPauseTimeBetweenConnectionTrials_ = - this.communicationPauseTimeBetweenConnectionTrials_; - if (((from_bitField0_ & 0x00010000) == 0x00010000)) { - to_bitField0_ |= 0x00010000; - } - result.ospgIpAddress_ = this.ospgIpAddress_; - if (((from_bitField0_ & 0x00020000) == 0x00020000)) { - to_bitField0_ |= 0x00020000; - } - result.osgpPortNumber_ = this.osgpPortNumber_; - if (((from_bitField0_ & 0x00040000) == 0x00040000)) { - to_bitField0_ |= 0x00040000; - } - result.isTestButtonEnabled_ = this.isTestButtonEnabled_; - if (((from_bitField0_ & 0x00080000) == 0x00080000)) { - to_bitField0_ |= 0x00080000; - } - result.isAutomaticSummerTimingEnabled_ = this.isAutomaticSummerTimingEnabled_; - if (((from_bitField0_ & 0x00100000) == 0x00100000)) { - to_bitField0_ |= 0x00100000; - } - result.astroGateSunRiseOffset_ = this.astroGateSunRiseOffset_; - if (((from_bitField0_ & 0x00200000) == 0x00200000)) { - to_bitField0_ |= 0x00200000; - } - result.astroGateSunSetOffset_ = this.astroGateSunSetOffset_; - if (((this.bitField0_ & 0x00400000) == 0x00400000)) { - this.switchingDelay_ = java.util.Collections.unmodifiableList(this.switchingDelay_); - this.bitField0_ = (this.bitField0_ & ~0x00400000); - } - result.switchingDelay_ = this.switchingDelay_; - if (this.relayLinkingBuilder_ == null) { - if (((this.bitField0_ & 0x00800000) == 0x00800000)) { - this.relayLinking_ = java.util.Collections.unmodifiableList(this.relayLinking_); - this.bitField0_ = (this.bitField0_ & ~0x00800000); - } - result.relayLinking_ = this.relayLinking_; - } else { - result.relayLinking_ = this.relayLinkingBuilder_.build(); - } - if (((from_bitField0_ & 0x01000000) == 0x01000000)) { - to_bitField0_ |= 0x00400000; - } - result.relayRefreshing_ = this.relayRefreshing_; - if (((from_bitField0_ & 0x02000000) == 0x02000000)) { - to_bitField0_ |= 0x00800000; - } - result.summerTimeDetails_ = this.summerTimeDetails_; - if (((from_bitField0_ & 0x04000000) == 0x04000000)) { - to_bitField0_ |= 0x01000000; - } - result.winterTimeDetails_ = this.winterTimeDetails_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + firmwareVersion_ = ""; + return this; + } - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.getDefaultInstance()) { - return this; - } - if (other.hasLightType()) { - this.setLightType(other.getLightType()); - } - if (other.hasDaliConfiguration()) { - this.mergeDaliConfiguration(other.getDaliConfiguration()); - } - if (other.hasRelayConfiguration()) { - this.mergeRelayConfiguration(other.getRelayConfiguration()); - } - if (other.hasShortTermHistoryIntervalMinutes()) { - this.setShortTermHistoryIntervalMinutes(other.getShortTermHistoryIntervalMinutes()); - } - if (other.hasPreferredLinkType()) { - this.setPreferredLinkType(other.getPreferredLinkType()); - } - if (other.hasMeterType()) { - this.setMeterType(other.getMeterType()); - } - if (other.hasLongTermHistoryInterval()) { - this.setLongTermHistoryInterval(other.getLongTermHistoryInterval()); - } - if (other.hasLongTermHistoryIntervalType()) { - this.setLongTermHistoryIntervalType(other.getLongTermHistoryIntervalType()); - } - if (other.hasTimeSyncFrequency()) { - this.setTimeSyncFrequency(other.getTimeSyncFrequency()); - } - if (other.hasDeviceFixIpValue()) { - this.setDeviceFixIpValue(other.getDeviceFixIpValue()); - } - if (other.hasNetMask()) { - this.setNetMask(other.getNetMask()); - } - if (other.hasGateWay()) { - this.setGateWay(other.getGateWay()); - } - if (other.hasIsDhcpEnabled()) { - this.setIsDhcpEnabled(other.getIsDhcpEnabled()); - } - if (other.hasCommunicationTimeout()) { - this.setCommunicationTimeout(other.getCommunicationTimeout()); - } - if (other.hasCommunicationNumberOfRetries()) { - this.setCommunicationNumberOfRetries(other.getCommunicationNumberOfRetries()); - } - if (other.hasCommunicationPauseTimeBetweenConnectionTrials()) { - this.setCommunicationPauseTimeBetweenConnectionTrials( - other.getCommunicationPauseTimeBetweenConnectionTrials()); - } - if (other.hasOspgIpAddress()) { - this.setOspgIpAddress(other.getOspgIpAddress()); - } - if (other.hasOsgpPortNumber()) { - this.setOsgpPortNumber(other.getOsgpPortNumber()); - } - if (other.hasIsTestButtonEnabled()) { - this.setIsTestButtonEnabled(other.getIsTestButtonEnabled()); - } - if (other.hasIsAutomaticSummerTimingEnabled()) { - this.setIsAutomaticSummerTimingEnabled(other.getIsAutomaticSummerTimingEnabled()); - } - if (other.hasAstroGateSunRiseOffset()) { - this.setAstroGateSunRiseOffset(other.getAstroGateSunRiseOffset()); - } - if (other.hasAstroGateSunSetOffset()) { - this.setAstroGateSunSetOffset(other.getAstroGateSunSetOffset()); - } - if (!other.switchingDelay_.isEmpty()) { - if (this.switchingDelay_.isEmpty()) { - this.switchingDelay_ = other.switchingDelay_; - this.bitField0_ = (this.bitField0_ & ~0x00400000); - } else { - this.ensureSwitchingDelayIsMutable(); - this.switchingDelay_.addAll(other.switchingDelay_); - } - this.onChanged(); - } - if (this.relayLinkingBuilder_ == null) { - if (!other.relayLinking_.isEmpty()) { - if (this.relayLinking_.isEmpty()) { - this.relayLinking_ = other.relayLinking_; - this.bitField0_ = (this.bitField0_ & ~0x00800000); - } else { - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.addAll(other.relayLinking_); - } - this.onChanged(); - } - } else { - if (!other.relayLinking_.isEmpty()) { - if (this.relayLinkingBuilder_.isEmpty()) { - this.relayLinkingBuilder_.dispose(); - this.relayLinkingBuilder_ = null; - this.relayLinking_ = other.relayLinking_; - this.bitField0_ = (this.bitField0_ & ~0x00800000); - this.relayLinkingBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? this.getRelayLinkingFieldBuilder() - : null; - } else { - this.relayLinkingBuilder_.addAllMessages(other.relayLinking_); - } - } - } - if (other.hasRelayRefreshing()) { - this.setRelayRefreshing(other.getRelayRefreshing()); - } - if (other.hasSummerTimeDetails()) { - this.setSummerTimeDetails(other.getSummerTimeDetails()); - } - if (other.hasWinterTimeDetails()) { - this.setWinterTimeDetails(other.getWinterTimeDetails()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (this.hasDaliConfiguration()) { - if (!this.getDaliConfiguration().isInitialized()) { - - return false; - } - } - if (this.hasRelayConfiguration()) { - if (!this.getRelayConfiguration().isInitialized()) { - - return false; - } - } - for (int i = 0; i < this.getRelayLinkingCount(); i++) { - if (!this.getRelayLinking(i).isInitialized()) { - - return false; - } - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.LightType value = - org.opensmartgridplatform.oslp.Oslp.LightType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.lightType_ = value; - } - break; - } - case 18: - { - final org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.newBuilder(); - if (this.hasDaliConfiguration()) { - subBuilder.mergeFrom(this.getDaliConfiguration()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setDaliConfiguration(subBuilder.buildPartial()); - break; - } - case 26: - { - final org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.newBuilder(); - if (this.hasRelayConfiguration()) { - subBuilder.mergeFrom(this.getRelayConfiguration()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setRelayConfiguration(subBuilder.buildPartial()); - break; - } - case 32: - { - this.bitField0_ |= 0x00000008; - this.shortTermHistoryIntervalMinutes_ = input.readUInt32(); - break; - } - case 40: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.LinkType value = - org.opensmartgridplatform.oslp.Oslp.LinkType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(5, rawValue); - } else { - this.bitField0_ |= 0x00000010; - this.preferredLinkType_ = value; - } - break; - } - case 48: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.MeterType value = - org.opensmartgridplatform.oslp.Oslp.MeterType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(6, rawValue); - } else { - this.bitField0_ |= 0x00000020; - this.meterType_ = value; - } - break; - } - case 56: - { - this.bitField0_ |= 0x00000040; - this.longTermHistoryInterval_ = input.readUInt32(); - break; - } - case 64: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType value = - org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(8, rawValue); - } else { - this.bitField0_ |= 0x00000080; - this.longTermHistoryIntervalType_ = value; - } - break; - } - case 72: - { - this.bitField0_ |= 0x00000100; - this.timeSyncFrequency_ = input.readUInt32(); - break; - } - case 82: - { - this.bitField0_ |= 0x00000200; - this.deviceFixIpValue_ = input.readBytes(); - break; - } - case 90: - { - this.bitField0_ |= 0x00000400; - this.netMask_ = input.readBytes(); - break; - } - case 98: - { - this.bitField0_ |= 0x00000800; - this.gateWay_ = input.readBytes(); - break; - } - case 104: - { - this.bitField0_ |= 0x00001000; - this.isDhcpEnabled_ = input.readBool(); - break; - } - case 112: - { - this.bitField0_ |= 0x00002000; - this.communicationTimeout_ = input.readUInt32(); - break; - } - case 120: - { - this.bitField0_ |= 0x00004000; - this.communicationNumberOfRetries_ = input.readUInt32(); - break; - } - case 128: - { - this.bitField0_ |= 0x00008000; - this.communicationPauseTimeBetweenConnectionTrials_ = input.readUInt32(); - break; - } - case 138: - { - this.bitField0_ |= 0x00010000; - this.ospgIpAddress_ = input.readBytes(); - break; - } - case 144: - { - this.bitField0_ |= 0x00020000; - this.osgpPortNumber_ = input.readUInt32(); - break; - } - case 152: - { - this.bitField0_ |= 0x00040000; - this.isTestButtonEnabled_ = input.readBool(); - break; - } - case 160: - { - this.bitField0_ |= 0x00080000; - this.isAutomaticSummerTimingEnabled_ = input.readBool(); - break; - } - case 168: - { - this.bitField0_ |= 0x00100000; - this.astroGateSunRiseOffset_ = input.readSInt32(); - break; - } - case 176: - { - this.bitField0_ |= 0x00200000; - this.astroGateSunSetOffset_ = input.readSInt32(); - break; - } - case 184: - { - this.ensureSwitchingDelayIsMutable(); - this.switchingDelay_.add(input.readUInt32()); - break; - } - case 186: - { - final int length = input.readRawVarint32(); - final int limit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - this.addSwitchingDelay(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 194: - { - final org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.RelayMatrix.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - this.addRelayLinking(subBuilder.buildPartial()); - break; - } - case 200: - { - this.bitField0_ |= 0x01000000; - this.relayRefreshing_ = input.readBool(); - break; - } - case 210: - { - this.bitField0_ |= 0x02000000; - this.summerTimeDetails_ = input.readBytes(); - break; - } - case 218: - { - this.bitField0_ |= 0x04000000; - this.winterTimeDetails_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // optional .oslp.LightType lightType = 1; - private org.opensmartgridplatform.oslp.Oslp.LightType lightType_ = - org.opensmartgridplatform.oslp.Oslp.LightType.LT_NOT_SET; - - @Override - public boolean hasLightType() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightType getLightType() { - return this.lightType_; - } - - public Builder setLightType(final org.opensmartgridplatform.oslp.Oslp.LightType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.lightType_ = value; - this.onChanged(); - return this; - } - - public Builder clearLightType() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.lightType_ = org.opensmartgridplatform.oslp.Oslp.LightType.LT_NOT_SET; - this.onChanged(); - return this; - } - - // optional .oslp.DaliConfiguration daliConfiguration = 2; - private org.opensmartgridplatform.oslp.Oslp.DaliConfiguration daliConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration, - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder, - org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder> - daliConfigurationBuilder_; - - @Override - public boolean hasDaliConfiguration() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDaliConfiguration() { - if (this.daliConfigurationBuilder_ == null) { - return this.daliConfiguration_; - } else { - return this.daliConfigurationBuilder_.getMessage(); - } - } - - public Builder setDaliConfiguration( - final org.opensmartgridplatform.oslp.Oslp.DaliConfiguration value) { - if (this.daliConfigurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.daliConfiguration_ = value; - this.onChanged(); - } else { - this.daliConfigurationBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000002; - return this; - } - - public Builder setDaliConfiguration( - final org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder builderForValue) { - if (this.daliConfigurationBuilder_ == null) { - this.daliConfiguration_ = builderForValue.build(); - this.onChanged(); - } else { - this.daliConfigurationBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000002; - return this; - } - - public Builder mergeDaliConfiguration( - final org.opensmartgridplatform.oslp.Oslp.DaliConfiguration value) { - if (this.daliConfigurationBuilder_ == null) { - if (((this.bitField0_ & 0x00000002) == 0x00000002) - && this.daliConfiguration_ - != org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance()) { - this.daliConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.newBuilder( - this.daliConfiguration_) - .mergeFrom(value) - .buildPartial(); - } else { - this.daliConfiguration_ = value; - } - this.onChanged(); - } else { - this.daliConfigurationBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000002; - return this; - } - - public Builder clearDaliConfiguration() { - if (this.daliConfigurationBuilder_ == null) { - this.daliConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance(); - this.onChanged(); - } else { - this.daliConfigurationBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000002); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder - getDaliConfigurationBuilder() { - this.bitField0_ |= 0x00000002; - this.onChanged(); - return this.getDaliConfigurationFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder - getDaliConfigurationOrBuilder() { - if (this.daliConfigurationBuilder_ != null) { - return this.daliConfigurationBuilder_.getMessageOrBuilder(); - } else { - return this.daliConfiguration_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration, - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder, - org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder> - getDaliConfigurationFieldBuilder() { - if (this.daliConfigurationBuilder_ == null) { - this.daliConfigurationBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration, - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder, - org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder>( - this.daliConfiguration_, this.getParentForChildren(), this.isClean()); - this.daliConfiguration_ = null; - } - return this.daliConfigurationBuilder_; - } - - // optional .oslp.RelayConfiguration relayConfiguration = 3; - private org.opensmartgridplatform.oslp.Oslp.RelayConfiguration relayConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration, - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder, - org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder> - relayConfigurationBuilder_; - - @Override - public boolean hasRelayConfiguration() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getRelayConfiguration() { - if (this.relayConfigurationBuilder_ == null) { - return this.relayConfiguration_; - } else { - return this.relayConfigurationBuilder_.getMessage(); - } - } - - public Builder setRelayConfiguration( - final org.opensmartgridplatform.oslp.Oslp.RelayConfiguration value) { - if (this.relayConfigurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.relayConfiguration_ = value; - this.onChanged(); - } else { - this.relayConfigurationBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000004; - return this; - } - - public Builder setRelayConfiguration( - final org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder builderForValue) { - if (this.relayConfigurationBuilder_ == null) { - this.relayConfiguration_ = builderForValue.build(); - this.onChanged(); - } else { - this.relayConfigurationBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000004; - return this; - } - - public Builder mergeRelayConfiguration( - final org.opensmartgridplatform.oslp.Oslp.RelayConfiguration value) { - if (this.relayConfigurationBuilder_ == null) { - if (((this.bitField0_ & 0x00000004) == 0x00000004) - && this.relayConfiguration_ - != org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance()) { - this.relayConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.newBuilder( - this.relayConfiguration_) - .mergeFrom(value) - .buildPartial(); - } else { - this.relayConfiguration_ = value; - } - this.onChanged(); - } else { - this.relayConfigurationBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000004; - return this; - } - - public Builder clearRelayConfiguration() { - if (this.relayConfigurationBuilder_ == null) { - this.relayConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance(); - this.onChanged(); - } else { - this.relayConfigurationBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000004); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder - getRelayConfigurationBuilder() { - this.bitField0_ |= 0x00000004; - this.onChanged(); - return this.getRelayConfigurationFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder - getRelayConfigurationOrBuilder() { - if (this.relayConfigurationBuilder_ != null) { - return this.relayConfigurationBuilder_.getMessageOrBuilder(); - } else { - return this.relayConfiguration_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration, - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder, - org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder> - getRelayConfigurationFieldBuilder() { - if (this.relayConfigurationBuilder_ == null) { - this.relayConfigurationBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration, - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder, - org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder>( - this.relayConfiguration_, this.getParentForChildren(), this.isClean()); - this.relayConfiguration_ = null; - } - return this.relayConfigurationBuilder_; - } - - // optional uint32 shortTermHistoryIntervalMinutes = 4; - private int shortTermHistoryIntervalMinutes_; - - @Override - public boolean hasShortTermHistoryIntervalMinutes() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public int getShortTermHistoryIntervalMinutes() { - return this.shortTermHistoryIntervalMinutes_; - } - - public Builder setShortTermHistoryIntervalMinutes(final int value) { - this.bitField0_ |= 0x00000008; - this.shortTermHistoryIntervalMinutes_ = value; - this.onChanged(); - return this; - } - - public Builder clearShortTermHistoryIntervalMinutes() { - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.shortTermHistoryIntervalMinutes_ = 0; - this.onChanged(); - return this; - } - - // optional .oslp.LinkType preferredLinkType = 5; - private org.opensmartgridplatform.oslp.Oslp.LinkType preferredLinkType_ = - org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - - @Override - public boolean hasPreferredLinkType() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinkType() { - return this.preferredLinkType_; - } - - public Builder setPreferredLinkType( - final org.opensmartgridplatform.oslp.Oslp.LinkType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000010; - this.preferredLinkType_ = value; - this.onChanged(); - return this; - } - - public Builder clearPreferredLinkType() { - this.bitField0_ = (this.bitField0_ & ~0x00000010); - this.preferredLinkType_ = org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - this.onChanged(); - return this; - } - - // optional .oslp.MeterType meterType = 6; - private org.opensmartgridplatform.oslp.Oslp.MeterType meterType_ = - org.opensmartgridplatform.oslp.Oslp.MeterType.MT_NOT_SET; - - @Override - public boolean hasMeterType() { - return ((this.bitField0_ & 0x00000020) == 0x00000020); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType() { - return this.meterType_; - } - - public Builder setMeterType(final org.opensmartgridplatform.oslp.Oslp.MeterType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000020; - this.meterType_ = value; - this.onChanged(); - return this; - } - - public Builder clearMeterType() { - this.bitField0_ = (this.bitField0_ & ~0x00000020); - this.meterType_ = org.opensmartgridplatform.oslp.Oslp.MeterType.MT_NOT_SET; - this.onChanged(); - return this; - } - - // optional uint32 longTermHistoryInterval = 7; - private int longTermHistoryInterval_; - - @Override - public boolean hasLongTermHistoryInterval() { - return ((this.bitField0_ & 0x00000040) == 0x00000040); - } - - @Override - public int getLongTermHistoryInterval() { - return this.longTermHistoryInterval_; - } - - public Builder setLongTermHistoryInterval(final int value) { - this.bitField0_ |= 0x00000040; - this.longTermHistoryInterval_ = value; - this.onChanged(); - return this; - } - - public Builder clearLongTermHistoryInterval() { - this.bitField0_ = (this.bitField0_ & ~0x00000040); - this.longTermHistoryInterval_ = 0; - this.onChanged(); - return this; - } - - // optional .oslp.LongTermIntervalType longTermHistoryIntervalType = 8; - private org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType - longTermHistoryIntervalType_ = - org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.LT_INT_NOT_SET; - - @Override - public boolean hasLongTermHistoryIntervalType() { - return ((this.bitField0_ & 0x00000080) == 0x00000080); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType - getLongTermHistoryIntervalType() { - return this.longTermHistoryIntervalType_; - } - - public Builder setLongTermHistoryIntervalType( - final org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000080; - this.longTermHistoryIntervalType_ = value; - this.onChanged(); - return this; - } - - public Builder clearLongTermHistoryIntervalType() { - this.bitField0_ = (this.bitField0_ & ~0x00000080); - this.longTermHistoryIntervalType_ = - org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.LT_INT_NOT_SET; - this.onChanged(); - return this; - } - - // optional uint32 timeSyncFrequency = 9 [default = 86400]; - private int timeSyncFrequency_ = 86400; - - @Override - public boolean hasTimeSyncFrequency() { - return ((this.bitField0_ & 0x00000100) == 0x00000100); - } - - @Override - public int getTimeSyncFrequency() { - return this.timeSyncFrequency_; - } - - public Builder setTimeSyncFrequency(final int value) { - this.bitField0_ |= 0x00000100; - this.timeSyncFrequency_ = value; - this.onChanged(); - return this; - } - - public Builder clearTimeSyncFrequency() { - this.bitField0_ = (this.bitField0_ & ~0x00000100); - this.timeSyncFrequency_ = 86400; - this.onChanged(); - return this; - } - - // optional bytes deviceFixIpValue = 10; - private com.google.protobuf.ByteString deviceFixIpValue_ = - com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasDeviceFixIpValue() { - return ((this.bitField0_ & 0x00000200) == 0x00000200); - } - - @Override - public com.google.protobuf.ByteString getDeviceFixIpValue() { - return this.deviceFixIpValue_; - } - - public Builder setDeviceFixIpValue(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000200; - this.deviceFixIpValue_ = value; - this.onChanged(); - return this; - } - - public Builder clearDeviceFixIpValue() { - this.bitField0_ = (this.bitField0_ & ~0x00000200); - this.deviceFixIpValue_ = getDefaultInstance().getDeviceFixIpValue(); - this.onChanged(); - return this; - } - - // optional bytes netMask = 11; - private com.google.protobuf.ByteString netMask_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasNetMask() { - return ((this.bitField0_ & 0x00000400) == 0x00000400); - } - - @Override - public com.google.protobuf.ByteString getNetMask() { - return this.netMask_; - } - - public Builder setNetMask(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000400; - this.netMask_ = value; - this.onChanged(); - return this; - } - - public Builder clearNetMask() { - this.bitField0_ = (this.bitField0_ & ~0x00000400); - this.netMask_ = getDefaultInstance().getNetMask(); - this.onChanged(); - return this; - } - - // optional bytes gateWay = 12; - private com.google.protobuf.ByteString gateWay_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasGateWay() { - return ((this.bitField0_ & 0x00000800) == 0x00000800); - } - - @Override - public com.google.protobuf.ByteString getGateWay() { - return this.gateWay_; - } - - public Builder setGateWay(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000800; - this.gateWay_ = value; - this.onChanged(); - return this; - } - - public Builder clearGateWay() { - this.bitField0_ = (this.bitField0_ & ~0x00000800); - this.gateWay_ = getDefaultInstance().getGateWay(); - this.onChanged(); - return this; - } - - // optional bool isDhcpEnabled = 13 [default = true]; - private boolean isDhcpEnabled_ = true; - - @Override - public boolean hasIsDhcpEnabled() { - return ((this.bitField0_ & 0x00001000) == 0x00001000); - } - - @Override - public boolean getIsDhcpEnabled() { - return this.isDhcpEnabled_; - } - - public Builder setIsDhcpEnabled(final boolean value) { - this.bitField0_ |= 0x00001000; - this.isDhcpEnabled_ = value; - this.onChanged(); - return this; - } - - public Builder clearIsDhcpEnabled() { - this.bitField0_ = (this.bitField0_ & ~0x00001000); - this.isDhcpEnabled_ = true; - this.onChanged(); - return this; - } - - // optional uint32 communicationTimeout = 14 [default = 20]; - private int communicationTimeout_ = 20; - - @Override - public boolean hasCommunicationTimeout() { - return ((this.bitField0_ & 0x00002000) == 0x00002000); - } - - @Override - public int getCommunicationTimeout() { - return this.communicationTimeout_; - } - - public Builder setCommunicationTimeout(final int value) { - this.bitField0_ |= 0x00002000; - this.communicationTimeout_ = value; - this.onChanged(); - return this; - } - - public Builder clearCommunicationTimeout() { - this.bitField0_ = (this.bitField0_ & ~0x00002000); - this.communicationTimeout_ = 20; - this.onChanged(); - return this; - } - - // optional uint32 communicationNumberOfRetries = 15 [default = 3]; - private int communicationNumberOfRetries_ = 3; - - @Override - public boolean hasCommunicationNumberOfRetries() { - return ((this.bitField0_ & 0x00004000) == 0x00004000); - } - - @Override - public int getCommunicationNumberOfRetries() { - return this.communicationNumberOfRetries_; - } - - public Builder setCommunicationNumberOfRetries(final int value) { - this.bitField0_ |= 0x00004000; - this.communicationNumberOfRetries_ = value; - this.onChanged(); - return this; - } - - public Builder clearCommunicationNumberOfRetries() { - this.bitField0_ = (this.bitField0_ & ~0x00004000); - this.communicationNumberOfRetries_ = 3; - this.onChanged(); - return this; - } - - // optional uint32 communicationPauseTimeBetweenConnectionTrials = 16 [default = 60]; - private int communicationPauseTimeBetweenConnectionTrials_ = 60; - - @Override - public boolean hasCommunicationPauseTimeBetweenConnectionTrials() { - return ((this.bitField0_ & 0x00008000) == 0x00008000); - } - - @Override - public int getCommunicationPauseTimeBetweenConnectionTrials() { - return this.communicationPauseTimeBetweenConnectionTrials_; - } - - public Builder setCommunicationPauseTimeBetweenConnectionTrials(final int value) { - this.bitField0_ |= 0x00008000; - this.communicationPauseTimeBetweenConnectionTrials_ = value; - this.onChanged(); - return this; - } - - public Builder clearCommunicationPauseTimeBetweenConnectionTrials() { - this.bitField0_ = (this.bitField0_ & ~0x00008000); - this.communicationPauseTimeBetweenConnectionTrials_ = 60; - this.onChanged(); - return this; - } - - // optional bytes ospgIpAddress = 17; - private com.google.protobuf.ByteString ospgIpAddress_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasOspgIpAddress() { - return ((this.bitField0_ & 0x00010000) == 0x00010000); - } - - @Override - public com.google.protobuf.ByteString getOspgIpAddress() { - return this.ospgIpAddress_; - } - - public Builder setOspgIpAddress(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00010000; - this.ospgIpAddress_ = value; - this.onChanged(); - return this; - } - - public Builder clearOspgIpAddress() { - this.bitField0_ = (this.bitField0_ & ~0x00010000); - this.ospgIpAddress_ = getDefaultInstance().getOspgIpAddress(); - this.onChanged(); - return this; - } - - // optional uint32 osgpPortNumber = 18; - private int osgpPortNumber_; - - @Override - public boolean hasOsgpPortNumber() { - return ((this.bitField0_ & 0x00020000) == 0x00020000); - } - - @Override - public int getOsgpPortNumber() { - return this.osgpPortNumber_; - } - - public Builder setOsgpPortNumber(final int value) { - this.bitField0_ |= 0x00020000; - this.osgpPortNumber_ = value; - this.onChanged(); - return this; - } - - public Builder clearOsgpPortNumber() { - this.bitField0_ = (this.bitField0_ & ~0x00020000); - this.osgpPortNumber_ = 0; - this.onChanged(); - return this; - } - - // optional bool isTestButtonEnabled = 19 [default = true]; - private boolean isTestButtonEnabled_ = true; - - @Override - public boolean hasIsTestButtonEnabled() { - return ((this.bitField0_ & 0x00040000) == 0x00040000); - } - - @Override - public boolean getIsTestButtonEnabled() { - return this.isTestButtonEnabled_; - } - - public Builder setIsTestButtonEnabled(final boolean value) { - this.bitField0_ |= 0x00040000; - this.isTestButtonEnabled_ = value; - this.onChanged(); - return this; - } - - public Builder clearIsTestButtonEnabled() { - this.bitField0_ = (this.bitField0_ & ~0x00040000); - this.isTestButtonEnabled_ = true; - this.onChanged(); - return this; - } - - // optional bool isAutomaticSummerTimingEnabled = 20 [default = true]; - private boolean isAutomaticSummerTimingEnabled_ = true; - - @Override - public boolean hasIsAutomaticSummerTimingEnabled() { - return ((this.bitField0_ & 0x00080000) == 0x00080000); - } - - @Override - public boolean getIsAutomaticSummerTimingEnabled() { - return this.isAutomaticSummerTimingEnabled_; - } - - public Builder setIsAutomaticSummerTimingEnabled(final boolean value) { - this.bitField0_ |= 0x00080000; - this.isAutomaticSummerTimingEnabled_ = value; - this.onChanged(); - return this; - } - - public Builder clearIsAutomaticSummerTimingEnabled() { - this.bitField0_ = (this.bitField0_ & ~0x00080000); - this.isAutomaticSummerTimingEnabled_ = true; - this.onChanged(); - return this; - } - - // optional sint32 astroGateSunRiseOffset = 21 [default = 0]; - private int astroGateSunRiseOffset_; - - @Override - public boolean hasAstroGateSunRiseOffset() { - return ((this.bitField0_ & 0x00100000) == 0x00100000); - } - - @Override - public int getAstroGateSunRiseOffset() { - return this.astroGateSunRiseOffset_; - } - - public Builder setAstroGateSunRiseOffset(final int value) { - this.bitField0_ |= 0x00100000; - this.astroGateSunRiseOffset_ = value; - this.onChanged(); - return this; - } - - public Builder clearAstroGateSunRiseOffset() { - this.bitField0_ = (this.bitField0_ & ~0x00100000); - this.astroGateSunRiseOffset_ = 0; - this.onChanged(); - return this; - } - - // optional sint32 astroGateSunSetOffset = 22 [default = 0]; - private int astroGateSunSetOffset_; - - @Override - public boolean hasAstroGateSunSetOffset() { - return ((this.bitField0_ & 0x00200000) == 0x00200000); - } - - @Override - public int getAstroGateSunSetOffset() { - return this.astroGateSunSetOffset_; - } - - public Builder setAstroGateSunSetOffset(final int value) { - this.bitField0_ |= 0x00200000; - this.astroGateSunSetOffset_ = value; - this.onChanged(); - return this; - } - - public Builder clearAstroGateSunSetOffset() { - this.bitField0_ = (this.bitField0_ & ~0x00200000); - this.astroGateSunSetOffset_ = 0; - this.onChanged(); - return this; - } - - // repeated uint32 switchingDelay = 23; - private java.util.List switchingDelay_ = java.util.Collections.emptyList(); - - private void ensureSwitchingDelayIsMutable() { - if (!((this.bitField0_ & 0x00400000) == 0x00400000)) { - this.switchingDelay_ = new java.util.ArrayList(this.switchingDelay_); - this.bitField0_ |= 0x00400000; - } - } - - @Override - public java.util.List getSwitchingDelayList() { - return java.util.Collections.unmodifiableList(this.switchingDelay_); - } - - @Override - public int getSwitchingDelayCount() { - return this.switchingDelay_.size(); - } - - @Override - public int getSwitchingDelay(final int index) { - return this.switchingDelay_.get(index); - } - - public Builder setSwitchingDelay(final int index, final int value) { - this.ensureSwitchingDelayIsMutable(); - this.switchingDelay_.set(index, value); - this.onChanged(); - return this; - } - - public Builder addSwitchingDelay(final int value) { - this.ensureSwitchingDelayIsMutable(); - this.switchingDelay_.add(value); - this.onChanged(); - return this; - } - - public Builder addAllSwitchingDelay( - final java.lang.Iterable values) { - this.ensureSwitchingDelayIsMutable(); - super.addAll(values, this.switchingDelay_); - this.onChanged(); - return this; - } - - public Builder clearSwitchingDelay() { - this.switchingDelay_ = java.util.Collections.emptyList(); - - this.bitField0_ = (this.bitField0_ & ~0x00400000); - this.onChanged(); - return this; - } - - // repeated .oslp.RelayMatrix relayLinking = 24; - private java.util.List relayLinking_ = - java.util.Collections.emptyList(); - - private void ensureRelayLinkingIsMutable() { - if (!((this.bitField0_ & 0x00800000) == 0x00800000)) { - this.relayLinking_ = - new java.util.ArrayList( - this.relayLinking_); - this.bitField0_ |= 0x00800000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RelayMatrix, - org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder, - org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder> - relayLinkingBuilder_; - - @Override - public java.util.List getRelayLinkingList() { - if (this.relayLinkingBuilder_ == null) { - return java.util.Collections.unmodifiableList(this.relayLinking_); - } else { - return this.relayLinkingBuilder_.getMessageList(); - } - } - - @Override - public int getRelayLinkingCount() { - if (this.relayLinkingBuilder_ == null) { - return this.relayLinking_.size(); - } else { - return this.relayLinkingBuilder_.getCount(); - } - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayMatrix getRelayLinking(final int index) { - if (this.relayLinkingBuilder_ == null) { - return this.relayLinking_.get(index); - } else { - return this.relayLinkingBuilder_.getMessage(index); - } - } - - public Builder setRelayLinking( - final int index, final org.opensmartgridplatform.oslp.Oslp.RelayMatrix value) { - if (this.relayLinkingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.set(index, value); - this.onChanged(); - } else { - this.relayLinkingBuilder_.setMessage(index, value); - } - return this; - } - - public Builder setRelayLinking( - final int index, - final org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder builderForValue) { - if (this.relayLinkingBuilder_ == null) { - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.set(index, builderForValue.build()); - this.onChanged(); - } else { - this.relayLinkingBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addRelayLinking(final org.opensmartgridplatform.oslp.Oslp.RelayMatrix value) { - if (this.relayLinkingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.add(value); - this.onChanged(); - } else { - this.relayLinkingBuilder_.addMessage(value); - } - return this; - } - - public Builder addRelayLinking( - final int index, final org.opensmartgridplatform.oslp.Oslp.RelayMatrix value) { - if (this.relayLinkingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.add(index, value); - this.onChanged(); - } else { - this.relayLinkingBuilder_.addMessage(index, value); - } - return this; - } - - public Builder addRelayLinking( - final org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder builderForValue) { - if (this.relayLinkingBuilder_ == null) { - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.add(builderForValue.build()); - this.onChanged(); - } else { - this.relayLinkingBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - public Builder addRelayLinking( - final int index, - final org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder builderForValue) { - if (this.relayLinkingBuilder_ == null) { - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.add(index, builderForValue.build()); - this.onChanged(); - } else { - this.relayLinkingBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addAllRelayLinking( - final java.lang.Iterable - values) { - if (this.relayLinkingBuilder_ == null) { - this.ensureRelayLinkingIsMutable(); - super.addAll(values, this.relayLinking_); - this.onChanged(); - } else { - this.relayLinkingBuilder_.addAllMessages(values); - } - return this; - } - - public Builder clearRelayLinking() { - if (this.relayLinkingBuilder_ == null) { - this.relayLinking_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00800000); - this.onChanged(); - } else { - this.relayLinkingBuilder_.clear(); - } - return this; - } - - public Builder removeRelayLinking(final int index) { - if (this.relayLinkingBuilder_ == null) { - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.remove(index); - this.onChanged(); - } else { - this.relayLinkingBuilder_.remove(index); - } - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder getRelayLinkingBuilder( - final int index) { - return this.getRelayLinkingFieldBuilder().getBuilder(index); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder getRelayLinkingOrBuilder( - final int index) { - if (this.relayLinkingBuilder_ == null) { - return this.relayLinking_.get(index); - } else { - return this.relayLinkingBuilder_.getMessageOrBuilder(index); - } - } - - @Override - public java.util.List - getRelayLinkingOrBuilderList() { - if (this.relayLinkingBuilder_ != null) { - return this.relayLinkingBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(this.relayLinking_); - } - } - - public org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder addRelayLinkingBuilder() { - return this.getRelayLinkingFieldBuilder() - .addBuilder(org.opensmartgridplatform.oslp.Oslp.RelayMatrix.getDefaultInstance()); - } - - public org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder addRelayLinkingBuilder( - final int index) { - return this.getRelayLinkingFieldBuilder() - .addBuilder( - index, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.getDefaultInstance()); - } - - public java.util.List - getRelayLinkingBuilderList() { - return this.getRelayLinkingFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RelayMatrix, - org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder, - org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder> - getRelayLinkingFieldBuilder() { - if (this.relayLinkingBuilder_ == null) { - this.relayLinkingBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RelayMatrix, - org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder, - org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder>( - this.relayLinking_, - ((this.bitField0_ & 0x00800000) == 0x00800000), - this.getParentForChildren(), - this.isClean()); - this.relayLinking_ = null; - } - return this.relayLinkingBuilder_; - } - - // optional bool relayRefreshing = 25 [default = true]; - private boolean relayRefreshing_ = true; - - @Override - public boolean hasRelayRefreshing() { - return ((this.bitField0_ & 0x01000000) == 0x01000000); - } - - @Override - public boolean getRelayRefreshing() { - return this.relayRefreshing_; - } - - public Builder setRelayRefreshing(final boolean value) { - this.bitField0_ |= 0x01000000; - this.relayRefreshing_ = value; - this.onChanged(); - return this; - } - - public Builder clearRelayRefreshing() { - this.bitField0_ = (this.bitField0_ & ~0x01000000); - this.relayRefreshing_ = true; - this.onChanged(); - return this; - } - - // optional string summerTimeDetails = 26 [default = "0360100"]; - private java.lang.Object summerTimeDetails_ = "0360100"; - - @Override - public boolean hasSummerTimeDetails() { - return ((this.bitField0_ & 0x02000000) == 0x02000000); - } - - @Override - public String getSummerTimeDetails() { - final java.lang.Object ref = this.summerTimeDetails_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.summerTimeDetails_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setSummerTimeDetails(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x02000000; - this.summerTimeDetails_ = value; - this.onChanged(); - return this; - } - - public Builder clearSummerTimeDetails() { - this.bitField0_ = (this.bitField0_ & ~0x02000000); - this.summerTimeDetails_ = getDefaultInstance().getSummerTimeDetails(); - this.onChanged(); - return this; - } - - void setSummerTimeDetails(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x02000000; - this.summerTimeDetails_ = value; - this.onChanged(); - } - - // optional string winterTimeDetails = 27 [default = "1060200"]; - private java.lang.Object winterTimeDetails_ = "1060200"; - - @Override - public boolean hasWinterTimeDetails() { - return ((this.bitField0_ & 0x04000000) == 0x04000000); - } - - @Override - public String getWinterTimeDetails() { - final java.lang.Object ref = this.winterTimeDetails_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.winterTimeDetails_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setWinterTimeDetails(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x04000000; - this.winterTimeDetails_ = value; - this.onChanged(); - return this; - } - - public Builder clearWinterTimeDetails() { - this.bitField0_ = (this.bitField0_ & ~0x04000000); - this.winterTimeDetails_ = getDefaultInstance().getWinterTimeDetails(); - this.onChanged(); - return this; - } - - void setWinterTimeDetails(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x04000000; - this.winterTimeDetails_ = value; - this.onChanged(); - } - - // @@protoc_insertion_point(builder_scope:oslp.SetConfigurationRequest) - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetFirmwareVersionResponse_descriptor; + } - static { - defaultInstance = new SetConfigurationRequest(true); - defaultInstance.initFields(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse build() { + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - // @@protoc_insertion_point(class_scope:oslp.SetConfigurationRequest) - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse result = new org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public interface SetConfigurationResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.firmwareVersion_ = firmwareVersion_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - // required .oslp.Status status = 1; - boolean hasStatus(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.getDefaultInstance()) return this; + if (other.hasFirmwareVersion()) { + firmwareVersion_ = other.firmwareVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static final class SetConfigurationResponse extends com.google.protobuf.GeneratedMessage - implements SetConfigurationResponseOrBuilder { - // Use SetConfigurationResponse.newBuilder() to construct. - private SetConfigurationResponse(final Builder builder) { - super(builder); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasFirmwareVersion()) { + return false; + } + return true; + } - private SetConfigurationResponse(final boolean noInit) {} + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + firmwareVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object firmwareVersion_ = ""; + /** + *
+             * [(nanopb).max_size = 7]; // RXX
+             * 
+ * + * string firmwareVersion = 1 [features = { ... } + * @return Whether the firmwareVersion field is set. + */ + public boolean hasFirmwareVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * [(nanopb).max_size = 7]; // RXX
+             * 
+ * + * string firmwareVersion = 1 [features = { ... } + * @return The firmwareVersion. + */ + public java.lang.String getFirmwareVersion() { + java.lang.Object ref = firmwareVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firmwareVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 7]; // RXX
+             * 
+ * + * string firmwareVersion = 1 [features = { ... } + * @return The bytes for firmwareVersion. + */ + public com.google.protobuf.ByteString + getFirmwareVersionBytes() { + java.lang.Object ref = firmwareVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firmwareVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 7]; // RXX
+             * 
+ * + * string firmwareVersion = 1 [features = { ... } + * @param value The firmwareVersion to set. + * @return This builder for chaining. + */ + public Builder setFirmwareVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + firmwareVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 7]; // RXX
+             * 
+ * + * string firmwareVersion = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearFirmwareVersion() { + firmwareVersion_ = getDefaultInstance().getFirmwareVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 7]; // RXX
+             * 
+ * + * string firmwareVersion = 1 [features = { ... } + * @param value The bytes for firmwareVersion to set. + * @return This builder for chaining. + */ + public Builder setFirmwareVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + firmwareVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - private static final SetConfigurationResponse defaultInstance; + // @@protoc_insertion_point(builder_scope:oslp.GetFirmwareVersionResponse) + } - public static SetConfigurationResponse getDefaultInstance() { - return defaultInstance; - } + // @@protoc_insertion_point(class_scope:oslp.GetFirmwareVersionResponse) + private static final org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse(); + } - @Override - public SetConfigurationResponse getDefaultInstanceForType() { - return defaultInstance; - } + public static org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetConfigurationResponse_descriptor; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFirmwareVersionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateFirmwareRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.UpdateFirmwareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_size = 100]; // Server-name without protocol like this example: localhost.
+         * 
+ * + * string firmwareDomain = 1 [features = { ... } + * @return Whether the firmwareDomain field is set. + */ + boolean hasFirmwareDomain(); + /** + *
+         * [(nanopb).max_size = 100]; // Server-name without protocol like this example: localhost.
+         * 
+ * + * string firmwareDomain = 1 [features = { ... } + * @return The firmwareDomain. + */ + java.lang.String getFirmwareDomain(); + /** + *
+         * [(nanopb).max_size = 100]; // Server-name without protocol like this example: localhost.
+         * 
+ * + * string firmwareDomain = 1 [features = { ... } + * @return The bytes for firmwareDomain. + */ + com.google.protobuf.ByteString + getFirmwareDomainBytes(); + + /** + *
+         * [(nanopb).max_size = 255]; // Relative URL like this example: /firmware/PSLD/RXX.
+         * 
+ * + * string firmwareUrl = 2 [features = { ... } + * @return Whether the firmwareUrl field is set. + */ + boolean hasFirmwareUrl(); + /** + *
+         * [(nanopb).max_size = 255]; // Relative URL like this example: /firmware/PSLD/RXX.
+         * 
+ * + * string firmwareUrl = 2 [features = { ... } + * @return The firmwareUrl. + */ + java.lang.String getFirmwareUrl(); + /** + *
+         * [(nanopb).max_size = 255]; // Relative URL like this example: /firmware/PSLD/RXX.
+         * 
+ * + * string firmwareUrl = 2 [features = { ... } + * @return The bytes for firmwareUrl. + */ + com.google.protobuf.ByteString + getFirmwareUrlBytes(); + } + /** + * Protobuf type {@code oslp.UpdateFirmwareRequest} + */ + public static final class UpdateFirmwareRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.UpdateFirmwareRequest) + UpdateFirmwareRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + UpdateFirmwareRequest.class.getName()); + } + // Use UpdateFirmwareRequest.newBuilder() to construct. + private UpdateFirmwareRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateFirmwareRequest() { + firmwareDomain_ = ""; + firmwareUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateFirmwareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetConfigurationResponse_fieldAccessorTable; - } - - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateFirmwareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.class, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.Builder.class); + } + + private int bitField0_; + public static final int FIRMWAREDOMAIN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object firmwareDomain_ = ""; + /** + *
+         * [(nanopb).max_size = 100]; // Server-name without protocol like this example: localhost.
+         * 
+ * + * string firmwareDomain = 1 [features = { ... } + * @return Whether the firmwareDomain field is set. + */ + @java.lang.Override + public boolean hasFirmwareDomain() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * [(nanopb).max_size = 100]; // Server-name without protocol like this example: localhost.
+         * 
+ * + * string firmwareDomain = 1 [features = { ... } + * @return The firmwareDomain. + */ + @java.lang.Override + public java.lang.String getFirmwareDomain() { + java.lang.Object ref = firmwareDomain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firmwareDomain_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 100]; // Server-name without protocol like this example: localhost.
+         * 
+ * + * string firmwareDomain = 1 [features = { ... } + * @return The bytes for firmwareDomain. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFirmwareDomainBytes() { + java.lang.Object ref = firmwareDomain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firmwareDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } + public static final int FIRMWAREURL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object firmwareUrl_ = ""; + /** + *
+         * [(nanopb).max_size = 255]; // Relative URL like this example: /firmware/PSLD/RXX.
+         * 
+ * + * string firmwareUrl = 2 [features = { ... } + * @return Whether the firmwareUrl field is set. + */ + @java.lang.Override + public boolean hasFirmwareUrl() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * [(nanopb).max_size = 255]; // Relative URL like this example: /firmware/PSLD/RXX.
+         * 
+ * + * string firmwareUrl = 2 [features = { ... } + * @return The firmwareUrl. + */ + @java.lang.Override + public java.lang.String getFirmwareUrl() { + java.lang.Object ref = firmwareUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firmwareUrl_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 255]; // Relative URL like this example: /firmware/PSLD/RXX.
+         * 
+ * + * string firmwareUrl = 2 [features = { ... } + * @return The bytes for firmwareUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFirmwareUrlBytes() { + java.lang.Object ref = firmwareUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firmwareUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + if (!hasFirmwareDomain()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasFirmwareUrl()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, firmwareDomain_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, firmwareUrl_); + } + getUnknownFields().writeTo(output); + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private static final long serialVersionUID = 0L; + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, firmwareDomain_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, firmwareUrl_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest other = (org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest) obj; - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + if (hasFirmwareDomain() != other.hasFirmwareDomain()) return false; + if (hasFirmwareDomain()) { + if (!getFirmwareDomain() + .equals(other.getFirmwareDomain())) return false; + } + if (hasFirmwareUrl() != other.hasFirmwareUrl()) return false; + if (hasFirmwareUrl()) { + if (!getFirmwareUrl() + .equals(other.getFirmwareUrl())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFirmwareDomain()) { + hash = (37 * hash) + FIRMWAREDOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getFirmwareDomain().hashCode(); + } + if (hasFirmwareUrl()) { + hash = (37 * hash) + FIRMWAREURL_FIELD_NUMBER; + hash = (53 * hash) + getFirmwareUrl().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.UpdateFirmwareRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.UpdateFirmwareRequest) + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateFirmwareRequest_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateFirmwareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.class, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.Builder.class); + } - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.newBuilder() + private Builder() { - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + } - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + firmwareDomain_ = ""; + firmwareUrl_ = ""; + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateFirmwareRequest_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.getDefaultInstance(); + } - public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest build() { + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static Builder newBuilder() { - return Builder.create(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest result = new org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.firmwareDomain_ = firmwareDomain_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.firmwareUrl_ = firmwareUrl_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse prototype) { - return newBuilder().mergeFrom(prototype); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.getDefaultInstance()) return this; + if (other.hasFirmwareDomain()) { + firmwareDomain_ = other.firmwareDomain_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasFirmwareUrl()) { + firmwareUrl_ = other.firmwareUrl_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasFirmwareDomain()) { + return false; + } + if (!hasFirmwareUrl()) { + return false; + } + return true; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetConfigurationResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetConfigurationResponse_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse build() { - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse result = - new org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.SetConfigurationResponse) - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + firmwareDomain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + firmwareUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object firmwareDomain_ = ""; + /** + *
+             * [(nanopb).max_size = 100]; // Server-name without protocol like this example: localhost.
+             * 
+ * + * string firmwareDomain = 1 [features = { ... } + * @return Whether the firmwareDomain field is set. + */ + public boolean hasFirmwareDomain() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * [(nanopb).max_size = 100]; // Server-name without protocol like this example: localhost.
+             * 
+ * + * string firmwareDomain = 1 [features = { ... } + * @return The firmwareDomain. + */ + public java.lang.String getFirmwareDomain() { + java.lang.Object ref = firmwareDomain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firmwareDomain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 100]; // Server-name without protocol like this example: localhost.
+             * 
+ * + * string firmwareDomain = 1 [features = { ... } + * @return The bytes for firmwareDomain. + */ + public com.google.protobuf.ByteString + getFirmwareDomainBytes() { + java.lang.Object ref = firmwareDomain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firmwareDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 100]; // Server-name without protocol like this example: localhost.
+             * 
+ * + * string firmwareDomain = 1 [features = { ... } + * @param value The firmwareDomain to set. + * @return This builder for chaining. + */ + public Builder setFirmwareDomain( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + firmwareDomain_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 100]; // Server-name without protocol like this example: localhost.
+             * 
+ * + * string firmwareDomain = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearFirmwareDomain() { + firmwareDomain_ = getDefaultInstance().getFirmwareDomain(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 100]; // Server-name without protocol like this example: localhost.
+             * 
+ * + * string firmwareDomain = 1 [features = { ... } + * @param value The bytes for firmwareDomain to set. + * @return This builder for chaining. + */ + public Builder setFirmwareDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + firmwareDomain_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - static { - defaultInstance = new SetConfigurationResponse(true); - defaultInstance.initFields(); - } + private java.lang.Object firmwareUrl_ = ""; + /** + *
+             * [(nanopb).max_size = 255]; // Relative URL like this example: /firmware/PSLD/RXX.
+             * 
+ * + * string firmwareUrl = 2 [features = { ... } + * @return Whether the firmwareUrl field is set. + */ + public boolean hasFirmwareUrl() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * [(nanopb).max_size = 255]; // Relative URL like this example: /firmware/PSLD/RXX.
+             * 
+ * + * string firmwareUrl = 2 [features = { ... } + * @return The firmwareUrl. + */ + public java.lang.String getFirmwareUrl() { + java.lang.Object ref = firmwareUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firmwareUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 255]; // Relative URL like this example: /firmware/PSLD/RXX.
+             * 
+ * + * string firmwareUrl = 2 [features = { ... } + * @return The bytes for firmwareUrl. + */ + public com.google.protobuf.ByteString + getFirmwareUrlBytes() { + java.lang.Object ref = firmwareUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firmwareUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 255]; // Relative URL like this example: /firmware/PSLD/RXX.
+             * 
+ * + * string firmwareUrl = 2 [features = { ... } + * @param value The firmwareUrl to set. + * @return This builder for chaining. + */ + public Builder setFirmwareUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + firmwareUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 255]; // Relative URL like this example: /firmware/PSLD/RXX.
+             * 
+ * + * string firmwareUrl = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearFirmwareUrl() { + firmwareUrl_ = getDefaultInstance().getFirmwareUrl(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 255]; // Relative URL like this example: /firmware/PSLD/RXX.
+             * 
+ * + * string firmwareUrl = 2 [features = { ... } + * @param value The bytes for firmwareUrl to set. + * @return This builder for chaining. + */ + public Builder setFirmwareUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + firmwareUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:oslp.SetConfigurationResponse) - } + // @@protoc_insertion_point(builder_scope:oslp.UpdateFirmwareRequest) + } - public interface GetConfigurationRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(class_scope:oslp.UpdateFirmwareRequest) + private static final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest(); + } - // optional bool present = 1 [default = true]; - boolean hasPresent(); + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - boolean getPresent(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFirmwareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static final class GetConfigurationRequest extends com.google.protobuf.GeneratedMessage - implements GetConfigurationRequestOrBuilder { - // Use GetConfigurationRequest.newBuilder() to construct. - private GetConfigurationRequest(final Builder builder) { - super(builder); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private GetConfigurationRequest(final boolean noInit) {} + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private static final GetConfigurationRequest defaultInstance; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static GetConfigurationRequest getDefaultInstance() { - return defaultInstance; } - @Override - public GetConfigurationRequest getDefaultInstanceForType() { - return defaultInstance; - } + public interface UpdateFirmwareResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.UpdateFirmwareResponse) + com.google.protobuf.MessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetConfigurationRequest_descriptor; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); } + /** + * Protobuf type {@code oslp.UpdateFirmwareResponse} + */ + public static final class UpdateFirmwareResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.UpdateFirmwareResponse) + UpdateFirmwareResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + UpdateFirmwareResponse.class.getName()); + } + // Use UpdateFirmwareResponse.newBuilder() to construct. + private UpdateFirmwareResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateFirmwareResponse() { + status_ = 0; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateFirmwareResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetConfigurationRequest_fieldAccessorTable; - } + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateFirmwareResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.class, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - private int bitField0_; - // optional bool present = 1 [default = true]; - public static final int PRESENT_FIELD_NUMBER = 1; - private boolean present_; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + getUnknownFields().writeTo(output); + } - @Override - public boolean hasPresent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public boolean getPresent() { - return this.present_; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private void initFields() { - this.present_ = true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse other = (org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse) obj; - private byte memoizedIsInitialized = -1; + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.UpdateFirmwareResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.UpdateFirmwareResponse) + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateFirmwareResponse_descriptor; + } - this.memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateFirmwareResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.class, org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.Builder.class); + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(1, this.present_); - } - this.getUnknownFields().writeTo(output); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.newBuilder() + private Builder() { - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, this.present_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + } - private static final long serialVersionUID = 0L; + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateFirmwareResponse_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.getDefaultInstance(); + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse build() { + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse result = new org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + // @@protoc_insertion_point(builder_scope:oslp.UpdateFirmwareResponse) + } - public static Builder newBuilder() { - return Builder.create(); - } + // @@protoc_insertion_point(class_scope:oslp.UpdateFirmwareResponse) + private static final org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse(); + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest prototype) { - return newBuilder().mergeFrom(prototype); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFirmwareResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public Builder toBuilder() { - return newBuilder(this); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SwitchFirmwareRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SwitchFirmwareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_size = 6]; // The version of the firmware which should be installed.
+         * 
+ * + * string newFirmwareVersion = 1 [features = { ... } + * @return Whether the newFirmwareVersion field is set. + */ + boolean hasNewFirmwareVersion(); + /** + *
+         * [(nanopb).max_size = 6]; // The version of the firmware which should be installed.
+         * 
+ * + * string newFirmwareVersion = 1 [features = { ... } + * @return The newFirmwareVersion. + */ + java.lang.String getNewFirmwareVersion(); + /** + *
+         * [(nanopb).max_size = 6]; // The version of the firmware which should be installed.
+         * 
+ * + * string newFirmwareVersion = 1 [features = { ... } + * @return The bytes for newFirmwareVersion. + */ + com.google.protobuf.ByteString + getNewFirmwareVersionBytes(); + } + /** + * Protobuf type {@code oslp.SwitchFirmwareRequest} + */ + public static final class SwitchFirmwareRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SwitchFirmwareRequest) + SwitchFirmwareRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SwitchFirmwareRequest.class.getName()); + } + // Use SwitchFirmwareRequest.newBuilder() to construct. + private SwitchFirmwareRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SwitchFirmwareRequest() { + newFirmwareVersion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchFirmwareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchFirmwareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.class, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.Builder.class); + } + + private int bitField0_; + public static final int NEWFIRMWAREVERSION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object newFirmwareVersion_ = ""; + /** + *
+         * [(nanopb).max_size = 6]; // The version of the firmware which should be installed.
+         * 
+ * + * string newFirmwareVersion = 1 [features = { ... } + * @return Whether the newFirmwareVersion field is set. + */ + @java.lang.Override + public boolean hasNewFirmwareVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * [(nanopb).max_size = 6]; // The version of the firmware which should be installed.
+         * 
+ * + * string newFirmwareVersion = 1 [features = { ... } + * @return The newFirmwareVersion. + */ + @java.lang.Override + public java.lang.String getNewFirmwareVersion() { + java.lang.Object ref = newFirmwareVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newFirmwareVersion_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 6]; // The version of the firmware which should be installed.
+         * 
+ * + * string newFirmwareVersion = 1 [features = { ... } + * @return The bytes for newFirmwareVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNewFirmwareVersionBytes() { + java.lang.Object ref = newFirmwareVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + newFirmwareVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetConfigurationRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetConfigurationRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.present_ = true; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest build() { - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest result = - new org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.present_ = this.present_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.getDefaultInstance()) { - return this; - } - if (other.hasPresent()) { - this.setPresent(other.getPresent()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - this.bitField0_ |= 0x00000001; - this.present_ = input.readBool(); - break; - } - } - } - } - - private int bitField0_; - - // optional bool present = 1 [default = true]; - private boolean present_ = true; - - @Override - public boolean hasPresent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public boolean getPresent() { - return this.present_; - } - - public Builder setPresent(final boolean value) { - this.bitField0_ |= 0x00000001; - this.present_ = value; - this.onChanged(); - return this; - } - - public Builder clearPresent() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.present_ = true; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.GetConfigurationRequest) - } + if (!hasNewFirmwareVersion()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - static { - defaultInstance = new GetConfigurationRequest(true); - defaultInstance.initFields(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, newFirmwareVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, newFirmwareVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - // @@protoc_insertion_point(class_scope:oslp.GetConfigurationRequest) - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest other = (org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest) obj; - public interface GetConfigurationResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { + if (hasNewFirmwareVersion() != other.hasNewFirmwareVersion()) return false; + if (hasNewFirmwareVersion()) { + if (!getNewFirmwareVersion() + .equals(other.getNewFirmwareVersion())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - // required .oslp.Status status = 1; - boolean hasStatus(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNewFirmwareVersion()) { + hash = (37 * hash) + NEWFIRMWAREVERSION_FIELD_NUMBER; + hash = (53 * hash) + getNewFirmwareVersion().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.SwitchFirmwareRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SwitchFirmwareRequest) + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchFirmwareRequest_descriptor; + } - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchFirmwareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.class, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.Builder.class); + } - // optional .oslp.LightType lightType = 2; - boolean hasLightType(); + // Construct using org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.newBuilder() + private Builder() { - org.opensmartgridplatform.oslp.Oslp.LightType getLightType(); + } - // optional .oslp.DaliConfiguration daliConfiguration = 3; - boolean hasDaliConfiguration(); + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDaliConfiguration(); + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + newFirmwareVersion_ = ""; + return this; + } - org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder getDaliConfigurationOrBuilder(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchFirmwareRequest_descriptor; + } - // optional .oslp.RelayConfiguration relayConfiguration = 4; - boolean hasRelayConfiguration(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.getDefaultInstance(); + } - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getRelayConfiguration(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest build() { + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder - getRelayConfigurationOrBuilder(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest result = new org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - // optional uint32 shortTermHistoryIntervalMinutes = 5; - boolean hasShortTermHistoryIntervalMinutes(); + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.newFirmwareVersion_ = newFirmwareVersion_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - int getShortTermHistoryIntervalMinutes(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - // optional .oslp.LinkType preferredLinkType = 6; - boolean hasPreferredLinkType(); + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.getDefaultInstance()) return this; + if (other.hasNewFirmwareVersion()) { + newFirmwareVersion_ = other.newFirmwareVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinkType(); + @java.lang.Override + public final boolean isInitialized() { + if (!hasNewFirmwareVersion()) { + return false; + } + return true; + } - // optional .oslp.MeterType meterType = 7; - boolean hasMeterType(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + newFirmwareVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object newFirmwareVersion_ = ""; + /** + *
+             * [(nanopb).max_size = 6]; // The version of the firmware which should be installed.
+             * 
+ * + * string newFirmwareVersion = 1 [features = { ... } + * @return Whether the newFirmwareVersion field is set. + */ + public boolean hasNewFirmwareVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * [(nanopb).max_size = 6]; // The version of the firmware which should be installed.
+             * 
+ * + * string newFirmwareVersion = 1 [features = { ... } + * @return The newFirmwareVersion. + */ + public java.lang.String getNewFirmwareVersion() { + java.lang.Object ref = newFirmwareVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newFirmwareVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 6]; // The version of the firmware which should be installed.
+             * 
+ * + * string newFirmwareVersion = 1 [features = { ... } + * @return The bytes for newFirmwareVersion. + */ + public com.google.protobuf.ByteString + getNewFirmwareVersionBytes() { + java.lang.Object ref = newFirmwareVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + newFirmwareVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 6]; // The version of the firmware which should be installed.
+             * 
+ * + * string newFirmwareVersion = 1 [features = { ... } + * @param value The newFirmwareVersion to set. + * @return This builder for chaining. + */ + public Builder setNewFirmwareVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + newFirmwareVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 6]; // The version of the firmware which should be installed.
+             * 
+ * + * string newFirmwareVersion = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearNewFirmwareVersion() { + newFirmwareVersion_ = getDefaultInstance().getNewFirmwareVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 6]; // The version of the firmware which should be installed.
+             * 
+ * + * string newFirmwareVersion = 1 [features = { ... } + * @param value The bytes for newFirmwareVersion to set. + * @return This builder for chaining. + */ + public Builder setNewFirmwareVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + newFirmwareVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType(); + // @@protoc_insertion_point(builder_scope:oslp.SwitchFirmwareRequest) + } - // optional uint32 longTermHistoryInterval = 8; - boolean hasLongTermHistoryInterval(); + // @@protoc_insertion_point(class_scope:oslp.SwitchFirmwareRequest) + private static final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest(); + } - int getLongTermHistoryInterval(); + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // optional .oslp.LongTermIntervalType longTermHistoryIntervalType = 9; - boolean hasLongTermHistoryIntervalType(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SwitchFirmwareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType getLongTermHistoryIntervalType(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SwitchFirmwareResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SwitchFirmwareResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * FIRMWARE_EVENTS_ACTIVATING Event will be sent, after the firmware change has completed.
+         * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+         * FIRMWARE_EVENTS_ACTIVATING Event will be sent, after the firmware change has completed.
+         * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + *
+         * FIRMWARE_EVENTS_ACTIVATING Event will be sent, after the firmware change has completed.
+         * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); + } + /** + * Protobuf type {@code oslp.SwitchFirmwareResponse} + */ + public static final class SwitchFirmwareResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SwitchFirmwareResponse) + SwitchFirmwareResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SwitchFirmwareResponse.class.getName()); + } + // Use SwitchFirmwareResponse.newBuilder() to construct. + private SwitchFirmwareResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SwitchFirmwareResponse() { + status_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchFirmwareResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchFirmwareResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.class, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + *
+         * FIRMWARE_EVENTS_ACTIVATING Event will be sent, after the firmware change has completed.
+         * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * FIRMWARE_EVENTS_ACTIVATING Event will be sent, after the firmware change has completed.
+         * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+         * FIRMWARE_EVENTS_ACTIVATING Event will be sent, after the firmware change has completed.
+         * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - // optional uint32 timeSyncFrequency = 10 [default = 86400]; - boolean hasTimeSyncFrequency(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + getUnknownFields().writeTo(output); + } - int getTimeSyncFrequency(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - // optional bytes deviceFixIpValue = 11; - boolean hasDeviceFixIpValue(); + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - com.google.protobuf.ByteString getDeviceFixIpValue(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse other = (org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse) obj; - // optional bytes netMask = 12; - boolean hasNetMask(); + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - com.google.protobuf.ByteString getNetMask(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.SwitchFirmwareResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SwitchFirmwareResponse) + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchFirmwareResponse_descriptor; + } - // optional bytes gateWay = 13; - boolean hasGateWay(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchFirmwareResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.class, org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.Builder.class); + } - com.google.protobuf.ByteString getGateWay(); + // Construct using org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.newBuilder() + private Builder() { - // optional bool isDhcpEnabled = 14 [default = true]; - boolean hasIsDhcpEnabled(); + } - boolean getIsDhcpEnabled(); + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - // optional uint32 communicationTimeout = 15 [default = 20]; - boolean hasCommunicationTimeout(); + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + return this; + } - int getCommunicationTimeout(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchFirmwareResponse_descriptor; + } - // optional uint32 communicationNumberOfRetries = 16 [default = 3]; - boolean hasCommunicationNumberOfRetries(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.getDefaultInstance(); + } - int getCommunicationNumberOfRetries(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse build() { + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - // optional uint32 communicationPauseTimeBetweenConnectionTrials = 17 [default = 60]; - boolean hasCommunicationPauseTimeBetweenConnectionTrials(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse result = new org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - int getCommunicationPauseTimeBetweenConnectionTrials(); + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - // optional bytes ospgIpAddress = 18; - boolean hasOspgIpAddress(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - com.google.protobuf.ByteString getOspgIpAddress(); + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - // optional uint32 osgpPortNumber = 19; - boolean hasOsgpPortNumber(); + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + return true; + } - int getOsgpPortNumber(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + *
+             * FIRMWARE_EVENTS_ACTIVATING Event will be sent, after the firmware change has completed.
+             * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * FIRMWARE_EVENTS_ACTIVATING Event will be sent, after the firmware change has completed.
+             * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+             * FIRMWARE_EVENTS_ACTIVATING Event will be sent, after the firmware change has completed.
+             * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * FIRMWARE_EVENTS_ACTIVATING Event will be sent, after the firmware change has completed.
+             * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + *
+             * FIRMWARE_EVENTS_ACTIVATING Event will be sent, after the firmware change has completed.
+             * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * FIRMWARE_EVENTS_ACTIVATING Event will be sent, after the firmware change has completed.
+             * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - // optional bool isTestButtonEnabled = 20 [default = true]; - boolean hasIsTestButtonEnabled(); + // @@protoc_insertion_point(builder_scope:oslp.SwitchFirmwareResponse) + } - boolean getIsTestButtonEnabled(); + // @@protoc_insertion_point(class_scope:oslp.SwitchFirmwareResponse) + private static final org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse(); + } - // optional bool isAutomaticSummerTimingEnabled = 21 [default = true]; - boolean hasIsAutomaticSummerTimingEnabled(); + public static org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - boolean getIsAutomaticSummerTimingEnabled(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SwitchFirmwareResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - // optional sint32 astroGateSunRiseOffset = 22 [default = 0]; - boolean hasAstroGateSunRiseOffset(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SetLightRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SetLightRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue values = 1; + */ + java.util.List + getValuesList(); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue values = 1; + */ + org.opensmartgridplatform.oslp.Oslp.LightValue getValues(int index); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue values = 1; + */ + int getValuesCount(); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue values = 1; + */ + java.util.List + getValuesOrBuilderList(); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue values = 1; + */ + org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValuesOrBuilder( + int index); + } + /** + *
+     * ========= Ad-Hoc & Status
+     * 
+ * + * Protobuf type {@code oslp.SetLightRequest} + */ + public static final class SetLightRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SetLightRequest) + SetLightRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SetLightRequest.class.getName()); + } + // Use SetLightRequest.newBuilder() to construct. + private SetLightRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetLightRequest() { + values_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetLightRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetLightRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetLightRequest.class, org.opensmartgridplatform.oslp.Oslp.SetLightRequest.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List values_; + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue values = 1; + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue values = 1; + */ + @java.lang.Override + public java.util.List + getValuesOrBuilderList() { + return values_; + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue values = 1; + */ + @java.lang.Override + public int getValuesCount() { + return values_.size(); + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue values = 1; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LightValue getValues(int index) { + return values_.get(index); + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue values = 1; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValuesOrBuilder( + int index) { + return values_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + for (int i = 0; i < getValuesCount(); i++) { + if (!getValues(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - int getAstroGateSunRiseOffset(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + output.writeMessage(1, values_.get(i)); + } + getUnknownFields().writeTo(output); + } - // optional sint32 astroGateSunSetOffset = 23 [default = 0]; - boolean hasAstroGateSunSetOffset(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - int getAstroGateSunSetOffset(); + size = 0; + for (int i = 0; i < values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - // repeated uint32 switchingDelay = 24; - java.util.List getSwitchingDelayList(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SetLightRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SetLightRequest other = (org.opensmartgridplatform.oslp.Oslp.SetLightRequest) obj; - int getSwitchingDelayCount(); + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - int getSwitchingDelay(int index); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SetLightRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * ========= Ad-Hoc & Status
+         * 
+ * + * Protobuf type {@code oslp.SetLightRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SetLightRequest) + org.opensmartgridplatform.oslp.Oslp.SetLightRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetLightRequest_descriptor; + } - // repeated .oslp.RelayMatrix relayLinking = 25; - java.util.List getRelayLinkingList(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetLightRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetLightRequest.class, org.opensmartgridplatform.oslp.Oslp.SetLightRequest.Builder.class); + } - org.opensmartgridplatform.oslp.Oslp.RelayMatrix getRelayLinking(int index); + // Construct using org.opensmartgridplatform.oslp.Oslp.SetLightRequest.newBuilder() + private Builder() { - int getRelayLinkingCount(); + } - java.util.List - getRelayLinkingOrBuilderList(); + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder getRelayLinkingOrBuilder(int index); + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + } else { + values_ = null; + valuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - // optional bool relayRefreshing = 26 [default = true]; - boolean hasRelayRefreshing(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetLightRequest_descriptor; + } - boolean getRelayRefreshing(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetLightRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SetLightRequest.getDefaultInstance(); + } - // optional string summerTimeDetails = 27 [default = "0360100"]; - boolean hasSummerTimeDetails(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetLightRequest build() { + org.opensmartgridplatform.oslp.Oslp.SetLightRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - String getSummerTimeDetails(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetLightRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SetLightRequest result = new org.opensmartgridplatform.oslp.Oslp.SetLightRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - // optional string winterTimeDetails = 28 [default = "1060200"]; - boolean hasWinterTimeDetails(); + private void buildPartialRepeatedFields(org.opensmartgridplatform.oslp.Oslp.SetLightRequest result) { + if (valuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + } else { + result.values_ = valuesBuilder_.build(); + } + } - String getWinterTimeDetails(); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SetLightRequest result) { + int from_bitField0_ = bitField0_; + } - public static final class GetConfigurationResponse extends com.google.protobuf.GeneratedMessage - implements GetConfigurationResponseOrBuilder { - // Use GetConfigurationResponse.newBuilder() to construct. - private GetConfigurationResponse(final Builder builder) { - super(builder); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetLightRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetLightRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - private GetConfigurationResponse(final boolean noInit) {} + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SetLightRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SetLightRequest.getDefaultInstance()) return this; + if (valuesBuilder_ == null) { + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + } else { + if (!other.values_.isEmpty()) { + if (valuesBuilder_.isEmpty()) { + valuesBuilder_.dispose(); + valuesBuilder_ = null; + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + valuesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetValuesFieldBuilder() : null; + } else { + valuesBuilder_.addAllMessages(other.values_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private static final GetConfigurationResponse defaultInstance; + @java.lang.Override + public final boolean isInitialized() { + for (int i = 0; i < getValuesCount(); i++) { + if (!getValues(i).isInitialized()) { + return false; + } + } + return true; + } - public static GetConfigurationResponse getDefaultInstance() { - return defaultInstance; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + org.opensmartgridplatform.oslp.Oslp.LightValue m = + input.readMessage( + org.opensmartgridplatform.oslp.Oslp.LightValue.parser(), + extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List values_ = + java.util.Collections.emptyList(); + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new java.util.ArrayList(values_); + bitField0_ |= 0x00000001; + } + } - @Override - public GetConfigurationResponse getDefaultInstanceForType() { - return defaultInstance; - } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.LightValue, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder> valuesBuilder_; + + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public java.util.List getValuesList() { + if (valuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(values_); + } else { + return valuesBuilder_.getMessageList(); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public int getValuesCount() { + if (valuesBuilder_ == null) { + return values_.size(); + } else { + return valuesBuilder_.getCount(); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.LightValue getValues(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessage(index); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public Builder setValues( + int index, org.opensmartgridplatform.oslp.Oslp.LightValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + } else { + valuesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public Builder setValues( + int index, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.set(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public Builder addValues(org.opensmartgridplatform.oslp.Oslp.LightValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + } else { + valuesBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public Builder addValues( + int index, org.opensmartgridplatform.oslp.Oslp.LightValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(index, value); + onChanged(); + } else { + valuesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public Builder addValues( + org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public Builder addValues( + int index, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public Builder addAllValues( + java.lang.Iterable values) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + } else { + valuesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + valuesBuilder_.clear(); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public Builder removeValues(int index) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.remove(index); + onChanged(); + } else { + valuesBuilder_.remove(index); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder getValuesBuilder( + int index) { + return internalGetValuesFieldBuilder().getBuilder(index); + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValuesOrBuilder( + int index) { + if (valuesBuilder_ == null) { + return values_.get(index); } else { + return valuesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public java.util.List + getValuesOrBuilderList() { + if (valuesBuilder_ != null) { + return valuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(values_); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder addValuesBuilder() { + return internalGetValuesFieldBuilder().addBuilder( + org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder addValuesBuilder( + int index) { + return internalGetValuesFieldBuilder().addBuilder( + index, org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue values = 1; + */ + public java.util.List + getValuesBuilderList() { + return internalGetValuesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.LightValue, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder> + internalGetValuesFieldBuilder() { + if (valuesBuilder_ == null) { + valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.LightValue, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder>( + values_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + values_ = null; + } + return valuesBuilder_; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetConfigurationResponse_descriptor; - } + // @@protoc_insertion_point(builder_scope:oslp.SetLightRequest) + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetConfigurationResponse_fieldAccessorTable; - } + // @@protoc_insertion_point(class_scope:oslp.SetLightRequest) + private static final org.opensmartgridplatform.oslp.Oslp.SetLightRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SetLightRequest(); + } - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; + public static org.opensmartgridplatform.oslp.Oslp.SetLightRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLightRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // optional .oslp.LightType lightType = 2; - public static final int LIGHTTYPE_FIELD_NUMBER = 2; - private org.opensmartgridplatform.oslp.Oslp.LightType lightType_; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @Override - public boolean hasLightType() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetLightRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.LightType getLightType() { - return this.lightType_; } - // optional .oslp.DaliConfiguration daliConfiguration = 3; - public static final int DALICONFIGURATION_FIELD_NUMBER = 3; - private org.opensmartgridplatform.oslp.Oslp.DaliConfiguration daliConfiguration_; + public interface SetLightResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SetLightResponse) + com.google.protobuf.MessageOrBuilder { - @Override - public boolean hasDaliConfiguration() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); } + /** + * Protobuf type {@code oslp.SetLightResponse} + */ + public static final class SetLightResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SetLightResponse) + SetLightResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SetLightResponse.class.getName()); + } + // Use SetLightResponse.newBuilder() to construct. + private SetLightResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetLightResponse() { + status_ = 0; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDaliConfiguration() { - return this.daliConfiguration_; - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetLightResponse_descriptor; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder - getDaliConfigurationOrBuilder() { - return this.daliConfiguration_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetLightResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetLightResponse.class, org.opensmartgridplatform.oslp.Oslp.SetLightResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - // optional .oslp.RelayConfiguration relayConfiguration = 4; - public static final int RELAYCONFIGURATION_FIELD_NUMBER = 4; - private org.opensmartgridplatform.oslp.Oslp.RelayConfiguration relayConfiguration_; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + getUnknownFields().writeTo(output); + } - @Override - public boolean hasRelayConfiguration() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getRelayConfiguration() { - return this.relayConfiguration_; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder - getRelayConfigurationOrBuilder() { - return this.relayConfiguration_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SetLightResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SetLightResponse other = (org.opensmartgridplatform.oslp.Oslp.SetLightResponse) obj; - // optional uint32 shortTermHistoryIntervalMinutes = 5; - public static final int SHORTTERMHISTORYINTERVALMINUTES_FIELD_NUMBER = 5; - private int shortTermHistoryIntervalMinutes_; + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public boolean hasShortTermHistoryIntervalMinutes() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SetLightResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.SetLightResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SetLightResponse) + org.opensmartgridplatform.oslp.Oslp.SetLightResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetLightResponse_descriptor; + } - @Override - public int getShortTermHistoryIntervalMinutes() { - return this.shortTermHistoryIntervalMinutes_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetLightResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetLightResponse.class, org.opensmartgridplatform.oslp.Oslp.SetLightResponse.Builder.class); + } - // optional .oslp.LinkType preferredLinkType = 6; - public static final int PREFERREDLINKTYPE_FIELD_NUMBER = 6; - private org.opensmartgridplatform.oslp.Oslp.LinkType preferredLinkType_; + // Construct using org.opensmartgridplatform.oslp.Oslp.SetLightResponse.newBuilder() + private Builder() { - @Override - public boolean hasPreferredLinkType() { - return ((this.bitField0_ & 0x00000020) == 0x00000020); - } + } - @Override - public org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinkType() { - return this.preferredLinkType_; - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - // optional .oslp.MeterType meterType = 7; - public static final int METERTYPE_FIELD_NUMBER = 7; - private org.opensmartgridplatform.oslp.Oslp.MeterType meterType_; + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + return this; + } - @Override - public boolean hasMeterType() { - return ((this.bitField0_ & 0x00000040) == 0x00000040); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetLightResponse_descriptor; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType() { - return this.meterType_; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetLightResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SetLightResponse.getDefaultInstance(); + } - // optional uint32 longTermHistoryInterval = 8; - public static final int LONGTERMHISTORYINTERVAL_FIELD_NUMBER = 8; - private int longTermHistoryInterval_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetLightResponse build() { + org.opensmartgridplatform.oslp.Oslp.SetLightResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public boolean hasLongTermHistoryInterval() { - return ((this.bitField0_ & 0x00000080) == 0x00000080); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetLightResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SetLightResponse result = new org.opensmartgridplatform.oslp.Oslp.SetLightResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - @Override - public int getLongTermHistoryInterval() { - return this.longTermHistoryInterval_; - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SetLightResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - // optional .oslp.LongTermIntervalType longTermHistoryIntervalType = 9; - public static final int LONGTERMHISTORYINTERVALTYPE_FIELD_NUMBER = 9; - private org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType longTermHistoryIntervalType_; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetLightResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetLightResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - @Override - public boolean hasLongTermHistoryIntervalType() { - return ((this.bitField0_ & 0x00000100) == 0x00000100); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SetLightResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SetLightResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType - getLongTermHistoryIntervalType() { - return this.longTermHistoryIntervalType_; - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + return true; + } - // optional uint32 timeSyncFrequency = 10 [default = 86400]; - public static final int TIMESYNCFREQUENCY_FIELD_NUMBER = 10; - private int timeSyncFrequency_; + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - @Override - public boolean hasTimeSyncFrequency() { - return ((this.bitField0_ & 0x00000200) == 0x00000200); - } + // @@protoc_insertion_point(builder_scope:oslp.SetLightResponse) + } - @Override - public int getTimeSyncFrequency() { - return this.timeSyncFrequency_; - } + // @@protoc_insertion_point(class_scope:oslp.SetLightResponse) + private static final org.opensmartgridplatform.oslp.Oslp.SetLightResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SetLightResponse(); + } - // optional bytes deviceFixIpValue = 11; - public static final int DEVICEFIXIPVALUE_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString deviceFixIpValue_; + public static org.opensmartgridplatform.oslp.Oslp.SetLightResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public boolean hasDeviceFixIpValue() { - return ((this.bitField0_ & 0x00000400) == 0x00000400); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLightResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public com.google.protobuf.ByteString getDeviceFixIpValue() { - return this.deviceFixIpValue_; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // optional bytes netMask = 12; - public static final int NETMASK_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString netMask_; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @Override - public boolean hasNetMask() { - return ((this.bitField0_ & 0x00000800) == 0x00000800); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetLightResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @Override - public com.google.protobuf.ByteString getNetMask() { - return this.netMask_; } - // optional bytes gateWay = 13; - public static final int GATEWAY_FIELD_NUMBER = 13; - private com.google.protobuf.ByteString gateWay_; + public interface GetStatusRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.GetStatusRequest) + com.google.protobuf.MessageOrBuilder { - @Override - public boolean hasGateWay() { - return ((this.bitField0_ & 0x00001000) == 0x00001000); + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + boolean hasPresent(); + /** + * bool present = 1 [default = true]; + * @return The present. + */ + boolean getPresent(); } + /** + * Protobuf type {@code oslp.GetStatusRequest} + */ + public static final class GetStatusRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.GetStatusRequest) + GetStatusRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + GetStatusRequest.class.getName()); + } + // Use GetStatusRequest.newBuilder() to construct. + private GetStatusRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetStatusRequest() { + present_ = true; + } - @Override - public com.google.protobuf.ByteString getGateWay() { - return this.gateWay_; - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetStatusRequest_descriptor; + } - // optional bool isDhcpEnabled = 14 [default = true]; - public static final int ISDHCPENABLED_FIELD_NUMBER = 14; - private boolean isDhcpEnabled_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.class, org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.Builder.class); + } + + private int bitField0_; + public static final int PRESENT_FIELD_NUMBER = 1; + private boolean present_ = true; + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + @java.lang.Override + public boolean hasPresent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * bool present = 1 [default = true]; + * @return The present. + */ + @java.lang.Override + public boolean getPresent() { + return present_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, present_); + } + getUnknownFields().writeTo(output); + } - @Override - public boolean hasIsDhcpEnabled() { - return ((this.bitField0_ & 0x00002000) == 0x00002000); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public boolean getIsDhcpEnabled() { - return this.isDhcpEnabled_; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, present_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - // optional uint32 communicationTimeout = 15 [default = 20]; - public static final int COMMUNICATIONTIMEOUT_FIELD_NUMBER = 15; - private int communicationTimeout_; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.GetStatusRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.GetStatusRequest other = (org.opensmartgridplatform.oslp.Oslp.GetStatusRequest) obj; - @Override - public boolean hasCommunicationTimeout() { - return ((this.bitField0_ & 0x00004000) == 0x00004000); - } + if (hasPresent() != other.hasPresent()) return false; + if (hasPresent()) { + if (getPresent() + != other.getPresent()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public int getCommunicationTimeout() { - return this.communicationTimeout_; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPresent()) { + hash = (37 * hash) + PRESENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPresent()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.GetStatusRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.GetStatusRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.GetStatusRequest) + org.opensmartgridplatform.oslp.Oslp.GetStatusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetStatusRequest_descriptor; + } - // optional uint32 communicationNumberOfRetries = 16 [default = 3]; - public static final int COMMUNICATIONNUMBEROFRETRIES_FIELD_NUMBER = 16; - private int communicationNumberOfRetries_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.class, org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.Builder.class); + } - @Override - public boolean hasCommunicationNumberOfRetries() { - return ((this.bitField0_ & 0x00008000) == 0x00008000); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.newBuilder() + private Builder() { - @Override - public int getCommunicationNumberOfRetries() { - return this.communicationNumberOfRetries_; - } + } - // optional uint32 communicationPauseTimeBetweenConnectionTrials = 17 [default = 60]; - public static final int COMMUNICATIONPAUSETIMEBETWEENCONNECTIONTRIALS_FIELD_NUMBER = 17; - private int communicationPauseTimeBetweenConnectionTrials_; + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - @Override - public boolean hasCommunicationPauseTimeBetweenConnectionTrials() { - return ((this.bitField0_ & 0x00010000) == 0x00010000); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + present_ = true; + return this; + } - @Override - public int getCommunicationPauseTimeBetweenConnectionTrials() { - return this.communicationPauseTimeBetweenConnectionTrials_; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetStatusRequest_descriptor; + } - // optional bytes ospgIpAddress = 18; - public static final int OSPGIPADDRESS_FIELD_NUMBER = 18; - private com.google.protobuf.ByteString ospgIpAddress_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetStatusRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.getDefaultInstance(); + } - @Override - public boolean hasOspgIpAddress() { - return ((this.bitField0_ & 0x00020000) == 0x00020000); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetStatusRequest build() { + org.opensmartgridplatform.oslp.Oslp.GetStatusRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public com.google.protobuf.ByteString getOspgIpAddress() { - return this.ospgIpAddress_; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetStatusRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.GetStatusRequest result = new org.opensmartgridplatform.oslp.Oslp.GetStatusRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - // optional uint32 osgpPortNumber = 19; - public static final int OSGPPORTNUMBER_FIELD_NUMBER = 19; - private int osgpPortNumber_; + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.GetStatusRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.present_ = present_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - @Override - public boolean hasOsgpPortNumber() { - return ((this.bitField0_ & 0x00040000) == 0x00040000); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetStatusRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.GetStatusRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - @Override - public int getOsgpPortNumber() { - return this.osgpPortNumber_; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.GetStatusRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.getDefaultInstance()) return this; + if (other.hasPresent()) { + setPresent(other.getPresent()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - // optional bool isTestButtonEnabled = 20 [default = true]; - public static final int ISTESTBUTTONENABLED_FIELD_NUMBER = 20; - private boolean isTestButtonEnabled_; + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @Override - public boolean hasIsTestButtonEnabled() { - return ((this.bitField0_ & 0x00080000) == 0x00080000); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + present_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean present_ = true; + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + @java.lang.Override + public boolean hasPresent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * bool present = 1 [default = true]; + * @return The present. + */ + @java.lang.Override + public boolean getPresent() { + return present_; + } + /** + * bool present = 1 [default = true]; + * @param value The present to set. + * @return This builder for chaining. + */ + public Builder setPresent(boolean value) { + + present_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool present = 1 [default = true]; + * @return This builder for chaining. + */ + public Builder clearPresent() { + bitField0_ = (bitField0_ & ~0x00000001); + present_ = true; + onChanged(); + return this; + } - @Override - public boolean getIsTestButtonEnabled() { - return this.isTestButtonEnabled_; - } + // @@protoc_insertion_point(builder_scope:oslp.GetStatusRequest) + } - // optional bool isAutomaticSummerTimingEnabled = 21 [default = true]; - public static final int ISAUTOMATICSUMMERTIMINGENABLED_FIELD_NUMBER = 21; - private boolean isAutomaticSummerTimingEnabled_; + // @@protoc_insertion_point(class_scope:oslp.GetStatusRequest) + private static final org.opensmartgridplatform.oslp.Oslp.GetStatusRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.GetStatusRequest(); + } - @Override - public boolean hasIsAutomaticSummerTimingEnabled() { - return ((this.bitField0_ & 0x00100000) == 0x00100000); - } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public boolean getIsAutomaticSummerTimingEnabled() { - return this.isAutomaticSummerTimingEnabled_; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStatusRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - // optional sint32 astroGateSunRiseOffset = 22 [default = 0]; - public static final int ASTROGATESUNRISEOFFSET_FIELD_NUMBER = 22; - private int astroGateSunRiseOffset_; + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetStatusRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetStatusResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.GetStatusResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); + + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 2; + */ + java.util.List + getValueList(); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 2; + */ + org.opensmartgridplatform.oslp.Oslp.LightValue getValue(int index); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 2; + */ + int getValueCount(); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 2; + */ + java.util.List + getValueOrBuilderList(); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 2; + */ + org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValueOrBuilder( + int index); + + /** + * .oslp.LinkType preferredLinktype = 3 [features = { ... } + * @return Whether the preferredLinktype field is set. + */ + boolean hasPreferredLinktype(); + /** + * .oslp.LinkType preferredLinktype = 3 [features = { ... } + * @return The enum numeric value on the wire for preferredLinktype. + */ + int getPreferredLinktypeValue(); + /** + * .oslp.LinkType preferredLinktype = 3 [features = { ... } + * @return The preferredLinktype. + */ + org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinktype(); + + /** + * .oslp.LinkType actualLinktype = 4 [features = { ... } + * @return Whether the actualLinktype field is set. + */ + boolean hasActualLinktype(); + /** + * .oslp.LinkType actualLinktype = 4 [features = { ... } + * @return The enum numeric value on the wire for actualLinktype. + */ + int getActualLinktypeValue(); + /** + * .oslp.LinkType actualLinktype = 4 [features = { ... } + * @return The actualLinktype. + */ + org.opensmartgridplatform.oslp.Oslp.LinkType getActualLinktype(); + + /** + * .oslp.LightType lightType = 5 [features = { ... } + * @return Whether the lightType field is set. + */ + boolean hasLightType(); + /** + * .oslp.LightType lightType = 5 [features = { ... } + * @return The enum numeric value on the wire for lightType. + */ + int getLightTypeValue(); + /** + * .oslp.LightType lightType = 5 [features = { ... } + * @return The lightType. + */ + org.opensmartgridplatform.oslp.Oslp.LightType getLightType(); + + /** + *
+         * Bitmask for max 32 events, using NotificationBit for bit positions.
+         * 
+ * + * uint32 eventNotificationMask = 6 [features = { ... } + * @return Whether the eventNotificationMask field is set. + */ + boolean hasEventNotificationMask(); + /** + *
+         * Bitmask for max 32 events, using NotificationBit for bit positions.
+         * 
+ * + * uint32 eventNotificationMask = 6 [features = { ... } + * @return The eventNotificationMask. + */ + int getEventNotificationMask(); + + /** + *
+         * Hardware - The number of outputs of this device.
+         * 
+ * + * uint32 numberOfOutputs = 7; + * @return Whether the numberOfOutputs field is set. + */ + boolean hasNumberOfOutputs(); + /** + *
+         * Hardware - The number of outputs of this device.
+         * 
+ * + * uint32 numberOfOutputs = 7; + * @return The numberOfOutputs. + */ + int getNumberOfOutputs(); + + /** + *
+         * Hardware - DC output voltage MAXimum (in mV).
+         * 
+ * + * uint32 dcOutputVoltageMaximum = 8; + * @return Whether the dcOutputVoltageMaximum field is set. + */ + boolean hasDcOutputVoltageMaximum(); + /** + *
+         * Hardware - DC output voltage MAXimum (in mV).
+         * 
+ * + * uint32 dcOutputVoltageMaximum = 8; + * @return The dcOutputVoltageMaximum. + */ + int getDcOutputVoltageMaximum(); + + /** + *
+         * Hardware - DC output current voltage (in mV).
+         * 
+ * + * uint32 dcOutputVoltageCurrent = 9; + * @return Whether the dcOutputVoltageCurrent field is set. + */ + boolean hasDcOutputVoltageCurrent(); + /** + *
+         * Hardware - DC output current voltage (in mV).
+         * 
+ * + * uint32 dcOutputVoltageCurrent = 9; + * @return The dcOutputVoltageCurrent. + */ + int getDcOutputVoltageCurrent(); + + /** + *
+         * Hardware - Maximum output power on DC output (mW).
+         * 
+ * + * uint32 maximumOutputPowerOnDcOutput = 10; + * @return Whether the maximumOutputPowerOnDcOutput field is set. + */ + boolean hasMaximumOutputPowerOnDcOutput(); + /** + *
+         * Hardware - Maximum output power on DC output (mW).
+         * 
+ * + * uint32 maximumOutputPowerOnDcOutput = 10; + * @return The maximumOutputPowerOnDcOutput. + */ + int getMaximumOutputPowerOnDcOutput(); + + /** + *
+         * [(nanopb).max_size = 18]; // Hardware - Serial number of this device.
+         * 
+ * + * bytes serialNumber = 11; + * @return Whether the serialNumber field is set. + */ + boolean hasSerialNumber(); + /** + *
+         * [(nanopb).max_size = 18]; // Hardware - Serial number of this device.
+         * 
+ * + * bytes serialNumber = 11; + * @return The serialNumber. + */ + com.google.protobuf.ByteString getSerialNumber(); + + /** + *
+         * [(nanopb).max_size = 6]; // Hardware - MAC-address of this device.
+         * 
+ * + * bytes macAddress = 12; + * @return Whether the macAddress field is set. + */ + boolean hasMacAddress(); + /** + *
+         * [(nanopb).max_size = 6]; // Hardware - MAC-address of this device.
+         * 
+ * + * bytes macAddress = 12; + * @return The macAddress. + */ + com.google.protobuf.ByteString getMacAddress(); + + /** + *
+         * [(nanopb).min_size = 10, (nanopd).max_size = 25] ; // Hardware - The hardware ID of this device.
+         * 
+ * + * string hardwareId = 13; + * @return Whether the hardwareId field is set. + */ + boolean hasHardwareId(); + /** + *
+         * [(nanopb).min_size = 10, (nanopd).max_size = 25] ; // Hardware - The hardware ID of this device.
+         * 
+ * + * string hardwareId = 13; + * @return The hardwareId. + */ + java.lang.String getHardwareId(); + /** + *
+         * [(nanopb).min_size = 10, (nanopd).max_size = 25] ; // Hardware - The hardware ID of this device.
+         * 
+ * + * string hardwareId = 13; + * @return The bytes for hardwareId. + */ + com.google.protobuf.ByteString + getHardwareIdBytes(); + + /** + *
+         * Hardware - The internal flash memory size.
+         * 
+ * + * uint32 internalFlashMemSize = 14; + * @return Whether the internalFlashMemSize field is set. + */ + boolean hasInternalFlashMemSize(); + /** + *
+         * Hardware - The internal flash memory size.
+         * 
+ * + * uint32 internalFlashMemSize = 14; + * @return The internalFlashMemSize. + */ + int getInternalFlashMemSize(); + + /** + *
+         * Hardware - The external flash memory size.
+         * 
+ * + * uint32 externalFlashMemSize = 15; + * @return Whether the externalFlashMemSize field is set. + */ + boolean hasExternalFlashMemSize(); + /** + *
+         * Hardware - The external flash memory size.
+         * 
+ * + * uint32 externalFlashMemSize = 15; + * @return The externalFlashMemSize. + */ + int getExternalFlashMemSize(); + + /** + *
+         * Hardware - The last internal test result code.
+         * 
+ * + * uint32 lastInternalTestResultCode = 16; + * @return Whether the lastInternalTestResultCode field is set. + */ + boolean hasLastInternalTestResultCode(); + /** + *
+         * Hardware - The last internal test result code.
+         * 
+ * + * uint32 lastInternalTestResultCode = 16; + * @return The lastInternalTestResultCode. + */ + int getLastInternalTestResultCode(); + + /** + *
+         * Hardware - The startup counter.
+         * 
+ * + * uint32 startupCounter = 17; + * @return Whether the startupCounter field is set. + */ + boolean hasStartupCounter(); + /** + *
+         * Hardware - The startup counter.
+         * 
+ * + * uint32 startupCounter = 17; + * @return The startupCounter. + */ + int getStartupCounter(); + + /** + *
+         * Software - The boot loader version.
+         * 
+ * + * string bootLoaderVersion = 18; + * @return Whether the bootLoaderVersion field is set. + */ + boolean hasBootLoaderVersion(); + /** + *
+         * Software - The boot loader version.
+         * 
+ * + * string bootLoaderVersion = 18; + * @return The bootLoaderVersion. + */ + java.lang.String getBootLoaderVersion(); + /** + *
+         * Software - The boot loader version.
+         * 
+ * + * string bootLoaderVersion = 18; + * @return The bytes for bootLoaderVersion. + */ + com.google.protobuf.ByteString + getBootLoaderVersionBytes(); + + /** + *
+         * Software - The firmware version.
+         * 
+ * + * string firmwareVersion = 19; + * @return Whether the firmwareVersion field is set. + */ + boolean hasFirmwareVersion(); + /** + *
+         * Software - The firmware version.
+         * 
+ * + * string firmwareVersion = 19; + * @return The firmwareVersion. + */ + java.lang.String getFirmwareVersion(); + /** + *
+         * Software - The firmware version.
+         * 
+ * + * string firmwareVersion = 19; + * @return The bytes for firmwareVersion. + */ + com.google.protobuf.ByteString + getFirmwareVersionBytes(); + + /** + *
+         * [(nanopb).max_size = 6]; // Software - The current configuration bank in use.
+         * 
+ * + * bytes currentConfigurationBackUsed = 20; + * @return Whether the currentConfigurationBackUsed field is set. + */ + boolean hasCurrentConfigurationBackUsed(); + /** + *
+         * [(nanopb).max_size = 6]; // Software - The current configuration bank in use.
+         * 
+ * + * bytes currentConfigurationBackUsed = 20; + * @return The currentConfigurationBackUsed. + */ + com.google.protobuf.ByteString getCurrentConfigurationBackUsed(); + + /** + *
+         * Device - The name of this device.
+         * 
+ * + * string name = 21; + * @return Whether the name field is set. + */ + boolean hasName(); + /** + *
+         * Device - The name of this device.
+         * 
+ * + * string name = 21; + * @return The name. + */ + java.lang.String getName(); + /** + *
+         * Device - The name of this device.
+         * 
+ * + * string name = 21; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+         * Device - Not UTC, the time used in timing operations (adjusted "offset" + summer timing). YYYYMMDDhhmmss format.
+         * 
+ * + * string currentTime = 22; + * @return Whether the currentTime field is set. + */ + boolean hasCurrentTime(); + /** + *
+         * Device - Not UTC, the time used in timing operations (adjusted "offset" + summer timing). YYYYMMDDhhmmss format.
+         * 
+ * + * string currentTime = 22; + * @return The currentTime. + */ + java.lang.String getCurrentTime(); + /** + *
+         * Device - Not UTC, the time used in timing operations (adjusted "offset" + summer timing). YYYYMMDDhhmmss format.
+         * 
+ * + * string currentTime = 22; + * @return The bytes for currentTime. + */ + com.google.protobuf.ByteString + getCurrentTimeBytes(); + + /** + *
+         * Device - The current IP address of this device.
+         * 
+ * + * string currentIp = 23; + * @return Whether the currentIp field is set. + */ + boolean hasCurrentIp(); + /** + *
+         * Device - The current IP address of this device.
+         * 
+ * + * string currentIp = 23; + * @return The currentIp. + */ + java.lang.String getCurrentIp(); + /** + *
+         * Device - The current IP address of this device.
+         * 
+ * + * string currentIp = 23; + * @return The bytes for currentIp. + */ + com.google.protobuf.ByteString + getCurrentIpBytes(); + } + /** + * Protobuf type {@code oslp.GetStatusResponse} + */ + public static final class GetStatusResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.GetStatusResponse) + GetStatusResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + GetStatusResponse.class.getName()); + } + // Use GetStatusResponse.newBuilder() to construct. + private GetStatusResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetStatusResponse() { + status_ = 0; + value_ = java.util.Collections.emptyList(); + preferredLinktype_ = 0; + actualLinktype_ = 0; + lightType_ = 0; + serialNumber_ = com.google.protobuf.ByteString.EMPTY; + macAddress_ = com.google.protobuf.ByteString.EMPTY; + hardwareId_ = ""; + bootLoaderVersion_ = ""; + firmwareVersion_ = ""; + currentConfigurationBackUsed_ = com.google.protobuf.ByteString.EMPTY; + name_ = ""; + currentTime_ = ""; + currentIp_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.class, org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List value_; + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 2; + */ + @java.lang.Override + public java.util.List getValueList() { + return value_; + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 2; + */ + @java.lang.Override + public java.util.List + getValueOrBuilderList() { + return value_; + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 2; + */ + @java.lang.Override + public int getValueCount() { + return value_.size(); + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 2; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LightValue getValue(int index) { + return value_.get(index); + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 2; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValueOrBuilder( + int index) { + return value_.get(index); + } + + public static final int PREFERREDLINKTYPE_FIELD_NUMBER = 3; + private int preferredLinktype_ = 0; + /** + * .oslp.LinkType preferredLinktype = 3 [features = { ... } + * @return Whether the preferredLinktype field is set. + */ + @java.lang.Override public boolean hasPreferredLinktype() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .oslp.LinkType preferredLinktype = 3 [features = { ... } + * @return The enum numeric value on the wire for preferredLinktype. + */ + @java.lang.Override public int getPreferredLinktypeValue() { + return preferredLinktype_; + } + /** + * .oslp.LinkType preferredLinktype = 3 [features = { ... } + * @return The preferredLinktype. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinktype() { + org.opensmartgridplatform.oslp.Oslp.LinkType result = org.opensmartgridplatform.oslp.Oslp.LinkType.forNumber(preferredLinktype_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LinkType.UNRECOGNIZED : result; + } + + public static final int ACTUALLINKTYPE_FIELD_NUMBER = 4; + private int actualLinktype_ = 0; + /** + * .oslp.LinkType actualLinktype = 4 [features = { ... } + * @return Whether the actualLinktype field is set. + */ + @java.lang.Override public boolean hasActualLinktype() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .oslp.LinkType actualLinktype = 4 [features = { ... } + * @return The enum numeric value on the wire for actualLinktype. + */ + @java.lang.Override public int getActualLinktypeValue() { + return actualLinktype_; + } + /** + * .oslp.LinkType actualLinktype = 4 [features = { ... } + * @return The actualLinktype. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.LinkType getActualLinktype() { + org.opensmartgridplatform.oslp.Oslp.LinkType result = org.opensmartgridplatform.oslp.Oslp.LinkType.forNumber(actualLinktype_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LinkType.UNRECOGNIZED : result; + } + + public static final int LIGHTTYPE_FIELD_NUMBER = 5; + private int lightType_ = 0; + /** + * .oslp.LightType lightType = 5 [features = { ... } + * @return Whether the lightType field is set. + */ + @java.lang.Override public boolean hasLightType() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .oslp.LightType lightType = 5 [features = { ... } + * @return The enum numeric value on the wire for lightType. + */ + @java.lang.Override public int getLightTypeValue() { + return lightType_; + } + /** + * .oslp.LightType lightType = 5 [features = { ... } + * @return The lightType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.LightType getLightType() { + org.opensmartgridplatform.oslp.Oslp.LightType result = org.opensmartgridplatform.oslp.Oslp.LightType.forNumber(lightType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LightType.UNRECOGNIZED : result; + } + + public static final int EVENTNOTIFICATIONMASK_FIELD_NUMBER = 6; + private int eventNotificationMask_ = 0; + /** + *
+         * Bitmask for max 32 events, using NotificationBit for bit positions.
+         * 
+ * + * uint32 eventNotificationMask = 6 [features = { ... } + * @return Whether the eventNotificationMask field is set. + */ + @java.lang.Override + public boolean hasEventNotificationMask() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+         * Bitmask for max 32 events, using NotificationBit for bit positions.
+         * 
+ * + * uint32 eventNotificationMask = 6 [features = { ... } + * @return The eventNotificationMask. + */ + @java.lang.Override + public int getEventNotificationMask() { + return eventNotificationMask_; + } + + public static final int NUMBEROFOUTPUTS_FIELD_NUMBER = 7; + private int numberOfOutputs_ = 0; + /** + *
+         * Hardware - The number of outputs of this device.
+         * 
+ * + * uint32 numberOfOutputs = 7; + * @return Whether the numberOfOutputs field is set. + */ + @java.lang.Override + public boolean hasNumberOfOutputs() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+         * Hardware - The number of outputs of this device.
+         * 
+ * + * uint32 numberOfOutputs = 7; + * @return The numberOfOutputs. + */ + @java.lang.Override + public int getNumberOfOutputs() { + return numberOfOutputs_; + } + + public static final int DCOUTPUTVOLTAGEMAXIMUM_FIELD_NUMBER = 8; + private int dcOutputVoltageMaximum_ = 0; + /** + *
+         * Hardware - DC output voltage MAXimum (in mV).
+         * 
+ * + * uint32 dcOutputVoltageMaximum = 8; + * @return Whether the dcOutputVoltageMaximum field is set. + */ + @java.lang.Override + public boolean hasDcOutputVoltageMaximum() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+         * Hardware - DC output voltage MAXimum (in mV).
+         * 
+ * + * uint32 dcOutputVoltageMaximum = 8; + * @return The dcOutputVoltageMaximum. + */ + @java.lang.Override + public int getDcOutputVoltageMaximum() { + return dcOutputVoltageMaximum_; + } + + public static final int DCOUTPUTVOLTAGECURRENT_FIELD_NUMBER = 9; + private int dcOutputVoltageCurrent_ = 0; + /** + *
+         * Hardware - DC output current voltage (in mV).
+         * 
+ * + * uint32 dcOutputVoltageCurrent = 9; + * @return Whether the dcOutputVoltageCurrent field is set. + */ + @java.lang.Override + public boolean hasDcOutputVoltageCurrent() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+         * Hardware - DC output current voltage (in mV).
+         * 
+ * + * uint32 dcOutputVoltageCurrent = 9; + * @return The dcOutputVoltageCurrent. + */ + @java.lang.Override + public int getDcOutputVoltageCurrent() { + return dcOutputVoltageCurrent_; + } + + public static final int MAXIMUMOUTPUTPOWERONDCOUTPUT_FIELD_NUMBER = 10; + private int maximumOutputPowerOnDcOutput_ = 0; + /** + *
+         * Hardware - Maximum output power on DC output (mW).
+         * 
+ * + * uint32 maximumOutputPowerOnDcOutput = 10; + * @return Whether the maximumOutputPowerOnDcOutput field is set. + */ + @java.lang.Override + public boolean hasMaximumOutputPowerOnDcOutput() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+         * Hardware - Maximum output power on DC output (mW).
+         * 
+ * + * uint32 maximumOutputPowerOnDcOutput = 10; + * @return The maximumOutputPowerOnDcOutput. + */ + @java.lang.Override + public int getMaximumOutputPowerOnDcOutput() { + return maximumOutputPowerOnDcOutput_; + } + + public static final int SERIALNUMBER_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString serialNumber_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_size = 18]; // Hardware - Serial number of this device.
+         * 
+ * + * bytes serialNumber = 11; + * @return Whether the serialNumber field is set. + */ + @java.lang.Override + public boolean hasSerialNumber() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+         * [(nanopb).max_size = 18]; // Hardware - Serial number of this device.
+         * 
+ * + * bytes serialNumber = 11; + * @return The serialNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSerialNumber() { + return serialNumber_; + } + + public static final int MACADDRESS_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString macAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_size = 6]; // Hardware - MAC-address of this device.
+         * 
+ * + * bytes macAddress = 12; + * @return Whether the macAddress field is set. + */ + @java.lang.Override + public boolean hasMacAddress() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+         * [(nanopb).max_size = 6]; // Hardware - MAC-address of this device.
+         * 
+ * + * bytes macAddress = 12; + * @return The macAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMacAddress() { + return macAddress_; + } + + public static final int HARDWAREID_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private volatile java.lang.Object hardwareId_ = ""; + /** + *
+         * [(nanopb).min_size = 10, (nanopd).max_size = 25] ; // Hardware - The hardware ID of this device.
+         * 
+ * + * string hardwareId = 13; + * @return Whether the hardwareId field is set. + */ + @java.lang.Override + public boolean hasHardwareId() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+         * [(nanopb).min_size = 10, (nanopd).max_size = 25] ; // Hardware - The hardware ID of this device.
+         * 
+ * + * string hardwareId = 13; + * @return The hardwareId. + */ + @java.lang.Override + public java.lang.String getHardwareId() { + java.lang.Object ref = hardwareId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hardwareId_ = s; + return s; + } + } + /** + *
+         * [(nanopb).min_size = 10, (nanopd).max_size = 25] ; // Hardware - The hardware ID of this device.
+         * 
+ * + * string hardwareId = 13; + * @return The bytes for hardwareId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHardwareIdBytes() { + java.lang.Object ref = hardwareId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hardwareId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @Override - public boolean hasAstroGateSunRiseOffset() { - return ((this.bitField0_ & 0x00200000) == 0x00200000); - } + public static final int INTERNALFLASHMEMSIZE_FIELD_NUMBER = 14; + private int internalFlashMemSize_ = 0; + /** + *
+         * Hardware - The internal flash memory size.
+         * 
+ * + * uint32 internalFlashMemSize = 14; + * @return Whether the internalFlashMemSize field is set. + */ + @java.lang.Override + public boolean hasInternalFlashMemSize() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+         * Hardware - The internal flash memory size.
+         * 
+ * + * uint32 internalFlashMemSize = 14; + * @return The internalFlashMemSize. + */ + @java.lang.Override + public int getInternalFlashMemSize() { + return internalFlashMemSize_; + } + + public static final int EXTERNALFLASHMEMSIZE_FIELD_NUMBER = 15; + private int externalFlashMemSize_ = 0; + /** + *
+         * Hardware - The external flash memory size.
+         * 
+ * + * uint32 externalFlashMemSize = 15; + * @return Whether the externalFlashMemSize field is set. + */ + @java.lang.Override + public boolean hasExternalFlashMemSize() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+         * Hardware - The external flash memory size.
+         * 
+ * + * uint32 externalFlashMemSize = 15; + * @return The externalFlashMemSize. + */ + @java.lang.Override + public int getExternalFlashMemSize() { + return externalFlashMemSize_; + } + + public static final int LASTINTERNALTESTRESULTCODE_FIELD_NUMBER = 16; + private int lastInternalTestResultCode_ = 0; + /** + *
+         * Hardware - The last internal test result code.
+         * 
+ * + * uint32 lastInternalTestResultCode = 16; + * @return Whether the lastInternalTestResultCode field is set. + */ + @java.lang.Override + public boolean hasLastInternalTestResultCode() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+         * Hardware - The last internal test result code.
+         * 
+ * + * uint32 lastInternalTestResultCode = 16; + * @return The lastInternalTestResultCode. + */ + @java.lang.Override + public int getLastInternalTestResultCode() { + return lastInternalTestResultCode_; + } + + public static final int STARTUPCOUNTER_FIELD_NUMBER = 17; + private int startupCounter_ = 0; + /** + *
+         * Hardware - The startup counter.
+         * 
+ * + * uint32 startupCounter = 17; + * @return Whether the startupCounter field is set. + */ + @java.lang.Override + public boolean hasStartupCounter() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+         * Hardware - The startup counter.
+         * 
+ * + * uint32 startupCounter = 17; + * @return The startupCounter. + */ + @java.lang.Override + public int getStartupCounter() { + return startupCounter_; + } + + public static final int BOOTLOADERVERSION_FIELD_NUMBER = 18; + @SuppressWarnings("serial") + private volatile java.lang.Object bootLoaderVersion_ = ""; + /** + *
+         * Software - The boot loader version.
+         * 
+ * + * string bootLoaderVersion = 18; + * @return Whether the bootLoaderVersion field is set. + */ + @java.lang.Override + public boolean hasBootLoaderVersion() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+         * Software - The boot loader version.
+         * 
+ * + * string bootLoaderVersion = 18; + * @return The bootLoaderVersion. + */ + @java.lang.Override + public java.lang.String getBootLoaderVersion() { + java.lang.Object ref = bootLoaderVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootLoaderVersion_ = s; + return s; + } + } + /** + *
+         * Software - The boot loader version.
+         * 
+ * + * string bootLoaderVersion = 18; + * @return The bytes for bootLoaderVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBootLoaderVersionBytes() { + java.lang.Object ref = bootLoaderVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bootLoaderVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @Override - public int getAstroGateSunRiseOffset() { - return this.astroGateSunRiseOffset_; - } + public static final int FIRMWAREVERSION_FIELD_NUMBER = 19; + @SuppressWarnings("serial") + private volatile java.lang.Object firmwareVersion_ = ""; + /** + *
+         * Software - The firmware version.
+         * 
+ * + * string firmwareVersion = 19; + * @return Whether the firmwareVersion field is set. + */ + @java.lang.Override + public boolean hasFirmwareVersion() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+         * Software - The firmware version.
+         * 
+ * + * string firmwareVersion = 19; + * @return The firmwareVersion. + */ + @java.lang.Override + public java.lang.String getFirmwareVersion() { + java.lang.Object ref = firmwareVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firmwareVersion_ = s; + return s; + } + } + /** + *
+         * Software - The firmware version.
+         * 
+ * + * string firmwareVersion = 19; + * @return The bytes for firmwareVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFirmwareVersionBytes() { + java.lang.Object ref = firmwareVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firmwareVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // optional sint32 astroGateSunSetOffset = 23 [default = 0]; - public static final int ASTROGATESUNSETOFFSET_FIELD_NUMBER = 23; - private int astroGateSunSetOffset_; + public static final int CURRENTCONFIGURATIONBACKUSED_FIELD_NUMBER = 20; + private com.google.protobuf.ByteString currentConfigurationBackUsed_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_size = 6]; // Software - The current configuration bank in use.
+         * 
+ * + * bytes currentConfigurationBackUsed = 20; + * @return Whether the currentConfigurationBackUsed field is set. + */ + @java.lang.Override + public boolean hasCurrentConfigurationBackUsed() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+         * [(nanopb).max_size = 6]; // Software - The current configuration bank in use.
+         * 
+ * + * bytes currentConfigurationBackUsed = 20; + * @return The currentConfigurationBackUsed. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrentConfigurationBackUsed() { + return currentConfigurationBackUsed_; + } + + public static final int NAME_FIELD_NUMBER = 21; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+         * Device - The name of this device.
+         * 
+ * + * string name = 21; + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+         * Device - The name of this device.
+         * 
+ * + * string name = 21; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+         * Device - The name of this device.
+         * 
+ * + * string name = 21; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @Override - public boolean hasAstroGateSunSetOffset() { - return ((this.bitField0_ & 0x00400000) == 0x00400000); - } + public static final int CURRENTTIME_FIELD_NUMBER = 22; + @SuppressWarnings("serial") + private volatile java.lang.Object currentTime_ = ""; + /** + *
+         * Device - Not UTC, the time used in timing operations (adjusted "offset" + summer timing). YYYYMMDDhhmmss format.
+         * 
+ * + * string currentTime = 22; + * @return Whether the currentTime field is set. + */ + @java.lang.Override + public boolean hasCurrentTime() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+         * Device - Not UTC, the time used in timing operations (adjusted "offset" + summer timing). YYYYMMDDhhmmss format.
+         * 
+ * + * string currentTime = 22; + * @return The currentTime. + */ + @java.lang.Override + public java.lang.String getCurrentTime() { + java.lang.Object ref = currentTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentTime_ = s; + return s; + } + } + /** + *
+         * Device - Not UTC, the time used in timing operations (adjusted "offset" + summer timing). YYYYMMDDhhmmss format.
+         * 
+ * + * string currentTime = 22; + * @return The bytes for currentTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCurrentTimeBytes() { + java.lang.Object ref = currentTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @Override - public int getAstroGateSunSetOffset() { - return this.astroGateSunSetOffset_; - } + public static final int CURRENTIP_FIELD_NUMBER = 23; + @SuppressWarnings("serial") + private volatile java.lang.Object currentIp_ = ""; + /** + *
+         * Device - The current IP address of this device.
+         * 
+ * + * string currentIp = 23; + * @return Whether the currentIp field is set. + */ + @java.lang.Override + public boolean hasCurrentIp() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+         * Device - The current IP address of this device.
+         * 
+ * + * string currentIp = 23; + * @return The currentIp. + */ + @java.lang.Override + public java.lang.String getCurrentIp() { + java.lang.Object ref = currentIp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentIp_ = s; + return s; + } + } + /** + *
+         * Device - The current IP address of this device.
+         * 
+ * + * string currentIp = 23; + * @return The bytes for currentIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCurrentIpBytes() { + java.lang.Object ref = currentIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // repeated uint32 switchingDelay = 24; - public static final int SWITCHINGDELAY_FIELD_NUMBER = 24; - private java.util.List switchingDelay_; + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @Override - public java.util.List getSwitchingDelayList() { - return this.switchingDelay_; - } + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPreferredLinktype()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasActualLinktype()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasLightType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasEventNotificationMask()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getValueCount(); i++) { + if (!getValue(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - @Override - public int getSwitchingDelayCount() { - return this.switchingDelay_.size(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + for (int i = 0; i < value_.size(); i++) { + output.writeMessage(2, value_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(3, preferredLinktype_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(4, actualLinktype_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(5, lightType_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeUInt32(6, eventNotificationMask_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeUInt32(7, numberOfOutputs_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeUInt32(8, dcOutputVoltageMaximum_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeUInt32(9, dcOutputVoltageCurrent_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeUInt32(10, maximumOutputPowerOnDcOutput_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeBytes(11, serialNumber_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeBytes(12, macAddress_); + } + if (((bitField0_ & 0x00000800) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, hardwareId_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeUInt32(14, internalFlashMemSize_); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeUInt32(15, externalFlashMemSize_); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeUInt32(16, lastInternalTestResultCode_); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeUInt32(17, startupCounter_); + } + if (((bitField0_ & 0x00010000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 18, bootLoaderVersion_); + } + if (((bitField0_ & 0x00020000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19, firmwareVersion_); + } + if (((bitField0_ & 0x00040000) != 0)) { + output.writeBytes(20, currentConfigurationBackUsed_); + } + if (((bitField0_ & 0x00080000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 21, name_); + } + if (((bitField0_ & 0x00100000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 22, currentTime_); + } + if (((bitField0_ & 0x00200000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 23, currentIp_); + } + getUnknownFields().writeTo(output); + } - @Override - public int getSwitchingDelay(final int index) { - return this.switchingDelay_.get(index); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - // repeated .oslp.RelayMatrix relayLinking = 25; - public static final int RELAYLINKING_FIELD_NUMBER = 25; - private java.util.List relayLinking_; + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + for (int i = 0; i < value_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, value_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, preferredLinktype_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, actualLinktype_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, lightType_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, eventNotificationMask_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(7, numberOfOutputs_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, dcOutputVoltageMaximum_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, dcOutputVoltageCurrent_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(10, maximumOutputPowerOnDcOutput_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(11, serialNumber_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(12, macAddress_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, hardwareId_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(14, internalFlashMemSize_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(15, externalFlashMemSize_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(16, lastInternalTestResultCode_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(17, startupCounter_); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(18, bootLoaderVersion_); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19, firmwareVersion_); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(20, currentConfigurationBackUsed_); + } + if (((bitField0_ & 0x00080000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(21, name_); + } + if (((bitField0_ & 0x00100000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(22, currentTime_); + } + if (((bitField0_ & 0x00200000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(23, currentIp_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @Override - public java.util.List getRelayLinkingList() { - return this.relayLinking_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.GetStatusResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.GetStatusResponse other = (org.opensmartgridplatform.oslp.Oslp.GetStatusResponse) obj; - @Override - public java.util.List - getRelayLinkingOrBuilderList() { - return this.relayLinking_; - } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getValueList() + .equals(other.getValueList())) return false; + if (hasPreferredLinktype() != other.hasPreferredLinktype()) return false; + if (hasPreferredLinktype()) { + if (preferredLinktype_ != other.preferredLinktype_) return false; + } + if (hasActualLinktype() != other.hasActualLinktype()) return false; + if (hasActualLinktype()) { + if (actualLinktype_ != other.actualLinktype_) return false; + } + if (hasLightType() != other.hasLightType()) return false; + if (hasLightType()) { + if (lightType_ != other.lightType_) return false; + } + if (hasEventNotificationMask() != other.hasEventNotificationMask()) return false; + if (hasEventNotificationMask()) { + if (getEventNotificationMask() + != other.getEventNotificationMask()) return false; + } + if (hasNumberOfOutputs() != other.hasNumberOfOutputs()) return false; + if (hasNumberOfOutputs()) { + if (getNumberOfOutputs() + != other.getNumberOfOutputs()) return false; + } + if (hasDcOutputVoltageMaximum() != other.hasDcOutputVoltageMaximum()) return false; + if (hasDcOutputVoltageMaximum()) { + if (getDcOutputVoltageMaximum() + != other.getDcOutputVoltageMaximum()) return false; + } + if (hasDcOutputVoltageCurrent() != other.hasDcOutputVoltageCurrent()) return false; + if (hasDcOutputVoltageCurrent()) { + if (getDcOutputVoltageCurrent() + != other.getDcOutputVoltageCurrent()) return false; + } + if (hasMaximumOutputPowerOnDcOutput() != other.hasMaximumOutputPowerOnDcOutput()) return false; + if (hasMaximumOutputPowerOnDcOutput()) { + if (getMaximumOutputPowerOnDcOutput() + != other.getMaximumOutputPowerOnDcOutput()) return false; + } + if (hasSerialNumber() != other.hasSerialNumber()) return false; + if (hasSerialNumber()) { + if (!getSerialNumber() + .equals(other.getSerialNumber())) return false; + } + if (hasMacAddress() != other.hasMacAddress()) return false; + if (hasMacAddress()) { + if (!getMacAddress() + .equals(other.getMacAddress())) return false; + } + if (hasHardwareId() != other.hasHardwareId()) return false; + if (hasHardwareId()) { + if (!getHardwareId() + .equals(other.getHardwareId())) return false; + } + if (hasInternalFlashMemSize() != other.hasInternalFlashMemSize()) return false; + if (hasInternalFlashMemSize()) { + if (getInternalFlashMemSize() + != other.getInternalFlashMemSize()) return false; + } + if (hasExternalFlashMemSize() != other.hasExternalFlashMemSize()) return false; + if (hasExternalFlashMemSize()) { + if (getExternalFlashMemSize() + != other.getExternalFlashMemSize()) return false; + } + if (hasLastInternalTestResultCode() != other.hasLastInternalTestResultCode()) return false; + if (hasLastInternalTestResultCode()) { + if (getLastInternalTestResultCode() + != other.getLastInternalTestResultCode()) return false; + } + if (hasStartupCounter() != other.hasStartupCounter()) return false; + if (hasStartupCounter()) { + if (getStartupCounter() + != other.getStartupCounter()) return false; + } + if (hasBootLoaderVersion() != other.hasBootLoaderVersion()) return false; + if (hasBootLoaderVersion()) { + if (!getBootLoaderVersion() + .equals(other.getBootLoaderVersion())) return false; + } + if (hasFirmwareVersion() != other.hasFirmwareVersion()) return false; + if (hasFirmwareVersion()) { + if (!getFirmwareVersion() + .equals(other.getFirmwareVersion())) return false; + } + if (hasCurrentConfigurationBackUsed() != other.hasCurrentConfigurationBackUsed()) return false; + if (hasCurrentConfigurationBackUsed()) { + if (!getCurrentConfigurationBackUsed() + .equals(other.getCurrentConfigurationBackUsed())) return false; + } + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasCurrentTime() != other.hasCurrentTime()) return false; + if (hasCurrentTime()) { + if (!getCurrentTime() + .equals(other.getCurrentTime())) return false; + } + if (hasCurrentIp() != other.hasCurrentIp()) return false; + if (hasCurrentIp()) { + if (!getCurrentIp() + .equals(other.getCurrentIp())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public int getRelayLinkingCount() { - return this.relayLinking_.size(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (getValueCount() > 0) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValueList().hashCode(); + } + if (hasPreferredLinktype()) { + hash = (37 * hash) + PREFERREDLINKTYPE_FIELD_NUMBER; + hash = (53 * hash) + preferredLinktype_; + } + if (hasActualLinktype()) { + hash = (37 * hash) + ACTUALLINKTYPE_FIELD_NUMBER; + hash = (53 * hash) + actualLinktype_; + } + if (hasLightType()) { + hash = (37 * hash) + LIGHTTYPE_FIELD_NUMBER; + hash = (53 * hash) + lightType_; + } + if (hasEventNotificationMask()) { + hash = (37 * hash) + EVENTNOTIFICATIONMASK_FIELD_NUMBER; + hash = (53 * hash) + getEventNotificationMask(); + } + if (hasNumberOfOutputs()) { + hash = (37 * hash) + NUMBEROFOUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getNumberOfOutputs(); + } + if (hasDcOutputVoltageMaximum()) { + hash = (37 * hash) + DCOUTPUTVOLTAGEMAXIMUM_FIELD_NUMBER; + hash = (53 * hash) + getDcOutputVoltageMaximum(); + } + if (hasDcOutputVoltageCurrent()) { + hash = (37 * hash) + DCOUTPUTVOLTAGECURRENT_FIELD_NUMBER; + hash = (53 * hash) + getDcOutputVoltageCurrent(); + } + if (hasMaximumOutputPowerOnDcOutput()) { + hash = (37 * hash) + MAXIMUMOUTPUTPOWERONDCOUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getMaximumOutputPowerOnDcOutput(); + } + if (hasSerialNumber()) { + hash = (37 * hash) + SERIALNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getSerialNumber().hashCode(); + } + if (hasMacAddress()) { + hash = (37 * hash) + MACADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMacAddress().hashCode(); + } + if (hasHardwareId()) { + hash = (37 * hash) + HARDWAREID_FIELD_NUMBER; + hash = (53 * hash) + getHardwareId().hashCode(); + } + if (hasInternalFlashMemSize()) { + hash = (37 * hash) + INTERNALFLASHMEMSIZE_FIELD_NUMBER; + hash = (53 * hash) + getInternalFlashMemSize(); + } + if (hasExternalFlashMemSize()) { + hash = (37 * hash) + EXTERNALFLASHMEMSIZE_FIELD_NUMBER; + hash = (53 * hash) + getExternalFlashMemSize(); + } + if (hasLastInternalTestResultCode()) { + hash = (37 * hash) + LASTINTERNALTESTRESULTCODE_FIELD_NUMBER; + hash = (53 * hash) + getLastInternalTestResultCode(); + } + if (hasStartupCounter()) { + hash = (37 * hash) + STARTUPCOUNTER_FIELD_NUMBER; + hash = (53 * hash) + getStartupCounter(); + } + if (hasBootLoaderVersion()) { + hash = (37 * hash) + BOOTLOADERVERSION_FIELD_NUMBER; + hash = (53 * hash) + getBootLoaderVersion().hashCode(); + } + if (hasFirmwareVersion()) { + hash = (37 * hash) + FIRMWAREVERSION_FIELD_NUMBER; + hash = (53 * hash) + getFirmwareVersion().hashCode(); + } + if (hasCurrentConfigurationBackUsed()) { + hash = (37 * hash) + CURRENTCONFIGURATIONBACKUSED_FIELD_NUMBER; + hash = (53 * hash) + getCurrentConfigurationBackUsed().hashCode(); + } + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasCurrentTime()) { + hash = (37 * hash) + CURRENTTIME_FIELD_NUMBER; + hash = (53 * hash) + getCurrentTime().hashCode(); + } + if (hasCurrentIp()) { + hash = (37 * hash) + CURRENTIP_FIELD_NUMBER; + hash = (53 * hash) + getCurrentIp().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.GetStatusResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.GetStatusResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.GetStatusResponse) + org.opensmartgridplatform.oslp.Oslp.GetStatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetStatusResponse_descriptor; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayMatrix getRelayLinking(final int index) { - return this.relayLinking_.get(index); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.class, org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.Builder.class); + } - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder getRelayLinkingOrBuilder( - final int index) { - return this.relayLinking_.get(index); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.newBuilder() + private Builder() { - // optional bool relayRefreshing = 26 [default = true]; - public static final int RELAYREFRESHING_FIELD_NUMBER = 26; - private boolean relayRefreshing_; + } - @Override - public boolean hasRelayRefreshing() { - return ((this.bitField0_ & 0x00800000) == 0x00800000); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - @Override - public boolean getRelayRefreshing() { - return this.relayRefreshing_; - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + if (valueBuilder_ == null) { + value_ = java.util.Collections.emptyList(); + } else { + value_ = null; + valueBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + preferredLinktype_ = 0; + actualLinktype_ = 0; + lightType_ = 0; + eventNotificationMask_ = 0; + numberOfOutputs_ = 0; + dcOutputVoltageMaximum_ = 0; + dcOutputVoltageCurrent_ = 0; + maximumOutputPowerOnDcOutput_ = 0; + serialNumber_ = com.google.protobuf.ByteString.EMPTY; + macAddress_ = com.google.protobuf.ByteString.EMPTY; + hardwareId_ = ""; + internalFlashMemSize_ = 0; + externalFlashMemSize_ = 0; + lastInternalTestResultCode_ = 0; + startupCounter_ = 0; + bootLoaderVersion_ = ""; + firmwareVersion_ = ""; + currentConfigurationBackUsed_ = com.google.protobuf.ByteString.EMPTY; + name_ = ""; + currentTime_ = ""; + currentIp_ = ""; + return this; + } - // optional string summerTimeDetails = 27 [default = "0360100"]; - public static final int SUMMERTIMEDETAILS_FIELD_NUMBER = 27; - private java.lang.Object summerTimeDetails_; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetStatusResponse_descriptor; + } - @Override - public boolean hasSummerTimeDetails() { - return ((this.bitField0_ & 0x01000000) == 0x01000000); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetStatusResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.getDefaultInstance(); + } - @Override - public String getSummerTimeDetails() { - final java.lang.Object ref = this.summerTimeDetails_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.summerTimeDetails_ = s; - } - return s; - } - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetStatusResponse build() { + org.opensmartgridplatform.oslp.Oslp.GetStatusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - private com.google.protobuf.ByteString getSummerTimeDetailsBytes() { - final java.lang.Object ref = this.summerTimeDetails_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.summerTimeDetails_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetStatusResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.GetStatusResponse result = new org.opensmartgridplatform.oslp.Oslp.GetStatusResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - // optional string winterTimeDetails = 28 [default = "1060200"]; - public static final int WINTERTIMEDETAILS_FIELD_NUMBER = 28; - private java.lang.Object winterTimeDetails_; + private void buildPartialRepeatedFields(org.opensmartgridplatform.oslp.Oslp.GetStatusResponse result) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + value_ = java.util.Collections.unmodifiableList(value_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + } - @Override - public boolean hasWinterTimeDetails() { - return ((this.bitField0_ & 0x02000000) == 0x02000000); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.GetStatusResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.preferredLinktype_ = preferredLinktype_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.actualLinktype_ = actualLinktype_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.lightType_ = lightType_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.eventNotificationMask_ = eventNotificationMask_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.numberOfOutputs_ = numberOfOutputs_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.dcOutputVoltageMaximum_ = dcOutputVoltageMaximum_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.dcOutputVoltageCurrent_ = dcOutputVoltageCurrent_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.maximumOutputPowerOnDcOutput_ = maximumOutputPowerOnDcOutput_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.serialNumber_ = serialNumber_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.macAddress_ = macAddress_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.hardwareId_ = hardwareId_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.internalFlashMemSize_ = internalFlashMemSize_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.externalFlashMemSize_ = externalFlashMemSize_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.lastInternalTestResultCode_ = lastInternalTestResultCode_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.startupCounter_ = startupCounter_; + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.bootLoaderVersion_ = bootLoaderVersion_; + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.firmwareVersion_ = firmwareVersion_; + to_bitField0_ |= 0x00020000; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.currentConfigurationBackUsed_ = currentConfigurationBackUsed_; + to_bitField0_ |= 0x00040000; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00080000; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.currentTime_ = currentTime_; + to_bitField0_ |= 0x00100000; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.currentIp_ = currentIp_; + to_bitField0_ |= 0x00200000; + } + result.bitField0_ |= to_bitField0_; + } - @Override - public String getWinterTimeDetails() { - final java.lang.Object ref = this.winterTimeDetails_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.winterTimeDetails_ = s; - } - return s; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetStatusResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.GetStatusResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - private com.google.protobuf.ByteString getWinterTimeDetailsBytes() { - final java.lang.Object ref = this.winterTimeDetails_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.winterTimeDetails_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.GetStatusResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + if (valueBuilder_ == null) { + if (!other.value_.isEmpty()) { + if (value_.isEmpty()) { + value_ = other.value_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureValueIsMutable(); + value_.addAll(other.value_); + } + onChanged(); + } + } else { + if (!other.value_.isEmpty()) { + if (valueBuilder_.isEmpty()) { + valueBuilder_.dispose(); + valueBuilder_ = null; + value_ = other.value_; + bitField0_ = (bitField0_ & ~0x00000002); + valueBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetValueFieldBuilder() : null; + } else { + valueBuilder_.addAllMessages(other.value_); + } + } + } + if (other.hasPreferredLinktype()) { + setPreferredLinktypeValue(other.getPreferredLinktypeValue()); + } + if (other.hasActualLinktype()) { + setActualLinktypeValue(other.getActualLinktypeValue()); + } + if (other.hasLightType()) { + setLightTypeValue(other.getLightTypeValue()); + } + if (other.hasEventNotificationMask()) { + setEventNotificationMask(other.getEventNotificationMask()); + } + if (other.hasNumberOfOutputs()) { + setNumberOfOutputs(other.getNumberOfOutputs()); + } + if (other.hasDcOutputVoltageMaximum()) { + setDcOutputVoltageMaximum(other.getDcOutputVoltageMaximum()); + } + if (other.hasDcOutputVoltageCurrent()) { + setDcOutputVoltageCurrent(other.getDcOutputVoltageCurrent()); + } + if (other.hasMaximumOutputPowerOnDcOutput()) { + setMaximumOutputPowerOnDcOutput(other.getMaximumOutputPowerOnDcOutput()); + } + if (other.hasSerialNumber()) { + setSerialNumber(other.getSerialNumber()); + } + if (other.hasMacAddress()) { + setMacAddress(other.getMacAddress()); + } + if (other.hasHardwareId()) { + hardwareId_ = other.hardwareId_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.hasInternalFlashMemSize()) { + setInternalFlashMemSize(other.getInternalFlashMemSize()); + } + if (other.hasExternalFlashMemSize()) { + setExternalFlashMemSize(other.getExternalFlashMemSize()); + } + if (other.hasLastInternalTestResultCode()) { + setLastInternalTestResultCode(other.getLastInternalTestResultCode()); + } + if (other.hasStartupCounter()) { + setStartupCounter(other.getStartupCounter()); + } + if (other.hasBootLoaderVersion()) { + bootLoaderVersion_ = other.bootLoaderVersion_; + bitField0_ |= 0x00020000; + onChanged(); + } + if (other.hasFirmwareVersion()) { + firmwareVersion_ = other.firmwareVersion_; + bitField0_ |= 0x00040000; + onChanged(); + } + if (other.hasCurrentConfigurationBackUsed()) { + setCurrentConfigurationBackUsed(other.getCurrentConfigurationBackUsed()); + } + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00100000; + onChanged(); + } + if (other.hasCurrentTime()) { + currentTime_ = other.currentTime_; + bitField0_ |= 0x00200000; + onChanged(); + } + if (other.hasCurrentIp()) { + currentIp_ = other.currentIp_; + bitField0_ |= 0x00400000; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.lightType_ = org.opensmartgridplatform.oslp.Oslp.LightType.LT_NOT_SET; - this.daliConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance(); - this.relayConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance(); - this.shortTermHistoryIntervalMinutes_ = 0; - this.preferredLinkType_ = org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - this.meterType_ = org.opensmartgridplatform.oslp.Oslp.MeterType.MT_NOT_SET; - this.longTermHistoryInterval_ = 0; - this.longTermHistoryIntervalType_ = - org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.LT_INT_NOT_SET; - this.timeSyncFrequency_ = 86400; - this.deviceFixIpValue_ = com.google.protobuf.ByteString.EMPTY; - this.netMask_ = com.google.protobuf.ByteString.EMPTY; - this.gateWay_ = com.google.protobuf.ByteString.EMPTY; - this.isDhcpEnabled_ = true; - this.communicationTimeout_ = 20; - this.communicationNumberOfRetries_ = 3; - this.communicationPauseTimeBetweenConnectionTrials_ = 60; - this.ospgIpAddress_ = com.google.protobuf.ByteString.EMPTY; - this.osgpPortNumber_ = 0; - this.isTestButtonEnabled_ = true; - this.isAutomaticSummerTimingEnabled_ = true; - this.astroGateSunRiseOffset_ = 0; - this.astroGateSunSetOffset_ = 0; - this.switchingDelay_ = java.util.Collections.emptyList(); - - this.relayLinking_ = java.util.Collections.emptyList(); - this.relayRefreshing_ = true; - this.summerTimeDetails_ = "0360100"; - this.winterTimeDetails_ = "1060200"; - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + if (!hasPreferredLinktype()) { + return false; + } + if (!hasActualLinktype()) { + return false; + } + if (!hasLightType()) { + return false; + } + if (!hasEventNotificationMask()) { + return false; + } + for (int i = 0; i < getValueCount(); i++) { + if (!getValue(i).isInitialized()) { + return false; + } + } + return true; + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - if (this.hasDaliConfiguration()) { - if (!this.getDaliConfiguration().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasRelayConfiguration()) { - if (!this.getRelayConfiguration().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < this.getRelayLinkingCount(); i++) { - if (!this.getRelayLinking(i).isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - this.memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + org.opensmartgridplatform.oslp.Oslp.LightValue m = + input.readMessage( + org.opensmartgridplatform.oslp.Oslp.LightValue.parser(), + extensionRegistry); + if (valueBuilder_ == null) { + ensureValueIsMutable(); + value_.add(m); + } else { + valueBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + preferredLinktype_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + actualLinktype_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + lightType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + eventNotificationMask_ = input.readUInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + numberOfOutputs_ = input.readUInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + dcOutputVoltageMaximum_ = input.readUInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + dcOutputVoltageCurrent_ = input.readUInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: { + maximumOutputPowerOnDcOutput_ = input.readUInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: { + serialNumber_ = input.readBytes(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + macAddress_ = input.readBytes(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + hardwareId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: { + internalFlashMemSize_ = input.readUInt32(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 120: { + externalFlashMemSize_ = input.readUInt32(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 128: { + lastInternalTestResultCode_ = input.readUInt32(); + bitField0_ |= 0x00008000; + break; + } // case 128 + case 136: { + startupCounter_ = input.readUInt32(); + bitField0_ |= 0x00010000; + break; + } // case 136 + case 146: { + bootLoaderVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 146 + case 154: { + firmwareVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 154 + case 162: { + currentConfigurationBackUsed_ = input.readBytes(); + bitField0_ |= 0x00080000; + break; + } // case 162 + case 170: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00100000; + break; + } // case 170 + case 178: { + currentTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00200000; + break; + } // case 178 + case 186: { + currentIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00400000; + break; + } // case 186 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, this.lightType_.getNumber()); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, this.daliConfiguration_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, this.relayConfiguration_); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - output.writeUInt32(5, this.shortTermHistoryIntervalMinutes_); - } - if (((this.bitField0_ & 0x00000020) == 0x00000020)) { - output.writeEnum(6, this.preferredLinkType_.getNumber()); - } - if (((this.bitField0_ & 0x00000040) == 0x00000040)) { - output.writeEnum(7, this.meterType_.getNumber()); - } - if (((this.bitField0_ & 0x00000080) == 0x00000080)) { - output.writeUInt32(8, this.longTermHistoryInterval_); - } - if (((this.bitField0_ & 0x00000100) == 0x00000100)) { - output.writeEnum(9, this.longTermHistoryIntervalType_.getNumber()); - } - if (((this.bitField0_ & 0x00000200) == 0x00000200)) { - output.writeUInt32(10, this.timeSyncFrequency_); - } - if (((this.bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(11, this.deviceFixIpValue_); - } - if (((this.bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(12, this.netMask_); - } - if (((this.bitField0_ & 0x00001000) == 0x00001000)) { - output.writeBytes(13, this.gateWay_); - } - if (((this.bitField0_ & 0x00002000) == 0x00002000)) { - output.writeBool(14, this.isDhcpEnabled_); - } - if (((this.bitField0_ & 0x00004000) == 0x00004000)) { - output.writeUInt32(15, this.communicationTimeout_); - } - if (((this.bitField0_ & 0x00008000) == 0x00008000)) { - output.writeUInt32(16, this.communicationNumberOfRetries_); - } - if (((this.bitField0_ & 0x00010000) == 0x00010000)) { - output.writeUInt32(17, this.communicationPauseTimeBetweenConnectionTrials_); - } - if (((this.bitField0_ & 0x00020000) == 0x00020000)) { - output.writeBytes(18, this.ospgIpAddress_); - } - if (((this.bitField0_ & 0x00040000) == 0x00040000)) { - output.writeUInt32(19, this.osgpPortNumber_); - } - if (((this.bitField0_ & 0x00080000) == 0x00080000)) { - output.writeBool(20, this.isTestButtonEnabled_); - } - if (((this.bitField0_ & 0x00100000) == 0x00100000)) { - output.writeBool(21, this.isAutomaticSummerTimingEnabled_); - } - if (((this.bitField0_ & 0x00200000) == 0x00200000)) { - output.writeSInt32(22, this.astroGateSunRiseOffset_); - } - if (((this.bitField0_ & 0x00400000) == 0x00400000)) { - output.writeSInt32(23, this.astroGateSunSetOffset_); - } - for (int i = 0; i < this.switchingDelay_.size(); i++) { - output.writeUInt32(24, this.switchingDelay_.get(i)); - } - for (int i = 0; i < this.relayLinking_.size(); i++) { - output.writeMessage(25, this.relayLinking_.get(i)); - } - if (((this.bitField0_ & 0x00800000) == 0x00800000)) { - output.writeBool(26, this.relayRefreshing_); - } - if (((this.bitField0_ & 0x01000000) == 0x01000000)) { - output.writeBytes(27, this.getSummerTimeDetailsBytes()); - } - if (((this.bitField0_ & 0x02000000) == 0x02000000)) { - output.writeBytes(28, this.getWinterTimeDetailsBytes()); - } - this.getUnknownFields().writeTo(output); - } + private java.util.List value_ = + java.util.Collections.emptyList(); + private void ensureValueIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + value_ = new java.util.ArrayList(value_); + bitField0_ |= 0x00000002; + } + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(2, this.lightType_.getNumber()); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, this.daliConfiguration_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, this.relayConfiguration_); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size( - 5, this.shortTermHistoryIntervalMinutes_); - } - if (((this.bitField0_ & 0x00000020) == 0x00000020)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 6, this.preferredLinkType_.getNumber()); - } - if (((this.bitField0_ & 0x00000040) == 0x00000040)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(7, this.meterType_.getNumber()); - } - if (((this.bitField0_ & 0x00000080) == 0x00000080)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size( - 8, this.longTermHistoryInterval_); - } - if (((this.bitField0_ & 0x00000100) == 0x00000100)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 9, this.longTermHistoryIntervalType_.getNumber()); - } - if (((this.bitField0_ & 0x00000200) == 0x00000200)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size(10, this.timeSyncFrequency_); - } - if (((this.bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, this.deviceFixIpValue_); - } - if (((this.bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(12, this.netMask_); - } - if (((this.bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(13, this.gateWay_); - } - if (((this.bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, this.isDhcpEnabled_); - } - if (((this.bitField0_ & 0x00004000) == 0x00004000)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size(15, this.communicationTimeout_); - } - if (((this.bitField0_ & 0x00008000) == 0x00008000)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size( - 16, this.communicationNumberOfRetries_); - } - if (((this.bitField0_ & 0x00010000) == 0x00010000)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size( - 17, this.communicationPauseTimeBetweenConnectionTrials_); - } - if (((this.bitField0_ & 0x00020000) == 0x00020000)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(18, this.ospgIpAddress_); - } - if (((this.bitField0_ & 0x00040000) == 0x00040000)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(19, this.osgpPortNumber_); - } - if (((this.bitField0_ & 0x00080000) == 0x00080000)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(20, this.isTestButtonEnabled_); - } - if (((this.bitField0_ & 0x00100000) == 0x00100000)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 21, this.isAutomaticSummerTimingEnabled_); - } - if (((this.bitField0_ & 0x00200000) == 0x00200000)) { - size += - com.google.protobuf.CodedOutputStream.computeSInt32Size( - 22, this.astroGateSunRiseOffset_); - } - if (((this.bitField0_ & 0x00400000) == 0x00400000)) { - size += - com.google.protobuf.CodedOutputStream.computeSInt32Size( - 23, this.astroGateSunSetOffset_); - } - { - int dataSize = 0; - for (int i = 0; i < this.switchingDelay_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag( - this.switchingDelay_.get(i)); - } - size += dataSize; - size += 2 * this.getSwitchingDelayList().size(); - } - for (int i = 0; i < this.relayLinking_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(25, this.relayLinking_.get(i)); - } - if (((this.bitField0_ & 0x00800000) == 0x00800000)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(26, this.relayRefreshing_); - } - if (((this.bitField0_ & 0x01000000) == 0x01000000)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 27, this.getSummerTimeDetailsBytes()); - } - if (((this.bitField0_ & 0x02000000) == 0x02000000)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 28, this.getWinterTimeDetailsBytes()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.LightValue, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder> valueBuilder_; + + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public java.util.List getValueList() { + if (valueBuilder_ == null) { + return java.util.Collections.unmodifiableList(value_); + } else { + return valueBuilder_.getMessageList(); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public int getValueCount() { + if (valueBuilder_ == null) { + return value_.size(); + } else { + return valueBuilder_.getCount(); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.LightValue getValue(int index) { + if (valueBuilder_ == null) { + return value_.get(index); + } else { + return valueBuilder_.getMessage(index); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public Builder setValue( + int index, org.opensmartgridplatform.oslp.Oslp.LightValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.set(index, value); + onChanged(); + } else { + valueBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public Builder setValue( + int index, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { + if (valueBuilder_ == null) { + ensureValueIsMutable(); + value_.set(index, builderForValue.build()); + onChanged(); + } else { + valueBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public Builder addValue(org.opensmartgridplatform.oslp.Oslp.LightValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.add(value); + onChanged(); + } else { + valueBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public Builder addValue( + int index, org.opensmartgridplatform.oslp.Oslp.LightValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.add(index, value); + onChanged(); + } else { + valueBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public Builder addValue( + org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { + if (valueBuilder_ == null) { + ensureValueIsMutable(); + value_.add(builderForValue.build()); + onChanged(); + } else { + valueBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public Builder addValue( + int index, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { + if (valueBuilder_ == null) { + ensureValueIsMutable(); + value_.add(index, builderForValue.build()); + onChanged(); + } else { + valueBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public Builder addAllValue( + java.lang.Iterable values) { + if (valueBuilder_ == null) { + ensureValueIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, value_); + onChanged(); + } else { + valueBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + valueBuilder_.clear(); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public Builder removeValue(int index) { + if (valueBuilder_ == null) { + ensureValueIsMutable(); + value_.remove(index); + onChanged(); + } else { + valueBuilder_.remove(index); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder getValueBuilder( + int index) { + return internalGetValueFieldBuilder().getBuilder(index); + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValueOrBuilder( + int index) { + if (valueBuilder_ == null) { + return value_.get(index); } else { + return valueBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public java.util.List + getValueOrBuilderList() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(value_); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder addValueBuilder() { + return internalGetValueFieldBuilder().addBuilder( + org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder addValueBuilder( + int index) { + return internalGetValueFieldBuilder().addBuilder( + index, org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 2; + */ + public java.util.List + getValueBuilderList() { + return internalGetValueFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.LightValue, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder> + internalGetValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.LightValue, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder>( + value_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } - private static final long serialVersionUID = 0L; + private int preferredLinktype_ = 0; + /** + * .oslp.LinkType preferredLinktype = 3 [features = { ... } + * @return Whether the preferredLinktype field is set. + */ + @java.lang.Override public boolean hasPreferredLinktype() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .oslp.LinkType preferredLinktype = 3 [features = { ... } + * @return The enum numeric value on the wire for preferredLinktype. + */ + @java.lang.Override public int getPreferredLinktypeValue() { + return preferredLinktype_; + } + /** + * .oslp.LinkType preferredLinktype = 3 [features = { ... } + * @param value The enum numeric value on the wire for preferredLinktype to set. + * @return This builder for chaining. + */ + public Builder setPreferredLinktypeValue(int value) { + preferredLinktype_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .oslp.LinkType preferredLinktype = 3 [features = { ... } + * @return The preferredLinktype. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinktype() { + org.opensmartgridplatform.oslp.Oslp.LinkType result = org.opensmartgridplatform.oslp.Oslp.LinkType.forNumber(preferredLinktype_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LinkType.UNRECOGNIZED : result; + } + /** + * .oslp.LinkType preferredLinktype = 3 [features = { ... } + * @param value The preferredLinktype to set. + * @return This builder for chaining. + */ + public Builder setPreferredLinktype(org.opensmartgridplatform.oslp.Oslp.LinkType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000004; + preferredLinktype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.LinkType preferredLinktype = 3 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearPreferredLinktype() { + bitField0_ = (bitField0_ & ~0x00000004); + preferredLinktype_ = 0; + onChanged(); + return this; + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + private int actualLinktype_ = 0; + /** + * .oslp.LinkType actualLinktype = 4 [features = { ... } + * @return Whether the actualLinktype field is set. + */ + @java.lang.Override public boolean hasActualLinktype() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .oslp.LinkType actualLinktype = 4 [features = { ... } + * @return The enum numeric value on the wire for actualLinktype. + */ + @java.lang.Override public int getActualLinktypeValue() { + return actualLinktype_; + } + /** + * .oslp.LinkType actualLinktype = 4 [features = { ... } + * @param value The enum numeric value on the wire for actualLinktype to set. + * @return This builder for chaining. + */ + public Builder setActualLinktypeValue(int value) { + actualLinktype_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .oslp.LinkType actualLinktype = 4 [features = { ... } + * @return The actualLinktype. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LinkType getActualLinktype() { + org.opensmartgridplatform.oslp.Oslp.LinkType result = org.opensmartgridplatform.oslp.Oslp.LinkType.forNumber(actualLinktype_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LinkType.UNRECOGNIZED : result; + } + /** + * .oslp.LinkType actualLinktype = 4 [features = { ... } + * @param value The actualLinktype to set. + * @return This builder for chaining. + */ + public Builder setActualLinktype(org.opensmartgridplatform.oslp.Oslp.LinkType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000008; + actualLinktype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.LinkType actualLinktype = 4 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearActualLinktype() { + bitField0_ = (bitField0_ & ~0x00000008); + actualLinktype_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private int lightType_ = 0; + /** + * .oslp.LightType lightType = 5 [features = { ... } + * @return Whether the lightType field is set. + */ + @java.lang.Override public boolean hasLightType() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .oslp.LightType lightType = 5 [features = { ... } + * @return The enum numeric value on the wire for lightType. + */ + @java.lang.Override public int getLightTypeValue() { + return lightType_; + } + /** + * .oslp.LightType lightType = 5 [features = { ... } + * @param value The enum numeric value on the wire for lightType to set. + * @return This builder for chaining. + */ + public Builder setLightTypeValue(int value) { + lightType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .oslp.LightType lightType = 5 [features = { ... } + * @return The lightType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LightType getLightType() { + org.opensmartgridplatform.oslp.Oslp.LightType result = org.opensmartgridplatform.oslp.Oslp.LightType.forNumber(lightType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LightType.UNRECOGNIZED : result; + } + /** + * .oslp.LightType lightType = 5 [features = { ... } + * @param value The lightType to set. + * @return This builder for chaining. + */ + public Builder setLightType(org.opensmartgridplatform.oslp.Oslp.LightType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000010; + lightType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.LightType lightType = 5 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearLightType() { + bitField0_ = (bitField0_ & ~0x00000010); + lightType_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + private int eventNotificationMask_ ; + /** + *
+             * Bitmask for max 32 events, using NotificationBit for bit positions.
+             * 
+ * + * uint32 eventNotificationMask = 6 [features = { ... } + * @return Whether the eventNotificationMask field is set. + */ + @java.lang.Override + public boolean hasEventNotificationMask() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+             * Bitmask for max 32 events, using NotificationBit for bit positions.
+             * 
+ * + * uint32 eventNotificationMask = 6 [features = { ... } + * @return The eventNotificationMask. + */ + @java.lang.Override + public int getEventNotificationMask() { + return eventNotificationMask_; + } + /** + *
+             * Bitmask for max 32 events, using NotificationBit for bit positions.
+             * 
+ * + * uint32 eventNotificationMask = 6 [features = { ... } + * @param value The eventNotificationMask to set. + * @return This builder for chaining. + */ + public Builder setEventNotificationMask(int value) { + + eventNotificationMask_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+             * Bitmask for max 32 events, using NotificationBit for bit positions.
+             * 
+ * + * uint32 eventNotificationMask = 6 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearEventNotificationMask() { + bitField0_ = (bitField0_ & ~0x00000020); + eventNotificationMask_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private int numberOfOutputs_ ; + /** + *
+             * Hardware - The number of outputs of this device.
+             * 
+ * + * uint32 numberOfOutputs = 7; + * @return Whether the numberOfOutputs field is set. + */ + @java.lang.Override + public boolean hasNumberOfOutputs() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+             * Hardware - The number of outputs of this device.
+             * 
+ * + * uint32 numberOfOutputs = 7; + * @return The numberOfOutputs. + */ + @java.lang.Override + public int getNumberOfOutputs() { + return numberOfOutputs_; + } + /** + *
+             * Hardware - The number of outputs of this device.
+             * 
+ * + * uint32 numberOfOutputs = 7; + * @param value The numberOfOutputs to set. + * @return This builder for chaining. + */ + public Builder setNumberOfOutputs(int value) { + + numberOfOutputs_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+             * Hardware - The number of outputs of this device.
+             * 
+ * + * uint32 numberOfOutputs = 7; + * @return This builder for chaining. + */ + public Builder clearNumberOfOutputs() { + bitField0_ = (bitField0_ & ~0x00000040); + numberOfOutputs_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + private int dcOutputVoltageMaximum_ ; + /** + *
+             * Hardware - DC output voltage MAXimum (in mV).
+             * 
+ * + * uint32 dcOutputVoltageMaximum = 8; + * @return Whether the dcOutputVoltageMaximum field is set. + */ + @java.lang.Override + public boolean hasDcOutputVoltageMaximum() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+             * Hardware - DC output voltage MAXimum (in mV).
+             * 
+ * + * uint32 dcOutputVoltageMaximum = 8; + * @return The dcOutputVoltageMaximum. + */ + @java.lang.Override + public int getDcOutputVoltageMaximum() { + return dcOutputVoltageMaximum_; + } + /** + *
+             * Hardware - DC output voltage MAXimum (in mV).
+             * 
+ * + * uint32 dcOutputVoltageMaximum = 8; + * @param value The dcOutputVoltageMaximum to set. + * @return This builder for chaining. + */ + public Builder setDcOutputVoltageMaximum(int value) { + + dcOutputVoltageMaximum_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+             * Hardware - DC output voltage MAXimum (in mV).
+             * 
+ * + * uint32 dcOutputVoltageMaximum = 8; + * @return This builder for chaining. + */ + public Builder clearDcOutputVoltageMaximum() { + bitField0_ = (bitField0_ & ~0x00000080); + dcOutputVoltageMaximum_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private int dcOutputVoltageCurrent_ ; + /** + *
+             * Hardware - DC output current voltage (in mV).
+             * 
+ * + * uint32 dcOutputVoltageCurrent = 9; + * @return Whether the dcOutputVoltageCurrent field is set. + */ + @java.lang.Override + public boolean hasDcOutputVoltageCurrent() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+             * Hardware - DC output current voltage (in mV).
+             * 
+ * + * uint32 dcOutputVoltageCurrent = 9; + * @return The dcOutputVoltageCurrent. + */ + @java.lang.Override + public int getDcOutputVoltageCurrent() { + return dcOutputVoltageCurrent_; + } + /** + *
+             * Hardware - DC output current voltage (in mV).
+             * 
+ * + * uint32 dcOutputVoltageCurrent = 9; + * @param value The dcOutputVoltageCurrent to set. + * @return This builder for chaining. + */ + public Builder setDcOutputVoltageCurrent(int value) { + + dcOutputVoltageCurrent_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+             * Hardware - DC output current voltage (in mV).
+             * 
+ * + * uint32 dcOutputVoltageCurrent = 9; + * @return This builder for chaining. + */ + public Builder clearDcOutputVoltageCurrent() { + bitField0_ = (bitField0_ & ~0x00000100); + dcOutputVoltageCurrent_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + private int maximumOutputPowerOnDcOutput_ ; + /** + *
+             * Hardware - Maximum output power on DC output (mW).
+             * 
+ * + * uint32 maximumOutputPowerOnDcOutput = 10; + * @return Whether the maximumOutputPowerOnDcOutput field is set. + */ + @java.lang.Override + public boolean hasMaximumOutputPowerOnDcOutput() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+             * Hardware - Maximum output power on DC output (mW).
+             * 
+ * + * uint32 maximumOutputPowerOnDcOutput = 10; + * @return The maximumOutputPowerOnDcOutput. + */ + @java.lang.Override + public int getMaximumOutputPowerOnDcOutput() { + return maximumOutputPowerOnDcOutput_; + } + /** + *
+             * Hardware - Maximum output power on DC output (mW).
+             * 
+ * + * uint32 maximumOutputPowerOnDcOutput = 10; + * @param value The maximumOutputPowerOnDcOutput to set. + * @return This builder for chaining. + */ + public Builder setMaximumOutputPowerOnDcOutput(int value) { + + maximumOutputPowerOnDcOutput_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+             * Hardware - Maximum output power on DC output (mW).
+             * 
+ * + * uint32 maximumOutputPowerOnDcOutput = 10; + * @return This builder for chaining. + */ + public Builder clearMaximumOutputPowerOnDcOutput() { + bitField0_ = (bitField0_ & ~0x00000200); + maximumOutputPowerOnDcOutput_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + private com.google.protobuf.ByteString serialNumber_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_size = 18]; // Hardware - Serial number of this device.
+             * 
+ * + * bytes serialNumber = 11; + * @return Whether the serialNumber field is set. + */ + @java.lang.Override + public boolean hasSerialNumber() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+             * [(nanopb).max_size = 18]; // Hardware - Serial number of this device.
+             * 
+ * + * bytes serialNumber = 11; + * @return The serialNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSerialNumber() { + return serialNumber_; + } + /** + *
+             * [(nanopb).max_size = 18]; // Hardware - Serial number of this device.
+             * 
+ * + * bytes serialNumber = 11; + * @param value The serialNumber to set. + * @return This builder for chaining. + */ + public Builder setSerialNumber(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + serialNumber_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 18]; // Hardware - Serial number of this device.
+             * 
+ * + * bytes serialNumber = 11; + * @return This builder for chaining. + */ + public Builder clearSerialNumber() { + bitField0_ = (bitField0_ & ~0x00000400); + serialNumber_ = getDefaultInstance().getSerialNumber(); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + private com.google.protobuf.ByteString macAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_size = 6]; // Hardware - MAC-address of this device.
+             * 
+ * + * bytes macAddress = 12; + * @return Whether the macAddress field is set. + */ + @java.lang.Override + public boolean hasMacAddress() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+             * [(nanopb).max_size = 6]; // Hardware - MAC-address of this device.
+             * 
+ * + * bytes macAddress = 12; + * @return The macAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMacAddress() { + return macAddress_; + } + /** + *
+             * [(nanopb).max_size = 6]; // Hardware - MAC-address of this device.
+             * 
+ * + * bytes macAddress = 12; + * @param value The macAddress to set. + * @return This builder for chaining. + */ + public Builder setMacAddress(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + macAddress_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 6]; // Hardware - MAC-address of this device.
+             * 
+ * + * bytes macAddress = 12; + * @return This builder for chaining. + */ + public Builder clearMacAddress() { + bitField0_ = (bitField0_ & ~0x00000800); + macAddress_ = getDefaultInstance().getMacAddress(); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private java.lang.Object hardwareId_ = ""; + /** + *
+             * [(nanopb).min_size = 10, (nanopd).max_size = 25] ; // Hardware - The hardware ID of this device.
+             * 
+ * + * string hardwareId = 13; + * @return Whether the hardwareId field is set. + */ + public boolean hasHardwareId() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+             * [(nanopb).min_size = 10, (nanopd).max_size = 25] ; // Hardware - The hardware ID of this device.
+             * 
+ * + * string hardwareId = 13; + * @return The hardwareId. + */ + public java.lang.String getHardwareId() { + java.lang.Object ref = hardwareId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hardwareId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).min_size = 10, (nanopd).max_size = 25] ; // Hardware - The hardware ID of this device.
+             * 
+ * + * string hardwareId = 13; + * @return The bytes for hardwareId. + */ + public com.google.protobuf.ByteString + getHardwareIdBytes() { + java.lang.Object ref = hardwareId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hardwareId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).min_size = 10, (nanopd).max_size = 25] ; // Hardware - The hardware ID of this device.
+             * 
+ * + * string hardwareId = 13; + * @param value The hardwareId to set. + * @return This builder for chaining. + */ + public Builder setHardwareId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + hardwareId_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).min_size = 10, (nanopd).max_size = 25] ; // Hardware - The hardware ID of this device.
+             * 
+ * + * string hardwareId = 13; + * @return This builder for chaining. + */ + public Builder clearHardwareId() { + hardwareId_ = getDefaultInstance().getHardwareId(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).min_size = 10, (nanopd).max_size = 25] ; // Hardware - The hardware ID of this device.
+             * 
+ * + * string hardwareId = 13; + * @param value The bytes for hardwareId to set. + * @return This builder for chaining. + */ + public Builder setHardwareIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + hardwareId_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + private int internalFlashMemSize_ ; + /** + *
+             * Hardware - The internal flash memory size.
+             * 
+ * + * uint32 internalFlashMemSize = 14; + * @return Whether the internalFlashMemSize field is set. + */ + @java.lang.Override + public boolean hasInternalFlashMemSize() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+             * Hardware - The internal flash memory size.
+             * 
+ * + * uint32 internalFlashMemSize = 14; + * @return The internalFlashMemSize. + */ + @java.lang.Override + public int getInternalFlashMemSize() { + return internalFlashMemSize_; + } + /** + *
+             * Hardware - The internal flash memory size.
+             * 
+ * + * uint32 internalFlashMemSize = 14; + * @param value The internalFlashMemSize to set. + * @return This builder for chaining. + */ + public Builder setInternalFlashMemSize(int value) { + + internalFlashMemSize_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+             * Hardware - The internal flash memory size.
+             * 
+ * + * uint32 internalFlashMemSize = 14; + * @return This builder for chaining. + */ + public Builder clearInternalFlashMemSize() { + bitField0_ = (bitField0_ & ~0x00002000); + internalFlashMemSize_ = 0; + onChanged(); + return this; + } - public static Builder newBuilder() { - return Builder.create(); - } + private int externalFlashMemSize_ ; + /** + *
+             * Hardware - The external flash memory size.
+             * 
+ * + * uint32 externalFlashMemSize = 15; + * @return Whether the externalFlashMemSize field is set. + */ + @java.lang.Override + public boolean hasExternalFlashMemSize() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+             * Hardware - The external flash memory size.
+             * 
+ * + * uint32 externalFlashMemSize = 15; + * @return The externalFlashMemSize. + */ + @java.lang.Override + public int getExternalFlashMemSize() { + return externalFlashMemSize_; + } + /** + *
+             * Hardware - The external flash memory size.
+             * 
+ * + * uint32 externalFlashMemSize = 15; + * @param value The externalFlashMemSize to set. + * @return This builder for chaining. + */ + public Builder setExternalFlashMemSize(int value) { + + externalFlashMemSize_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+             * Hardware - The external flash memory size.
+             * 
+ * + * uint32 externalFlashMemSize = 15; + * @return This builder for chaining. + */ + public Builder clearExternalFlashMemSize() { + bitField0_ = (bitField0_ & ~0x00004000); + externalFlashMemSize_ = 0; + onChanged(); + return this; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + private int lastInternalTestResultCode_ ; + /** + *
+             * Hardware - The last internal test result code.
+             * 
+ * + * uint32 lastInternalTestResultCode = 16; + * @return Whether the lastInternalTestResultCode field is set. + */ + @java.lang.Override + public boolean hasLastInternalTestResultCode() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+             * Hardware - The last internal test result code.
+             * 
+ * + * uint32 lastInternalTestResultCode = 16; + * @return The lastInternalTestResultCode. + */ + @java.lang.Override + public int getLastInternalTestResultCode() { + return lastInternalTestResultCode_; + } + /** + *
+             * Hardware - The last internal test result code.
+             * 
+ * + * uint32 lastInternalTestResultCode = 16; + * @param value The lastInternalTestResultCode to set. + * @return This builder for chaining. + */ + public Builder setLastInternalTestResultCode(int value) { + + lastInternalTestResultCode_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+             * Hardware - The last internal test result code.
+             * 
+ * + * uint32 lastInternalTestResultCode = 16; + * @return This builder for chaining. + */ + public Builder clearLastInternalTestResultCode() { + bitField0_ = (bitField0_ & ~0x00008000); + lastInternalTestResultCode_ = 0; + onChanged(); + return this; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse prototype) { - return newBuilder().mergeFrom(prototype); - } + private int startupCounter_ ; + /** + *
+             * Hardware - The startup counter.
+             * 
+ * + * uint32 startupCounter = 17; + * @return Whether the startupCounter field is set. + */ + @java.lang.Override + public boolean hasStartupCounter() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+             * Hardware - The startup counter.
+             * 
+ * + * uint32 startupCounter = 17; + * @return The startupCounter. + */ + @java.lang.Override + public int getStartupCounter() { + return startupCounter_; + } + /** + *
+             * Hardware - The startup counter.
+             * 
+ * + * uint32 startupCounter = 17; + * @param value The startupCounter to set. + * @return This builder for chaining. + */ + public Builder setStartupCounter(int value) { + + startupCounter_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+             * Hardware - The startup counter.
+             * 
+ * + * uint32 startupCounter = 17; + * @return This builder for chaining. + */ + public Builder clearStartupCounter() { + bitField0_ = (bitField0_ & ~0x00010000); + startupCounter_ = 0; + onChanged(); + return this; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + private java.lang.Object bootLoaderVersion_ = ""; + /** + *
+             * Software - The boot loader version.
+             * 
+ * + * string bootLoaderVersion = 18; + * @return Whether the bootLoaderVersion field is set. + */ + public boolean hasBootLoaderVersion() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+             * Software - The boot loader version.
+             * 
+ * + * string bootLoaderVersion = 18; + * @return The bootLoaderVersion. + */ + public java.lang.String getBootLoaderVersion() { + java.lang.Object ref = bootLoaderVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootLoaderVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * Software - The boot loader version.
+             * 
+ * + * string bootLoaderVersion = 18; + * @return The bytes for bootLoaderVersion. + */ + public com.google.protobuf.ByteString + getBootLoaderVersionBytes() { + java.lang.Object ref = bootLoaderVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bootLoaderVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * Software - The boot loader version.
+             * 
+ * + * string bootLoaderVersion = 18; + * @param value The bootLoaderVersion to set. + * @return This builder for chaining. + */ + public Builder setBootLoaderVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + bootLoaderVersion_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+             * Software - The boot loader version.
+             * 
+ * + * string bootLoaderVersion = 18; + * @return This builder for chaining. + */ + public Builder clearBootLoaderVersion() { + bootLoaderVersion_ = getDefaultInstance().getBootLoaderVersion(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + /** + *
+             * Software - The boot loader version.
+             * 
+ * + * string bootLoaderVersion = 18; + * @param value The bytes for bootLoaderVersion to set. + * @return This builder for chaining. + */ + public Builder setBootLoaderVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + bootLoaderVersion_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + private java.lang.Object firmwareVersion_ = ""; + /** + *
+             * Software - The firmware version.
+             * 
+ * + * string firmwareVersion = 19; + * @return Whether the firmwareVersion field is set. + */ + public boolean hasFirmwareVersion() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+             * Software - The firmware version.
+             * 
+ * + * string firmwareVersion = 19; + * @return The firmwareVersion. + */ + public java.lang.String getFirmwareVersion() { + java.lang.Object ref = firmwareVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firmwareVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * Software - The firmware version.
+             * 
+ * + * string firmwareVersion = 19; + * @return The bytes for firmwareVersion. + */ + public com.google.protobuf.ByteString + getFirmwareVersionBytes() { + java.lang.Object ref = firmwareVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + firmwareVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * Software - The firmware version.
+             * 
+ * + * string firmwareVersion = 19; + * @param value The firmwareVersion to set. + * @return This builder for chaining. + */ + public Builder setFirmwareVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + firmwareVersion_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+             * Software - The firmware version.
+             * 
+ * + * string firmwareVersion = 19; + * @return This builder for chaining. + */ + public Builder clearFirmwareVersion() { + firmwareVersion_ = getDefaultInstance().getFirmwareVersion(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + *
+             * Software - The firmware version.
+             * 
+ * + * string firmwareVersion = 19; + * @param value The bytes for firmwareVersion to set. + * @return This builder for chaining. + */ + public Builder setFirmwareVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + firmwareVersion_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetConfigurationResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetConfigurationResponse_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getDaliConfigurationFieldBuilder(); - this.getRelayConfigurationFieldBuilder(); - this.getRelayLinkingFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.lightType_ = org.opensmartgridplatform.oslp.Oslp.LightType.LT_NOT_SET; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - if (this.daliConfigurationBuilder_ == null) { - this.daliConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance(); - } else { - this.daliConfigurationBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000004); - if (this.relayConfigurationBuilder_ == null) { - this.relayConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance(); - } else { - this.relayConfigurationBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.shortTermHistoryIntervalMinutes_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000010); - this.preferredLinkType_ = org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - this.bitField0_ = (this.bitField0_ & ~0x00000020); - this.meterType_ = org.opensmartgridplatform.oslp.Oslp.MeterType.MT_NOT_SET; - this.bitField0_ = (this.bitField0_ & ~0x00000040); - this.longTermHistoryInterval_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000080); - this.longTermHistoryIntervalType_ = - org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.LT_INT_NOT_SET; - this.bitField0_ = (this.bitField0_ & ~0x00000100); - this.timeSyncFrequency_ = 86400; - this.bitField0_ = (this.bitField0_ & ~0x00000200); - this.deviceFixIpValue_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000400); - this.netMask_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000800); - this.gateWay_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00001000); - this.isDhcpEnabled_ = true; - this.bitField0_ = (this.bitField0_ & ~0x00002000); - this.communicationTimeout_ = 20; - this.bitField0_ = (this.bitField0_ & ~0x00004000); - this.communicationNumberOfRetries_ = 3; - this.bitField0_ = (this.bitField0_ & ~0x00008000); - this.communicationPauseTimeBetweenConnectionTrials_ = 60; - this.bitField0_ = (this.bitField0_ & ~0x00010000); - this.ospgIpAddress_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00020000); - this.osgpPortNumber_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00040000); - this.isTestButtonEnabled_ = true; - this.bitField0_ = (this.bitField0_ & ~0x00080000); - this.isAutomaticSummerTimingEnabled_ = true; - this.bitField0_ = (this.bitField0_ & ~0x00100000); - this.astroGateSunRiseOffset_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00200000); - this.astroGateSunSetOffset_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00400000); - this.switchingDelay_ = java.util.Collections.emptyList(); - - this.bitField0_ = (this.bitField0_ & ~0x00800000); - if (this.relayLinkingBuilder_ == null) { - this.relayLinking_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x01000000); - } else { - this.relayLinkingBuilder_.clear(); - } - this.relayRefreshing_ = true; - this.bitField0_ = (this.bitField0_ & ~0x02000000); - this.summerTimeDetails_ = "0360100"; - this.bitField0_ = (this.bitField0_ & ~0x04000000); - this.winterTimeDetails_ = "1060200"; - this.bitField0_ = (this.bitField0_ & ~0x08000000); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse build() { - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse result = - new org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.lightType_ = this.lightType_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (this.daliConfigurationBuilder_ == null) { - result.daliConfiguration_ = this.daliConfiguration_; - } else { - result.daliConfiguration_ = this.daliConfigurationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - if (this.relayConfigurationBuilder_ == null) { - result.relayConfiguration_ = this.relayConfiguration_; - } else { - result.relayConfiguration_ = this.relayConfigurationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.shortTermHistoryIntervalMinutes_ = this.shortTermHistoryIntervalMinutes_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.preferredLinkType_ = this.preferredLinkType_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.meterType_ = this.meterType_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.longTermHistoryInterval_ = this.longTermHistoryInterval_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.longTermHistoryIntervalType_ = this.longTermHistoryIntervalType_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - result.timeSyncFrequency_ = this.timeSyncFrequency_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - result.deviceFixIpValue_ = this.deviceFixIpValue_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000800; - } - result.netMask_ = this.netMask_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00001000; - } - result.gateWay_ = this.gateWay_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00002000; - } - result.isDhcpEnabled_ = this.isDhcpEnabled_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00004000; - } - result.communicationTimeout_ = this.communicationTimeout_; - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { - to_bitField0_ |= 0x00008000; - } - result.communicationNumberOfRetries_ = this.communicationNumberOfRetries_; - if (((from_bitField0_ & 0x00010000) == 0x00010000)) { - to_bitField0_ |= 0x00010000; - } - result.communicationPauseTimeBetweenConnectionTrials_ = - this.communicationPauseTimeBetweenConnectionTrials_; - if (((from_bitField0_ & 0x00020000) == 0x00020000)) { - to_bitField0_ |= 0x00020000; - } - result.ospgIpAddress_ = this.ospgIpAddress_; - if (((from_bitField0_ & 0x00040000) == 0x00040000)) { - to_bitField0_ |= 0x00040000; - } - result.osgpPortNumber_ = this.osgpPortNumber_; - if (((from_bitField0_ & 0x00080000) == 0x00080000)) { - to_bitField0_ |= 0x00080000; - } - result.isTestButtonEnabled_ = this.isTestButtonEnabled_; - if (((from_bitField0_ & 0x00100000) == 0x00100000)) { - to_bitField0_ |= 0x00100000; - } - result.isAutomaticSummerTimingEnabled_ = this.isAutomaticSummerTimingEnabled_; - if (((from_bitField0_ & 0x00200000) == 0x00200000)) { - to_bitField0_ |= 0x00200000; - } - result.astroGateSunRiseOffset_ = this.astroGateSunRiseOffset_; - if (((from_bitField0_ & 0x00400000) == 0x00400000)) { - to_bitField0_ |= 0x00400000; - } - result.astroGateSunSetOffset_ = this.astroGateSunSetOffset_; - if (((this.bitField0_ & 0x00800000) == 0x00800000)) { - this.switchingDelay_ = java.util.Collections.unmodifiableList(this.switchingDelay_); - this.bitField0_ = (this.bitField0_ & ~0x00800000); - } - result.switchingDelay_ = this.switchingDelay_; - if (this.relayLinkingBuilder_ == null) { - if (((this.bitField0_ & 0x01000000) == 0x01000000)) { - this.relayLinking_ = java.util.Collections.unmodifiableList(this.relayLinking_); - this.bitField0_ = (this.bitField0_ & ~0x01000000); - } - result.relayLinking_ = this.relayLinking_; - } else { - result.relayLinking_ = this.relayLinkingBuilder_.build(); - } - if (((from_bitField0_ & 0x02000000) == 0x02000000)) { - to_bitField0_ |= 0x00800000; - } - result.relayRefreshing_ = this.relayRefreshing_; - if (((from_bitField0_ & 0x04000000) == 0x04000000)) { - to_bitField0_ |= 0x01000000; - } - result.summerTimeDetails_ = this.summerTimeDetails_; - if (((from_bitField0_ & 0x08000000) == 0x08000000)) { - to_bitField0_ |= 0x02000000; - } - result.winterTimeDetails_ = this.winterTimeDetails_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } + private com.google.protobuf.ByteString currentConfigurationBackUsed_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_size = 6]; // Software - The current configuration bank in use.
+             * 
+ * + * bytes currentConfigurationBackUsed = 20; + * @return Whether the currentConfigurationBackUsed field is set. + */ + @java.lang.Override + public boolean hasCurrentConfigurationBackUsed() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+             * [(nanopb).max_size = 6]; // Software - The current configuration bank in use.
+             * 
+ * + * bytes currentConfigurationBackUsed = 20; + * @return The currentConfigurationBackUsed. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrentConfigurationBackUsed() { + return currentConfigurationBackUsed_; + } + /** + *
+             * [(nanopb).max_size = 6]; // Software - The current configuration bank in use.
+             * 
+ * + * bytes currentConfigurationBackUsed = 20; + * @param value The currentConfigurationBackUsed to set. + * @return This builder for chaining. + */ + public Builder setCurrentConfigurationBackUsed(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + currentConfigurationBackUsed_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 6]; // Software - The current configuration bank in use.
+             * 
+ * + * bytes currentConfigurationBackUsed = 20; + * @return This builder for chaining. + */ + public Builder clearCurrentConfigurationBackUsed() { + bitField0_ = (bitField0_ & ~0x00080000); + currentConfigurationBackUsed_ = getDefaultInstance().getCurrentConfigurationBackUsed(); + onChanged(); + return this; + } - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } + private java.lang.Object name_ = ""; + /** + *
+             * Device - The name of this device.
+             * 
+ * + * string name = 21; + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+             * Device - The name of this device.
+             * 
+ * + * string name = 21; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * Device - The name of this device.
+             * 
+ * + * string name = 21; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * Device - The name of this device.
+             * 
+ * + * string name = 21; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+             * Device - The name of this device.
+             * 
+ * + * string name = 21; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + return this; + } + /** + *
+             * Device - The name of this device.
+             * 
+ * + * string name = 21; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - if (other.hasLightType()) { - this.setLightType(other.getLightType()); - } - if (other.hasDaliConfiguration()) { - this.mergeDaliConfiguration(other.getDaliConfiguration()); - } - if (other.hasRelayConfiguration()) { - this.mergeRelayConfiguration(other.getRelayConfiguration()); - } - if (other.hasShortTermHistoryIntervalMinutes()) { - this.setShortTermHistoryIntervalMinutes(other.getShortTermHistoryIntervalMinutes()); - } - if (other.hasPreferredLinkType()) { - this.setPreferredLinkType(other.getPreferredLinkType()); - } - if (other.hasMeterType()) { - this.setMeterType(other.getMeterType()); - } - if (other.hasLongTermHistoryInterval()) { - this.setLongTermHistoryInterval(other.getLongTermHistoryInterval()); - } - if (other.hasLongTermHistoryIntervalType()) { - this.setLongTermHistoryIntervalType(other.getLongTermHistoryIntervalType()); - } - if (other.hasTimeSyncFrequency()) { - this.setTimeSyncFrequency(other.getTimeSyncFrequency()); - } - if (other.hasDeviceFixIpValue()) { - this.setDeviceFixIpValue(other.getDeviceFixIpValue()); - } - if (other.hasNetMask()) { - this.setNetMask(other.getNetMask()); - } - if (other.hasGateWay()) { - this.setGateWay(other.getGateWay()); - } - if (other.hasIsDhcpEnabled()) { - this.setIsDhcpEnabled(other.getIsDhcpEnabled()); - } - if (other.hasCommunicationTimeout()) { - this.setCommunicationTimeout(other.getCommunicationTimeout()); - } - if (other.hasCommunicationNumberOfRetries()) { - this.setCommunicationNumberOfRetries(other.getCommunicationNumberOfRetries()); - } - if (other.hasCommunicationPauseTimeBetweenConnectionTrials()) { - this.setCommunicationPauseTimeBetweenConnectionTrials( - other.getCommunicationPauseTimeBetweenConnectionTrials()); - } - if (other.hasOspgIpAddress()) { - this.setOspgIpAddress(other.getOspgIpAddress()); - } - if (other.hasOsgpPortNumber()) { - this.setOsgpPortNumber(other.getOsgpPortNumber()); - } - if (other.hasIsTestButtonEnabled()) { - this.setIsTestButtonEnabled(other.getIsTestButtonEnabled()); - } - if (other.hasIsAutomaticSummerTimingEnabled()) { - this.setIsAutomaticSummerTimingEnabled(other.getIsAutomaticSummerTimingEnabled()); - } - if (other.hasAstroGateSunRiseOffset()) { - this.setAstroGateSunRiseOffset(other.getAstroGateSunRiseOffset()); - } - if (other.hasAstroGateSunSetOffset()) { - this.setAstroGateSunSetOffset(other.getAstroGateSunSetOffset()); + private java.lang.Object currentTime_ = ""; + /** + *
+             * Device - Not UTC, the time used in timing operations (adjusted "offset" + summer timing). YYYYMMDDhhmmss format.
+             * 
+ * + * string currentTime = 22; + * @return Whether the currentTime field is set. + */ + public boolean hasCurrentTime() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+             * Device - Not UTC, the time used in timing operations (adjusted "offset" + summer timing). YYYYMMDDhhmmss format.
+             * 
+ * + * string currentTime = 22; + * @return The currentTime. + */ + public java.lang.String getCurrentTime() { + java.lang.Object ref = currentTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * Device - Not UTC, the time used in timing operations (adjusted "offset" + summer timing). YYYYMMDDhhmmss format.
+             * 
+ * + * string currentTime = 22; + * @return The bytes for currentTime. + */ + public com.google.protobuf.ByteString + getCurrentTimeBytes() { + java.lang.Object ref = currentTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * Device - Not UTC, the time used in timing operations (adjusted "offset" + summer timing). YYYYMMDDhhmmss format.
+             * 
+ * + * string currentTime = 22; + * @param value The currentTime to set. + * @return This builder for chaining. + */ + public Builder setCurrentTime( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + currentTime_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + *
+             * Device - Not UTC, the time used in timing operations (adjusted "offset" + summer timing). YYYYMMDDhhmmss format.
+             * 
+ * + * string currentTime = 22; + * @return This builder for chaining. + */ + public Builder clearCurrentTime() { + currentTime_ = getDefaultInstance().getCurrentTime(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + return this; + } + /** + *
+             * Device - Not UTC, the time used in timing operations (adjusted "offset" + summer timing). YYYYMMDDhhmmss format.
+             * 
+ * + * string currentTime = 22; + * @param value The bytes for currentTime to set. + * @return This builder for chaining. + */ + public Builder setCurrentTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + currentTime_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + private java.lang.Object currentIp_ = ""; + /** + *
+             * Device - The current IP address of this device.
+             * 
+ * + * string currentIp = 23; + * @return Whether the currentIp field is set. + */ + public boolean hasCurrentIp() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + *
+             * Device - The current IP address of this device.
+             * 
+ * + * string currentIp = 23; + * @return The currentIp. + */ + public java.lang.String getCurrentIp() { + java.lang.Object ref = currentIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * Device - The current IP address of this device.
+             * 
+ * + * string currentIp = 23; + * @return The bytes for currentIp. + */ + public com.google.protobuf.ByteString + getCurrentIpBytes() { + java.lang.Object ref = currentIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * Device - The current IP address of this device.
+             * 
+ * + * string currentIp = 23; + * @param value The currentIp to set. + * @return This builder for chaining. + */ + public Builder setCurrentIp( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + currentIp_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+             * Device - The current IP address of this device.
+             * 
+ * + * string currentIp = 23; + * @return This builder for chaining. + */ + public Builder clearCurrentIp() { + currentIp_ = getDefaultInstance().getCurrentIp(); + bitField0_ = (bitField0_ & ~0x00400000); + onChanged(); + return this; + } + /** + *
+             * Device - The current IP address of this device.
+             * 
+ * + * string currentIp = 23; + * @param value The bytes for currentIp to set. + * @return This builder for chaining. + */ + public Builder setCurrentIpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + currentIp_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:oslp.GetStatusResponse) } - if (!other.switchingDelay_.isEmpty()) { - if (this.switchingDelay_.isEmpty()) { - this.switchingDelay_ = other.switchingDelay_; - this.bitField0_ = (this.bitField0_ & ~0x00800000); - } else { - this.ensureSwitchingDelayIsMutable(); - this.switchingDelay_.addAll(other.switchingDelay_); - } - this.onChanged(); + + // @@protoc_insertion_point(class_scope:oslp.GetStatusResponse) + private static final org.opensmartgridplatform.oslp.Oslp.GetStatusResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.GetStatusResponse(); } - if (this.relayLinkingBuilder_ == null) { - if (!other.relayLinking_.isEmpty()) { - if (this.relayLinking_.isEmpty()) { - this.relayLinking_ = other.relayLinking_; - this.bitField0_ = (this.bitField0_ & ~0x01000000); - } else { - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.addAll(other.relayLinking_); - } - this.onChanged(); - } - } else { - if (!other.relayLinking_.isEmpty()) { - if (this.relayLinkingBuilder_.isEmpty()) { - this.relayLinkingBuilder_.dispose(); - this.relayLinkingBuilder_ = null; - this.relayLinking_ = other.relayLinking_; - this.bitField0_ = (this.bitField0_ & ~0x01000000); - this.relayLinkingBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? this.getRelayLinkingFieldBuilder() - : null; - } else { - this.relayLinkingBuilder_.addAllMessages(other.relayLinking_); - } - } - } - if (other.hasRelayRefreshing()) { - this.setRelayRefreshing(other.getRelayRefreshing()); - } - if (other.hasSummerTimeDetails()) { - this.setSummerTimeDetails(other.getSummerTimeDetails()); - } - if (other.hasWinterTimeDetails()) { - this.setWinterTimeDetails(other.getWinterTimeDetails()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - if (this.hasDaliConfiguration()) { - if (!this.getDaliConfiguration().isInitialized()) { - - return false; - } - } - if (this.hasRelayConfiguration()) { - if (!this.getRelayConfiguration().isInitialized()) { - - return false; - } - } - for (int i = 0; i < this.getRelayLinkingCount(); i++) { - if (!this.getRelayLinking(i).isInitialized()) { - - return false; - } - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - case 16: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.LightType value = - org.opensmartgridplatform.oslp.Oslp.LightType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - this.bitField0_ |= 0x00000002; - this.lightType_ = value; - } - break; - } - case 26: - { - final org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.newBuilder(); - if (this.hasDaliConfiguration()) { - subBuilder.mergeFrom(this.getDaliConfiguration()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setDaliConfiguration(subBuilder.buildPartial()); - break; - } - case 34: - { - final org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.newBuilder(); - if (this.hasRelayConfiguration()) { - subBuilder.mergeFrom(this.getRelayConfiguration()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setRelayConfiguration(subBuilder.buildPartial()); - break; - } - case 40: - { - this.bitField0_ |= 0x00000010; - this.shortTermHistoryIntervalMinutes_ = input.readUInt32(); - break; - } - case 48: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.LinkType value = - org.opensmartgridplatform.oslp.Oslp.LinkType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(6, rawValue); - } else { - this.bitField0_ |= 0x00000020; - this.preferredLinkType_ = value; - } - break; - } - case 56: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.MeterType value = - org.opensmartgridplatform.oslp.Oslp.MeterType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(7, rawValue); - } else { - this.bitField0_ |= 0x00000040; - this.meterType_ = value; - } - break; - } - case 64: - { - this.bitField0_ |= 0x00000080; - this.longTermHistoryInterval_ = input.readUInt32(); - break; - } - case 72: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType value = - org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(9, rawValue); - } else { - this.bitField0_ |= 0x00000100; - this.longTermHistoryIntervalType_ = value; - } - break; - } - case 80: - { - this.bitField0_ |= 0x00000200; - this.timeSyncFrequency_ = input.readUInt32(); - break; - } - case 90: - { - this.bitField0_ |= 0x00000400; - this.deviceFixIpValue_ = input.readBytes(); - break; - } - case 98: - { - this.bitField0_ |= 0x00000800; - this.netMask_ = input.readBytes(); - break; - } - case 106: - { - this.bitField0_ |= 0x00001000; - this.gateWay_ = input.readBytes(); - break; - } - case 112: - { - this.bitField0_ |= 0x00002000; - this.isDhcpEnabled_ = input.readBool(); - break; - } - case 120: - { - this.bitField0_ |= 0x00004000; - this.communicationTimeout_ = input.readUInt32(); - break; - } - case 128: - { - this.bitField0_ |= 0x00008000; - this.communicationNumberOfRetries_ = input.readUInt32(); - break; - } - case 136: - { - this.bitField0_ |= 0x00010000; - this.communicationPauseTimeBetweenConnectionTrials_ = input.readUInt32(); - break; - } - case 146: - { - this.bitField0_ |= 0x00020000; - this.ospgIpAddress_ = input.readBytes(); - break; - } - case 152: - { - this.bitField0_ |= 0x00040000; - this.osgpPortNumber_ = input.readUInt32(); - break; - } - case 160: - { - this.bitField0_ |= 0x00080000; - this.isTestButtonEnabled_ = input.readBool(); - break; - } - case 168: - { - this.bitField0_ |= 0x00100000; - this.isAutomaticSummerTimingEnabled_ = input.readBool(); - break; - } - case 176: - { - this.bitField0_ |= 0x00200000; - this.astroGateSunRiseOffset_ = input.readSInt32(); - break; - } - case 184: - { - this.bitField0_ |= 0x00400000; - this.astroGateSunSetOffset_ = input.readSInt32(); - break; - } - case 192: - { - this.ensureSwitchingDelayIsMutable(); - this.switchingDelay_.add(input.readUInt32()); - break; - } - case 194: - { - final int length = input.readRawVarint32(); - final int limit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - this.addSwitchingDelay(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 202: - { - final org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.RelayMatrix.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - this.addRelayLinking(subBuilder.buildPartial()); - break; - } - case 208: - { - this.bitField0_ |= 0x02000000; - this.relayRefreshing_ = input.readBool(); - break; - } - case 218: - { - this.bitField0_ |= 0x04000000; - this.summerTimeDetails_ = input.readBytes(); - break; - } - case 226: - { - this.bitField0_ |= 0x08000000; - this.winterTimeDetails_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // optional .oslp.LightType lightType = 2; - private org.opensmartgridplatform.oslp.Oslp.LightType lightType_ = - org.opensmartgridplatform.oslp.Oslp.LightType.LT_NOT_SET; - - @Override - public boolean hasLightType() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightType getLightType() { - return this.lightType_; - } - - public Builder setLightType(final org.opensmartgridplatform.oslp.Oslp.LightType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000002; - this.lightType_ = value; - this.onChanged(); - return this; - } - - public Builder clearLightType() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.lightType_ = org.opensmartgridplatform.oslp.Oslp.LightType.LT_NOT_SET; - this.onChanged(); - return this; - } - - // optional .oslp.DaliConfiguration daliConfiguration = 3; - private org.opensmartgridplatform.oslp.Oslp.DaliConfiguration daliConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration, - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder, - org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder> - daliConfigurationBuilder_; - - @Override - public boolean hasDaliConfiguration() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDaliConfiguration() { - if (this.daliConfigurationBuilder_ == null) { - return this.daliConfiguration_; - } else { - return this.daliConfigurationBuilder_.getMessage(); - } - } - - public Builder setDaliConfiguration( - final org.opensmartgridplatform.oslp.Oslp.DaliConfiguration value) { - if (this.daliConfigurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.daliConfiguration_ = value; - this.onChanged(); - } else { - this.daliConfigurationBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000004; - return this; - } - - public Builder setDaliConfiguration( - final org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder builderForValue) { - if (this.daliConfigurationBuilder_ == null) { - this.daliConfiguration_ = builderForValue.build(); - this.onChanged(); - } else { - this.daliConfigurationBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000004; - return this; - } - - public Builder mergeDaliConfiguration( - final org.opensmartgridplatform.oslp.Oslp.DaliConfiguration value) { - if (this.daliConfigurationBuilder_ == null) { - if (((this.bitField0_ & 0x00000004) == 0x00000004) - && this.daliConfiguration_ - != org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance()) { - this.daliConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.newBuilder( - this.daliConfiguration_) - .mergeFrom(value) - .buildPartial(); - } else { - this.daliConfiguration_ = value; - } - this.onChanged(); - } else { - this.daliConfigurationBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000004; - return this; - } - - public Builder clearDaliConfiguration() { - if (this.daliConfigurationBuilder_ == null) { - this.daliConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance(); - this.onChanged(); - } else { - this.daliConfigurationBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000004); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder - getDaliConfigurationBuilder() { - this.bitField0_ |= 0x00000004; - this.onChanged(); - return this.getDaliConfigurationFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder - getDaliConfigurationOrBuilder() { - if (this.daliConfigurationBuilder_ != null) { - return this.daliConfigurationBuilder_.getMessageOrBuilder(); - } else { - return this.daliConfiguration_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration, - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder, - org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder> - getDaliConfigurationFieldBuilder() { - if (this.daliConfigurationBuilder_ == null) { - this.daliConfigurationBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration, - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder, - org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder>( - this.daliConfiguration_, this.getParentForChildren(), this.isClean()); - this.daliConfiguration_ = null; - } - return this.daliConfigurationBuilder_; - } - - // optional .oslp.RelayConfiguration relayConfiguration = 4; - private org.opensmartgridplatform.oslp.Oslp.RelayConfiguration relayConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration, - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder, - org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder> - relayConfigurationBuilder_; - - @Override - public boolean hasRelayConfiguration() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getRelayConfiguration() { - if (this.relayConfigurationBuilder_ == null) { - return this.relayConfiguration_; - } else { - return this.relayConfigurationBuilder_.getMessage(); - } - } - - public Builder setRelayConfiguration( - final org.opensmartgridplatform.oslp.Oslp.RelayConfiguration value) { - if (this.relayConfigurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.relayConfiguration_ = value; - this.onChanged(); - } else { - this.relayConfigurationBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000008; - return this; - } - - public Builder setRelayConfiguration( - final org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder builderForValue) { - if (this.relayConfigurationBuilder_ == null) { - this.relayConfiguration_ = builderForValue.build(); - this.onChanged(); - } else { - this.relayConfigurationBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000008; - return this; - } - - public Builder mergeRelayConfiguration( - final org.opensmartgridplatform.oslp.Oslp.RelayConfiguration value) { - if (this.relayConfigurationBuilder_ == null) { - if (((this.bitField0_ & 0x00000008) == 0x00000008) - && this.relayConfiguration_ - != org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance()) { - this.relayConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.newBuilder( - this.relayConfiguration_) - .mergeFrom(value) - .buildPartial(); - } else { - this.relayConfiguration_ = value; - } - this.onChanged(); - } else { - this.relayConfigurationBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000008; - return this; - } - - public Builder clearRelayConfiguration() { - if (this.relayConfigurationBuilder_ == null) { - this.relayConfiguration_ = - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance(); - this.onChanged(); - } else { - this.relayConfigurationBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000008); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder - getRelayConfigurationBuilder() { - this.bitField0_ |= 0x00000008; - this.onChanged(); - return this.getRelayConfigurationFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder - getRelayConfigurationOrBuilder() { - if (this.relayConfigurationBuilder_ != null) { - return this.relayConfigurationBuilder_.getMessageOrBuilder(); - } else { - return this.relayConfiguration_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration, - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder, - org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder> - getRelayConfigurationFieldBuilder() { - if (this.relayConfigurationBuilder_ == null) { - this.relayConfigurationBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration, - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder, - org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder>( - this.relayConfiguration_, this.getParentForChildren(), this.isClean()); - this.relayConfiguration_ = null; - } - return this.relayConfigurationBuilder_; - } - - // optional uint32 shortTermHistoryIntervalMinutes = 5; - private int shortTermHistoryIntervalMinutes_; - - @Override - public boolean hasShortTermHistoryIntervalMinutes() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } - - @Override - public int getShortTermHistoryIntervalMinutes() { - return this.shortTermHistoryIntervalMinutes_; - } - - public Builder setShortTermHistoryIntervalMinutes(final int value) { - this.bitField0_ |= 0x00000010; - this.shortTermHistoryIntervalMinutes_ = value; - this.onChanged(); - return this; - } - - public Builder clearShortTermHistoryIntervalMinutes() { - this.bitField0_ = (this.bitField0_ & ~0x00000010); - this.shortTermHistoryIntervalMinutes_ = 0; - this.onChanged(); - return this; - } - - // optional .oslp.LinkType preferredLinkType = 6; - private org.opensmartgridplatform.oslp.Oslp.LinkType preferredLinkType_ = - org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - - @Override - public boolean hasPreferredLinkType() { - return ((this.bitField0_ & 0x00000020) == 0x00000020); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinkType() { - return this.preferredLinkType_; - } - - public Builder setPreferredLinkType( - final org.opensmartgridplatform.oslp.Oslp.LinkType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000020; - this.preferredLinkType_ = value; - this.onChanged(); - return this; - } - - public Builder clearPreferredLinkType() { - this.bitField0_ = (this.bitField0_ & ~0x00000020); - this.preferredLinkType_ = org.opensmartgridplatform.oslp.Oslp.LinkType.LINK_NOT_SET; - this.onChanged(); - return this; - } - - // optional .oslp.MeterType meterType = 7; - private org.opensmartgridplatform.oslp.Oslp.MeterType meterType_ = - org.opensmartgridplatform.oslp.Oslp.MeterType.MT_NOT_SET; - - @Override - public boolean hasMeterType() { - return ((this.bitField0_ & 0x00000040) == 0x00000040); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType() { - return this.meterType_; - } - - public Builder setMeterType(final org.opensmartgridplatform.oslp.Oslp.MeterType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000040; - this.meterType_ = value; - this.onChanged(); - return this; - } - - public Builder clearMeterType() { - this.bitField0_ = (this.bitField0_ & ~0x00000040); - this.meterType_ = org.opensmartgridplatform.oslp.Oslp.MeterType.MT_NOT_SET; - this.onChanged(); - return this; - } - - // optional uint32 longTermHistoryInterval = 8; - private int longTermHistoryInterval_; - - @Override - public boolean hasLongTermHistoryInterval() { - return ((this.bitField0_ & 0x00000080) == 0x00000080); - } - - @Override - public int getLongTermHistoryInterval() { - return this.longTermHistoryInterval_; - } - - public Builder setLongTermHistoryInterval(final int value) { - this.bitField0_ |= 0x00000080; - this.longTermHistoryInterval_ = value; - this.onChanged(); - return this; - } - - public Builder clearLongTermHistoryInterval() { - this.bitField0_ = (this.bitField0_ & ~0x00000080); - this.longTermHistoryInterval_ = 0; - this.onChanged(); - return this; - } - - // optional .oslp.LongTermIntervalType longTermHistoryIntervalType = 9; - private org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType - longTermHistoryIntervalType_ = - org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.LT_INT_NOT_SET; - - @Override - public boolean hasLongTermHistoryIntervalType() { - return ((this.bitField0_ & 0x00000100) == 0x00000100); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType - getLongTermHistoryIntervalType() { - return this.longTermHistoryIntervalType_; - } - - public Builder setLongTermHistoryIntervalType( - final org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000100; - this.longTermHistoryIntervalType_ = value; - this.onChanged(); - return this; - } - - public Builder clearLongTermHistoryIntervalType() { - this.bitField0_ = (this.bitField0_ & ~0x00000100); - this.longTermHistoryIntervalType_ = - org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.LT_INT_NOT_SET; - this.onChanged(); - return this; - } - - // optional uint32 timeSyncFrequency = 10 [default = 86400]; - private int timeSyncFrequency_ = 86400; - - @Override - public boolean hasTimeSyncFrequency() { - return ((this.bitField0_ & 0x00000200) == 0x00000200); - } - - @Override - public int getTimeSyncFrequency() { - return this.timeSyncFrequency_; - } - - public Builder setTimeSyncFrequency(final int value) { - this.bitField0_ |= 0x00000200; - this.timeSyncFrequency_ = value; - this.onChanged(); - return this; - } - - public Builder clearTimeSyncFrequency() { - this.bitField0_ = (this.bitField0_ & ~0x00000200); - this.timeSyncFrequency_ = 86400; - this.onChanged(); - return this; - } - - // optional bytes deviceFixIpValue = 11; - private com.google.protobuf.ByteString deviceFixIpValue_ = - com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasDeviceFixIpValue() { - return ((this.bitField0_ & 0x00000400) == 0x00000400); - } - - @Override - public com.google.protobuf.ByteString getDeviceFixIpValue() { - return this.deviceFixIpValue_; - } - - public Builder setDeviceFixIpValue(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000400; - this.deviceFixIpValue_ = value; - this.onChanged(); - return this; - } - - public Builder clearDeviceFixIpValue() { - this.bitField0_ = (this.bitField0_ & ~0x00000400); - this.deviceFixIpValue_ = getDefaultInstance().getDeviceFixIpValue(); - this.onChanged(); - return this; - } - - // optional bytes netMask = 12; - private com.google.protobuf.ByteString netMask_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasNetMask() { - return ((this.bitField0_ & 0x00000800) == 0x00000800); - } - - @Override - public com.google.protobuf.ByteString getNetMask() { - return this.netMask_; - } - - public Builder setNetMask(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000800; - this.netMask_ = value; - this.onChanged(); - return this; - } - - public Builder clearNetMask() { - this.bitField0_ = (this.bitField0_ & ~0x00000800); - this.netMask_ = getDefaultInstance().getNetMask(); - this.onChanged(); - return this; - } - - // optional bytes gateWay = 13; - private com.google.protobuf.ByteString gateWay_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasGateWay() { - return ((this.bitField0_ & 0x00001000) == 0x00001000); - } - - @Override - public com.google.protobuf.ByteString getGateWay() { - return this.gateWay_; - } - - public Builder setGateWay(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00001000; - this.gateWay_ = value; - this.onChanged(); - return this; - } - - public Builder clearGateWay() { - this.bitField0_ = (this.bitField0_ & ~0x00001000); - this.gateWay_ = getDefaultInstance().getGateWay(); - this.onChanged(); - return this; - } - - // optional bool isDhcpEnabled = 14 [default = true]; - private boolean isDhcpEnabled_ = true; - - @Override - public boolean hasIsDhcpEnabled() { - return ((this.bitField0_ & 0x00002000) == 0x00002000); - } - - @Override - public boolean getIsDhcpEnabled() { - return this.isDhcpEnabled_; - } - - public Builder setIsDhcpEnabled(final boolean value) { - this.bitField0_ |= 0x00002000; - this.isDhcpEnabled_ = value; - this.onChanged(); - return this; - } - - public Builder clearIsDhcpEnabled() { - this.bitField0_ = (this.bitField0_ & ~0x00002000); - this.isDhcpEnabled_ = true; - this.onChanged(); - return this; - } - - // optional uint32 communicationTimeout = 15 [default = 20]; - private int communicationTimeout_ = 20; - - @Override - public boolean hasCommunicationTimeout() { - return ((this.bitField0_ & 0x00004000) == 0x00004000); - } - - @Override - public int getCommunicationTimeout() { - return this.communicationTimeout_; - } - - public Builder setCommunicationTimeout(final int value) { - this.bitField0_ |= 0x00004000; - this.communicationTimeout_ = value; - this.onChanged(); - return this; - } - - public Builder clearCommunicationTimeout() { - this.bitField0_ = (this.bitField0_ & ~0x00004000); - this.communicationTimeout_ = 20; - this.onChanged(); - return this; - } - - // optional uint32 communicationNumberOfRetries = 16 [default = 3]; - private int communicationNumberOfRetries_ = 3; - - @Override - public boolean hasCommunicationNumberOfRetries() { - return ((this.bitField0_ & 0x00008000) == 0x00008000); - } - - @Override - public int getCommunicationNumberOfRetries() { - return this.communicationNumberOfRetries_; - } - - public Builder setCommunicationNumberOfRetries(final int value) { - this.bitField0_ |= 0x00008000; - this.communicationNumberOfRetries_ = value; - this.onChanged(); - return this; - } - - public Builder clearCommunicationNumberOfRetries() { - this.bitField0_ = (this.bitField0_ & ~0x00008000); - this.communicationNumberOfRetries_ = 3; - this.onChanged(); - return this; - } - - // optional uint32 communicationPauseTimeBetweenConnectionTrials = 17 [default = 60]; - private int communicationPauseTimeBetweenConnectionTrials_ = 60; - - @Override - public boolean hasCommunicationPauseTimeBetweenConnectionTrials() { - return ((this.bitField0_ & 0x00010000) == 0x00010000); - } - - @Override - public int getCommunicationPauseTimeBetweenConnectionTrials() { - return this.communicationPauseTimeBetweenConnectionTrials_; - } - - public Builder setCommunicationPauseTimeBetweenConnectionTrials(final int value) { - this.bitField0_ |= 0x00010000; - this.communicationPauseTimeBetweenConnectionTrials_ = value; - this.onChanged(); - return this; - } - - public Builder clearCommunicationPauseTimeBetweenConnectionTrials() { - this.bitField0_ = (this.bitField0_ & ~0x00010000); - this.communicationPauseTimeBetweenConnectionTrials_ = 60; - this.onChanged(); - return this; - } - - // optional bytes ospgIpAddress = 18; - private com.google.protobuf.ByteString ospgIpAddress_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasOspgIpAddress() { - return ((this.bitField0_ & 0x00020000) == 0x00020000); - } - - @Override - public com.google.protobuf.ByteString getOspgIpAddress() { - return this.ospgIpAddress_; - } - - public Builder setOspgIpAddress(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00020000; - this.ospgIpAddress_ = value; - this.onChanged(); - return this; - } - - public Builder clearOspgIpAddress() { - this.bitField0_ = (this.bitField0_ & ~0x00020000); - this.ospgIpAddress_ = getDefaultInstance().getOspgIpAddress(); - this.onChanged(); - return this; - } - - // optional uint32 osgpPortNumber = 19; - private int osgpPortNumber_; - - @Override - public boolean hasOsgpPortNumber() { - return ((this.bitField0_ & 0x00040000) == 0x00040000); - } - - @Override - public int getOsgpPortNumber() { - return this.osgpPortNumber_; - } - - public Builder setOsgpPortNumber(final int value) { - this.bitField0_ |= 0x00040000; - this.osgpPortNumber_ = value; - this.onChanged(); - return this; - } - - public Builder clearOsgpPortNumber() { - this.bitField0_ = (this.bitField0_ & ~0x00040000); - this.osgpPortNumber_ = 0; - this.onChanged(); - return this; - } - - // optional bool isTestButtonEnabled = 20 [default = true]; - private boolean isTestButtonEnabled_ = true; - - @Override - public boolean hasIsTestButtonEnabled() { - return ((this.bitField0_ & 0x00080000) == 0x00080000); - } - - @Override - public boolean getIsTestButtonEnabled() { - return this.isTestButtonEnabled_; - } - - public Builder setIsTestButtonEnabled(final boolean value) { - this.bitField0_ |= 0x00080000; - this.isTestButtonEnabled_ = value; - this.onChanged(); - return this; - } - - public Builder clearIsTestButtonEnabled() { - this.bitField0_ = (this.bitField0_ & ~0x00080000); - this.isTestButtonEnabled_ = true; - this.onChanged(); - return this; - } - - // optional bool isAutomaticSummerTimingEnabled = 21 [default = true]; - private boolean isAutomaticSummerTimingEnabled_ = true; - - @Override - public boolean hasIsAutomaticSummerTimingEnabled() { - return ((this.bitField0_ & 0x00100000) == 0x00100000); - } - - @Override - public boolean getIsAutomaticSummerTimingEnabled() { - return this.isAutomaticSummerTimingEnabled_; - } - - public Builder setIsAutomaticSummerTimingEnabled(final boolean value) { - this.bitField0_ |= 0x00100000; - this.isAutomaticSummerTimingEnabled_ = value; - this.onChanged(); - return this; - } - - public Builder clearIsAutomaticSummerTimingEnabled() { - this.bitField0_ = (this.bitField0_ & ~0x00100000); - this.isAutomaticSummerTimingEnabled_ = true; - this.onChanged(); - return this; - } - - // optional sint32 astroGateSunRiseOffset = 22 [default = 0]; - private int astroGateSunRiseOffset_; - - @Override - public boolean hasAstroGateSunRiseOffset() { - return ((this.bitField0_ & 0x00200000) == 0x00200000); - } - - @Override - public int getAstroGateSunRiseOffset() { - return this.astroGateSunRiseOffset_; - } - - public Builder setAstroGateSunRiseOffset(final int value) { - this.bitField0_ |= 0x00200000; - this.astroGateSunRiseOffset_ = value; - this.onChanged(); - return this; - } - - public Builder clearAstroGateSunRiseOffset() { - this.bitField0_ = (this.bitField0_ & ~0x00200000); - this.astroGateSunRiseOffset_ = 0; - this.onChanged(); - return this; - } - - // optional sint32 astroGateSunSetOffset = 23 [default = 0]; - private int astroGateSunSetOffset_; - - @Override - public boolean hasAstroGateSunSetOffset() { - return ((this.bitField0_ & 0x00400000) == 0x00400000); - } - - @Override - public int getAstroGateSunSetOffset() { - return this.astroGateSunSetOffset_; - } - - public Builder setAstroGateSunSetOffset(final int value) { - this.bitField0_ |= 0x00400000; - this.astroGateSunSetOffset_ = value; - this.onChanged(); - return this; - } - - public Builder clearAstroGateSunSetOffset() { - this.bitField0_ = (this.bitField0_ & ~0x00400000); - this.astroGateSunSetOffset_ = 0; - this.onChanged(); - return this; - } - - // repeated uint32 switchingDelay = 24; - private java.util.List switchingDelay_ = java.util.Collections.emptyList(); - - private void ensureSwitchingDelayIsMutable() { - if (!((this.bitField0_ & 0x00800000) == 0x00800000)) { - this.switchingDelay_ = new java.util.ArrayList(this.switchingDelay_); - this.bitField0_ |= 0x00800000; - } - } - - @Override - public java.util.List getSwitchingDelayList() { - return java.util.Collections.unmodifiableList(this.switchingDelay_); - } - - @Override - public int getSwitchingDelayCount() { - return this.switchingDelay_.size(); - } - - @Override - public int getSwitchingDelay(final int index) { - return this.switchingDelay_.get(index); - } - - public Builder setSwitchingDelay(final int index, final int value) { - this.ensureSwitchingDelayIsMutable(); - this.switchingDelay_.set(index, value); - this.onChanged(); - return this; - } - - public Builder addSwitchingDelay(final int value) { - this.ensureSwitchingDelayIsMutable(); - this.switchingDelay_.add(value); - this.onChanged(); - return this; - } - - public Builder addAllSwitchingDelay( - final java.lang.Iterable values) { - this.ensureSwitchingDelayIsMutable(); - super.addAll(values, this.switchingDelay_); - this.onChanged(); - return this; - } - - public Builder clearSwitchingDelay() { - this.switchingDelay_ = java.util.Collections.emptyList(); - - this.bitField0_ = (this.bitField0_ & ~0x00800000); - this.onChanged(); - return this; - } - - // repeated .oslp.RelayMatrix relayLinking = 25; - private java.util.List relayLinking_ = - java.util.Collections.emptyList(); - - private void ensureRelayLinkingIsMutable() { - if (!((this.bitField0_ & 0x01000000) == 0x01000000)) { - this.relayLinking_ = - new java.util.ArrayList( - this.relayLinking_); - this.bitField0_ |= 0x01000000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RelayMatrix, - org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder, - org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder> - relayLinkingBuilder_; - - @Override - public java.util.List getRelayLinkingList() { - if (this.relayLinkingBuilder_ == null) { - return java.util.Collections.unmodifiableList(this.relayLinking_); - } else { - return this.relayLinkingBuilder_.getMessageList(); - } - } - - @Override - public int getRelayLinkingCount() { - if (this.relayLinkingBuilder_ == null) { - return this.relayLinking_.size(); - } else { - return this.relayLinkingBuilder_.getCount(); - } - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayMatrix getRelayLinking(final int index) { - if (this.relayLinkingBuilder_ == null) { - return this.relayLinking_.get(index); - } else { - return this.relayLinkingBuilder_.getMessage(index); - } - } - - public Builder setRelayLinking( - final int index, final org.opensmartgridplatform.oslp.Oslp.RelayMatrix value) { - if (this.relayLinkingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.set(index, value); - this.onChanged(); - } else { - this.relayLinkingBuilder_.setMessage(index, value); - } - return this; - } - - public Builder setRelayLinking( - final int index, - final org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder builderForValue) { - if (this.relayLinkingBuilder_ == null) { - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.set(index, builderForValue.build()); - this.onChanged(); - } else { - this.relayLinkingBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addRelayLinking(final org.opensmartgridplatform.oslp.Oslp.RelayMatrix value) { - if (this.relayLinkingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.add(value); - this.onChanged(); - } else { - this.relayLinkingBuilder_.addMessage(value); - } - return this; - } - - public Builder addRelayLinking( - final int index, final org.opensmartgridplatform.oslp.Oslp.RelayMatrix value) { - if (this.relayLinkingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.add(index, value); - this.onChanged(); - } else { - this.relayLinkingBuilder_.addMessage(index, value); - } - return this; - } - - public Builder addRelayLinking( - final org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder builderForValue) { - if (this.relayLinkingBuilder_ == null) { - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.add(builderForValue.build()); - this.onChanged(); - } else { - this.relayLinkingBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - public Builder addRelayLinking( - final int index, - final org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder builderForValue) { - if (this.relayLinkingBuilder_ == null) { - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.add(index, builderForValue.build()); - this.onChanged(); - } else { - this.relayLinkingBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addAllRelayLinking( - final java.lang.Iterable - values) { - if (this.relayLinkingBuilder_ == null) { - this.ensureRelayLinkingIsMutable(); - super.addAll(values, this.relayLinking_); - this.onChanged(); - } else { - this.relayLinkingBuilder_.addAllMessages(values); - } - return this; - } - - public Builder clearRelayLinking() { - if (this.relayLinkingBuilder_ == null) { - this.relayLinking_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x01000000); - this.onChanged(); - } else { - this.relayLinkingBuilder_.clear(); - } - return this; - } - - public Builder removeRelayLinking(final int index) { - if (this.relayLinkingBuilder_ == null) { - this.ensureRelayLinkingIsMutable(); - this.relayLinking_.remove(index); - this.onChanged(); - } else { - this.relayLinkingBuilder_.remove(index); - } - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder getRelayLinkingBuilder( - final int index) { - return this.getRelayLinkingFieldBuilder().getBuilder(index); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder getRelayLinkingOrBuilder( - final int index) { - if (this.relayLinkingBuilder_ == null) { - return this.relayLinking_.get(index); - } else { - return this.relayLinkingBuilder_.getMessageOrBuilder(index); - } - } - - @Override - public java.util.List - getRelayLinkingOrBuilderList() { - if (this.relayLinkingBuilder_ != null) { - return this.relayLinkingBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(this.relayLinking_); - } - } - - public org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder addRelayLinkingBuilder() { - return this.getRelayLinkingFieldBuilder() - .addBuilder(org.opensmartgridplatform.oslp.Oslp.RelayMatrix.getDefaultInstance()); - } - - public org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder addRelayLinkingBuilder( - final int index) { - return this.getRelayLinkingFieldBuilder() - .addBuilder( - index, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.getDefaultInstance()); - } - - public java.util.List - getRelayLinkingBuilderList() { - return this.getRelayLinkingFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RelayMatrix, - org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder, - org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder> - getRelayLinkingFieldBuilder() { - if (this.relayLinkingBuilder_ == null) { - this.relayLinkingBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RelayMatrix, - org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder, - org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder>( - this.relayLinking_, - ((this.bitField0_ & 0x01000000) == 0x01000000), - this.getParentForChildren(), - this.isClean()); - this.relayLinking_ = null; - } - return this.relayLinkingBuilder_; - } - - // optional bool relayRefreshing = 26 [default = true]; - private boolean relayRefreshing_ = true; - - @Override - public boolean hasRelayRefreshing() { - return ((this.bitField0_ & 0x02000000) == 0x02000000); - } - - @Override - public boolean getRelayRefreshing() { - return this.relayRefreshing_; - } - - public Builder setRelayRefreshing(final boolean value) { - this.bitField0_ |= 0x02000000; - this.relayRefreshing_ = value; - this.onChanged(); - return this; - } - - public Builder clearRelayRefreshing() { - this.bitField0_ = (this.bitField0_ & ~0x02000000); - this.relayRefreshing_ = true; - this.onChanged(); - return this; - } - - // optional string summerTimeDetails = 27 [default = "0360100"]; - private java.lang.Object summerTimeDetails_ = "0360100"; - - @Override - public boolean hasSummerTimeDetails() { - return ((this.bitField0_ & 0x04000000) == 0x04000000); - } - - @Override - public String getSummerTimeDetails() { - final java.lang.Object ref = this.summerTimeDetails_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.summerTimeDetails_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setSummerTimeDetails(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x04000000; - this.summerTimeDetails_ = value; - this.onChanged(); - return this; - } - - public Builder clearSummerTimeDetails() { - this.bitField0_ = (this.bitField0_ & ~0x04000000); - this.summerTimeDetails_ = getDefaultInstance().getSummerTimeDetails(); - this.onChanged(); - return this; - } - - void setSummerTimeDetails(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x04000000; - this.summerTimeDetails_ = value; - this.onChanged(); - } - - // optional string winterTimeDetails = 28 [default = "1060200"]; - private java.lang.Object winterTimeDetails_ = "1060200"; - - @Override - public boolean hasWinterTimeDetails() { - return ((this.bitField0_ & 0x08000000) == 0x08000000); - } - - @Override - public String getWinterTimeDetails() { - final java.lang.Object ref = this.winterTimeDetails_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.winterTimeDetails_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setWinterTimeDetails(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x08000000; - this.winterTimeDetails_ = value; - this.onChanged(); - return this; - } - - public Builder clearWinterTimeDetails() { - this.bitField0_ = (this.bitField0_ & ~0x08000000); - this.winterTimeDetails_ = getDefaultInstance().getWinterTimeDetails(); - this.onChanged(); - return this; - } - - void setWinterTimeDetails(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x08000000; - this.winterTimeDetails_ = value; - this.onChanged(); - } - - // @@protoc_insertion_point(builder_scope:oslp.GetConfigurationResponse) - } - static { - defaultInstance = new GetConfigurationResponse(true); - defaultInstance.initFields(); - } + public static org.opensmartgridplatform.oslp.Oslp.GetStatusResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // @@protoc_insertion_point(class_scope:oslp.GetConfigurationResponse) - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStatusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public interface SwitchConfigurationRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetStatusResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResumeScheduleRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.ResumeScheduleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+         * 
+ * + * bytes index = 1; + * @return Whether the index field is set. + */ + boolean hasIndex(); + /** + *
+         * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+         * 
+ * + * bytes index = 1; + * @return The index. + */ + com.google.protobuf.ByteString getIndex(); + + /** + *
+         * [default = true];     // Resume at next schedule item or direct.
+         * 
+ * + * bool immediate = 2 [features = { ... } + * @return Whether the immediate field is set. + */ + boolean hasImmediate(); + /** + *
+         * [default = true];     // Resume at next schedule item or direct.
+         * 
+ * + * bool immediate = 2 [features = { ... } + * @return The immediate. + */ + boolean getImmediate(); + } + /** + * Protobuf type {@code oslp.ResumeScheduleRequest} + */ + public static final class ResumeScheduleRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.ResumeScheduleRequest) + ResumeScheduleRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + ResumeScheduleRequest.class.getName()); + } + // Use ResumeScheduleRequest.newBuilder() to construct. + private ResumeScheduleRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ResumeScheduleRequest() { + index_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ResumeScheduleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ResumeScheduleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.class, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.Builder.class); + } + + private int bitField0_; + public static final int INDEX_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+         * 
+ * + * bytes index = 1; + * @return Whether the index field is set. + */ + @java.lang.Override + public boolean hasIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+         * 
+ * + * bytes index = 1; + * @return The index. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndex() { + return index_; + } + + public static final int IMMEDIATE_FIELD_NUMBER = 2; + private boolean immediate_ = false; + /** + *
+         * [default = true];     // Resume at next schedule item or direct.
+         * 
+ * + * bool immediate = 2 [features = { ... } + * @return Whether the immediate field is set. + */ + @java.lang.Override + public boolean hasImmediate() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * [default = true];     // Resume at next schedule item or direct.
+         * 
+ * + * bool immediate = 2 [features = { ... } + * @return The immediate. + */ + @java.lang.Override + public boolean getImmediate() { + return immediate_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasImmediate()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - // required bytes newConfigurationSet = 1; - boolean hasNewConfigurationSet(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBytes(1, index_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, immediate_); + } + getUnknownFields().writeTo(output); + } - com.google.protobuf.ByteString getNewConfigurationSet(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final class SwitchConfigurationRequest extends com.google.protobuf.GeneratedMessage - implements SwitchConfigurationRequestOrBuilder { - // Use SwitchConfigurationRequest.newBuilder() to construct. - private SwitchConfigurationRequest(final Builder builder) { - super(builder); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, index_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, immediate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private SwitchConfigurationRequest(final boolean noInit) {} + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest other = (org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest) obj; - private static final SwitchConfigurationRequest defaultInstance; + if (hasIndex() != other.hasIndex()) return false; + if (hasIndex()) { + if (!getIndex() + .equals(other.getIndex())) return false; + } + if (hasImmediate() != other.hasImmediate()) return false; + if (hasImmediate()) { + if (getImmediate() + != other.getImmediate()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static SwitchConfigurationRequest getDefaultInstance() { - return defaultInstance; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIndex()) { + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex().hashCode(); + } + if (hasImmediate()) { + hash = (37 * hash) + IMMEDIATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getImmediate()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.ResumeScheduleRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.ResumeScheduleRequest) + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ResumeScheduleRequest_descriptor; + } - @Override - public SwitchConfigurationRequest getDefaultInstanceForType() { - return defaultInstance; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ResumeScheduleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.class, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.Builder.class); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchConfigurationRequest_descriptor; - } + // Construct using org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.newBuilder() + private Builder() { - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchConfigurationRequest_fieldAccessorTable; - } + } - private int bitField0_; - // required bytes newConfigurationSet = 1; - public static final int NEWCONFIGURATIONSET_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString newConfigurationSet_; + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - @Override - public boolean hasNewConfigurationSet() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + index_ = com.google.protobuf.ByteString.EMPTY; + immediate_ = false; + return this; + } - @Override - public com.google.protobuf.ByteString getNewConfigurationSet() { - return this.newConfigurationSet_; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ResumeScheduleRequest_descriptor; + } - private void initFields() { - this.newConfigurationSet_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.getDefaultInstance(); + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasNewConfigurationSet()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest build() { + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, this.newConfigurationSet_); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest result = new org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize(1, this.newConfigurationSet_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.index_ = index_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.immediate_ = immediate_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } - private static final long serialVersionUID = 0L; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.getDefaultInstance()) return this; + if (other.hasIndex()) { + setIndex(other.getIndex()); + } + if (other.hasImmediate()) { + setImmediate(other.getImmediate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasImmediate()) { + return false; + } + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + index_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + immediate_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+             * 
+ * + * bytes index = 1; + * @return Whether the index field is set. + */ + @java.lang.Override + public boolean hasIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+             * 
+ * + * bytes index = 1; + * @return The index. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndex() { + return index_; + } + /** + *
+             * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+             * 
+ * + * bytes index = 1; + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + index_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+             * 
+ * + * bytes index = 1; + * @return This builder for chaining. + */ + public Builder clearIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + index_ = getDefaultInstance().getIndex(); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private boolean immediate_ ; + /** + *
+             * [default = true];     // Resume at next schedule item or direct.
+             * 
+ * + * bool immediate = 2 [features = { ... } + * @return Whether the immediate field is set. + */ + @java.lang.Override + public boolean hasImmediate() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * [default = true];     // Resume at next schedule item or direct.
+             * 
+ * + * bool immediate = 2 [features = { ... } + * @return The immediate. + */ + @java.lang.Override + public boolean getImmediate() { + return immediate_; + } + /** + *
+             * [default = true];     // Resume at next schedule item or direct.
+             * 
+ * + * bool immediate = 2 [features = { ... } + * @param value The immediate to set. + * @return This builder for chaining. + */ + public Builder setImmediate(boolean value) { + + immediate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * [default = true];     // Resume at next schedule item or direct.
+             * 
+ * + * bool immediate = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearImmediate() { + bitField0_ = (bitField0_ & ~0x00000002); + immediate_ = false; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + // @@protoc_insertion_point(builder_scope:oslp.ResumeScheduleRequest) + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + // @@protoc_insertion_point(class_scope:oslp.ResumeScheduleRequest) + private static final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest(); + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResumeScheduleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static Builder newBuilder() { - return Builder.create(); } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + public interface ResumeScheduleResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.ResumeScheduleResponse) + com.google.protobuf.MessageOrBuilder { - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest prototype) { - return newBuilder().mergeFrom(prototype); + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); } + /** + * Protobuf type {@code oslp.ResumeScheduleResponse} + */ + public static final class ResumeScheduleResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.ResumeScheduleResponse) + ResumeScheduleResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + ResumeScheduleResponse.class.getName()); + } + // Use ResumeScheduleResponse.newBuilder() to construct. + private ResumeScheduleResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ResumeScheduleResponse() { + status_ = 0; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ResumeScheduleResponse_descriptor; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ResumeScheduleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.class, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchConfigurationRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchConfigurationRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.newConfigurationSet_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest build() { - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest result = - new org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.newConfigurationSet_ = this.newConfigurationSet_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest - .getDefaultInstance()) { - return this; - } - if (other.hasNewConfigurationSet()) { - this.setNewConfigurationSet(other.getNewConfigurationSet()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasNewConfigurationSet()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - this.bitField0_ |= 0x00000001; - this.newConfigurationSet_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required bytes newConfigurationSet = 1; - private com.google.protobuf.ByteString newConfigurationSet_ = - com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasNewConfigurationSet() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public com.google.protobuf.ByteString getNewConfigurationSet() { - return this.newConfigurationSet_; - } - - public Builder setNewConfigurationSet(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.newConfigurationSet_ = value; - this.onChanged(); - return this; - } - - public Builder clearNewConfigurationSet() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.newConfigurationSet_ = getDefaultInstance().getNewConfigurationSet(); - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.SwitchConfigurationRequest) - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + getUnknownFields().writeTo(output); + } - static { - defaultInstance = new SwitchConfigurationRequest(true); - defaultInstance.initFields(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - // @@protoc_insertion_point(class_scope:oslp.SwitchConfigurationRequest) - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public interface SwitchConfigurationResponseOrBuilder - extends com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse other = (org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse) obj; - // required .oslp.Status status = 1; - boolean hasStatus(); + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.ResumeScheduleResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.ResumeScheduleResponse) + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ResumeScheduleResponse_descriptor; + } - public static final class SwitchConfigurationResponse extends com.google.protobuf.GeneratedMessage - implements SwitchConfigurationResponseOrBuilder { - // Use SwitchConfigurationResponse.newBuilder() to construct. - private SwitchConfigurationResponse(final Builder builder) { - super(builder); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ResumeScheduleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.class, org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.Builder.class); + } - private SwitchConfigurationResponse(final boolean noInit) {} + // Construct using org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.newBuilder() + private Builder() { - private static final SwitchConfigurationResponse defaultInstance; + } - public static SwitchConfigurationResponse getDefaultInstance() { - return defaultInstance; - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - @Override - public SwitchConfigurationResponse getDefaultInstanceForType() { - return defaultInstance; - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + return this; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchConfigurationResponse_descriptor; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ResumeScheduleResponse_descriptor; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchConfigurationResponse_fieldAccessorTable; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.getDefaultInstance(); + } - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse build() { + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse result = new org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + return true; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - private static final long serialVersionUID = 0L; + // @@protoc_insertion_point(builder_scope:oslp.ResumeScheduleResponse) + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + // @@protoc_insertion_point(class_scope:oslp.ResumeScheduleResponse) + private static final org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse(); + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + public static org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResumeScheduleResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse - parseDelimitedFrom(final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + public interface SetRebootRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SetRebootRequest) + com.google.protobuf.MessageOrBuilder { - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse - parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + boolean hasPresent(); + /** + * bool present = 1 [default = true]; + * @return The present. + */ + boolean getPresent(); } + /** + * Protobuf type {@code oslp.SetRebootRequest} + */ + public static final class SetRebootRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SetRebootRequest) + SetRebootRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SetRebootRequest.class.getName()); + } + // Use SetRebootRequest.newBuilder() to construct. + private SetRebootRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetRebootRequest() { + present_ = true; + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetRebootRequest_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetRebootRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.class, org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.Builder.class); + } + + private int bitField0_; + public static final int PRESENT_FIELD_NUMBER = 1; + private boolean present_ = true; + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + @java.lang.Override + public boolean hasPresent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * bool present = 1 [default = true]; + * @return The present. + */ + @java.lang.Override + public boolean getPresent() { + return present_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, present_); + } + getUnknownFields().writeTo(output); + } - public static Builder newBuilder() { - return Builder.create(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, present_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse prototype) { - return newBuilder().mergeFrom(prototype); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SetRebootRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SetRebootRequest other = (org.opensmartgridplatform.oslp.Oslp.SetRebootRequest) obj; - @Override - public Builder toBuilder() { - return newBuilder(this); - } + if (hasPresent() != other.hasPresent()) return false; + if (hasPresent()) { + if (getPresent() + != other.getPresent()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPresent()) { + hash = (37 * hash) + PRESENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPresent()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SetRebootRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.SetRebootRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SetRebootRequest) + org.opensmartgridplatform.oslp.Oslp.SetRebootRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetRebootRequest_descriptor; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchConfigurationResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SwitchConfigurationResponse_fieldAccessorTable; - } - - // Construct using - // org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse build() { - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse result = - new org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse - .getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.SwitchConfigurationResponse) - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetRebootRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.class, org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.Builder.class); + } - static { - defaultInstance = new SwitchConfigurationResponse(true); - defaultInstance.initFields(); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.newBuilder() + private Builder() { - // @@protoc_insertion_point(class_scope:oslp.SwitchConfigurationResponse) - } + } - public interface ConfirmRegisterDeviceRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - // required uint32 randomDevice = 1; - boolean hasRandomDevice(); + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + present_ = true; + return this; + } - int getRandomDevice(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetRebootRequest_descriptor; + } - // required uint32 randomPlatform = 2; - boolean hasRandomPlatform(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetRebootRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.getDefaultInstance(); + } - int getRandomPlatform(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetRebootRequest build() { + org.opensmartgridplatform.oslp.Oslp.SetRebootRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final class ConfirmRegisterDeviceRequest - extends com.google.protobuf.GeneratedMessage - implements ConfirmRegisterDeviceRequestOrBuilder { - // Use ConfirmRegisterDeviceRequest.newBuilder() to construct. - private ConfirmRegisterDeviceRequest(final Builder builder) { - super(builder); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetRebootRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SetRebootRequest result = new org.opensmartgridplatform.oslp.Oslp.SetRebootRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - private ConfirmRegisterDeviceRequest(final boolean noInit) {} + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SetRebootRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.present_ = present_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - private static final ConfirmRegisterDeviceRequest defaultInstance; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetRebootRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetRebootRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static ConfirmRegisterDeviceRequest getDefaultInstance() { - return defaultInstance; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SetRebootRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.getDefaultInstance()) return this; + if (other.hasPresent()) { + setPresent(other.getPresent()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public ConfirmRegisterDeviceRequest getDefaultInstanceForType() { - return defaultInstance; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ConfirmRegisterDeviceRequest_descriptor; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + present_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean present_ = true; + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + @java.lang.Override + public boolean hasPresent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * bool present = 1 [default = true]; + * @return The present. + */ + @java.lang.Override + public boolean getPresent() { + return present_; + } + /** + * bool present = 1 [default = true]; + * @param value The present to set. + * @return This builder for chaining. + */ + public Builder setPresent(boolean value) { + + present_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool present = 1 [default = true]; + * @return This builder for chaining. + */ + public Builder clearPresent() { + bitField0_ = (bitField0_ & ~0x00000001); + present_ = true; + onChanged(); + return this; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ConfirmRegisterDeviceRequest_fieldAccessorTable; - } + // @@protoc_insertion_point(builder_scope:oslp.SetRebootRequest) + } - private int bitField0_; - // required uint32 randomDevice = 1; - public static final int RANDOMDEVICE_FIELD_NUMBER = 1; - private int randomDevice_; + // @@protoc_insertion_point(class_scope:oslp.SetRebootRequest) + private static final org.opensmartgridplatform.oslp.Oslp.SetRebootRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SetRebootRequest(); + } - @Override - public boolean hasRandomDevice() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public int getRandomDevice() { - return this.randomDevice_; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetRebootRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - // required uint32 randomPlatform = 2; - public static final int RANDOMPLATFORM_FIELD_NUMBER = 2; - private int randomPlatform_; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @Override - public boolean hasRandomPlatform() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @Override - public int getRandomPlatform() { - return this.randomPlatform_; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetRebootRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private void initFields() { - this.randomDevice_ = 0; - this.randomPlatform_ = 0; } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasRandomDevice()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasRandomPlatform()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + public interface SetRebootResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SetRebootResponse) + com.google.protobuf.MessageOrBuilder { - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeUInt32(1, this.randomDevice_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeUInt32(2, this.randomPlatform_); - } - this.getUnknownFields().writeTo(output); + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); } + /** + * Protobuf type {@code oslp.SetRebootResponse} + */ + public static final class SetRebootResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SetRebootResponse) + SetRebootResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SetRebootResponse.class.getName()); + } + // Use SetRebootResponse.newBuilder() to construct. + private SetRebootResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetRebootResponse() { + status_ = 0; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, this.randomDevice_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, this.randomPlatform_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetRebootResponse_descriptor; + } - private static final long serialVersionUID = 0L; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetRebootResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.class, org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + getUnknownFields().writeTo(output); + } - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SetRebootResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SetRebootResponse other = (org.opensmartgridplatform.oslp.Oslp.SetRebootResponse) obj; - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SetRebootResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.SetRebootResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SetRebootResponse) + org.opensmartgridplatform.oslp.Oslp.SetRebootResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetRebootResponse_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetRebootResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.class, org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.Builder.class); + } - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest - parseDelimitedFrom(final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + // Construct using org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.newBuilder() + private Builder() { - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest - parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + } - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + return this; + } - public static Builder newBuilder() { - return Builder.create(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetRebootResponse_descriptor; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetRebootResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.getDefaultInstance(); + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest prototype) { - return newBuilder().mergeFrom(prototype); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetRebootResponse build() { + org.opensmartgridplatform.oslp.Oslp.SetRebootResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetRebootResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SetRebootResponse result = new org.opensmartgridplatform.oslp.Oslp.SetRebootResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SetRebootResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ConfirmRegisterDeviceRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ConfirmRegisterDeviceRequest_fieldAccessorTable; - } - - // Construct using - // org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.randomDevice_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.randomPlatform_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest - .getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest build() { - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest result = - new org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.randomDevice_ = this.randomDevice_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.randomPlatform_ = this.randomPlatform_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest - .getDefaultInstance()) { - return this; - } - if (other.hasRandomDevice()) { - this.setRandomDevice(other.getRandomDevice()); - } - if (other.hasRandomPlatform()) { - this.setRandomPlatform(other.getRandomPlatform()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasRandomDevice()) { - - return false; - } - if (!this.hasRandomPlatform()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - this.bitField0_ |= 0x00000001; - this.randomDevice_ = input.readUInt32(); - break; - } - case 16: - { - this.bitField0_ |= 0x00000002; - this.randomPlatform_ = input.readUInt32(); - break; - } - } - } - } - - private int bitField0_; - - // required uint32 randomDevice = 1; - private int randomDevice_; - - @Override - public boolean hasRandomDevice() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public int getRandomDevice() { - return this.randomDevice_; - } - - public Builder setRandomDevice(final int value) { - this.bitField0_ |= 0x00000001; - this.randomDevice_ = value; - this.onChanged(); - return this; - } - - public Builder clearRandomDevice() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.randomDevice_ = 0; - this.onChanged(); - return this; - } - - // required uint32 randomPlatform = 2; - private int randomPlatform_; - - @Override - public boolean hasRandomPlatform() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public int getRandomPlatform() { - return this.randomPlatform_; - } - - public Builder setRandomPlatform(final int value) { - this.bitField0_ |= 0x00000002; - this.randomPlatform_ = value; - this.onChanged(); - return this; - } - - public Builder clearRandomPlatform() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.randomPlatform_ = 0; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.ConfirmRegisterDeviceRequest) - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetRebootResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetRebootResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - static { - defaultInstance = new ConfirmRegisterDeviceRequest(true); - defaultInstance.initFields(); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SetRebootResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:oslp.ConfirmRegisterDeviceRequest) - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + return true; + } - public interface ConfirmRegisterDeviceResponseOrBuilder - extends com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - // required .oslp.Status status = 1; - boolean hasStatus(); + // @@protoc_insertion_point(builder_scope:oslp.SetRebootResponse) + } - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); + // @@protoc_insertion_point(class_scope:oslp.SetRebootResponse) + private static final org.opensmartgridplatform.oslp.Oslp.SetRebootResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SetRebootResponse(); + } - // required uint32 randomDevice = 2; - boolean hasRandomDevice(); + public static org.opensmartgridplatform.oslp.Oslp.SetRebootResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - int getRandomDevice(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetRebootResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - // required uint32 randomPlatform = 3; - boolean hasRandomPlatform(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetRebootResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SetTransitionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SetTransitionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Night-Day or Day-Night transition.
+         * 
+ * + * .oslp.TransitionType transitionType = 1 [features = { ... } + * @return Whether the transitionType field is set. + */ + boolean hasTransitionType(); + /** + *
+         * Night-Day or Day-Night transition.
+         * 
+ * + * .oslp.TransitionType transitionType = 1 [features = { ... } + * @return The enum numeric value on the wire for transitionType. + */ + int getTransitionTypeValue(); + /** + *
+         * Night-Day or Day-Night transition.
+         * 
+ * + * .oslp.TransitionType transitionType = 1 [features = { ... } + * @return The transitionType. + */ + org.opensmartgridplatform.oslp.Oslp.TransitionType getTransitionType(); + + /** + *
+         * [(nanopb).max_size = 7]; // - Format hhmmss UTC.
+         * 
+ * + * string time = 2; + * @return Whether the time field is set. + */ + boolean hasTime(); + /** + *
+         * [(nanopb).max_size = 7]; // - Format hhmmss UTC.
+         * 
+ * + * string time = 2; + * @return The time. + */ + java.lang.String getTime(); + /** + *
+         * [(nanopb).max_size = 7]; // - Format hhmmss UTC.
+         * 
+ * + * string time = 2; + * @return The bytes for time. + */ + com.google.protobuf.ByteString + getTimeBytes(); + } + /** + * Protobuf type {@code oslp.SetTransitionRequest} + */ + public static final class SetTransitionRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SetTransitionRequest) + SetTransitionRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SetTransitionRequest.class.getName()); + } + // Use SetTransitionRequest.newBuilder() to construct. + private SetTransitionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetTransitionRequest() { + transitionType_ = 0; + time_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetTransitionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetTransitionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.class, org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.Builder.class); + } + + private int bitField0_; + public static final int TRANSITIONTYPE_FIELD_NUMBER = 1; + private int transitionType_ = 0; + /** + *
+         * Night-Day or Day-Night transition.
+         * 
+ * + * .oslp.TransitionType transitionType = 1 [features = { ... } + * @return Whether the transitionType field is set. + */ + @java.lang.Override public boolean hasTransitionType() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Night-Day or Day-Night transition.
+         * 
+ * + * .oslp.TransitionType transitionType = 1 [features = { ... } + * @return The enum numeric value on the wire for transitionType. + */ + @java.lang.Override public int getTransitionTypeValue() { + return transitionType_; + } + /** + *
+         * Night-Day or Day-Night transition.
+         * 
+ * + * .oslp.TransitionType transitionType = 1 [features = { ... } + * @return The transitionType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.TransitionType getTransitionType() { + org.opensmartgridplatform.oslp.Oslp.TransitionType result = org.opensmartgridplatform.oslp.Oslp.TransitionType.forNumber(transitionType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.TransitionType.UNRECOGNIZED : result; + } + + public static final int TIME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object time_ = ""; + /** + *
+         * [(nanopb).max_size = 7]; // - Format hhmmss UTC.
+         * 
+ * + * string time = 2; + * @return Whether the time field is set. + */ + @java.lang.Override + public boolean hasTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * [(nanopb).max_size = 7]; // - Format hhmmss UTC.
+         * 
+ * + * string time = 2; + * @return The time. + */ + @java.lang.Override + public java.lang.String getTime() { + java.lang.Object ref = time_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + time_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 7]; // - Format hhmmss UTC.
+         * 
+ * + * string time = 2; + * @return The bytes for time. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTimeBytes() { + java.lang.Object ref = time_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + time_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - int getRandomPlatform(); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - // required uint32 sequenceWindow = 4; - boolean hasSequenceWindow(); + if (!hasTransitionType()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - int getSequenceWindow(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, transitionType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, time_); + } + getUnknownFields().writeTo(output); + } - public static final class ConfirmRegisterDeviceResponse - extends com.google.protobuf.GeneratedMessage - implements ConfirmRegisterDeviceResponseOrBuilder { - // Use ConfirmRegisterDeviceResponse.newBuilder() to construct. - private ConfirmRegisterDeviceResponse(final Builder builder) { - super(builder); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private ConfirmRegisterDeviceResponse(final boolean noInit) {} + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, transitionType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, time_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private static final ConfirmRegisterDeviceResponse defaultInstance; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest other = (org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest) obj; - public static ConfirmRegisterDeviceResponse getDefaultInstance() { - return defaultInstance; - } + if (hasTransitionType() != other.hasTransitionType()) return false; + if (hasTransitionType()) { + if (transitionType_ != other.transitionType_) return false; + } + if (hasTime() != other.hasTime()) return false; + if (hasTime()) { + if (!getTime() + .equals(other.getTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public ConfirmRegisterDeviceResponse getDefaultInstanceForType() { - return defaultInstance; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTransitionType()) { + hash = (37 * hash) + TRANSITIONTYPE_FIELD_NUMBER; + hash = (53 * hash) + transitionType_; + } + if (hasTime()) { + hash = (37 * hash) + TIME_FIELD_NUMBER; + hash = (53 * hash) + getTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.SetTransitionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SetTransitionRequest) + org.opensmartgridplatform.oslp.Oslp.SetTransitionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetTransitionRequest_descriptor; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ConfirmRegisterDeviceResponse_descriptor; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetTransitionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.class, org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.Builder.class); + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ConfirmRegisterDeviceResponse_fieldAccessorTable; - } + // Construct using org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.newBuilder() + private Builder() { - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; + } - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + transitionType_ = 0; + time_ = ""; + return this; + } - // required uint32 randomDevice = 2; - public static final int RANDOMDEVICE_FIELD_NUMBER = 2; - private int randomDevice_; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetTransitionRequest_descriptor; + } - @Override - public boolean hasRandomDevice() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.getDefaultInstance(); + } - @Override - public int getRandomDevice() { - return this.randomDevice_; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest build() { + org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - // required uint32 randomPlatform = 3; - public static final int RANDOMPLATFORM_FIELD_NUMBER = 3; - private int randomPlatform_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest result = new org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - @Override - public boolean hasRandomPlatform() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.transitionType_ = transitionType_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.time_ = time_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } - @Override - public int getRandomPlatform() { - return this.randomPlatform_; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - // required uint32 sequenceWindow = 4; - public static final int SEQUENCEWINDOW_FIELD_NUMBER = 4; - private int sequenceWindow_; + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.getDefaultInstance()) return this; + if (other.hasTransitionType()) { + setTransitionTypeValue(other.getTransitionTypeValue()); + } + if (other.hasTime()) { + time_ = other.time_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public boolean hasSequenceWindow() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasTransitionType()) { + return false; + } + return true; + } - @Override - public int getSequenceWindow() { - return this.sequenceWindow_; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + transitionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + time_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int transitionType_ = 0; + /** + *
+             * Night-Day or Day-Night transition.
+             * 
+ * + * .oslp.TransitionType transitionType = 1 [features = { ... } + * @return Whether the transitionType field is set. + */ + @java.lang.Override public boolean hasTransitionType() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Night-Day or Day-Night transition.
+             * 
+ * + * .oslp.TransitionType transitionType = 1 [features = { ... } + * @return The enum numeric value on the wire for transitionType. + */ + @java.lang.Override public int getTransitionTypeValue() { + return transitionType_; + } + /** + *
+             * Night-Day or Day-Night transition.
+             * 
+ * + * .oslp.TransitionType transitionType = 1 [features = { ... } + * @param value The enum numeric value on the wire for transitionType to set. + * @return This builder for chaining. + */ + public Builder setTransitionTypeValue(int value) { + transitionType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Night-Day or Day-Night transition.
+             * 
+ * + * .oslp.TransitionType transitionType = 1 [features = { ... } + * @return The transitionType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.TransitionType getTransitionType() { + org.opensmartgridplatform.oslp.Oslp.TransitionType result = org.opensmartgridplatform.oslp.Oslp.TransitionType.forNumber(transitionType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.TransitionType.UNRECOGNIZED : result; + } + /** + *
+             * Night-Day or Day-Night transition.
+             * 
+ * + * .oslp.TransitionType transitionType = 1 [features = { ... } + * @param value The transitionType to set. + * @return This builder for chaining. + */ + public Builder setTransitionType(org.opensmartgridplatform.oslp.Oslp.TransitionType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + transitionType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * Night-Day or Day-Night transition.
+             * 
+ * + * .oslp.TransitionType transitionType = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearTransitionType() { + bitField0_ = (bitField0_ & ~0x00000001); + transitionType_ = 0; + onChanged(); + return this; + } - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.randomDevice_ = 0; - this.randomPlatform_ = 0; - this.sequenceWindow_ = 0; - } + private java.lang.Object time_ = ""; + /** + *
+             * [(nanopb).max_size = 7]; // - Format hhmmss UTC.
+             * 
+ * + * string time = 2; + * @return Whether the time field is set. + */ + public boolean hasTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * [(nanopb).max_size = 7]; // - Format hhmmss UTC.
+             * 
+ * + * string time = 2; + * @return The time. + */ + public java.lang.String getTime() { + java.lang.Object ref = time_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + time_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 7]; // - Format hhmmss UTC.
+             * 
+ * + * string time = 2; + * @return The bytes for time. + */ + public com.google.protobuf.ByteString + getTimeBytes() { + java.lang.Object ref = time_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + time_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 7]; // - Format hhmmss UTC.
+             * 
+ * + * string time = 2; + * @param value The time to set. + * @return This builder for chaining. + */ + public Builder setTime( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + time_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 7]; // - Format hhmmss UTC.
+             * 
+ * + * string time = 2; + * @return This builder for chaining. + */ + public Builder clearTime() { + time_ = getDefaultInstance().getTime(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 7]; // - Format hhmmss UTC.
+             * 
+ * + * string time = 2; + * @param value The bytes for time to set. + * @return This builder for chaining. + */ + public Builder setTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + time_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasRandomDevice()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasRandomPlatform()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasSequenceWindow()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + // @@protoc_insertion_point(builder_scope:oslp.SetTransitionRequest) + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeUInt32(2, this.randomDevice_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeUInt32(3, this.randomPlatform_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - output.writeUInt32(4, this.sequenceWindow_); - } - this.getUnknownFields().writeTo(output); - } + // @@protoc_insertion_point(class_scope:oslp.SetTransitionRequest) + private static final org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest(); + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, this.randomDevice_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, this.randomPlatform_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, this.sequenceWindow_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private static final long serialVersionUID = 0L; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetTransitionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); } - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + public interface SetTransitionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SetTransitionResponse) + com.google.protobuf.MessageOrBuilder { - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); } + /** + * Protobuf type {@code oslp.SetTransitionResponse} + */ + public static final class SetTransitionResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SetTransitionResponse) + SetTransitionResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SetTransitionResponse.class.getName()); + } + // Use SetTransitionResponse.newBuilder() to construct. + private SetTransitionResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetTransitionResponse() { + status_ = 0; + } - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetTransitionResponse_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse - parseDelimitedFrom(final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetTransitionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.class, org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse - parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + getUnknownFields().writeTo(output); + } - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static Builder newBuilder() { - return Builder.create(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse other = (org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse) obj; - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse prototype) { - return newBuilder().mergeFrom(prototype); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.SetTransitionResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SetTransitionResponse) + org.opensmartgridplatform.oslp.Oslp.SetTransitionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetTransitionResponse_descriptor; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetTransitionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.class, org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.Builder.class); + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + // Construct using org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.newBuilder() + private Builder() { - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ConfirmRegisterDeviceResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_ConfirmRegisterDeviceResponse_fieldAccessorTable; - } - - // Construct using - // org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.randomDevice_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.randomPlatform_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.sequenceWindow_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000008); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse - .getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse build() { - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse result = - new org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.randomDevice_ = this.randomDevice_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.randomPlatform_ = this.randomPlatform_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.sequenceWindow_ = this.sequenceWindow_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse - .getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - if (other.hasRandomDevice()) { - this.setRandomDevice(other.getRandomDevice()); - } - if (other.hasRandomPlatform()) { - this.setRandomPlatform(other.getRandomPlatform()); - } - if (other.hasSequenceWindow()) { - this.setSequenceWindow(other.getSequenceWindow()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - if (!this.hasRandomDevice()) { - - return false; - } - if (!this.hasRandomPlatform()) { - - return false; - } - if (!this.hasSequenceWindow()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - case 16: - { - this.bitField0_ |= 0x00000002; - this.randomDevice_ = input.readUInt32(); - break; - } - case 24: - { - this.bitField0_ |= 0x00000004; - this.randomPlatform_ = input.readUInt32(); - break; - } - case 32: - { - this.bitField0_ |= 0x00000008; - this.sequenceWindow_ = input.readUInt32(); - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // required uint32 randomDevice = 2; - private int randomDevice_; - - @Override - public boolean hasRandomDevice() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public int getRandomDevice() { - return this.randomDevice_; - } - - public Builder setRandomDevice(final int value) { - this.bitField0_ |= 0x00000002; - this.randomDevice_ = value; - this.onChanged(); - return this; - } - - public Builder clearRandomDevice() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.randomDevice_ = 0; - this.onChanged(); - return this; - } - - // required uint32 randomPlatform = 3; - private int randomPlatform_; - - @Override - public boolean hasRandomPlatform() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public int getRandomPlatform() { - return this.randomPlatform_; - } - - public Builder setRandomPlatform(final int value) { - this.bitField0_ |= 0x00000004; - this.randomPlatform_ = value; - this.onChanged(); - return this; - } - - public Builder clearRandomPlatform() { - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.randomPlatform_ = 0; - this.onChanged(); - return this; - } - - // required uint32 sequenceWindow = 4; - private int sequenceWindow_; - - @Override - public boolean hasSequenceWindow() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public int getSequenceWindow() { - return this.sequenceWindow_; - } - - public Builder setSequenceWindow(final int value) { - this.bitField0_ |= 0x00000008; - this.sequenceWindow_ = value; - this.onChanged(); - return this; - } - - public Builder clearSequenceWindow() { - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.sequenceWindow_ = 0; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.ConfirmRegisterDeviceResponse) - } + } - static { - defaultInstance = new ConfirmRegisterDeviceResponse(true); - defaultInstance.initFields(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - // @@protoc_insertion_point(class_scope:oslp.ConfirmRegisterDeviceResponse) - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + return this; + } - public interface GetPowerUsageHistoryRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetTransitionResponse_descriptor; + } - // required .oslp.TimePeriod timePeriod = 1; - boolean hasTimePeriod(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.getDefaultInstance(); + } - org.opensmartgridplatform.oslp.Oslp.TimePeriod getTimePeriod(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse build() { + org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - org.opensmartgridplatform.oslp.Oslp.TimePeriodOrBuilder getTimePeriodOrBuilder(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse result = new org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - // optional uint32 page = 2; - boolean hasPage(); + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - int getPage(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - // required .oslp.HistoryTermType termType = 3; - boolean hasTermType(); + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - org.opensmartgridplatform.oslp.Oslp.HistoryTermType getTermType(); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + return true; + } - public static final class GetPowerUsageHistoryRequest extends com.google.protobuf.GeneratedMessage - implements GetPowerUsageHistoryRequestOrBuilder { - // Use GetPowerUsageHistoryRequest.newBuilder() to construct. - private GetPowerUsageHistoryRequest(final Builder builder) { - super(builder); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - private GetPowerUsageHistoryRequest(final boolean noInit) {} + // @@protoc_insertion_point(builder_scope:oslp.SetTransitionResponse) + } - private static final GetPowerUsageHistoryRequest defaultInstance; + // @@protoc_insertion_point(class_scope:oslp.SetTransitionResponse) + private static final org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse(); + } - public static GetPowerUsageHistoryRequest getDefaultInstance() { - return defaultInstance; - } + public static org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public GetPowerUsageHistoryRequest getDefaultInstanceForType() { - return defaultInstance; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetTransitionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetPowerUsageHistoryRequest_descriptor; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetPowerUsageHistoryRequest_fieldAccessorTable; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private int bitField0_; - // required .oslp.TimePeriod timePeriod = 1; - public static final int TIMEPERIOD_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.TimePeriod timePeriod_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @Override - public boolean hasTimePeriod() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); } - @Override - public org.opensmartgridplatform.oslp.Oslp.TimePeriod getTimePeriod() { - return this.timePeriod_; - } + public interface SetEventNotificationsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SetEventNotificationsRequest) + com.google.protobuf.MessageOrBuilder { - @Override - public org.opensmartgridplatform.oslp.Oslp.TimePeriodOrBuilder getTimePeriodOrBuilder() { - return this.timePeriod_; + /** + *
+         * Bitmask for max 32 events, using NotificationBit for bit positions.
+         * 
+ * + * uint32 NotificationMask = 1 [features = { ... } + * @return Whether the notificationMask field is set. + */ + boolean hasNotificationMask(); + /** + *
+         * Bitmask for max 32 events, using NotificationBit for bit positions.
+         * 
+ * + * uint32 NotificationMask = 1 [features = { ... } + * @return The notificationMask. + */ + int getNotificationMask(); } + /** + * Protobuf type {@code oslp.SetEventNotificationsRequest} + */ + public static final class SetEventNotificationsRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SetEventNotificationsRequest) + SetEventNotificationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SetEventNotificationsRequest.class.getName()); + } + // Use SetEventNotificationsRequest.newBuilder() to construct. + private SetEventNotificationsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetEventNotificationsRequest() { + } - // optional uint32 page = 2; - public static final int PAGE_FIELD_NUMBER = 2; - private int page_; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetEventNotificationsRequest_descriptor; + } - @Override - public boolean hasPage() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetEventNotificationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.class, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.Builder.class); + } + + private int bitField0_; + public static final int NOTIFICATIONMASK_FIELD_NUMBER = 1; + private int notificationMask_ = 0; + /** + *
+         * Bitmask for max 32 events, using NotificationBit for bit positions.
+         * 
+ * + * uint32 NotificationMask = 1 [features = { ... } + * @return Whether the notificationMask field is set. + */ + @java.lang.Override + public boolean hasNotificationMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Bitmask for max 32 events, using NotificationBit for bit positions.
+         * 
+ * + * uint32 NotificationMask = 1 [features = { ... } + * @return The notificationMask. + */ + @java.lang.Override + public int getNotificationMask() { + return notificationMask_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasNotificationMask()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - @Override - public int getPage() { - return this.page_; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeUInt32(1, notificationMask_); + } + getUnknownFields().writeTo(output); + } - // required .oslp.HistoryTermType termType = 3; - public static final int TERMTYPE_FIELD_NUMBER = 3; - private org.opensmartgridplatform.oslp.Oslp.HistoryTermType termType_; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public boolean hasTermType() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, notificationMask_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.HistoryTermType getTermType() { - return this.termType_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest other = (org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest) obj; - private void initFields() { - this.timePeriod_ = org.opensmartgridplatform.oslp.Oslp.TimePeriod.getDefaultInstance(); - this.page_ = 0; - this.termType_ = org.opensmartgridplatform.oslp.Oslp.HistoryTermType.Short; - } + if (hasNotificationMask() != other.hasNotificationMask()) return false; + if (hasNotificationMask()) { + if (getNotificationMask() + != other.getNotificationMask()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasTimePeriod()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasTermType()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.getTimePeriod().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNotificationMask()) { + hash = (37 * hash) + NOTIFICATIONMASK_FIELD_NUMBER; + hash = (53 * hash) + getNotificationMask(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.SetEventNotificationsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SetEventNotificationsRequest) + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetEventNotificationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetEventNotificationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.class, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.Builder.class); + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, this.timePeriod_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeUInt32(2, this.page_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, this.termType_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.newBuilder() + private Builder() { - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, this.timePeriod_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, this.page_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(3, this.termType_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + } - private static final long serialVersionUID = 0L; + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + notificationMask_ = 0; + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetEventNotificationsRequest_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.getDefaultInstance(); + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest build() { + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest result = new org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.notificationMask_ = notificationMask_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest - parseDelimitedFrom(final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.getDefaultInstance()) return this; + if (other.hasNotificationMask()) { + setNotificationMask(other.getNotificationMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest - parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasNotificationMask()) { + return false; + } + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + notificationMask_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int notificationMask_ ; + /** + *
+             * Bitmask for max 32 events, using NotificationBit for bit positions.
+             * 
+ * + * uint32 NotificationMask = 1 [features = { ... } + * @return Whether the notificationMask field is set. + */ + @java.lang.Override + public boolean hasNotificationMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Bitmask for max 32 events, using NotificationBit for bit positions.
+             * 
+ * + * uint32 NotificationMask = 1 [features = { ... } + * @return The notificationMask. + */ + @java.lang.Override + public int getNotificationMask() { + return notificationMask_; + } + /** + *
+             * Bitmask for max 32 events, using NotificationBit for bit positions.
+             * 
+ * + * uint32 NotificationMask = 1 [features = { ... } + * @param value The notificationMask to set. + * @return This builder for chaining. + */ + public Builder setNotificationMask(int value) { + + notificationMask_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Bitmask for max 32 events, using NotificationBit for bit positions.
+             * 
+ * + * uint32 NotificationMask = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearNotificationMask() { + bitField0_ = (bitField0_ & ~0x00000001); + notificationMask_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + // @@protoc_insertion_point(builder_scope:oslp.SetEventNotificationsRequest) + } - public static Builder newBuilder() { - return Builder.create(); - } + // @@protoc_insertion_point(class_scope:oslp.SetEventNotificationsRequest) + private static final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest(); + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest prototype) { - return newBuilder().mergeFrom(prototype); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetEventNotificationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public Builder toBuilder() { - return newBuilder(this); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetPowerUsageHistoryRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetPowerUsageHistoryRequest_fieldAccessorTable; - } - - // Construct using - // org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getTimePeriodFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - if (this.timePeriodBuilder_ == null) { - this.timePeriod_ = org.opensmartgridplatform.oslp.Oslp.TimePeriod.getDefaultInstance(); - } else { - this.timePeriodBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.page_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.termType_ = org.opensmartgridplatform.oslp.Oslp.HistoryTermType.Short; - this.bitField0_ = (this.bitField0_ & ~0x00000004); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest build() { - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest result = - new org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (this.timePeriodBuilder_ == null) { - result.timePeriod_ = this.timePeriod_; - } else { - result.timePeriod_ = this.timePeriodBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.page_ = this.page_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.termType_ = this.termType_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest - .getDefaultInstance()) { - return this; - } - if (other.hasTimePeriod()) { - this.mergeTimePeriod(other.getTimePeriod()); - } - if (other.hasPage()) { - this.setPage(other.getPage()); - } - if (other.hasTermType()) { - this.setTermType(other.getTermType()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasTimePeriod()) { - - return false; - } - if (!this.hasTermType()) { - - return false; - } - if (!this.getTimePeriod().isInitialized()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - final org.opensmartgridplatform.oslp.Oslp.TimePeriod.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.TimePeriod.newBuilder(); - if (this.hasTimePeriod()) { - subBuilder.mergeFrom(this.getTimePeriod()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setTimePeriod(subBuilder.buildPartial()); - break; - } - case 16: - { - this.bitField0_ |= 0x00000002; - this.page_ = input.readUInt32(); - break; - } - case 24: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.HistoryTermType value = - org.opensmartgridplatform.oslp.Oslp.HistoryTermType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - this.bitField0_ |= 0x00000004; - this.termType_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.TimePeriod timePeriod = 1; - private org.opensmartgridplatform.oslp.Oslp.TimePeriod timePeriod_ = - org.opensmartgridplatform.oslp.Oslp.TimePeriod.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.TimePeriod, - org.opensmartgridplatform.oslp.Oslp.TimePeriod.Builder, - org.opensmartgridplatform.oslp.Oslp.TimePeriodOrBuilder> - timePeriodBuilder_; - - @Override - public boolean hasTimePeriod() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.TimePeriod getTimePeriod() { - if (this.timePeriodBuilder_ == null) { - return this.timePeriod_; - } else { - return this.timePeriodBuilder_.getMessage(); - } - } - - public Builder setTimePeriod(final org.opensmartgridplatform.oslp.Oslp.TimePeriod value) { - if (this.timePeriodBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.timePeriod_ = value; - this.onChanged(); - } else { - this.timePeriodBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000001; - return this; - } - - public Builder setTimePeriod( - final org.opensmartgridplatform.oslp.Oslp.TimePeriod.Builder builderForValue) { - if (this.timePeriodBuilder_ == null) { - this.timePeriod_ = builderForValue.build(); - this.onChanged(); - } else { - this.timePeriodBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000001; - return this; - } - - public Builder mergeTimePeriod(final org.opensmartgridplatform.oslp.Oslp.TimePeriod value) { - if (this.timePeriodBuilder_ == null) { - if (((this.bitField0_ & 0x00000001) == 0x00000001) - && this.timePeriod_ - != org.opensmartgridplatform.oslp.Oslp.TimePeriod.getDefaultInstance()) { - this.timePeriod_ = - org.opensmartgridplatform.oslp.Oslp.TimePeriod.newBuilder(this.timePeriod_) - .mergeFrom(value) - .buildPartial(); - } else { - this.timePeriod_ = value; - } - this.onChanged(); - } else { - this.timePeriodBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000001; - return this; - } - - public Builder clearTimePeriod() { - if (this.timePeriodBuilder_ == null) { - this.timePeriod_ = org.opensmartgridplatform.oslp.Oslp.TimePeriod.getDefaultInstance(); - this.onChanged(); - } else { - this.timePeriodBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.TimePeriod.Builder getTimePeriodBuilder() { - this.bitField0_ |= 0x00000001; - this.onChanged(); - return this.getTimePeriodFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.TimePeriodOrBuilder getTimePeriodOrBuilder() { - if (this.timePeriodBuilder_ != null) { - return this.timePeriodBuilder_.getMessageOrBuilder(); - } else { - return this.timePeriod_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.TimePeriod, - org.opensmartgridplatform.oslp.Oslp.TimePeriod.Builder, - org.opensmartgridplatform.oslp.Oslp.TimePeriodOrBuilder> - getTimePeriodFieldBuilder() { - if (this.timePeriodBuilder_ == null) { - this.timePeriodBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.TimePeriod, - org.opensmartgridplatform.oslp.Oslp.TimePeriod.Builder, - org.opensmartgridplatform.oslp.Oslp.TimePeriodOrBuilder>( - this.timePeriod_, this.getParentForChildren(), this.isClean()); - this.timePeriod_ = null; - } - return this.timePeriodBuilder_; - } - - // optional uint32 page = 2; - private int page_; - - @Override - public boolean hasPage() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public int getPage() { - return this.page_; - } - - public Builder setPage(final int value) { - this.bitField0_ |= 0x00000002; - this.page_ = value; - this.onChanged(); - return this; - } - - public Builder clearPage() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.page_ = 0; - this.onChanged(); - return this; - } - - // required .oslp.HistoryTermType termType = 3; - private org.opensmartgridplatform.oslp.Oslp.HistoryTermType termType_ = - org.opensmartgridplatform.oslp.Oslp.HistoryTermType.Short; - - @Override - public boolean hasTermType() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.HistoryTermType getTermType() { - return this.termType_; - } - - public Builder setTermType(final org.opensmartgridplatform.oslp.Oslp.HistoryTermType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000004; - this.termType_ = value; - this.onChanged(); - return this; - } - - public Builder clearTermType() { - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.termType_ = org.opensmartgridplatform.oslp.Oslp.HistoryTermType.Short; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.GetPowerUsageHistoryRequest) - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - static { - defaultInstance = new GetPowerUsageHistoryRequest(true); - defaultInstance.initFields(); } - // @@protoc_insertion_point(class_scope:oslp.GetPowerUsageHistoryRequest) - } - - public interface GetPowerUsageHistoryResponseOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface SetEventNotificationsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SetEventNotificationsResponse) + com.google.protobuf.MessageOrBuilder { - // required .oslp.Status status = 1; - boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); + } + /** + * Protobuf type {@code oslp.SetEventNotificationsResponse} + */ + public static final class SetEventNotificationsResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SetEventNotificationsResponse) + SetEventNotificationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SetEventNotificationsResponse.class.getName()); + } + // Use SetEventNotificationsResponse.newBuilder() to construct. + private SetEventNotificationsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetEventNotificationsResponse() { + status_ = 0; + } - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetEventNotificationsResponse_descriptor; + } - // repeated .oslp.PowerUsageData powerUsageData = 2; - java.util.List getPowerUsageDataList(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetEventNotificationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.class, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - org.opensmartgridplatform.oslp.Oslp.PowerUsageData getPowerUsageData(int index); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + getUnknownFields().writeTo(output); + } - int getPowerUsageDataCount(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - java.util.List - getPowerUsageDataOrBuilderList(); + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder getPowerUsageDataOrBuilder( - int index); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse other = (org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse) obj; - // optional .oslp.PageInfo pageInfo = 3; - boolean hasPageInfo(); + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - org.opensmartgridplatform.oslp.Oslp.PageInfo getPageInfo(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.SetEventNotificationsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SetEventNotificationsResponse) + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetEventNotificationsResponse_descriptor; + } - org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder getPageInfoOrBuilder(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetEventNotificationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.class, org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.Builder.class); + } - public static final class GetPowerUsageHistoryResponse - extends com.google.protobuf.GeneratedMessage - implements GetPowerUsageHistoryResponseOrBuilder { - // Use GetPowerUsageHistoryResponse.newBuilder() to construct. - private GetPowerUsageHistoryResponse(final Builder builder) { - super(builder); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.newBuilder() + private Builder() { - private GetPowerUsageHistoryResponse(final boolean noInit) {} + } - private static final GetPowerUsageHistoryResponse defaultInstance; + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static GetPowerUsageHistoryResponse getDefaultInstance() { - return defaultInstance; - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + return this; + } - @Override - public GetPowerUsageHistoryResponse getDefaultInstanceForType() { - return defaultInstance; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetEventNotificationsResponse_descriptor; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetPowerUsageHistoryResponse_descriptor; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.getDefaultInstance(); + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetPowerUsageHistoryResponse_fieldAccessorTable; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse build() { + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse result = new org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - // repeated .oslp.PowerUsageData powerUsageData = 2; - public static final int POWERUSAGEDATA_FIELD_NUMBER = 2; - private java.util.List powerUsageData_; + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public java.util.List - getPowerUsageDataList() { - return this.powerUsageData_; - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + return true; + } - @Override - public java.util.List - getPowerUsageDataOrBuilderList() { - return this.powerUsageData_; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - @Override - public int getPowerUsageDataCount() { - return this.powerUsageData_.size(); - } + // @@protoc_insertion_point(builder_scope:oslp.SetEventNotificationsResponse) + } - @Override - public org.opensmartgridplatform.oslp.Oslp.PowerUsageData getPowerUsageData(final int index) { - return this.powerUsageData_.get(index); - } + // @@protoc_insertion_point(class_scope:oslp.SetEventNotificationsResponse) + private static final org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse(); + } - @Override - public org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder getPowerUsageDataOrBuilder( - final int index) { - return this.powerUsageData_.get(index); - } + public static org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // optional .oslp.PageInfo pageInfo = 3; - public static final int PAGEINFO_FIELD_NUMBER = 3; - private org.opensmartgridplatform.oslp.Oslp.PageInfo pageInfo_; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetEventNotificationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public boolean hasPageInfo() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EventNotificationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.EventNotificationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + java.util.List + getNotificationsList(); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + org.opensmartgridplatform.oslp.Oslp.EventNotification getNotifications(int index); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + int getNotificationsCount(); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + java.util.List + getNotificationsOrBuilderList(); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + org.opensmartgridplatform.oslp.Oslp.EventNotificationOrBuilder getNotificationsOrBuilder( + int index); + } + /** + * Protobuf type {@code oslp.EventNotificationRequest} + */ + public static final class EventNotificationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.EventNotificationRequest) + EventNotificationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + EventNotificationRequest.class.getName()); + } + // Use EventNotificationRequest.newBuilder() to construct. + private EventNotificationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private EventNotificationRequest() { + notifications_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotificationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotificationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.class, org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.Builder.class); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List notifications_; + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + @java.lang.Override + public java.util.List getNotificationsList() { + return notifications_; + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + @java.lang.Override + public java.util.List + getNotificationsOrBuilderList() { + return notifications_; + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + @java.lang.Override + public int getNotificationsCount() { + return notifications_.size(); + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotification getNotifications(int index) { + return notifications_.get(index); + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotificationOrBuilder getNotificationsOrBuilder( + int index) { + return notifications_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + for (int i = 0; i < getNotificationsCount(); i++) { + if (!getNotifications(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.PageInfo getPageInfo() { - return this.pageInfo_; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < notifications_.size(); i++) { + output.writeMessage(1, notifications_.get(i)); + } + getUnknownFields().writeTo(output); + } - @Override - public org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder getPageInfoOrBuilder() { - return this.pageInfo_; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.powerUsageData_ = java.util.Collections.emptyList(); - this.pageInfo_ = org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance(); - } + size = 0; + for (int i = 0; i < notifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, notifications_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < this.getPowerUsageDataCount(); i++) { - if (!this.getPowerUsageData(i).isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasPageInfo()) { - if (!this.getPageInfo().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - this.memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest other = (org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest) obj; - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - for (int i = 0; i < this.powerUsageData_.size(); i++) { - output.writeMessage(2, this.powerUsageData_.get(i)); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(3, this.pageInfo_); - } - this.getUnknownFields().writeTo(output); - } + if (!getNotificationsList() + .equals(other.getNotificationsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - for (int i = 0; i < this.powerUsageData_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, this.powerUsageData_.get(i)); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, this.pageInfo_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNotificationsCount() > 0) { + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotificationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.EventNotificationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.EventNotificationRequest) + org.opensmartgridplatform.oslp.Oslp.EventNotificationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotificationRequest_descriptor; + } - private static final long serialVersionUID = 0L; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotificationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.class, org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.Builder.class); + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.newBuilder() + private Builder() { - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + } else { + notifications_ = null; + notificationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotificationRequest_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.getDefaultInstance(); + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest build() { + org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse - parseDelimitedFrom(final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest result = new org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse - parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + private void buildPartialRepeatedFields(org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest result) { + if (notificationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.notifications_ = notifications_; + } else { + result.notifications_ = notificationsBuilder_.build(); + } + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest result) { + int from_bitField0_ = bitField0_; + } - public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static Builder newBuilder() { - return Builder.create(); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.getDefaultInstance()) return this; + if (notificationsBuilder_ == null) { + if (!other.notifications_.isEmpty()) { + if (notifications_.isEmpty()) { + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNotificationsIsMutable(); + notifications_.addAll(other.notifications_); + } + onChanged(); + } + } else { + if (!other.notifications_.isEmpty()) { + if (notificationsBuilder_.isEmpty()) { + notificationsBuilder_.dispose(); + notificationsBuilder_ = null; + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000001); + notificationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetNotificationsFieldBuilder() : null; + } else { + notificationsBuilder_.addAllMessages(other.notifications_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public final boolean isInitialized() { + for (int i = 0; i < getNotificationsCount(); i++) { + if (!getNotifications(i).isInitialized()) { + return false; + } + } + return true; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse prototype) { - return newBuilder().mergeFrom(prototype); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + org.opensmartgridplatform.oslp.Oslp.EventNotification m = + input.readMessage( + org.opensmartgridplatform.oslp.Oslp.EventNotification.parser(), + extensionRegistry); + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(m); + } else { + notificationsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List notifications_ = + java.util.Collections.emptyList(); + private void ensureNotificationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + notifications_ = new java.util.ArrayList(notifications_); + bitField0_ |= 0x00000001; + } + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.EventNotification, org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder, org.opensmartgridplatform.oslp.Oslp.EventNotificationOrBuilder> notificationsBuilder_; + + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public java.util.List getNotificationsList() { + if (notificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(notifications_); + } else { + return notificationsBuilder_.getMessageList(); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public int getNotificationsCount() { + if (notificationsBuilder_ == null) { + return notifications_.size(); + } else { + return notificationsBuilder_.getCount(); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.EventNotification getNotifications(int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); + } else { + return notificationsBuilder_.getMessage(index); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public Builder setNotifications( + int index, org.opensmartgridplatform.oslp.Oslp.EventNotification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.set(index, value); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public Builder setNotifications( + int index, org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.set(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public Builder addNotifications(org.opensmartgridplatform.oslp.Oslp.EventNotification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(value); + onChanged(); + } else { + notificationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public Builder addNotifications( + int index, org.opensmartgridplatform.oslp.Oslp.EventNotification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(index, value); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public Builder addNotifications( + org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public Builder addNotifications( + int index, org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public Builder addAllNotifications( + java.lang.Iterable values) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notifications_); + onChanged(); + } else { + notificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + notificationsBuilder_.clear(); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public Builder removeNotifications(int index) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.remove(index); + onChanged(); + } else { + notificationsBuilder_.remove(index); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder getNotificationsBuilder( + int index) { + return internalGetNotificationsFieldBuilder().getBuilder(index); + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.EventNotificationOrBuilder getNotificationsOrBuilder( + int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); } else { + return notificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public java.util.List + getNotificationsOrBuilderList() { + if (notificationsBuilder_ != null) { + return notificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notifications_); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder addNotificationsBuilder() { + return internalGetNotificationsFieldBuilder().addBuilder( + org.opensmartgridplatform.oslp.Oslp.EventNotification.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder addNotificationsBuilder( + int index) { + return internalGetNotificationsFieldBuilder().addBuilder( + index, org.opensmartgridplatform.oslp.Oslp.EventNotification.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.EventNotification notifications = 1; + */ + public java.util.List + getNotificationsBuilderList() { + return internalGetNotificationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.EventNotification, org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder, org.opensmartgridplatform.oslp.Oslp.EventNotificationOrBuilder> + internalGetNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.EventNotification, org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder, org.opensmartgridplatform.oslp.Oslp.EventNotificationOrBuilder>( + notifications_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + notifications_ = null; + } + return notificationsBuilder_; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + // @@protoc_insertion_point(builder_scope:oslp.EventNotificationRequest) + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetPowerUsageHistoryResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetPowerUsageHistoryResponse_fieldAccessorTable; - } - - // Construct using - // org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getPowerUsageDataFieldBuilder(); - this.getPageInfoFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - if (this.powerUsageDataBuilder_ == null) { - this.powerUsageData_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000002); - } else { - this.powerUsageDataBuilder_.clear(); - } - if (this.pageInfoBuilder_ == null) { - this.pageInfo_ = org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance(); - } else { - this.pageInfoBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000004); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse - .getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse build() { - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse result = - new org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - if (this.powerUsageDataBuilder_ == null) { - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - this.powerUsageData_ = java.util.Collections.unmodifiableList(this.powerUsageData_); - this.bitField0_ = (this.bitField0_ & ~0x00000002); - } - result.powerUsageData_ = this.powerUsageData_; - } else { - result.powerUsageData_ = this.powerUsageDataBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000002; - } - if (this.pageInfoBuilder_ == null) { - result.pageInfo_ = this.pageInfo_; - } else { - result.pageInfo_ = this.pageInfoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse - .getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - if (this.powerUsageDataBuilder_ == null) { - if (!other.powerUsageData_.isEmpty()) { - if (this.powerUsageData_.isEmpty()) { - this.powerUsageData_ = other.powerUsageData_; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - } else { - this.ensurePowerUsageDataIsMutable(); - this.powerUsageData_.addAll(other.powerUsageData_); - } - this.onChanged(); - } - } else { - if (!other.powerUsageData_.isEmpty()) { - if (this.powerUsageDataBuilder_.isEmpty()) { - this.powerUsageDataBuilder_.dispose(); - this.powerUsageDataBuilder_ = null; - this.powerUsageData_ = other.powerUsageData_; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.powerUsageDataBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? this.getPowerUsageDataFieldBuilder() - : null; - } else { - this.powerUsageDataBuilder_.addAllMessages(other.powerUsageData_); - } - } - } - if (other.hasPageInfo()) { - this.mergePageInfo(other.getPageInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - for (int i = 0; i < this.getPowerUsageDataCount(); i++) { - if (!this.getPowerUsageData(i).isInitialized()) { - - return false; - } - } - if (this.hasPageInfo()) { - if (!this.getPageInfo().isInitialized()) { - - return false; - } - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - case 18: - { - final org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.PowerUsageData.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - this.addPowerUsageData(subBuilder.buildPartial()); - break; - } - case 26: - { - final org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.PageInfo.newBuilder(); - if (this.hasPageInfo()) { - subBuilder.mergeFrom(this.getPageInfo()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setPageInfo(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // repeated .oslp.PowerUsageData powerUsageData = 2; - private java.util.List powerUsageData_ = - java.util.Collections.emptyList(); - - private void ensurePowerUsageDataIsMutable() { - if (!((this.bitField0_ & 0x00000002) == 0x00000002)) { - this.powerUsageData_ = - new java.util.ArrayList( - this.powerUsageData_); - this.bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.PowerUsageData, - org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder, - org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder> - powerUsageDataBuilder_; - - @Override - public java.util.List - getPowerUsageDataList() { - if (this.powerUsageDataBuilder_ == null) { - return java.util.Collections.unmodifiableList(this.powerUsageData_); - } else { - return this.powerUsageDataBuilder_.getMessageList(); - } - } - - @Override - public int getPowerUsageDataCount() { - if (this.powerUsageDataBuilder_ == null) { - return this.powerUsageData_.size(); - } else { - return this.powerUsageDataBuilder_.getCount(); - } - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PowerUsageData getPowerUsageData(final int index) { - if (this.powerUsageDataBuilder_ == null) { - return this.powerUsageData_.get(index); - } else { - return this.powerUsageDataBuilder_.getMessage(index); - } - } - - public Builder setPowerUsageData( - final int index, final org.opensmartgridplatform.oslp.Oslp.PowerUsageData value) { - if (this.powerUsageDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensurePowerUsageDataIsMutable(); - this.powerUsageData_.set(index, value); - this.onChanged(); - } else { - this.powerUsageDataBuilder_.setMessage(index, value); - } - return this; - } - - public Builder setPowerUsageData( - final int index, - final org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder builderForValue) { - if (this.powerUsageDataBuilder_ == null) { - this.ensurePowerUsageDataIsMutable(); - this.powerUsageData_.set(index, builderForValue.build()); - this.onChanged(); - } else { - this.powerUsageDataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addPowerUsageData( - final org.opensmartgridplatform.oslp.Oslp.PowerUsageData value) { - if (this.powerUsageDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensurePowerUsageDataIsMutable(); - this.powerUsageData_.add(value); - this.onChanged(); - } else { - this.powerUsageDataBuilder_.addMessage(value); - } - return this; - } - - public Builder addPowerUsageData( - final int index, final org.opensmartgridplatform.oslp.Oslp.PowerUsageData value) { - if (this.powerUsageDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensurePowerUsageDataIsMutable(); - this.powerUsageData_.add(index, value); - this.onChanged(); - } else { - this.powerUsageDataBuilder_.addMessage(index, value); - } - return this; - } - - public Builder addPowerUsageData( - final org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder builderForValue) { - if (this.powerUsageDataBuilder_ == null) { - this.ensurePowerUsageDataIsMutable(); - this.powerUsageData_.add(builderForValue.build()); - this.onChanged(); - } else { - this.powerUsageDataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - public Builder addPowerUsageData( - final int index, - final org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder builderForValue) { - if (this.powerUsageDataBuilder_ == null) { - this.ensurePowerUsageDataIsMutable(); - this.powerUsageData_.add(index, builderForValue.build()); - this.onChanged(); - } else { - this.powerUsageDataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addAllPowerUsageData( - final java.lang.Iterable - values) { - if (this.powerUsageDataBuilder_ == null) { - this.ensurePowerUsageDataIsMutable(); - super.addAll(values, this.powerUsageData_); - this.onChanged(); - } else { - this.powerUsageDataBuilder_.addAllMessages(values); - } - return this; - } - - public Builder clearPowerUsageData() { - if (this.powerUsageDataBuilder_ == null) { - this.powerUsageData_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.onChanged(); - } else { - this.powerUsageDataBuilder_.clear(); - } - return this; - } - - public Builder removePowerUsageData(final int index) { - if (this.powerUsageDataBuilder_ == null) { - this.ensurePowerUsageDataIsMutable(); - this.powerUsageData_.remove(index); - this.onChanged(); - } else { - this.powerUsageDataBuilder_.remove(index); - } - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder getPowerUsageDataBuilder( - final int index) { - return this.getPowerUsageDataFieldBuilder().getBuilder(index); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder getPowerUsageDataOrBuilder( - final int index) { - if (this.powerUsageDataBuilder_ == null) { - return this.powerUsageData_.get(index); - } else { - return this.powerUsageDataBuilder_.getMessageOrBuilder(index); - } - } - - @Override - public java.util.List - getPowerUsageDataOrBuilderList() { - if (this.powerUsageDataBuilder_ != null) { - return this.powerUsageDataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(this.powerUsageData_); - } - } - - public org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder addPowerUsageDataBuilder() { - return this.getPowerUsageDataFieldBuilder() - .addBuilder(org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance()); - } - - public org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder addPowerUsageDataBuilder( - final int index) { - return this.getPowerUsageDataFieldBuilder() - .addBuilder( - index, org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance()); - } - - public java.util.List - getPowerUsageDataBuilderList() { - return this.getPowerUsageDataFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.PowerUsageData, - org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder, - org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder> - getPowerUsageDataFieldBuilder() { - if (this.powerUsageDataBuilder_ == null) { - this.powerUsageDataBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.PowerUsageData, - org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder, - org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder>( - this.powerUsageData_, - ((this.bitField0_ & 0x00000002) == 0x00000002), - this.getParentForChildren(), - this.isClean()); - this.powerUsageData_ = null; - } - return this.powerUsageDataBuilder_; - } - - // optional .oslp.PageInfo pageInfo = 3; - private org.opensmartgridplatform.oslp.Oslp.PageInfo pageInfo_ = - org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.PageInfo, - org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder, - org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder> - pageInfoBuilder_; - - @Override - public boolean hasPageInfo() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PageInfo getPageInfo() { - if (this.pageInfoBuilder_ == null) { - return this.pageInfo_; - } else { - return this.pageInfoBuilder_.getMessage(); - } - } - - public Builder setPageInfo(final org.opensmartgridplatform.oslp.Oslp.PageInfo value) { - if (this.pageInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.pageInfo_ = value; - this.onChanged(); - } else { - this.pageInfoBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000004; - return this; - } - - public Builder setPageInfo( - final org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder builderForValue) { - if (this.pageInfoBuilder_ == null) { - this.pageInfo_ = builderForValue.build(); - this.onChanged(); - } else { - this.pageInfoBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000004; - return this; - } - - public Builder mergePageInfo(final org.opensmartgridplatform.oslp.Oslp.PageInfo value) { - if (this.pageInfoBuilder_ == null) { - if (((this.bitField0_ & 0x00000004) == 0x00000004) - && this.pageInfo_ - != org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance()) { - this.pageInfo_ = - org.opensmartgridplatform.oslp.Oslp.PageInfo.newBuilder(this.pageInfo_) - .mergeFrom(value) - .buildPartial(); - } else { - this.pageInfo_ = value; - } - this.onChanged(); - } else { - this.pageInfoBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000004; - return this; - } - - public Builder clearPageInfo() { - if (this.pageInfoBuilder_ == null) { - this.pageInfo_ = org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance(); - this.onChanged(); - } else { - this.pageInfoBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000004); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder getPageInfoBuilder() { - this.bitField0_ |= 0x00000004; - this.onChanged(); - return this.getPageInfoFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder getPageInfoOrBuilder() { - if (this.pageInfoBuilder_ != null) { - return this.pageInfoBuilder_.getMessageOrBuilder(); - } else { - return this.pageInfo_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.PageInfo, - org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder, - org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder> - getPageInfoFieldBuilder() { - if (this.pageInfoBuilder_ == null) { - this.pageInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.PageInfo, - org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder, - org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder>( - this.pageInfo_, this.getParentForChildren(), this.isClean()); - this.pageInfo_ = null; - } - return this.pageInfoBuilder_; - } - - // @@protoc_insertion_point(builder_scope:oslp.GetPowerUsageHistoryResponse) - } + // @@protoc_insertion_point(class_scope:oslp.EventNotificationRequest) + private static final org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest(); + } - static { - defaultInstance = new GetPowerUsageHistoryResponse(true); - defaultInstance.initFields(); - } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // @@protoc_insertion_point(class_scope:oslp.GetPowerUsageHistoryResponse) - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventNotificationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public interface GetActualPowerUsageRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // optional bool present = 1 [default = true]; - boolean hasPresent(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - boolean getPresent(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final class GetActualPowerUsageRequest extends com.google.protobuf.GeneratedMessage - implements GetActualPowerUsageRequestOrBuilder { - // Use GetActualPowerUsageRequest.newBuilder() to construct. - private GetActualPowerUsageRequest(final Builder builder) { - super(builder); } - private GetActualPowerUsageRequest(final boolean noInit) {} - - private static final GetActualPowerUsageRequest defaultInstance; + public interface EventNotificationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.EventNotificationResponse) + com.google.protobuf.MessageOrBuilder { - public static GetActualPowerUsageRequest getDefaultInstance() { - return defaultInstance; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); } + /** + * Protobuf type {@code oslp.EventNotificationResponse} + */ + public static final class EventNotificationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.EventNotificationResponse) + EventNotificationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + EventNotificationResponse.class.getName()); + } + // Use EventNotificationResponse.newBuilder() to construct. + private EventNotificationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private EventNotificationResponse() { + status_ = 0; + } - @Override - public GetActualPowerUsageRequest getDefaultInstanceForType() { - return defaultInstance; - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotificationResponse_descriptor; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetActualPowerUsageRequest_descriptor; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotificationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.class, org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetActualPowerUsageRequest_fieldAccessorTable; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + getUnknownFields().writeTo(output); + } - private int bitField0_; - // optional bool present = 1 [default = true]; - public static final int PRESENT_FIELD_NUMBER = 1; - private boolean present_; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public boolean hasPresent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @Override - public boolean getPresent() { - return this.present_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse other = (org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse) obj; - private void initFields() { - this.present_ = true; - } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.EventNotificationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.EventNotificationResponse) + org.opensmartgridplatform.oslp.Oslp.EventNotificationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotificationResponse_descriptor; + } - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotificationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.class, org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.Builder.class); + } - this.memoizedIsInitialized = 1; - return true; - } + // Construct using org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.newBuilder() + private Builder() { - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(1, this.present_); - } - this.getUnknownFields().writeTo(output); - } + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, this.present_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - private static final long serialVersionUID = 0L; + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + return this; + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotificationResponse_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.getDefaultInstance(); + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse build() { + org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse result = new org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + // @@protoc_insertion_point(builder_scope:oslp.EventNotificationResponse) + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + // @@protoc_insertion_point(class_scope:oslp.EventNotificationResponse) + private static final org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse(); + } - public static Builder newBuilder() { - return Builder.create(); - } + public static org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventNotificationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest prototype) { - return newBuilder().mergeFrom(prototype); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SetScheduleRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SetScheduleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_count = 50];
+         * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + java.util.List + getSchedulesList(); + /** + *
+         * [(nanopb).max_count = 50];
+         * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + org.opensmartgridplatform.oslp.Oslp.Schedule getSchedules(int index); + /** + *
+         * [(nanopb).max_count = 50];
+         * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + int getSchedulesCount(); + /** + *
+         * [(nanopb).max_count = 50];
+         * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + java.util.List + getSchedulesOrBuilderList(); + /** + *
+         * [(nanopb).max_count = 50];
+         * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + org.opensmartgridplatform.oslp.Oslp.ScheduleOrBuilder getSchedulesOrBuilder( + int index); + + /** + * .oslp.PageInfo pageInfo = 2; + * @return Whether the pageInfo field is set. + */ + boolean hasPageInfo(); + /** + * .oslp.PageInfo pageInfo = 2; + * @return The pageInfo. + */ + org.opensmartgridplatform.oslp.Oslp.PageInfo getPageInfo(); + /** + * .oslp.PageInfo pageInfo = 2; + */ + org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder getPageInfoOrBuilder(); + + /** + *
+         * RT_NOT_SET is NOT supported!
+         * 
+ * + * .oslp.RelayType scheduleType = 3 [features = { ... } + * @return Whether the scheduleType field is set. + */ + boolean hasScheduleType(); + /** + *
+         * RT_NOT_SET is NOT supported!
+         * 
+ * + * .oslp.RelayType scheduleType = 3 [features = { ... } + * @return The enum numeric value on the wire for scheduleType. + */ + int getScheduleTypeValue(); + /** + *
+         * RT_NOT_SET is NOT supported!
+         * 
+ * + * .oslp.RelayType scheduleType = 3 [features = { ... } + * @return The scheduleType. + */ + org.opensmartgridplatform.oslp.Oslp.RelayType getScheduleType(); + } + /** + *
+     * ========= Scheduling
+     * 
+ * + * Protobuf type {@code oslp.SetScheduleRequest} + */ + public static final class SetScheduleRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SetScheduleRequest) + SetScheduleRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SetScheduleRequest.class.getName()); + } + // Use SetScheduleRequest.newBuilder() to construct. + private SetScheduleRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetScheduleRequest() { + schedules_ = java.util.Collections.emptyList(); + scheduleType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetScheduleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetScheduleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.class, org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.Builder.class); + } + + private int bitField0_; + public static final int SCHEDULES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List schedules_; + /** + *
+         * [(nanopb).max_count = 50];
+         * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + @java.lang.Override + public java.util.List getSchedulesList() { + return schedules_; + } + /** + *
+         * [(nanopb).max_count = 50];
+         * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + @java.lang.Override + public java.util.List + getSchedulesOrBuilderList() { + return schedules_; + } + /** + *
+         * [(nanopb).max_count = 50];
+         * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + @java.lang.Override + public int getSchedulesCount() { + return schedules_.size(); + } + /** + *
+         * [(nanopb).max_count = 50];
+         * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Schedule getSchedules(int index) { + return schedules_.get(index); + } + /** + *
+         * [(nanopb).max_count = 50];
+         * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ScheduleOrBuilder getSchedulesOrBuilder( + int index) { + return schedules_.get(index); + } + + public static final int PAGEINFO_FIELD_NUMBER = 2; + private org.opensmartgridplatform.oslp.Oslp.PageInfo pageInfo_; + /** + * .oslp.PageInfo pageInfo = 2; + * @return Whether the pageInfo field is set. + */ + @java.lang.Override + public boolean hasPageInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.PageInfo pageInfo = 2; + * @return The pageInfo. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PageInfo getPageInfo() { + return pageInfo_ == null ? org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance() : pageInfo_; + } + /** + * .oslp.PageInfo pageInfo = 2; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder getPageInfoOrBuilder() { + return pageInfo_ == null ? org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance() : pageInfo_; + } + + public static final int SCHEDULETYPE_FIELD_NUMBER = 3; + private int scheduleType_ = 0; + /** + *
+         * RT_NOT_SET is NOT supported!
+         * 
+ * + * .oslp.RelayType scheduleType = 3 [features = { ... } + * @return Whether the scheduleType field is set. + */ + @java.lang.Override public boolean hasScheduleType() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * RT_NOT_SET is NOT supported!
+         * 
+ * + * .oslp.RelayType scheduleType = 3 [features = { ... } + * @return The enum numeric value on the wire for scheduleType. + */ + @java.lang.Override public int getScheduleTypeValue() { + return scheduleType_; + } + /** + *
+         * RT_NOT_SET is NOT supported!
+         * 
+ * + * .oslp.RelayType scheduleType = 3 [features = { ... } + * @return The scheduleType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.RelayType getScheduleType() { + org.opensmartgridplatform.oslp.Oslp.RelayType result = org.opensmartgridplatform.oslp.Oslp.RelayType.forNumber(scheduleType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.RelayType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasScheduleType()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getSchedulesCount(); i++) { + if (!getSchedules(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasPageInfo()) { + if (!getPageInfo().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < schedules_.size(); i++) { + output.writeMessage(1, schedules_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPageInfo()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(3, scheduleType_); + } + getUnknownFields().writeTo(output); + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetActualPowerUsageRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetActualPowerUsageRequest_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.present_ = true; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest build() { - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest result = - new org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.present_ = this.present_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest - .getDefaultInstance()) { - return this; - } - if (other.hasPresent()) { - this.setPresent(other.getPresent()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - this.bitField0_ |= 0x00000001; - this.present_ = input.readBool(); - break; - } - } - } - } - - private int bitField0_; - - // optional bool present = 1 [default = true]; - private boolean present_ = true; - - @Override - public boolean hasPresent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public boolean getPresent() { - return this.present_; - } - - public Builder setPresent(final boolean value) { - this.bitField0_ |= 0x00000001; - this.present_ = value; - this.onChanged(); - return this; - } - - public Builder clearPresent() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.present_ = true; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.GetActualPowerUsageRequest) - } + size = 0; + for (int i = 0; i < schedules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, schedules_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPageInfo()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, scheduleType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - static { - defaultInstance = new GetActualPowerUsageRequest(true); - defaultInstance.initFields(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest other = (org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest) obj; + + if (!getSchedulesList() + .equals(other.getSchedulesList())) return false; + if (hasPageInfo() != other.hasPageInfo()) return false; + if (hasPageInfo()) { + if (!getPageInfo() + .equals(other.getPageInfo())) return false; + } + if (hasScheduleType() != other.hasScheduleType()) return false; + if (hasScheduleType()) { + if (scheduleType_ != other.scheduleType_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - // @@protoc_insertion_point(class_scope:oslp.GetActualPowerUsageRequest) - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSchedulesCount() > 0) { + hash = (37 * hash) + SCHEDULES_FIELD_NUMBER; + hash = (53 * hash) + getSchedulesList().hashCode(); + } + if (hasPageInfo()) { + hash = (37 * hash) + PAGEINFO_FIELD_NUMBER; + hash = (53 * hash) + getPageInfo().hashCode(); + } + if (hasScheduleType()) { + hash = (37 * hash) + SCHEDULETYPE_FIELD_NUMBER; + hash = (53 * hash) + scheduleType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * ========= Scheduling
+         * 
+ * + * Protobuf type {@code oslp.SetScheduleRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SetScheduleRequest) + org.opensmartgridplatform.oslp.Oslp.SetScheduleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetScheduleRequest_descriptor; + } - public interface GetActualPowerUsageResponseOrBuilder - extends com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetScheduleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.class, org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.Builder.class); + } - // required .oslp.Status status = 1; - boolean hasStatus(); + // Construct using org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + internalGetSchedulesFieldBuilder(); + internalGetPageInfoFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (schedulesBuilder_ == null) { + schedules_ = java.util.Collections.emptyList(); + } else { + schedules_ = null; + schedulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + pageInfo_ = null; + if (pageInfoBuilder_ != null) { + pageInfoBuilder_.dispose(); + pageInfoBuilder_ = null; + } + scheduleType_ = 0; + return this; + } - // required .oslp.PowerUsageData powerUsageData = 2; - boolean hasPowerUsageData(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetScheduleRequest_descriptor; + } - org.opensmartgridplatform.oslp.Oslp.PowerUsageData getPowerUsageData(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.getDefaultInstance(); + } - org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder getPowerUsageDataOrBuilder(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest build() { + org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final class GetActualPowerUsageResponse extends com.google.protobuf.GeneratedMessage - implements GetActualPowerUsageResponseOrBuilder { - // Use GetActualPowerUsageResponse.newBuilder() to construct. - private GetActualPowerUsageResponse(final Builder builder) { - super(builder); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest result = new org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - private GetActualPowerUsageResponse(final boolean noInit) {} + private void buildPartialRepeatedFields(org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest result) { + if (schedulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + schedules_ = java.util.Collections.unmodifiableList(schedules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.schedules_ = schedules_; + } else { + result.schedules_ = schedulesBuilder_.build(); + } + } - private static final GetActualPowerUsageResponse defaultInstance; + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageInfo_ = pageInfoBuilder_ == null + ? pageInfo_ + : pageInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.scheduleType_ = scheduleType_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } - public static GetActualPowerUsageResponse getDefaultInstance() { - return defaultInstance; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - @Override - public GetActualPowerUsageResponse getDefaultInstanceForType() { - return defaultInstance; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.getDefaultInstance()) return this; + if (schedulesBuilder_ == null) { + if (!other.schedules_.isEmpty()) { + if (schedules_.isEmpty()) { + schedules_ = other.schedules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSchedulesIsMutable(); + schedules_.addAll(other.schedules_); + } + onChanged(); + } + } else { + if (!other.schedules_.isEmpty()) { + if (schedulesBuilder_.isEmpty()) { + schedulesBuilder_.dispose(); + schedulesBuilder_ = null; + schedules_ = other.schedules_; + bitField0_ = (bitField0_ & ~0x00000001); + schedulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetSchedulesFieldBuilder() : null; + } else { + schedulesBuilder_.addAllMessages(other.schedules_); + } + } + } + if (other.hasPageInfo()) { + mergePageInfo(other.getPageInfo()); + } + if (other.hasScheduleType()) { + setScheduleTypeValue(other.getScheduleTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetActualPowerUsageResponse_descriptor; - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasScheduleType()) { + return false; + } + for (int i = 0; i < getSchedulesCount(); i++) { + if (!getSchedules(i).isInitialized()) { + return false; + } + } + if (hasPageInfo()) { + if (!getPageInfo().isInitialized()) { + return false; + } + } + return true; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetActualPowerUsageResponse_fieldAccessorTable; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + org.opensmartgridplatform.oslp.Oslp.Schedule m = + input.readMessage( + org.opensmartgridplatform.oslp.Oslp.Schedule.parser(), + extensionRegistry); + if (schedulesBuilder_ == null) { + ensureSchedulesIsMutable(); + schedules_.add(m); + } else { + schedulesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + internalGetPageInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + scheduleType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List schedules_ = + java.util.Collections.emptyList(); + private void ensureSchedulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + schedules_ = new java.util.ArrayList(schedules_); + bitField0_ |= 0x00000001; + } + } - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.Schedule, org.opensmartgridplatform.oslp.Oslp.Schedule.Builder, org.opensmartgridplatform.oslp.Oslp.ScheduleOrBuilder> schedulesBuilder_; + + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public java.util.List getSchedulesList() { + if (schedulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(schedules_); + } else { + return schedulesBuilder_.getMessageList(); + } + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public int getSchedulesCount() { + if (schedulesBuilder_ == null) { + return schedules_.size(); + } else { + return schedulesBuilder_.getCount(); + } + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.Schedule getSchedules(int index) { + if (schedulesBuilder_ == null) { + return schedules_.get(index); + } else { + return schedulesBuilder_.getMessage(index); + } + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public Builder setSchedules( + int index, org.opensmartgridplatform.oslp.Oslp.Schedule value) { + if (schedulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchedulesIsMutable(); + schedules_.set(index, value); + onChanged(); + } else { + schedulesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public Builder setSchedules( + int index, org.opensmartgridplatform.oslp.Oslp.Schedule.Builder builderForValue) { + if (schedulesBuilder_ == null) { + ensureSchedulesIsMutable(); + schedules_.set(index, builderForValue.build()); + onChanged(); + } else { + schedulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public Builder addSchedules(org.opensmartgridplatform.oslp.Oslp.Schedule value) { + if (schedulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchedulesIsMutable(); + schedules_.add(value); + onChanged(); + } else { + schedulesBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public Builder addSchedules( + int index, org.opensmartgridplatform.oslp.Oslp.Schedule value) { + if (schedulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchedulesIsMutable(); + schedules_.add(index, value); + onChanged(); + } else { + schedulesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public Builder addSchedules( + org.opensmartgridplatform.oslp.Oslp.Schedule.Builder builderForValue) { + if (schedulesBuilder_ == null) { + ensureSchedulesIsMutable(); + schedules_.add(builderForValue.build()); + onChanged(); + } else { + schedulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public Builder addSchedules( + int index, org.opensmartgridplatform.oslp.Oslp.Schedule.Builder builderForValue) { + if (schedulesBuilder_ == null) { + ensureSchedulesIsMutable(); + schedules_.add(index, builderForValue.build()); + onChanged(); + } else { + schedulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public Builder addAllSchedules( + java.lang.Iterable values) { + if (schedulesBuilder_ == null) { + ensureSchedulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, schedules_); + onChanged(); + } else { + schedulesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public Builder clearSchedules() { + if (schedulesBuilder_ == null) { + schedules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + schedulesBuilder_.clear(); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public Builder removeSchedules(int index) { + if (schedulesBuilder_ == null) { + ensureSchedulesIsMutable(); + schedules_.remove(index); + onChanged(); + } else { + schedulesBuilder_.remove(index); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.Schedule.Builder getSchedulesBuilder( + int index) { + return internalGetSchedulesFieldBuilder().getBuilder(index); + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.ScheduleOrBuilder getSchedulesOrBuilder( + int index) { + if (schedulesBuilder_ == null) { + return schedules_.get(index); } else { + return schedulesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public java.util.List + getSchedulesOrBuilderList() { + if (schedulesBuilder_ != null) { + return schedulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(schedules_); + } + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.Schedule.Builder addSchedulesBuilder() { + return internalGetSchedulesFieldBuilder().addBuilder( + org.opensmartgridplatform.oslp.Oslp.Schedule.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.Schedule.Builder addSchedulesBuilder( + int index) { + return internalGetSchedulesFieldBuilder().addBuilder( + index, org.opensmartgridplatform.oslp.Oslp.Schedule.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 50];
+             * 
+ * + * repeated .oslp.Schedule schedules = 1; + */ + public java.util.List + getSchedulesBuilderList() { + return internalGetSchedulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.Schedule, org.opensmartgridplatform.oslp.Oslp.Schedule.Builder, org.opensmartgridplatform.oslp.Oslp.ScheduleOrBuilder> + internalGetSchedulesFieldBuilder() { + if (schedulesBuilder_ == null) { + schedulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.Schedule, org.opensmartgridplatform.oslp.Oslp.Schedule.Builder, org.opensmartgridplatform.oslp.Oslp.ScheduleOrBuilder>( + schedules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + schedules_ = null; + } + return schedulesBuilder_; + } - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + private org.opensmartgridplatform.oslp.Oslp.PageInfo pageInfo_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.PageInfo, org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder, org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder> pageInfoBuilder_; + /** + * .oslp.PageInfo pageInfo = 2; + * @return Whether the pageInfo field is set. + */ + public boolean hasPageInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .oslp.PageInfo pageInfo = 2; + * @return The pageInfo. + */ + public org.opensmartgridplatform.oslp.Oslp.PageInfo getPageInfo() { + if (pageInfoBuilder_ == null) { + return pageInfo_ == null ? org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance() : pageInfo_; + } else { + return pageInfoBuilder_.getMessage(); + } + } + /** + * .oslp.PageInfo pageInfo = 2; + */ + public Builder setPageInfo(org.opensmartgridplatform.oslp.Oslp.PageInfo value) { + if (pageInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pageInfo_ = value; + } else { + pageInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .oslp.PageInfo pageInfo = 2; + */ + public Builder setPageInfo( + org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder builderForValue) { + if (pageInfoBuilder_ == null) { + pageInfo_ = builderForValue.build(); + } else { + pageInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .oslp.PageInfo pageInfo = 2; + */ + public Builder mergePageInfo(org.opensmartgridplatform.oslp.Oslp.PageInfo value) { + if (pageInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pageInfo_ != null && + pageInfo_ != org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance()) { + getPageInfoBuilder().mergeFrom(value); + } else { + pageInfo_ = value; + } + } else { + pageInfoBuilder_.mergeFrom(value); + } + if (pageInfo_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .oslp.PageInfo pageInfo = 2; + */ + public Builder clearPageInfo() { + bitField0_ = (bitField0_ & ~0x00000002); + pageInfo_ = null; + if (pageInfoBuilder_ != null) { + pageInfoBuilder_.dispose(); + pageInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.PageInfo pageInfo = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder getPageInfoBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetPageInfoFieldBuilder().getBuilder(); + } + /** + * .oslp.PageInfo pageInfo = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder getPageInfoOrBuilder() { + if (pageInfoBuilder_ != null) { + return pageInfoBuilder_.getMessageOrBuilder(); + } else { + return pageInfo_ == null ? + org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance() : pageInfo_; + } + } + /** + * .oslp.PageInfo pageInfo = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.PageInfo, org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder, org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder> + internalGetPageInfoFieldBuilder() { + if (pageInfoBuilder_ == null) { + pageInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.PageInfo, org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder, org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder>( + getPageInfo(), + getParentForChildren(), + isClean()); + pageInfo_ = null; + } + return pageInfoBuilder_; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } + private int scheduleType_ = 0; + /** + *
+             * RT_NOT_SET is NOT supported!
+             * 
+ * + * .oslp.RelayType scheduleType = 3 [features = { ... } + * @return Whether the scheduleType field is set. + */ + @java.lang.Override public boolean hasScheduleType() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * RT_NOT_SET is NOT supported!
+             * 
+ * + * .oslp.RelayType scheduleType = 3 [features = { ... } + * @return The enum numeric value on the wire for scheduleType. + */ + @java.lang.Override public int getScheduleTypeValue() { + return scheduleType_; + } + /** + *
+             * RT_NOT_SET is NOT supported!
+             * 
+ * + * .oslp.RelayType scheduleType = 3 [features = { ... } + * @param value The enum numeric value on the wire for scheduleType to set. + * @return This builder for chaining. + */ + public Builder setScheduleTypeValue(int value) { + scheduleType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * RT_NOT_SET is NOT supported!
+             * 
+ * + * .oslp.RelayType scheduleType = 3 [features = { ... } + * @return The scheduleType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayType getScheduleType() { + org.opensmartgridplatform.oslp.Oslp.RelayType result = org.opensmartgridplatform.oslp.Oslp.RelayType.forNumber(scheduleType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.RelayType.UNRECOGNIZED : result; + } + /** + *
+             * RT_NOT_SET is NOT supported!
+             * 
+ * + * .oslp.RelayType scheduleType = 3 [features = { ... } + * @param value The scheduleType to set. + * @return This builder for chaining. + */ + public Builder setScheduleType(org.opensmartgridplatform.oslp.Oslp.RelayType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000004; + scheduleType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * RT_NOT_SET is NOT supported!
+             * 
+ * + * .oslp.RelayType scheduleType = 3 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearScheduleType() { + bitField0_ = (bitField0_ & ~0x00000004); + scheduleType_ = 0; + onChanged(); + return this; + } - // required .oslp.PowerUsageData powerUsageData = 2; - public static final int POWERUSAGEDATA_FIELD_NUMBER = 2; - private org.opensmartgridplatform.oslp.Oslp.PowerUsageData powerUsageData_; + // @@protoc_insertion_point(builder_scope:oslp.SetScheduleRequest) + } - @Override - public boolean hasPowerUsageData() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + // @@protoc_insertion_point(class_scope:oslp.SetScheduleRequest) + private static final org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest(); + } - @Override - public org.opensmartgridplatform.oslp.Oslp.PowerUsageData getPowerUsageData() { - return this.powerUsageData_; - } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder - getPowerUsageDataOrBuilder() { - return this.powerUsageData_; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetScheduleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.powerUsageData_ = - org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasPowerUsageData()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.getPowerUsageData().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, this.powerUsageData_); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, this.powerUsageData_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; } - private static final long serialVersionUID = 0L; + public interface SetScheduleResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SetScheduleResponse) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); } + /** + * Protobuf type {@code oslp.SetScheduleResponse} + */ + public static final class SetScheduleResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SetScheduleResponse) + SetScheduleResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SetScheduleResponse.class.getName()); + } + // Use SetScheduleResponse.newBuilder() to construct. + private SetScheduleResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetScheduleResponse() { + status_ = 0; + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetScheduleResponse_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetScheduleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.class, org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + getUnknownFields().writeTo(output); + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse other = (org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse) obj; - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse - parseDelimitedFrom(final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse - parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.SetScheduleResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SetScheduleResponse) + org.opensmartgridplatform.oslp.Oslp.SetScheduleResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetScheduleResponse_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetScheduleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.class, org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.Builder.class); + } - public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.newBuilder() + private Builder() { - public static Builder newBuilder() { - return Builder.create(); - } + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse prototype) { - return newBuilder().mergeFrom(prototype); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + return this; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetScheduleResponse_descriptor; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.getDefaultInstance(); + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetActualPowerUsageResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_GetActualPowerUsageResponse_fieldAccessorTable; - } - - // Construct using - // org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getPowerUsageDataFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - if (this.powerUsageDataBuilder_ == null) { - this.powerUsageData_ = - org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance(); - } else { - this.powerUsageDataBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000002); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse build() { - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse result = - new org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (this.powerUsageDataBuilder_ == null) { - result.powerUsageData_ = this.powerUsageData_; - } else { - result.powerUsageData_ = this.powerUsageDataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse - .getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - if (other.hasPowerUsageData()) { - this.mergePowerUsageData(other.getPowerUsageData()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - if (!this.hasPowerUsageData()) { - - return false; - } - if (!this.getPowerUsageData().isInitialized()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - case 18: - { - final org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.PowerUsageData.newBuilder(); - if (this.hasPowerUsageData()) { - subBuilder.mergeFrom(this.getPowerUsageData()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setPowerUsageData(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // required .oslp.PowerUsageData powerUsageData = 2; - private org.opensmartgridplatform.oslp.Oslp.PowerUsageData powerUsageData_ = - org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.PowerUsageData, - org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder, - org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder> - powerUsageDataBuilder_; - - @Override - public boolean hasPowerUsageData() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PowerUsageData getPowerUsageData() { - if (this.powerUsageDataBuilder_ == null) { - return this.powerUsageData_; - } else { - return this.powerUsageDataBuilder_.getMessage(); - } - } - - public Builder setPowerUsageData( - final org.opensmartgridplatform.oslp.Oslp.PowerUsageData value) { - if (this.powerUsageDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.powerUsageData_ = value; - this.onChanged(); - } else { - this.powerUsageDataBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000002; - return this; - } - - public Builder setPowerUsageData( - final org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder builderForValue) { - if (this.powerUsageDataBuilder_ == null) { - this.powerUsageData_ = builderForValue.build(); - this.onChanged(); - } else { - this.powerUsageDataBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000002; - return this; - } - - public Builder mergePowerUsageData( - final org.opensmartgridplatform.oslp.Oslp.PowerUsageData value) { - if (this.powerUsageDataBuilder_ == null) { - if (((this.bitField0_ & 0x00000002) == 0x00000002) - && this.powerUsageData_ - != org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance()) { - this.powerUsageData_ = - org.opensmartgridplatform.oslp.Oslp.PowerUsageData.newBuilder(this.powerUsageData_) - .mergeFrom(value) - .buildPartial(); - } else { - this.powerUsageData_ = value; - } - this.onChanged(); - } else { - this.powerUsageDataBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000002; - return this; - } - - public Builder clearPowerUsageData() { - if (this.powerUsageDataBuilder_ == null) { - this.powerUsageData_ = - org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance(); - this.onChanged(); - } else { - this.powerUsageDataBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000002); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder getPowerUsageDataBuilder() { - this.bitField0_ |= 0x00000002; - this.onChanged(); - return this.getPowerUsageDataFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder - getPowerUsageDataOrBuilder() { - if (this.powerUsageDataBuilder_ != null) { - return this.powerUsageDataBuilder_.getMessageOrBuilder(); - } else { - return this.powerUsageData_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.PowerUsageData, - org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder, - org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder> - getPowerUsageDataFieldBuilder() { - if (this.powerUsageDataBuilder_ == null) { - this.powerUsageDataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.PowerUsageData, - org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder, - org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder>( - this.powerUsageData_, this.getParentForChildren(), this.isClean()); - this.powerUsageData_ = null; - } - return this.powerUsageDataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:oslp.GetActualPowerUsageResponse) - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse build() { + org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - static { - defaultInstance = new GetActualPowerUsageResponse(true); - defaultInstance.initFields(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse result = new org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - // @@protoc_insertion_point(class_scope:oslp.GetActualPowerUsageResponse) - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - public interface UpdateDeviceSslCertificationRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - // required string certificateDomain = 1; - boolean hasCertificateDomain(); + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - String getCertificateDomain(); + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + return true; + } - // required string certificateUrl = 2; - boolean hasCertificateUrl(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - String getCertificateUrl(); - } + // @@protoc_insertion_point(builder_scope:oslp.SetScheduleResponse) + } - public static final class UpdateDeviceSslCertificationRequest - extends com.google.protobuf.GeneratedMessage - implements UpdateDeviceSslCertificationRequestOrBuilder { - // Use UpdateDeviceSslCertificationRequest.newBuilder() to construct. - private UpdateDeviceSslCertificationRequest(final Builder builder) { - super(builder); - } + // @@protoc_insertion_point(class_scope:oslp.SetScheduleResponse) + private static final org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse(); + } - private UpdateDeviceSslCertificationRequest(final boolean noInit) {} + public static org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private static final UpdateDeviceSslCertificationRequest defaultInstance; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetScheduleResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static UpdateDeviceSslCertificationRequest getDefaultInstance() { - return defaultInstance; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SetConfigurationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SetConfigurationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .oslp.LightType lightType = 1; + * @return Whether the lightType field is set. + */ + boolean hasLightType(); + /** + * .oslp.LightType lightType = 1; + * @return The enum numeric value on the wire for lightType. + */ + int getLightTypeValue(); + /** + * .oslp.LightType lightType = 1; + * @return The lightType. + */ + org.opensmartgridplatform.oslp.Oslp.LightType getLightType(); + + /** + *
+         * Contains specific configuration for DALI controllers.
+         * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 2; + * @return Whether the daliConfiguration field is set. + */ + boolean hasDaliConfiguration(); + /** + *
+         * Contains specific configuration for DALI controllers.
+         * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 2; + * @return The daliConfiguration. + */ + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDaliConfiguration(); + /** + *
+         * Contains specific configuration for DALI controllers.
+         * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 2; + */ + org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder getDaliConfigurationOrBuilder(); + + /** + *
+         * Contains specific configuration for Relay.
+         * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 3; + * @return Whether the relayConfiguration field is set. + */ + boolean hasRelayConfiguration(); + /** + *
+         * Contains specific configuration for Relay.
+         * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 3; + * @return The relayConfiguration. + */ + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getRelayConfiguration(); + /** + *
+         * Contains specific configuration for Relay.
+         * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 3; + */ + org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder getRelayConfigurationOrBuilder(); + + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 4; + * @return Whether the shortTermHistoryIntervalMinutes field is set. + */ + boolean hasShortTermHistoryIntervalMinutes(); + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 4; + * @return The shortTermHistoryIntervalMinutes. + */ + int getShortTermHistoryIntervalMinutes(); + + /** + * .oslp.LinkType preferredLinkType = 5; + * @return Whether the preferredLinkType field is set. + */ + boolean hasPreferredLinkType(); + /** + * .oslp.LinkType preferredLinkType = 5; + * @return The enum numeric value on the wire for preferredLinkType. + */ + int getPreferredLinkTypeValue(); + /** + * .oslp.LinkType preferredLinkType = 5; + * @return The preferredLinkType. + */ + org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinkType(); + + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.MeterType meterType = 6; + * @return Whether the meterType field is set. + */ + boolean hasMeterType(); + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.MeterType meterType = 6; + * @return The enum numeric value on the wire for meterType. + */ + int getMeterTypeValue(); + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.MeterType meterType = 6; + * @return The meterType. + */ + org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType(); + + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 longTermHistoryInterval = 7; + * @return Whether the longTermHistoryInterval field is set. + */ + boolean hasLongTermHistoryInterval(); + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 longTermHistoryInterval = 7; + * @return The longTermHistoryInterval. + */ + int getLongTermHistoryInterval(); + + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 8; + * @return Whether the longTermHistoryIntervalType field is set. + */ + boolean hasLongTermHistoryIntervalType(); + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 8; + * @return The enum numeric value on the wire for longTermHistoryIntervalType. + */ + int getLongTermHistoryIntervalTypeValue(); + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 8; + * @return The longTermHistoryIntervalType. + */ + org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType getLongTermHistoryIntervalType(); + + /** + *
+         * Time synch frequency (seconds).
+         * 
+ * + * uint32 timeSyncFrequency = 9 [default = 86400]; + * @return Whether the timeSyncFrequency field is set. + */ + boolean hasTimeSyncFrequency(); + /** + *
+         * Time synch frequency (seconds).
+         * 
+ * + * uint32 timeSyncFrequency = 9 [default = 86400]; + * @return The timeSyncFrequency. + */ + int getTimeSyncFrequency(); + + /** + *
+         * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+         * 
+ * + * bytes deviceFixIpValue = 10; + * @return Whether the deviceFixIpValue field is set. + */ + boolean hasDeviceFixIpValue(); + /** + *
+         * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+         * 
+ * + * bytes deviceFixIpValue = 10; + * @return The deviceFixIpValue. + */ + com.google.protobuf.ByteString getDeviceFixIpValue(); + + /** + *
+         * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+         * 
+ * + * bytes netMask = 11; + * @return Whether the netMask field is set. + */ + boolean hasNetMask(); + /** + *
+         * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+         * 
+ * + * bytes netMask = 11; + * @return The netMask. + */ + com.google.protobuf.ByteString getNetMask(); + + /** + *
+         * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+         * 
+ * + * bytes gateWay = 12; + * @return Whether the gateWay field is set. + */ + boolean hasGateWay(); + /** + *
+         * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+         * 
+ * + * bytes gateWay = 12; + * @return The gateWay. + */ + com.google.protobuf.ByteString getGateWay(); + + /** + *
+         * Is DHCP enabled for this device?
+         * 
+ * + * bool isDhcpEnabled = 13 [default = true]; + * @return Whether the isDhcpEnabled field is set. + */ + boolean hasIsDhcpEnabled(); + /** + *
+         * Is DHCP enabled for this device?
+         * 
+ * + * bool isDhcpEnabled = 13 [default = true]; + * @return The isDhcpEnabled. + */ + boolean getIsDhcpEnabled(); + + /** + *
+         * bool isTlsEnabled = 14;                                                     // Defines if TLS is enabled.
+         * uint32 oslpBindPortNumber = 15;                                             // The port used for TLS connections.
+         * string commonNameString = 16 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+         * 
+ * + * uint32 communicationTimeout = 14 [default = 20]; + * @return Whether the communicationTimeout field is set. + */ + boolean hasCommunicationTimeout(); + /** + *
+         * bool isTlsEnabled = 14;                                                     // Defines if TLS is enabled.
+         * uint32 oslpBindPortNumber = 15;                                             // The port used for TLS connections.
+         * string commonNameString = 16 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+         * 
+ * + * uint32 communicationTimeout = 14 [default = 20]; + * @return The communicationTimeout. + */ + int getCommunicationTimeout(); + + /** + *
+         * Communication number of retries.
+         * 
+ * + * uint32 communicationNumberOfRetries = 15 [default = 3]; + * @return Whether the communicationNumberOfRetries field is set. + */ + boolean hasCommunicationNumberOfRetries(); + /** + *
+         * Communication number of retries.
+         * 
+ * + * uint32 communicationNumberOfRetries = 15 [default = 3]; + * @return The communicationNumberOfRetries. + */ + int getCommunicationNumberOfRetries(); + + /** + *
+         * Time between communication attempts.
+         * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 16 [default = 60]; + * @return Whether the communicationPauseTimeBetweenConnectionTrials field is set. + */ + boolean hasCommunicationPauseTimeBetweenConnectionTrials(); + /** + *
+         * Time between communication attempts.
+         * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 16 [default = 60]; + * @return The communicationPauseTimeBetweenConnectionTrials. + */ + int getCommunicationPauseTimeBetweenConnectionTrials(); + + /** + *
+         * [(nanopb).max_count = 4];                      // The IP address of the platform.
+         * 
+ * + * bytes ospgIpAddress = 17; + * @return Whether the ospgIpAddress field is set. + */ + boolean hasOspgIpAddress(); + /** + *
+         * [(nanopb).max_count = 4];                      // The IP address of the platform.
+         * 
+ * + * bytes ospgIpAddress = 17; + * @return The ospgIpAddress. + */ + com.google.protobuf.ByteString getOspgIpAddress(); + + /** + *
+         * The port number of the platform.
+         * 
+ * + * uint32 osgpPortNumber = 18; + * @return Whether the osgpPortNumber field is set. + */ + boolean hasOsgpPortNumber(); + /** + *
+         * The port number of the platform.
+         * 
+ * + * uint32 osgpPortNumber = 18; + * @return The osgpPortNumber. + */ + int getOsgpPortNumber(); + + /** + *
+         * Is the test button enabled for this device?
+         * 
+ * + * bool isTestButtonEnabled = 19 [default = true]; + * @return Whether the isTestButtonEnabled field is set. + */ + boolean hasIsTestButtonEnabled(); + /** + *
+         * Is the test button enabled for this device?
+         * 
+ * + * bool isTestButtonEnabled = 19 [default = true]; + * @return The isTestButtonEnabled. + */ + boolean getIsTestButtonEnabled(); + + /** + *
+         * Is the automatic summer timing enabled for this device?
+         * 
+ * + * bool isAutomaticSummerTimingEnabled = 20 [default = true]; + * @return Whether the isAutomaticSummerTimingEnabled field is set. + */ + boolean hasIsAutomaticSummerTimingEnabled(); + /** + *
+         * Is the automatic summer timing enabled for this device?
+         * 
+ * + * bool isAutomaticSummerTimingEnabled = 20 [default = true]; + * @return The isAutomaticSummerTimingEnabled. + */ + boolean getIsAutomaticSummerTimingEnabled(); + + /** + *
+         * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunRiseOffset = 21 [default = 0]; + * @return Whether the astroGateSunRiseOffset field is set. + */ + boolean hasAstroGateSunRiseOffset(); + /** + *
+         * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunRiseOffset = 21 [default = 0]; + * @return The astroGateSunRiseOffset. + */ + int getAstroGateSunRiseOffset(); + + /** + *
+         * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunSetOffset = 22 [default = 0]; + * @return Whether the astroGateSunSetOffset field is set. + */ + boolean hasAstroGateSunSetOffset(); + /** + *
+         * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunSetOffset = 22 [default = 0]; + * @return The astroGateSunSetOffset. + */ + int getAstroGateSunSetOffset(); + + /** + *
+         * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+         * 
+ * + * repeated uint32 switchingDelay = 23; + * @return A list containing the switchingDelay. + */ + java.util.List getSwitchingDelayList(); + /** + *
+         * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+         * 
+ * + * repeated uint32 switchingDelay = 23; + * @return The count of switchingDelay. + */ + int getSwitchingDelayCount(); + /** + *
+         * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+         * 
+ * + * repeated uint32 switchingDelay = 23; + * @param index The index of the element to return. + * @return The switchingDelay at the given index. + */ + int getSwitchingDelay(int index); + + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + java.util.List + getRelayLinkingList(); + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + org.opensmartgridplatform.oslp.Oslp.RelayMatrix getRelayLinking(int index); + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + int getRelayLinkingCount(); + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + java.util.List + getRelayLinkingOrBuilderList(); + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder getRelayLinkingOrBuilder( + int index); + + /** + *
+         * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+         * 
+ * + * bool relayRefreshing = 25 [default = true]; + * @return Whether the relayRefreshing field is set. + */ + boolean hasRelayRefreshing(); + /** + *
+         * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+         * 
+ * + * bool relayRefreshing = 25 [default = true]; + * @return The relayRefreshing. + */ + boolean getRelayRefreshing(); + + /** + *
+         * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string summerTimeDetails = 26 [default = "0360100"]; + * @return Whether the summerTimeDetails field is set. + */ + boolean hasSummerTimeDetails(); + /** + *
+         * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string summerTimeDetails = 26 [default = "0360100"]; + * @return The summerTimeDetails. + */ + java.lang.String getSummerTimeDetails(); + /** + *
+         * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string summerTimeDetails = 26 [default = "0360100"]; + * @return The bytes for summerTimeDetails. + */ + com.google.protobuf.ByteString + getSummerTimeDetailsBytes(); + + /** + *
+         * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string winterTimeDetails = 27 [default = "1060200"]; + * @return Whether the winterTimeDetails field is set. + */ + boolean hasWinterTimeDetails(); + /** + *
+         * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string winterTimeDetails = 27 [default = "1060200"]; + * @return The winterTimeDetails. + */ + java.lang.String getWinterTimeDetails(); + /** + *
+         * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string winterTimeDetails = 27 [default = "1060200"]; + * @return The bytes for winterTimeDetails. + */ + com.google.protobuf.ByteString + getWinterTimeDetailsBytes(); + } + /** + *
+     * ========= Configuration
+     * 
+ * + * Protobuf type {@code oslp.SetConfigurationRequest} + */ + public static final class SetConfigurationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SetConfigurationRequest) + SetConfigurationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SetConfigurationRequest.class.getName()); + } + // Use SetConfigurationRequest.newBuilder() to construct. + private SetConfigurationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetConfigurationRequest() { + lightType_ = 0; + preferredLinkType_ = 0; + meterType_ = 0; + longTermHistoryIntervalType_ = 0; + timeSyncFrequency_ = 86400; + deviceFixIpValue_ = com.google.protobuf.ByteString.EMPTY; + netMask_ = com.google.protobuf.ByteString.EMPTY; + gateWay_ = com.google.protobuf.ByteString.EMPTY; + isDhcpEnabled_ = true; + communicationTimeout_ = 20; + communicationNumberOfRetries_ = 3; + communicationPauseTimeBetweenConnectionTrials_ = 60; + ospgIpAddress_ = com.google.protobuf.ByteString.EMPTY; + isTestButtonEnabled_ = true; + isAutomaticSummerTimingEnabled_ = true; + switchingDelay_ = emptyIntList(); + relayLinking_ = java.util.Collections.emptyList(); + relayRefreshing_ = true; + summerTimeDetails_ = "0360100"; + winterTimeDetails_ = "1060200"; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.class, org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.Builder.class); + } + + private int bitField0_; + public static final int LIGHTTYPE_FIELD_NUMBER = 1; + private int lightType_ = 0; + /** + * .oslp.LightType lightType = 1; + * @return Whether the lightType field is set. + */ + @java.lang.Override public boolean hasLightType() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.LightType lightType = 1; + * @return The enum numeric value on the wire for lightType. + */ + @java.lang.Override public int getLightTypeValue() { + return lightType_; + } + /** + * .oslp.LightType lightType = 1; + * @return The lightType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.LightType getLightType() { + org.opensmartgridplatform.oslp.Oslp.LightType result = org.opensmartgridplatform.oslp.Oslp.LightType.forNumber(lightType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LightType.UNRECOGNIZED : result; + } + + public static final int DALICONFIGURATION_FIELD_NUMBER = 2; + private org.opensmartgridplatform.oslp.Oslp.DaliConfiguration daliConfiguration_; + /** + *
+         * Contains specific configuration for DALI controllers.
+         * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 2; + * @return Whether the daliConfiguration field is set. + */ + @java.lang.Override + public boolean hasDaliConfiguration() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * Contains specific configuration for DALI controllers.
+         * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 2; + * @return The daliConfiguration. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDaliConfiguration() { + return daliConfiguration_ == null ? org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance() : daliConfiguration_; + } + /** + *
+         * Contains specific configuration for DALI controllers.
+         * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 2; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder getDaliConfigurationOrBuilder() { + return daliConfiguration_ == null ? org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance() : daliConfiguration_; + } + + public static final int RELAYCONFIGURATION_FIELD_NUMBER = 3; + private org.opensmartgridplatform.oslp.Oslp.RelayConfiguration relayConfiguration_; + /** + *
+         * Contains specific configuration for Relay.
+         * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 3; + * @return Whether the relayConfiguration field is set. + */ + @java.lang.Override + public boolean hasRelayConfiguration() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * Contains specific configuration for Relay.
+         * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 3; + * @return The relayConfiguration. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getRelayConfiguration() { + return relayConfiguration_ == null ? org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance() : relayConfiguration_; + } + /** + *
+         * Contains specific configuration for Relay.
+         * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 3; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder getRelayConfigurationOrBuilder() { + return relayConfiguration_ == null ? org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance() : relayConfiguration_; + } + + public static final int SHORTTERMHISTORYINTERVALMINUTES_FIELD_NUMBER = 4; + private int shortTermHistoryIntervalMinutes_ = 0; + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 4; + * @return Whether the shortTermHistoryIntervalMinutes field is set. + */ + @java.lang.Override + public boolean hasShortTermHistoryIntervalMinutes() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 4; + * @return The shortTermHistoryIntervalMinutes. + */ + @java.lang.Override + public int getShortTermHistoryIntervalMinutes() { + return shortTermHistoryIntervalMinutes_; + } + + public static final int PREFERREDLINKTYPE_FIELD_NUMBER = 5; + private int preferredLinkType_ = 0; + /** + * .oslp.LinkType preferredLinkType = 5; + * @return Whether the preferredLinkType field is set. + */ + @java.lang.Override public boolean hasPreferredLinkType() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .oslp.LinkType preferredLinkType = 5; + * @return The enum numeric value on the wire for preferredLinkType. + */ + @java.lang.Override public int getPreferredLinkTypeValue() { + return preferredLinkType_; + } + /** + * .oslp.LinkType preferredLinkType = 5; + * @return The preferredLinkType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinkType() { + org.opensmartgridplatform.oslp.Oslp.LinkType result = org.opensmartgridplatform.oslp.Oslp.LinkType.forNumber(preferredLinkType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LinkType.UNRECOGNIZED : result; + } + + public static final int METERTYPE_FIELD_NUMBER = 6; + private int meterType_ = 0; + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.MeterType meterType = 6; + * @return Whether the meterType field is set. + */ + @java.lang.Override public boolean hasMeterType() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.MeterType meterType = 6; + * @return The enum numeric value on the wire for meterType. + */ + @java.lang.Override public int getMeterTypeValue() { + return meterType_; + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.MeterType meterType = 6; + * @return The meterType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType() { + org.opensmartgridplatform.oslp.Oslp.MeterType result = org.opensmartgridplatform.oslp.Oslp.MeterType.forNumber(meterType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.MeterType.UNRECOGNIZED : result; + } + + public static final int LONGTERMHISTORYINTERVAL_FIELD_NUMBER = 7; + private int longTermHistoryInterval_ = 0; + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 longTermHistoryInterval = 7; + * @return Whether the longTermHistoryInterval field is set. + */ + @java.lang.Override + public boolean hasLongTermHistoryInterval() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 longTermHistoryInterval = 7; + * @return The longTermHistoryInterval. + */ + @java.lang.Override + public int getLongTermHistoryInterval() { + return longTermHistoryInterval_; + } + + public static final int LONGTERMHISTORYINTERVALTYPE_FIELD_NUMBER = 8; + private int longTermHistoryIntervalType_ = 0; + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 8; + * @return Whether the longTermHistoryIntervalType field is set. + */ + @java.lang.Override public boolean hasLongTermHistoryIntervalType() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 8; + * @return The enum numeric value on the wire for longTermHistoryIntervalType. + */ + @java.lang.Override public int getLongTermHistoryIntervalTypeValue() { + return longTermHistoryIntervalType_; + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 8; + * @return The longTermHistoryIntervalType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType getLongTermHistoryIntervalType() { + org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType result = org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.forNumber(longTermHistoryIntervalType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.UNRECOGNIZED : result; + } + + public static final int TIMESYNCFREQUENCY_FIELD_NUMBER = 9; + private int timeSyncFrequency_ = 86400; + /** + *
+         * Time synch frequency (seconds).
+         * 
+ * + * uint32 timeSyncFrequency = 9 [default = 86400]; + * @return Whether the timeSyncFrequency field is set. + */ + @java.lang.Override + public boolean hasTimeSyncFrequency() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+         * Time synch frequency (seconds).
+         * 
+ * + * uint32 timeSyncFrequency = 9 [default = 86400]; + * @return The timeSyncFrequency. + */ + @java.lang.Override + public int getTimeSyncFrequency() { + return timeSyncFrequency_; + } + + public static final int DEVICEFIXIPVALUE_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString deviceFixIpValue_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+         * 
+ * + * bytes deviceFixIpValue = 10; + * @return Whether the deviceFixIpValue field is set. + */ + @java.lang.Override + public boolean hasDeviceFixIpValue() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+         * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+         * 
+ * + * bytes deviceFixIpValue = 10; + * @return The deviceFixIpValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeviceFixIpValue() { + return deviceFixIpValue_; + } + + public static final int NETMASK_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString netMask_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+         * 
+ * + * bytes netMask = 11; + * @return Whether the netMask field is set. + */ + @java.lang.Override + public boolean hasNetMask() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+         * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+         * 
+ * + * bytes netMask = 11; + * @return The netMask. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetMask() { + return netMask_; + } + + public static final int GATEWAY_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString gateWay_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+         * 
+ * + * bytes gateWay = 12; + * @return Whether the gateWay field is set. + */ + @java.lang.Override + public boolean hasGateWay() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+         * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+         * 
+ * + * bytes gateWay = 12; + * @return The gateWay. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGateWay() { + return gateWay_; + } + + public static final int ISDHCPENABLED_FIELD_NUMBER = 13; + private boolean isDhcpEnabled_ = true; + /** + *
+         * Is DHCP enabled for this device?
+         * 
+ * + * bool isDhcpEnabled = 13 [default = true]; + * @return Whether the isDhcpEnabled field is set. + */ + @java.lang.Override + public boolean hasIsDhcpEnabled() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+         * Is DHCP enabled for this device?
+         * 
+ * + * bool isDhcpEnabled = 13 [default = true]; + * @return The isDhcpEnabled. + */ + @java.lang.Override + public boolean getIsDhcpEnabled() { + return isDhcpEnabled_; + } + + public static final int COMMUNICATIONTIMEOUT_FIELD_NUMBER = 14; + private int communicationTimeout_ = 20; + /** + *
+         * bool isTlsEnabled = 14;                                                     // Defines if TLS is enabled.
+         * uint32 oslpBindPortNumber = 15;                                             // The port used for TLS connections.
+         * string commonNameString = 16 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+         * 
+ * + * uint32 communicationTimeout = 14 [default = 20]; + * @return Whether the communicationTimeout field is set. + */ + @java.lang.Override + public boolean hasCommunicationTimeout() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+         * bool isTlsEnabled = 14;                                                     // Defines if TLS is enabled.
+         * uint32 oslpBindPortNumber = 15;                                             // The port used for TLS connections.
+         * string commonNameString = 16 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+         * 
+ * + * uint32 communicationTimeout = 14 [default = 20]; + * @return The communicationTimeout. + */ + @java.lang.Override + public int getCommunicationTimeout() { + return communicationTimeout_; + } + + public static final int COMMUNICATIONNUMBEROFRETRIES_FIELD_NUMBER = 15; + private int communicationNumberOfRetries_ = 3; + /** + *
+         * Communication number of retries.
+         * 
+ * + * uint32 communicationNumberOfRetries = 15 [default = 3]; + * @return Whether the communicationNumberOfRetries field is set. + */ + @java.lang.Override + public boolean hasCommunicationNumberOfRetries() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+         * Communication number of retries.
+         * 
+ * + * uint32 communicationNumberOfRetries = 15 [default = 3]; + * @return The communicationNumberOfRetries. + */ + @java.lang.Override + public int getCommunicationNumberOfRetries() { + return communicationNumberOfRetries_; + } + + public static final int COMMUNICATIONPAUSETIMEBETWEENCONNECTIONTRIALS_FIELD_NUMBER = 16; + private int communicationPauseTimeBetweenConnectionTrials_ = 60; + /** + *
+         * Time between communication attempts.
+         * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 16 [default = 60]; + * @return Whether the communicationPauseTimeBetweenConnectionTrials field is set. + */ + @java.lang.Override + public boolean hasCommunicationPauseTimeBetweenConnectionTrials() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+         * Time between communication attempts.
+         * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 16 [default = 60]; + * @return The communicationPauseTimeBetweenConnectionTrials. + */ + @java.lang.Override + public int getCommunicationPauseTimeBetweenConnectionTrials() { + return communicationPauseTimeBetweenConnectionTrials_; + } + + public static final int OSPGIPADDRESS_FIELD_NUMBER = 17; + private com.google.protobuf.ByteString ospgIpAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_count = 4];                      // The IP address of the platform.
+         * 
+ * + * bytes ospgIpAddress = 17; + * @return Whether the ospgIpAddress field is set. + */ + @java.lang.Override + public boolean hasOspgIpAddress() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+         * [(nanopb).max_count = 4];                      // The IP address of the platform.
+         * 
+ * + * bytes ospgIpAddress = 17; + * @return The ospgIpAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOspgIpAddress() { + return ospgIpAddress_; + } + + public static final int OSGPPORTNUMBER_FIELD_NUMBER = 18; + private int osgpPortNumber_ = 0; + /** + *
+         * The port number of the platform.
+         * 
+ * + * uint32 osgpPortNumber = 18; + * @return Whether the osgpPortNumber field is set. + */ + @java.lang.Override + public boolean hasOsgpPortNumber() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+         * The port number of the platform.
+         * 
+ * + * uint32 osgpPortNumber = 18; + * @return The osgpPortNumber. + */ + @java.lang.Override + public int getOsgpPortNumber() { + return osgpPortNumber_; + } + + public static final int ISTESTBUTTONENABLED_FIELD_NUMBER = 19; + private boolean isTestButtonEnabled_ = true; + /** + *
+         * Is the test button enabled for this device?
+         * 
+ * + * bool isTestButtonEnabled = 19 [default = true]; + * @return Whether the isTestButtonEnabled field is set. + */ + @java.lang.Override + public boolean hasIsTestButtonEnabled() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+         * Is the test button enabled for this device?
+         * 
+ * + * bool isTestButtonEnabled = 19 [default = true]; + * @return The isTestButtonEnabled. + */ + @java.lang.Override + public boolean getIsTestButtonEnabled() { + return isTestButtonEnabled_; + } + + public static final int ISAUTOMATICSUMMERTIMINGENABLED_FIELD_NUMBER = 20; + private boolean isAutomaticSummerTimingEnabled_ = true; + /** + *
+         * Is the automatic summer timing enabled for this device?
+         * 
+ * + * bool isAutomaticSummerTimingEnabled = 20 [default = true]; + * @return Whether the isAutomaticSummerTimingEnabled field is set. + */ + @java.lang.Override + public boolean hasIsAutomaticSummerTimingEnabled() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+         * Is the automatic summer timing enabled for this device?
+         * 
+ * + * bool isAutomaticSummerTimingEnabled = 20 [default = true]; + * @return The isAutomaticSummerTimingEnabled. + */ + @java.lang.Override + public boolean getIsAutomaticSummerTimingEnabled() { + return isAutomaticSummerTimingEnabled_; + } + + public static final int ASTROGATESUNRISEOFFSET_FIELD_NUMBER = 21; + private int astroGateSunRiseOffset_ = 0; + /** + *
+         * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunRiseOffset = 21 [default = 0]; + * @return Whether the astroGateSunRiseOffset field is set. + */ + @java.lang.Override + public boolean hasAstroGateSunRiseOffset() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+         * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunRiseOffset = 21 [default = 0]; + * @return The astroGateSunRiseOffset. + */ + @java.lang.Override + public int getAstroGateSunRiseOffset() { + return astroGateSunRiseOffset_; + } + + public static final int ASTROGATESUNSETOFFSET_FIELD_NUMBER = 22; + private int astroGateSunSetOffset_ = 0; + /** + *
+         * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunSetOffset = 22 [default = 0]; + * @return Whether the astroGateSunSetOffset field is set. + */ + @java.lang.Override + public boolean hasAstroGateSunSetOffset() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+         * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunSetOffset = 22 [default = 0]; + * @return The astroGateSunSetOffset. + */ + @java.lang.Override + public int getAstroGateSunSetOffset() { + return astroGateSunSetOffset_; + } + + public static final int SWITCHINGDELAY_FIELD_NUMBER = 23; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList switchingDelay_ = + emptyIntList(); + /** + *
+         * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+         * 
+ * + * repeated uint32 switchingDelay = 23; + * @return A list containing the switchingDelay. + */ + @java.lang.Override + public java.util.List + getSwitchingDelayList() { + return switchingDelay_; + } + /** + *
+         * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+         * 
+ * + * repeated uint32 switchingDelay = 23; + * @return The count of switchingDelay. + */ + public int getSwitchingDelayCount() { + return switchingDelay_.size(); + } + /** + *
+         * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+         * 
+ * + * repeated uint32 switchingDelay = 23; + * @param index The index of the element to return. + * @return The switchingDelay at the given index. + */ + public int getSwitchingDelay(int index) { + return switchingDelay_.getInt(index); + } + private int switchingDelayMemoizedSerializedSize = -1; + + public static final int RELAYLINKING_FIELD_NUMBER = 24; + @SuppressWarnings("serial") + private java.util.List relayLinking_; + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + @java.lang.Override + public java.util.List getRelayLinkingList() { + return relayLinking_; + } + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + @java.lang.Override + public java.util.List + getRelayLinkingOrBuilderList() { + return relayLinking_; + } + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + @java.lang.Override + public int getRelayLinkingCount() { + return relayLinking_.size(); + } + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayMatrix getRelayLinking(int index) { + return relayLinking_.get(index); + } + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder getRelayLinkingOrBuilder( + int index) { + return relayLinking_.get(index); + } + + public static final int RELAYREFRESHING_FIELD_NUMBER = 25; + private boolean relayRefreshing_ = true; + /** + *
+         * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+         * 
+ * + * bool relayRefreshing = 25 [default = true]; + * @return Whether the relayRefreshing field is set. + */ + @java.lang.Override + public boolean hasRelayRefreshing() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + *
+         * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+         * 
+ * + * bool relayRefreshing = 25 [default = true]; + * @return The relayRefreshing. + */ + @java.lang.Override + public boolean getRelayRefreshing() { + return relayRefreshing_; + } + + public static final int SUMMERTIMEDETAILS_FIELD_NUMBER = 26; + @SuppressWarnings("serial") + private volatile java.lang.Object summerTimeDetails_ = "0360100"; + /** + *
+         * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string summerTimeDetails = 26 [default = "0360100"]; + * @return Whether the summerTimeDetails field is set. + */ + @java.lang.Override + public boolean hasSummerTimeDetails() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + *
+         * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string summerTimeDetails = 26 [default = "0360100"]; + * @return The summerTimeDetails. + */ + @java.lang.Override + public java.lang.String getSummerTimeDetails() { + java.lang.Object ref = summerTimeDetails_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summerTimeDetails_ = s; + return s; + } + } + /** + *
+         * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string summerTimeDetails = 26 [default = "0360100"]; + * @return The bytes for summerTimeDetails. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSummerTimeDetailsBytes() { + java.lang.Object ref = summerTimeDetails_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summerTimeDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @Override - public UpdateDeviceSslCertificationRequest getDefaultInstanceForType() { - return defaultInstance; - } + public static final int WINTERTIMEDETAILS_FIELD_NUMBER = 27; + @SuppressWarnings("serial") + private volatile java.lang.Object winterTimeDetails_ = "1060200"; + /** + *
+         * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string winterTimeDetails = 27 [default = "1060200"]; + * @return Whether the winterTimeDetails field is set. + */ + @java.lang.Override + public boolean hasWinterTimeDetails() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + *
+         * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string winterTimeDetails = 27 [default = "1060200"]; + * @return The winterTimeDetails. + */ + @java.lang.Override + public java.lang.String getWinterTimeDetails() { + java.lang.Object ref = winterTimeDetails_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + winterTimeDetails_ = s; + return s; + } + } + /** + *
+         * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string winterTimeDetails = 27 [default = "1060200"]; + * @return The bytes for winterTimeDetails. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWinterTimeDetailsBytes() { + java.lang.Object ref = winterTimeDetails_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + winterTimeDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateDeviceSslCertificationRequest_descriptor; - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateDeviceSslCertificationRequest_fieldAccessorTable; - } + if (hasDaliConfiguration()) { + if (!getDaliConfiguration().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasRelayConfiguration()) { + if (!getRelayConfiguration().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getRelayLinkingCount(); i++) { + if (!getRelayLinking(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - private int bitField0_; - // required string certificateDomain = 1; - public static final int CERTIFICATEDOMAIN_FIELD_NUMBER = 1; - private java.lang.Object certificateDomain_; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, lightType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDaliConfiguration()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getRelayConfiguration()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeUInt32(4, shortTermHistoryIntervalMinutes_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(5, preferredLinkType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(6, meterType_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeUInt32(7, longTermHistoryInterval_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeEnum(8, longTermHistoryIntervalType_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeUInt32(9, timeSyncFrequency_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeBytes(10, deviceFixIpValue_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeBytes(11, netMask_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeBytes(12, gateWay_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeBool(13, isDhcpEnabled_); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeUInt32(14, communicationTimeout_); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeUInt32(15, communicationNumberOfRetries_); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeUInt32(16, communicationPauseTimeBetweenConnectionTrials_); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeBytes(17, ospgIpAddress_); + } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeUInt32(18, osgpPortNumber_); + } + if (((bitField0_ & 0x00040000) != 0)) { + output.writeBool(19, isTestButtonEnabled_); + } + if (((bitField0_ & 0x00080000) != 0)) { + output.writeBool(20, isAutomaticSummerTimingEnabled_); + } + if (((bitField0_ & 0x00100000) != 0)) { + output.writeSInt32(21, astroGateSunRiseOffset_); + } + if (((bitField0_ & 0x00200000) != 0)) { + output.writeSInt32(22, astroGateSunSetOffset_); + } + if (getSwitchingDelayList().size() > 0) { + output.writeUInt32NoTag(186); + output.writeUInt32NoTag(switchingDelayMemoizedSerializedSize); + } + for (int i = 0; i < switchingDelay_.size(); i++) { + output.writeUInt32NoTag(switchingDelay_.getInt(i)); + } + for (int i = 0; i < relayLinking_.size(); i++) { + output.writeMessage(24, relayLinking_.get(i)); + } + if (((bitField0_ & 0x00400000) != 0)) { + output.writeBool(25, relayRefreshing_); + } + if (((bitField0_ & 0x00800000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 26, summerTimeDetails_); + } + if (((bitField0_ & 0x01000000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 27, winterTimeDetails_); + } + getUnknownFields().writeTo(output); + } - @Override - public boolean hasCertificateDomain() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public String getCertificateDomain() { - final java.lang.Object ref = this.certificateDomain_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.certificateDomain_ = s; - } - return s; - } - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, lightType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDaliConfiguration()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRelayConfiguration()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, shortTermHistoryIntervalMinutes_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, preferredLinkType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, meterType_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(7, longTermHistoryInterval_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, longTermHistoryIntervalType_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, timeSyncFrequency_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(10, deviceFixIpValue_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(11, netMask_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(12, gateWay_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, isDhcpEnabled_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(14, communicationTimeout_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(15, communicationNumberOfRetries_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(16, communicationPauseTimeBetweenConnectionTrials_); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(17, ospgIpAddress_); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(18, osgpPortNumber_); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(19, isTestButtonEnabled_); + } + if (((bitField0_ & 0x00080000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(20, isAutomaticSummerTimingEnabled_); + } + if (((bitField0_ & 0x00100000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeSInt32Size(21, astroGateSunRiseOffset_); + } + if (((bitField0_ & 0x00200000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeSInt32Size(22, astroGateSunSetOffset_); + } + { + int dataSize = 0; + for (int i = 0; i < switchingDelay_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(switchingDelay_.getInt(i)); + } + size += dataSize; + if (!getSwitchingDelayList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + switchingDelayMemoizedSerializedSize = dataSize; + } + for (int i = 0; i < relayLinking_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, relayLinking_.get(i)); + } + if (((bitField0_ & 0x00400000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(25, relayRefreshing_); + } + if (((bitField0_ & 0x00800000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(26, summerTimeDetails_); + } + if (((bitField0_ & 0x01000000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(27, winterTimeDetails_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private com.google.protobuf.ByteString getCertificateDomainBytes() { - final java.lang.Object ref = this.certificateDomain_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.certificateDomain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest other = (org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest) obj; - // required string certificateUrl = 2; - public static final int CERTIFICATEURL_FIELD_NUMBER = 2; - private java.lang.Object certificateUrl_; + if (hasLightType() != other.hasLightType()) return false; + if (hasLightType()) { + if (lightType_ != other.lightType_) return false; + } + if (hasDaliConfiguration() != other.hasDaliConfiguration()) return false; + if (hasDaliConfiguration()) { + if (!getDaliConfiguration() + .equals(other.getDaliConfiguration())) return false; + } + if (hasRelayConfiguration() != other.hasRelayConfiguration()) return false; + if (hasRelayConfiguration()) { + if (!getRelayConfiguration() + .equals(other.getRelayConfiguration())) return false; + } + if (hasShortTermHistoryIntervalMinutes() != other.hasShortTermHistoryIntervalMinutes()) return false; + if (hasShortTermHistoryIntervalMinutes()) { + if (getShortTermHistoryIntervalMinutes() + != other.getShortTermHistoryIntervalMinutes()) return false; + } + if (hasPreferredLinkType() != other.hasPreferredLinkType()) return false; + if (hasPreferredLinkType()) { + if (preferredLinkType_ != other.preferredLinkType_) return false; + } + if (hasMeterType() != other.hasMeterType()) return false; + if (hasMeterType()) { + if (meterType_ != other.meterType_) return false; + } + if (hasLongTermHistoryInterval() != other.hasLongTermHistoryInterval()) return false; + if (hasLongTermHistoryInterval()) { + if (getLongTermHistoryInterval() + != other.getLongTermHistoryInterval()) return false; + } + if (hasLongTermHistoryIntervalType() != other.hasLongTermHistoryIntervalType()) return false; + if (hasLongTermHistoryIntervalType()) { + if (longTermHistoryIntervalType_ != other.longTermHistoryIntervalType_) return false; + } + if (hasTimeSyncFrequency() != other.hasTimeSyncFrequency()) return false; + if (hasTimeSyncFrequency()) { + if (getTimeSyncFrequency() + != other.getTimeSyncFrequency()) return false; + } + if (hasDeviceFixIpValue() != other.hasDeviceFixIpValue()) return false; + if (hasDeviceFixIpValue()) { + if (!getDeviceFixIpValue() + .equals(other.getDeviceFixIpValue())) return false; + } + if (hasNetMask() != other.hasNetMask()) return false; + if (hasNetMask()) { + if (!getNetMask() + .equals(other.getNetMask())) return false; + } + if (hasGateWay() != other.hasGateWay()) return false; + if (hasGateWay()) { + if (!getGateWay() + .equals(other.getGateWay())) return false; + } + if (hasIsDhcpEnabled() != other.hasIsDhcpEnabled()) return false; + if (hasIsDhcpEnabled()) { + if (getIsDhcpEnabled() + != other.getIsDhcpEnabled()) return false; + } + if (hasCommunicationTimeout() != other.hasCommunicationTimeout()) return false; + if (hasCommunicationTimeout()) { + if (getCommunicationTimeout() + != other.getCommunicationTimeout()) return false; + } + if (hasCommunicationNumberOfRetries() != other.hasCommunicationNumberOfRetries()) return false; + if (hasCommunicationNumberOfRetries()) { + if (getCommunicationNumberOfRetries() + != other.getCommunicationNumberOfRetries()) return false; + } + if (hasCommunicationPauseTimeBetweenConnectionTrials() != other.hasCommunicationPauseTimeBetweenConnectionTrials()) return false; + if (hasCommunicationPauseTimeBetweenConnectionTrials()) { + if (getCommunicationPauseTimeBetweenConnectionTrials() + != other.getCommunicationPauseTimeBetweenConnectionTrials()) return false; + } + if (hasOspgIpAddress() != other.hasOspgIpAddress()) return false; + if (hasOspgIpAddress()) { + if (!getOspgIpAddress() + .equals(other.getOspgIpAddress())) return false; + } + if (hasOsgpPortNumber() != other.hasOsgpPortNumber()) return false; + if (hasOsgpPortNumber()) { + if (getOsgpPortNumber() + != other.getOsgpPortNumber()) return false; + } + if (hasIsTestButtonEnabled() != other.hasIsTestButtonEnabled()) return false; + if (hasIsTestButtonEnabled()) { + if (getIsTestButtonEnabled() + != other.getIsTestButtonEnabled()) return false; + } + if (hasIsAutomaticSummerTimingEnabled() != other.hasIsAutomaticSummerTimingEnabled()) return false; + if (hasIsAutomaticSummerTimingEnabled()) { + if (getIsAutomaticSummerTimingEnabled() + != other.getIsAutomaticSummerTimingEnabled()) return false; + } + if (hasAstroGateSunRiseOffset() != other.hasAstroGateSunRiseOffset()) return false; + if (hasAstroGateSunRiseOffset()) { + if (getAstroGateSunRiseOffset() + != other.getAstroGateSunRiseOffset()) return false; + } + if (hasAstroGateSunSetOffset() != other.hasAstroGateSunSetOffset()) return false; + if (hasAstroGateSunSetOffset()) { + if (getAstroGateSunSetOffset() + != other.getAstroGateSunSetOffset()) return false; + } + if (!getSwitchingDelayList() + .equals(other.getSwitchingDelayList())) return false; + if (!getRelayLinkingList() + .equals(other.getRelayLinkingList())) return false; + if (hasRelayRefreshing() != other.hasRelayRefreshing()) return false; + if (hasRelayRefreshing()) { + if (getRelayRefreshing() + != other.getRelayRefreshing()) return false; + } + if (hasSummerTimeDetails() != other.hasSummerTimeDetails()) return false; + if (hasSummerTimeDetails()) { + if (!getSummerTimeDetails() + .equals(other.getSummerTimeDetails())) return false; + } + if (hasWinterTimeDetails() != other.hasWinterTimeDetails()) return false; + if (hasWinterTimeDetails()) { + if (!getWinterTimeDetails() + .equals(other.getWinterTimeDetails())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public boolean hasCertificateUrl() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLightType()) { + hash = (37 * hash) + LIGHTTYPE_FIELD_NUMBER; + hash = (53 * hash) + lightType_; + } + if (hasDaliConfiguration()) { + hash = (37 * hash) + DALICONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getDaliConfiguration().hashCode(); + } + if (hasRelayConfiguration()) { + hash = (37 * hash) + RELAYCONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getRelayConfiguration().hashCode(); + } + if (hasShortTermHistoryIntervalMinutes()) { + hash = (37 * hash) + SHORTTERMHISTORYINTERVALMINUTES_FIELD_NUMBER; + hash = (53 * hash) + getShortTermHistoryIntervalMinutes(); + } + if (hasPreferredLinkType()) { + hash = (37 * hash) + PREFERREDLINKTYPE_FIELD_NUMBER; + hash = (53 * hash) + preferredLinkType_; + } + if (hasMeterType()) { + hash = (37 * hash) + METERTYPE_FIELD_NUMBER; + hash = (53 * hash) + meterType_; + } + if (hasLongTermHistoryInterval()) { + hash = (37 * hash) + LONGTERMHISTORYINTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getLongTermHistoryInterval(); + } + if (hasLongTermHistoryIntervalType()) { + hash = (37 * hash) + LONGTERMHISTORYINTERVALTYPE_FIELD_NUMBER; + hash = (53 * hash) + longTermHistoryIntervalType_; + } + if (hasTimeSyncFrequency()) { + hash = (37 * hash) + TIMESYNCFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getTimeSyncFrequency(); + } + if (hasDeviceFixIpValue()) { + hash = (37 * hash) + DEVICEFIXIPVALUE_FIELD_NUMBER; + hash = (53 * hash) + getDeviceFixIpValue().hashCode(); + } + if (hasNetMask()) { + hash = (37 * hash) + NETMASK_FIELD_NUMBER; + hash = (53 * hash) + getNetMask().hashCode(); + } + if (hasGateWay()) { + hash = (37 * hash) + GATEWAY_FIELD_NUMBER; + hash = (53 * hash) + getGateWay().hashCode(); + } + if (hasIsDhcpEnabled()) { + hash = (37 * hash) + ISDHCPENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDhcpEnabled()); + } + if (hasCommunicationTimeout()) { + hash = (37 * hash) + COMMUNICATIONTIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getCommunicationTimeout(); + } + if (hasCommunicationNumberOfRetries()) { + hash = (37 * hash) + COMMUNICATIONNUMBEROFRETRIES_FIELD_NUMBER; + hash = (53 * hash) + getCommunicationNumberOfRetries(); + } + if (hasCommunicationPauseTimeBetweenConnectionTrials()) { + hash = (37 * hash) + COMMUNICATIONPAUSETIMEBETWEENCONNECTIONTRIALS_FIELD_NUMBER; + hash = (53 * hash) + getCommunicationPauseTimeBetweenConnectionTrials(); + } + if (hasOspgIpAddress()) { + hash = (37 * hash) + OSPGIPADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getOspgIpAddress().hashCode(); + } + if (hasOsgpPortNumber()) { + hash = (37 * hash) + OSGPPORTNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOsgpPortNumber(); + } + if (hasIsTestButtonEnabled()) { + hash = (37 * hash) + ISTESTBUTTONENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsTestButtonEnabled()); + } + if (hasIsAutomaticSummerTimingEnabled()) { + hash = (37 * hash) + ISAUTOMATICSUMMERTIMINGENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsAutomaticSummerTimingEnabled()); + } + if (hasAstroGateSunRiseOffset()) { + hash = (37 * hash) + ASTROGATESUNRISEOFFSET_FIELD_NUMBER; + hash = (53 * hash) + getAstroGateSunRiseOffset(); + } + if (hasAstroGateSunSetOffset()) { + hash = (37 * hash) + ASTROGATESUNSETOFFSET_FIELD_NUMBER; + hash = (53 * hash) + getAstroGateSunSetOffset(); + } + if (getSwitchingDelayCount() > 0) { + hash = (37 * hash) + SWITCHINGDELAY_FIELD_NUMBER; + hash = (53 * hash) + getSwitchingDelayList().hashCode(); + } + if (getRelayLinkingCount() > 0) { + hash = (37 * hash) + RELAYLINKING_FIELD_NUMBER; + hash = (53 * hash) + getRelayLinkingList().hashCode(); + } + if (hasRelayRefreshing()) { + hash = (37 * hash) + RELAYREFRESHING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRelayRefreshing()); + } + if (hasSummerTimeDetails()) { + hash = (37 * hash) + SUMMERTIMEDETAILS_FIELD_NUMBER; + hash = (53 * hash) + getSummerTimeDetails().hashCode(); + } + if (hasWinterTimeDetails()) { + hash = (37 * hash) + WINTERTIMEDETAILS_FIELD_NUMBER; + hash = (53 * hash) + getWinterTimeDetails().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * ========= Configuration
+         * 
+ * + * Protobuf type {@code oslp.SetConfigurationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SetConfigurationRequest) + org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetConfigurationRequest_descriptor; + } - @Override - public String getCertificateUrl() { - final java.lang.Object ref = this.certificateUrl_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.certificateUrl_ = s; - } - return s; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.class, org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.Builder.class); + } - private com.google.protobuf.ByteString getCertificateUrlBytes() { - final java.lang.Object ref = this.certificateUrl_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.certificateUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // Construct using org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private void initFields() { - this.certificateDomain_ = ""; - this.certificateUrl_ = ""; - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + internalGetDaliConfigurationFieldBuilder(); + internalGetRelayConfigurationFieldBuilder(); + internalGetRelayLinkingFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + lightType_ = 0; + daliConfiguration_ = null; + if (daliConfigurationBuilder_ != null) { + daliConfigurationBuilder_.dispose(); + daliConfigurationBuilder_ = null; + } + relayConfiguration_ = null; + if (relayConfigurationBuilder_ != null) { + relayConfigurationBuilder_.dispose(); + relayConfigurationBuilder_ = null; + } + shortTermHistoryIntervalMinutes_ = 0; + preferredLinkType_ = 0; + meterType_ = 0; + longTermHistoryInterval_ = 0; + longTermHistoryIntervalType_ = 0; + timeSyncFrequency_ = 86400; + deviceFixIpValue_ = com.google.protobuf.ByteString.EMPTY; + netMask_ = com.google.protobuf.ByteString.EMPTY; + gateWay_ = com.google.protobuf.ByteString.EMPTY; + isDhcpEnabled_ = true; + communicationTimeout_ = 20; + communicationNumberOfRetries_ = 3; + communicationPauseTimeBetweenConnectionTrials_ = 60; + ospgIpAddress_ = com.google.protobuf.ByteString.EMPTY; + osgpPortNumber_ = 0; + isTestButtonEnabled_ = true; + isAutomaticSummerTimingEnabled_ = true; + astroGateSunRiseOffset_ = 0; + astroGateSunSetOffset_ = 0; + switchingDelay_ = emptyIntList(); + if (relayLinkingBuilder_ == null) { + relayLinking_ = java.util.Collections.emptyList(); + } else { + relayLinking_ = null; + relayLinkingBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00800000); + relayRefreshing_ = true; + summerTimeDetails_ = "0360100"; + winterTimeDetails_ = "1060200"; + return this; + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasCertificateDomain()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasCertificateUrl()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetConfigurationRequest_descriptor; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, this.getCertificateDomainBytes()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, this.getCertificateUrlBytes()); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.getDefaultInstance(); + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, this.getCertificateDomainBytes()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 2, this.getCertificateUrlBytes()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest build() { + org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - private static final long serialVersionUID = 0L; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest result = new org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + private void buildPartialRepeatedFields(org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest result) { + if (relayLinkingBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0)) { + relayLinking_ = java.util.Collections.unmodifiableList(relayLinking_); + bitField0_ = (bitField0_ & ~0x00800000); + } + result.relayLinking_ = relayLinking_; + } else { + result.relayLinking_ = relayLinkingBuilder_.build(); + } + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lightType_ = lightType_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.daliConfiguration_ = daliConfigurationBuilder_ == null + ? daliConfiguration_ + : daliConfigurationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.relayConfiguration_ = relayConfigurationBuilder_ == null + ? relayConfiguration_ + : relayConfigurationBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.shortTermHistoryIntervalMinutes_ = shortTermHistoryIntervalMinutes_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.preferredLinkType_ = preferredLinkType_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.meterType_ = meterType_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.longTermHistoryInterval_ = longTermHistoryInterval_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.longTermHistoryIntervalType_ = longTermHistoryIntervalType_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.timeSyncFrequency_ = timeSyncFrequency_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.deviceFixIpValue_ = deviceFixIpValue_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.netMask_ = netMask_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.gateWay_ = gateWay_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.isDhcpEnabled_ = isDhcpEnabled_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.communicationTimeout_ = communicationTimeout_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.communicationNumberOfRetries_ = communicationNumberOfRetries_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.communicationPauseTimeBetweenConnectionTrials_ = communicationPauseTimeBetweenConnectionTrials_; + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.ospgIpAddress_ = ospgIpAddress_; + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.osgpPortNumber_ = osgpPortNumber_; + to_bitField0_ |= 0x00020000; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.isTestButtonEnabled_ = isTestButtonEnabled_; + to_bitField0_ |= 0x00040000; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.isAutomaticSummerTimingEnabled_ = isAutomaticSummerTimingEnabled_; + to_bitField0_ |= 0x00080000; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.astroGateSunRiseOffset_ = astroGateSunRiseOffset_; + to_bitField0_ |= 0x00100000; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.astroGateSunSetOffset_ = astroGateSunSetOffset_; + to_bitField0_ |= 0x00200000; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + switchingDelay_.makeImmutable(); + result.switchingDelay_ = switchingDelay_; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.relayRefreshing_ = relayRefreshing_; + to_bitField0_ |= 0x00400000; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.summerTimeDetails_ = summerTimeDetails_; + to_bitField0_ |= 0x00800000; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.winterTimeDetails_ = winterTimeDetails_; + to_bitField0_ |= 0x01000000; + } + result.bitField0_ |= to_bitField0_; + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.getDefaultInstance()) return this; + if (other.hasLightType()) { + setLightTypeValue(other.getLightTypeValue()); + } + if (other.hasDaliConfiguration()) { + mergeDaliConfiguration(other.getDaliConfiguration()); + } + if (other.hasRelayConfiguration()) { + mergeRelayConfiguration(other.getRelayConfiguration()); + } + if (other.hasShortTermHistoryIntervalMinutes()) { + setShortTermHistoryIntervalMinutes(other.getShortTermHistoryIntervalMinutes()); + } + if (other.hasPreferredLinkType()) { + setPreferredLinkTypeValue(other.getPreferredLinkTypeValue()); + } + if (other.hasMeterType()) { + setMeterTypeValue(other.getMeterTypeValue()); + } + if (other.hasLongTermHistoryInterval()) { + setLongTermHistoryInterval(other.getLongTermHistoryInterval()); + } + if (other.hasLongTermHistoryIntervalType()) { + setLongTermHistoryIntervalTypeValue(other.getLongTermHistoryIntervalTypeValue()); + } + if (other.hasTimeSyncFrequency()) { + setTimeSyncFrequency(other.getTimeSyncFrequency()); + } + if (other.hasDeviceFixIpValue()) { + setDeviceFixIpValue(other.getDeviceFixIpValue()); + } + if (other.hasNetMask()) { + setNetMask(other.getNetMask()); + } + if (other.hasGateWay()) { + setGateWay(other.getGateWay()); + } + if (other.hasIsDhcpEnabled()) { + setIsDhcpEnabled(other.getIsDhcpEnabled()); + } + if (other.hasCommunicationTimeout()) { + setCommunicationTimeout(other.getCommunicationTimeout()); + } + if (other.hasCommunicationNumberOfRetries()) { + setCommunicationNumberOfRetries(other.getCommunicationNumberOfRetries()); + } + if (other.hasCommunicationPauseTimeBetweenConnectionTrials()) { + setCommunicationPauseTimeBetweenConnectionTrials(other.getCommunicationPauseTimeBetweenConnectionTrials()); + } + if (other.hasOspgIpAddress()) { + setOspgIpAddress(other.getOspgIpAddress()); + } + if (other.hasOsgpPortNumber()) { + setOsgpPortNumber(other.getOsgpPortNumber()); + } + if (other.hasIsTestButtonEnabled()) { + setIsTestButtonEnabled(other.getIsTestButtonEnabled()); + } + if (other.hasIsAutomaticSummerTimingEnabled()) { + setIsAutomaticSummerTimingEnabled(other.getIsAutomaticSummerTimingEnabled()); + } + if (other.hasAstroGateSunRiseOffset()) { + setAstroGateSunRiseOffset(other.getAstroGateSunRiseOffset()); + } + if (other.hasAstroGateSunSetOffset()) { + setAstroGateSunSetOffset(other.getAstroGateSunSetOffset()); + } + if (!other.switchingDelay_.isEmpty()) { + if (switchingDelay_.isEmpty()) { + switchingDelay_ = other.switchingDelay_; + switchingDelay_.makeImmutable(); + bitField0_ |= 0x00400000; + } else { + ensureSwitchingDelayIsMutable(); + switchingDelay_.addAll(other.switchingDelay_); + } + onChanged(); + } + if (relayLinkingBuilder_ == null) { + if (!other.relayLinking_.isEmpty()) { + if (relayLinking_.isEmpty()) { + relayLinking_ = other.relayLinking_; + bitField0_ = (bitField0_ & ~0x00800000); + } else { + ensureRelayLinkingIsMutable(); + relayLinking_.addAll(other.relayLinking_); + } + onChanged(); + } + } else { + if (!other.relayLinking_.isEmpty()) { + if (relayLinkingBuilder_.isEmpty()) { + relayLinkingBuilder_.dispose(); + relayLinkingBuilder_ = null; + relayLinking_ = other.relayLinking_; + bitField0_ = (bitField0_ & ~0x00800000); + relayLinkingBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetRelayLinkingFieldBuilder() : null; + } else { + relayLinkingBuilder_.addAllMessages(other.relayLinking_); + } + } + } + if (other.hasRelayRefreshing()) { + setRelayRefreshing(other.getRelayRefreshing()); + } + if (other.hasSummerTimeDetails()) { + summerTimeDetails_ = other.summerTimeDetails_; + bitField0_ |= 0x02000000; + onChanged(); + } + if (other.hasWinterTimeDetails()) { + winterTimeDetails_ = other.winterTimeDetails_; + bitField0_ |= 0x04000000; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public final boolean isInitialized() { + if (hasDaliConfiguration()) { + if (!getDaliConfiguration().isInitialized()) { + return false; + } + } + if (hasRelayConfiguration()) { + if (!getRelayConfiguration().isInitialized()) { + return false; + } + } + for (int i = 0; i < getRelayLinkingCount(); i++) { + if (!getRelayLinking(i).isInitialized()) { + return false; + } + } + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + lightType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + internalGetDaliConfigurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + internalGetRelayConfigurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + shortTermHistoryIntervalMinutes_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + preferredLinkType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + meterType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + longTermHistoryInterval_ = input.readUInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + longTermHistoryIntervalType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + timeSyncFrequency_ = input.readUInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + deviceFixIpValue_ = input.readBytes(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + netMask_ = input.readBytes(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + gateWay_ = input.readBytes(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 104: { + isDhcpEnabled_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 112: { + communicationTimeout_ = input.readUInt32(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 120: { + communicationNumberOfRetries_ = input.readUInt32(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 128: { + communicationPauseTimeBetweenConnectionTrials_ = input.readUInt32(); + bitField0_ |= 0x00008000; + break; + } // case 128 + case 138: { + ospgIpAddress_ = input.readBytes(); + bitField0_ |= 0x00010000; + break; + } // case 138 + case 144: { + osgpPortNumber_ = input.readUInt32(); + bitField0_ |= 0x00020000; + break; + } // case 144 + case 152: { + isTestButtonEnabled_ = input.readBool(); + bitField0_ |= 0x00040000; + break; + } // case 152 + case 160: { + isAutomaticSummerTimingEnabled_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 160 + case 168: { + astroGateSunRiseOffset_ = input.readSInt32(); + bitField0_ |= 0x00100000; + break; + } // case 168 + case 176: { + astroGateSunSetOffset_ = input.readSInt32(); + bitField0_ |= 0x00200000; + break; + } // case 176 + case 184: { + int v = input.readUInt32(); + ensureSwitchingDelayIsMutable(); + switchingDelay_.addInt(v); + break; + } // case 184 + case 186: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSwitchingDelayIsMutable(); + while (input.getBytesUntilLimit() > 0) { + switchingDelay_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } // case 186 + case 194: { + org.opensmartgridplatform.oslp.Oslp.RelayMatrix m = + input.readMessage( + org.opensmartgridplatform.oslp.Oslp.RelayMatrix.parser(), + extensionRegistry); + if (relayLinkingBuilder_ == null) { + ensureRelayLinkingIsMutable(); + relayLinking_.add(m); + } else { + relayLinkingBuilder_.addMessage(m); + } + break; + } // case 194 + case 200: { + relayRefreshing_ = input.readBool(); + bitField0_ |= 0x01000000; + break; + } // case 200 + case 210: { + summerTimeDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x02000000; + break; + } // case 210 + case 218: { + winterTimeDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x04000000; + break; + } // case 218 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int lightType_ = 0; + /** + * .oslp.LightType lightType = 1; + * @return Whether the lightType field is set. + */ + @java.lang.Override public boolean hasLightType() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.LightType lightType = 1; + * @return The enum numeric value on the wire for lightType. + */ + @java.lang.Override public int getLightTypeValue() { + return lightType_; + } + /** + * .oslp.LightType lightType = 1; + * @param value The enum numeric value on the wire for lightType to set. + * @return This builder for chaining. + */ + public Builder setLightTypeValue(int value) { + lightType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.LightType lightType = 1; + * @return The lightType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LightType getLightType() { + org.opensmartgridplatform.oslp.Oslp.LightType result = org.opensmartgridplatform.oslp.Oslp.LightType.forNumber(lightType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LightType.UNRECOGNIZED : result; + } + /** + * .oslp.LightType lightType = 1; + * @param value The lightType to set. + * @return This builder for chaining. + */ + public Builder setLightType(org.opensmartgridplatform.oslp.Oslp.LightType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + lightType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.LightType lightType = 1; + * @return This builder for chaining. + */ + public Builder clearLightType() { + bitField0_ = (bitField0_ & ~0x00000001); + lightType_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + private org.opensmartgridplatform.oslp.Oslp.DaliConfiguration daliConfiguration_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration, org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder, org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder> daliConfigurationBuilder_; + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 2; + * @return Whether the daliConfiguration field is set. + */ + public boolean hasDaliConfiguration() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 2; + * @return The daliConfiguration. + */ + public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDaliConfiguration() { + if (daliConfigurationBuilder_ == null) { + return daliConfiguration_ == null ? org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance() : daliConfiguration_; + } else { + return daliConfigurationBuilder_.getMessage(); + } + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 2; + */ + public Builder setDaliConfiguration(org.opensmartgridplatform.oslp.Oslp.DaliConfiguration value) { + if (daliConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + daliConfiguration_ = value; + } else { + daliConfigurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 2; + */ + public Builder setDaliConfiguration( + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder builderForValue) { + if (daliConfigurationBuilder_ == null) { + daliConfiguration_ = builderForValue.build(); + } else { + daliConfigurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 2; + */ + public Builder mergeDaliConfiguration(org.opensmartgridplatform.oslp.Oslp.DaliConfiguration value) { + if (daliConfigurationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + daliConfiguration_ != null && + daliConfiguration_ != org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance()) { + getDaliConfigurationBuilder().mergeFrom(value); + } else { + daliConfiguration_ = value; + } + } else { + daliConfigurationBuilder_.mergeFrom(value); + } + if (daliConfiguration_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 2; + */ + public Builder clearDaliConfiguration() { + bitField0_ = (bitField0_ & ~0x00000002); + daliConfiguration_ = null; + if (daliConfigurationBuilder_ != null) { + daliConfigurationBuilder_.dispose(); + daliConfigurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder getDaliConfigurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDaliConfigurationFieldBuilder().getBuilder(); + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder getDaliConfigurationOrBuilder() { + if (daliConfigurationBuilder_ != null) { + return daliConfigurationBuilder_.getMessageOrBuilder(); + } else { + return daliConfiguration_ == null ? + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance() : daliConfiguration_; + } + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration, org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder, org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder> + internalGetDaliConfigurationFieldBuilder() { + if (daliConfigurationBuilder_ == null) { + daliConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration, org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder, org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder>( + getDaliConfiguration(), + getParentForChildren(), + isClean()); + daliConfiguration_ = null; + } + return daliConfigurationBuilder_; + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - parseDelimitedFrom(final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + private org.opensmartgridplatform.oslp.Oslp.RelayConfiguration relayConfiguration_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration, org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder, org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder> relayConfigurationBuilder_; + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 3; + * @return Whether the relayConfiguration field is set. + */ + public boolean hasRelayConfiguration() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 3; + * @return The relayConfiguration. + */ + public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getRelayConfiguration() { + if (relayConfigurationBuilder_ == null) { + return relayConfiguration_ == null ? org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance() : relayConfiguration_; + } else { + return relayConfigurationBuilder_.getMessage(); + } + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 3; + */ + public Builder setRelayConfiguration(org.opensmartgridplatform.oslp.Oslp.RelayConfiguration value) { + if (relayConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + relayConfiguration_ = value; + } else { + relayConfigurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 3; + */ + public Builder setRelayConfiguration( + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder builderForValue) { + if (relayConfigurationBuilder_ == null) { + relayConfiguration_ = builderForValue.build(); + } else { + relayConfigurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 3; + */ + public Builder mergeRelayConfiguration(org.opensmartgridplatform.oslp.Oslp.RelayConfiguration value) { + if (relayConfigurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + relayConfiguration_ != null && + relayConfiguration_ != org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance()) { + getRelayConfigurationBuilder().mergeFrom(value); + } else { + relayConfiguration_ = value; + } + } else { + relayConfigurationBuilder_.mergeFrom(value); + } + if (relayConfiguration_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 3; + */ + public Builder clearRelayConfiguration() { + bitField0_ = (bitField0_ & ~0x00000004); + relayConfiguration_ = null; + if (relayConfigurationBuilder_ != null) { + relayConfigurationBuilder_.dispose(); + relayConfigurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 3; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder getRelayConfigurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRelayConfigurationFieldBuilder().getBuilder(); + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 3; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder getRelayConfigurationOrBuilder() { + if (relayConfigurationBuilder_ != null) { + return relayConfigurationBuilder_.getMessageOrBuilder(); + } else { + return relayConfiguration_ == null ? + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance() : relayConfiguration_; + } + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration, org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder, org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder> + internalGetRelayConfigurationFieldBuilder() { + if (relayConfigurationBuilder_ == null) { + relayConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration, org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder, org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder>( + getRelayConfiguration(), + getParentForChildren(), + isClean()); + relayConfiguration_ = null; + } + return relayConfigurationBuilder_; + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + private int shortTermHistoryIntervalMinutes_ ; + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 4; + * @return Whether the shortTermHistoryIntervalMinutes field is set. + */ + @java.lang.Override + public boolean hasShortTermHistoryIntervalMinutes() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 4; + * @return The shortTermHistoryIntervalMinutes. + */ + @java.lang.Override + public int getShortTermHistoryIntervalMinutes() { + return shortTermHistoryIntervalMinutes_; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 4; + * @param value The shortTermHistoryIntervalMinutes to set. + * @return This builder for chaining. + */ + public Builder setShortTermHistoryIntervalMinutes(int value) { + + shortTermHistoryIntervalMinutes_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 4; + * @return This builder for chaining. + */ + public Builder clearShortTermHistoryIntervalMinutes() { + bitField0_ = (bitField0_ & ~0x00000008); + shortTermHistoryIntervalMinutes_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private int preferredLinkType_ = 0; + /** + * .oslp.LinkType preferredLinkType = 5; + * @return Whether the preferredLinkType field is set. + */ + @java.lang.Override public boolean hasPreferredLinkType() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .oslp.LinkType preferredLinkType = 5; + * @return The enum numeric value on the wire for preferredLinkType. + */ + @java.lang.Override public int getPreferredLinkTypeValue() { + return preferredLinkType_; + } + /** + * .oslp.LinkType preferredLinkType = 5; + * @param value The enum numeric value on the wire for preferredLinkType to set. + * @return This builder for chaining. + */ + public Builder setPreferredLinkTypeValue(int value) { + preferredLinkType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .oslp.LinkType preferredLinkType = 5; + * @return The preferredLinkType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinkType() { + org.opensmartgridplatform.oslp.Oslp.LinkType result = org.opensmartgridplatform.oslp.Oslp.LinkType.forNumber(preferredLinkType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LinkType.UNRECOGNIZED : result; + } + /** + * .oslp.LinkType preferredLinkType = 5; + * @param value The preferredLinkType to set. + * @return This builder for chaining. + */ + public Builder setPreferredLinkType(org.opensmartgridplatform.oslp.Oslp.LinkType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000010; + preferredLinkType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.LinkType preferredLinkType = 5; + * @return This builder for chaining. + */ + public Builder clearPreferredLinkType() { + bitField0_ = (bitField0_ & ~0x00000010); + preferredLinkType_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + private int meterType_ = 0; + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.MeterType meterType = 6; + * @return Whether the meterType field is set. + */ + @java.lang.Override public boolean hasMeterType() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.MeterType meterType = 6; + * @return The enum numeric value on the wire for meterType. + */ + @java.lang.Override public int getMeterTypeValue() { + return meterType_; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.MeterType meterType = 6; + * @param value The enum numeric value on the wire for meterType to set. + * @return This builder for chaining. + */ + public Builder setMeterTypeValue(int value) { + meterType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.MeterType meterType = 6; + * @return The meterType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType() { + org.opensmartgridplatform.oslp.Oslp.MeterType result = org.opensmartgridplatform.oslp.Oslp.MeterType.forNumber(meterType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.MeterType.UNRECOGNIZED : result; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.MeterType meterType = 6; + * @param value The meterType to set. + * @return This builder for chaining. + */ + public Builder setMeterType(org.opensmartgridplatform.oslp.Oslp.MeterType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000020; + meterType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.MeterType meterType = 6; + * @return This builder for chaining. + */ + public Builder clearMeterType() { + bitField0_ = (bitField0_ & ~0x00000020); + meterType_ = 0; + onChanged(); + return this; + } - public static Builder newBuilder() { - return Builder.create(); - } + private int longTermHistoryInterval_ ; + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 longTermHistoryInterval = 7; + * @return Whether the longTermHistoryInterval field is set. + */ + @java.lang.Override + public boolean hasLongTermHistoryInterval() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 longTermHistoryInterval = 7; + * @return The longTermHistoryInterval. + */ + @java.lang.Override + public int getLongTermHistoryInterval() { + return longTermHistoryInterval_; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 longTermHistoryInterval = 7; + * @param value The longTermHistoryInterval to set. + * @return This builder for chaining. + */ + public Builder setLongTermHistoryInterval(int value) { + + longTermHistoryInterval_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 longTermHistoryInterval = 7; + * @return This builder for chaining. + */ + public Builder clearLongTermHistoryInterval() { + bitField0_ = (bitField0_ & ~0x00000040); + longTermHistoryInterval_ = 0; + onChanged(); + return this; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + private int longTermHistoryIntervalType_ = 0; + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 8; + * @return Whether the longTermHistoryIntervalType field is set. + */ + @java.lang.Override public boolean hasLongTermHistoryIntervalType() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 8; + * @return The enum numeric value on the wire for longTermHistoryIntervalType. + */ + @java.lang.Override public int getLongTermHistoryIntervalTypeValue() { + return longTermHistoryIntervalType_; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 8; + * @param value The enum numeric value on the wire for longTermHistoryIntervalType to set. + * @return This builder for chaining. + */ + public Builder setLongTermHistoryIntervalTypeValue(int value) { + longTermHistoryIntervalType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 8; + * @return The longTermHistoryIntervalType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType getLongTermHistoryIntervalType() { + org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType result = org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.forNumber(longTermHistoryIntervalType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.UNRECOGNIZED : result; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 8; + * @param value The longTermHistoryIntervalType to set. + * @return This builder for chaining. + */ + public Builder setLongTermHistoryIntervalType(org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000080; + longTermHistoryIntervalType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 8; + * @return This builder for chaining. + */ + public Builder clearLongTermHistoryIntervalType() { + bitField0_ = (bitField0_ & ~0x00000080); + longTermHistoryIntervalType_ = 0; + onChanged(); + return this; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest prototype) { - return newBuilder().mergeFrom(prototype); - } + private int timeSyncFrequency_ = 86400; + /** + *
+             * Time synch frequency (seconds).
+             * 
+ * + * uint32 timeSyncFrequency = 9 [default = 86400]; + * @return Whether the timeSyncFrequency field is set. + */ + @java.lang.Override + public boolean hasTimeSyncFrequency() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+             * Time synch frequency (seconds).
+             * 
+ * + * uint32 timeSyncFrequency = 9 [default = 86400]; + * @return The timeSyncFrequency. + */ + @java.lang.Override + public int getTimeSyncFrequency() { + return timeSyncFrequency_; + } + /** + *
+             * Time synch frequency (seconds).
+             * 
+ * + * uint32 timeSyncFrequency = 9 [default = 86400]; + * @param value The timeSyncFrequency to set. + * @return This builder for chaining. + */ + public Builder setTimeSyncFrequency(int value) { + + timeSyncFrequency_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+             * Time synch frequency (seconds).
+             * 
+ * + * uint32 timeSyncFrequency = 9 [default = 86400]; + * @return This builder for chaining. + */ + public Builder clearTimeSyncFrequency() { + bitField0_ = (bitField0_ & ~0x00000100); + timeSyncFrequency_ = 86400; + onChanged(); + return this; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + private com.google.protobuf.ByteString deviceFixIpValue_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+             * 
+ * + * bytes deviceFixIpValue = 10; + * @return Whether the deviceFixIpValue field is set. + */ + @java.lang.Override + public boolean hasDeviceFixIpValue() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+             * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+             * 
+ * + * bytes deviceFixIpValue = 10; + * @return The deviceFixIpValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeviceFixIpValue() { + return deviceFixIpValue_; + } + /** + *
+             * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+             * 
+ * + * bytes deviceFixIpValue = 10; + * @param value The deviceFixIpValue to set. + * @return This builder for chaining. + */ + public Builder setDeviceFixIpValue(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + deviceFixIpValue_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+             * 
+ * + * bytes deviceFixIpValue = 10; + * @return This builder for chaining. + */ + public Builder clearDeviceFixIpValue() { + bitField0_ = (bitField0_ & ~0x00000200); + deviceFixIpValue_ = getDefaultInstance().getDeviceFixIpValue(); + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + private com.google.protobuf.ByteString netMask_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+             * 
+ * + * bytes netMask = 11; + * @return Whether the netMask field is set. + */ + @java.lang.Override + public boolean hasNetMask() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+             * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+             * 
+ * + * bytes netMask = 11; + * @return The netMask. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetMask() { + return netMask_; + } + /** + *
+             * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+             * 
+ * + * bytes netMask = 11; + * @param value The netMask to set. + * @return This builder for chaining. + */ + public Builder setNetMask(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + netMask_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+             * 
+ * + * bytes netMask = 11; + * @return This builder for chaining. + */ + public Builder clearNetMask() { + bitField0_ = (bitField0_ & ~0x00000400); + netMask_ = getDefaultInstance().getNetMask(); + onChanged(); + return this; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp - .UpdateDeviceSslCertificationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateDeviceSslCertificationRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateDeviceSslCertificationRequest_fieldAccessorTable; - } - - // Construct using - // org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.certificateDomain_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.certificateUrl_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - .getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - .getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest build() { - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest result = - new org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.certificateDomain_ = this.certificateDomain_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.certificateUrl_ = this.certificateUrl_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other - instanceof org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest - .getDefaultInstance()) { - return this; - } - if (other.hasCertificateDomain()) { - this.setCertificateDomain(other.getCertificateDomain()); - } - if (other.hasCertificateUrl()) { - this.setCertificateUrl(other.getCertificateUrl()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasCertificateDomain()) { - - return false; - } - if (!this.hasCertificateUrl()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - this.bitField0_ |= 0x00000001; - this.certificateDomain_ = input.readBytes(); - break; - } - case 18: - { - this.bitField0_ |= 0x00000002; - this.certificateUrl_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required string certificateDomain = 1; - private java.lang.Object certificateDomain_ = ""; - - @Override - public boolean hasCertificateDomain() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public String getCertificateDomain() { - final java.lang.Object ref = this.certificateDomain_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.certificateDomain_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setCertificateDomain(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.certificateDomain_ = value; - this.onChanged(); - return this; - } - - public Builder clearCertificateDomain() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.certificateDomain_ = getDefaultInstance().getCertificateDomain(); - this.onChanged(); - return this; - } - - void setCertificateDomain(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000001; - this.certificateDomain_ = value; - this.onChanged(); - } - - // required string certificateUrl = 2; - private java.lang.Object certificateUrl_ = ""; - - @Override - public boolean hasCertificateUrl() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public String getCertificateUrl() { - final java.lang.Object ref = this.certificateUrl_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.certificateUrl_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setCertificateUrl(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000002; - this.certificateUrl_ = value; - this.onChanged(); - return this; - } - - public Builder clearCertificateUrl() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.certificateUrl_ = getDefaultInstance().getCertificateUrl(); - this.onChanged(); - return this; - } - - void setCertificateUrl(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000002; - this.certificateUrl_ = value; - this.onChanged(); - } - - // @@protoc_insertion_point(builder_scope:oslp.UpdateDeviceSslCertificationRequest) - } + private com.google.protobuf.ByteString gateWay_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+             * 
+ * + * bytes gateWay = 12; + * @return Whether the gateWay field is set. + */ + @java.lang.Override + public boolean hasGateWay() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+             * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+             * 
+ * + * bytes gateWay = 12; + * @return The gateWay. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGateWay() { + return gateWay_; + } + /** + *
+             * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+             * 
+ * + * bytes gateWay = 12; + * @param value The gateWay to set. + * @return This builder for chaining. + */ + public Builder setGateWay(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + gateWay_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+             * 
+ * + * bytes gateWay = 12; + * @return This builder for chaining. + */ + public Builder clearGateWay() { + bitField0_ = (bitField0_ & ~0x00000800); + gateWay_ = getDefaultInstance().getGateWay(); + onChanged(); + return this; + } - static { - defaultInstance = new UpdateDeviceSslCertificationRequest(true); - defaultInstance.initFields(); - } + private boolean isDhcpEnabled_ = true; + /** + *
+             * Is DHCP enabled for this device?
+             * 
+ * + * bool isDhcpEnabled = 13 [default = true]; + * @return Whether the isDhcpEnabled field is set. + */ + @java.lang.Override + public boolean hasIsDhcpEnabled() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+             * Is DHCP enabled for this device?
+             * 
+ * + * bool isDhcpEnabled = 13 [default = true]; + * @return The isDhcpEnabled. + */ + @java.lang.Override + public boolean getIsDhcpEnabled() { + return isDhcpEnabled_; + } + /** + *
+             * Is DHCP enabled for this device?
+             * 
+ * + * bool isDhcpEnabled = 13 [default = true]; + * @param value The isDhcpEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsDhcpEnabled(boolean value) { + + isDhcpEnabled_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+             * Is DHCP enabled for this device?
+             * 
+ * + * bool isDhcpEnabled = 13 [default = true]; + * @return This builder for chaining. + */ + public Builder clearIsDhcpEnabled() { + bitField0_ = (bitField0_ & ~0x00001000); + isDhcpEnabled_ = true; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:oslp.UpdateDeviceSslCertificationRequest) - } + private int communicationTimeout_ = 20; + /** + *
+             * bool isTlsEnabled = 14;                                                     // Defines if TLS is enabled.
+             * uint32 oslpBindPortNumber = 15;                                             // The port used for TLS connections.
+             * string commonNameString = 16 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+             * 
+ * + * uint32 communicationTimeout = 14 [default = 20]; + * @return Whether the communicationTimeout field is set. + */ + @java.lang.Override + public boolean hasCommunicationTimeout() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+             * bool isTlsEnabled = 14;                                                     // Defines if TLS is enabled.
+             * uint32 oslpBindPortNumber = 15;                                             // The port used for TLS connections.
+             * string commonNameString = 16 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+             * 
+ * + * uint32 communicationTimeout = 14 [default = 20]; + * @return The communicationTimeout. + */ + @java.lang.Override + public int getCommunicationTimeout() { + return communicationTimeout_; + } + /** + *
+             * bool isTlsEnabled = 14;                                                     // Defines if TLS is enabled.
+             * uint32 oslpBindPortNumber = 15;                                             // The port used for TLS connections.
+             * string commonNameString = 16 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+             * 
+ * + * uint32 communicationTimeout = 14 [default = 20]; + * @param value The communicationTimeout to set. + * @return This builder for chaining. + */ + public Builder setCommunicationTimeout(int value) { + + communicationTimeout_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+             * bool isTlsEnabled = 14;                                                     // Defines if TLS is enabled.
+             * uint32 oslpBindPortNumber = 15;                                             // The port used for TLS connections.
+             * string commonNameString = 16 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+             * 
+ * + * uint32 communicationTimeout = 14 [default = 20]; + * @return This builder for chaining. + */ + public Builder clearCommunicationTimeout() { + bitField0_ = (bitField0_ & ~0x00002000); + communicationTimeout_ = 20; + onChanged(); + return this; + } - public interface UpdateDeviceSslCertificationResponseOrBuilder - extends com.google.protobuf.MessageOrBuilder { + private int communicationNumberOfRetries_ = 3; + /** + *
+             * Communication number of retries.
+             * 
+ * + * uint32 communicationNumberOfRetries = 15 [default = 3]; + * @return Whether the communicationNumberOfRetries field is set. + */ + @java.lang.Override + public boolean hasCommunicationNumberOfRetries() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+             * Communication number of retries.
+             * 
+ * + * uint32 communicationNumberOfRetries = 15 [default = 3]; + * @return The communicationNumberOfRetries. + */ + @java.lang.Override + public int getCommunicationNumberOfRetries() { + return communicationNumberOfRetries_; + } + /** + *
+             * Communication number of retries.
+             * 
+ * + * uint32 communicationNumberOfRetries = 15 [default = 3]; + * @param value The communicationNumberOfRetries to set. + * @return This builder for chaining. + */ + public Builder setCommunicationNumberOfRetries(int value) { + + communicationNumberOfRetries_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+             * Communication number of retries.
+             * 
+ * + * uint32 communicationNumberOfRetries = 15 [default = 3]; + * @return This builder for chaining. + */ + public Builder clearCommunicationNumberOfRetries() { + bitField0_ = (bitField0_ & ~0x00004000); + communicationNumberOfRetries_ = 3; + onChanged(); + return this; + } - // required .oslp.Status status = 1; - boolean hasStatus(); + private int communicationPauseTimeBetweenConnectionTrials_ = 60; + /** + *
+             * Time between communication attempts.
+             * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 16 [default = 60]; + * @return Whether the communicationPauseTimeBetweenConnectionTrials field is set. + */ + @java.lang.Override + public boolean hasCommunicationPauseTimeBetweenConnectionTrials() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+             * Time between communication attempts.
+             * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 16 [default = 60]; + * @return The communicationPauseTimeBetweenConnectionTrials. + */ + @java.lang.Override + public int getCommunicationPauseTimeBetweenConnectionTrials() { + return communicationPauseTimeBetweenConnectionTrials_; + } + /** + *
+             * Time between communication attempts.
+             * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 16 [default = 60]; + * @param value The communicationPauseTimeBetweenConnectionTrials to set. + * @return This builder for chaining. + */ + public Builder setCommunicationPauseTimeBetweenConnectionTrials(int value) { + + communicationPauseTimeBetweenConnectionTrials_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+             * Time between communication attempts.
+             * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 16 [default = 60]; + * @return This builder for chaining. + */ + public Builder clearCommunicationPauseTimeBetweenConnectionTrials() { + bitField0_ = (bitField0_ & ~0x00008000); + communicationPauseTimeBetweenConnectionTrials_ = 60; + onChanged(); + return this; + } - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - } + private com.google.protobuf.ByteString ospgIpAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_count = 4];                      // The IP address of the platform.
+             * 
+ * + * bytes ospgIpAddress = 17; + * @return Whether the ospgIpAddress field is set. + */ + @java.lang.Override + public boolean hasOspgIpAddress() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+             * [(nanopb).max_count = 4];                      // The IP address of the platform.
+             * 
+ * + * bytes ospgIpAddress = 17; + * @return The ospgIpAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOspgIpAddress() { + return ospgIpAddress_; + } + /** + *
+             * [(nanopb).max_count = 4];                      // The IP address of the platform.
+             * 
+ * + * bytes ospgIpAddress = 17; + * @param value The ospgIpAddress to set. + * @return This builder for chaining. + */ + public Builder setOspgIpAddress(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + ospgIpAddress_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4];                      // The IP address of the platform.
+             * 
+ * + * bytes ospgIpAddress = 17; + * @return This builder for chaining. + */ + public Builder clearOspgIpAddress() { + bitField0_ = (bitField0_ & ~0x00010000); + ospgIpAddress_ = getDefaultInstance().getOspgIpAddress(); + onChanged(); + return this; + } - public static final class UpdateDeviceSslCertificationResponse - extends com.google.protobuf.GeneratedMessage - implements UpdateDeviceSslCertificationResponseOrBuilder { - // Use UpdateDeviceSslCertificationResponse.newBuilder() to construct. - private UpdateDeviceSslCertificationResponse(final Builder builder) { - super(builder); - } + private int osgpPortNumber_ ; + /** + *
+             * The port number of the platform.
+             * 
+ * + * uint32 osgpPortNumber = 18; + * @return Whether the osgpPortNumber field is set. + */ + @java.lang.Override + public boolean hasOsgpPortNumber() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+             * The port number of the platform.
+             * 
+ * + * uint32 osgpPortNumber = 18; + * @return The osgpPortNumber. + */ + @java.lang.Override + public int getOsgpPortNumber() { + return osgpPortNumber_; + } + /** + *
+             * The port number of the platform.
+             * 
+ * + * uint32 osgpPortNumber = 18; + * @param value The osgpPortNumber to set. + * @return This builder for chaining. + */ + public Builder setOsgpPortNumber(int value) { + + osgpPortNumber_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+             * The port number of the platform.
+             * 
+ * + * uint32 osgpPortNumber = 18; + * @return This builder for chaining. + */ + public Builder clearOsgpPortNumber() { + bitField0_ = (bitField0_ & ~0x00020000); + osgpPortNumber_ = 0; + onChanged(); + return this; + } - private UpdateDeviceSslCertificationResponse(final boolean noInit) {} + private boolean isTestButtonEnabled_ = true; + /** + *
+             * Is the test button enabled for this device?
+             * 
+ * + * bool isTestButtonEnabled = 19 [default = true]; + * @return Whether the isTestButtonEnabled field is set. + */ + @java.lang.Override + public boolean hasIsTestButtonEnabled() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+             * Is the test button enabled for this device?
+             * 
+ * + * bool isTestButtonEnabled = 19 [default = true]; + * @return The isTestButtonEnabled. + */ + @java.lang.Override + public boolean getIsTestButtonEnabled() { + return isTestButtonEnabled_; + } + /** + *
+             * Is the test button enabled for this device?
+             * 
+ * + * bool isTestButtonEnabled = 19 [default = true]; + * @param value The isTestButtonEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsTestButtonEnabled(boolean value) { + + isTestButtonEnabled_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+             * Is the test button enabled for this device?
+             * 
+ * + * bool isTestButtonEnabled = 19 [default = true]; + * @return This builder for chaining. + */ + public Builder clearIsTestButtonEnabled() { + bitField0_ = (bitField0_ & ~0x00040000); + isTestButtonEnabled_ = true; + onChanged(); + return this; + } - private static final UpdateDeviceSslCertificationResponse defaultInstance; + private boolean isAutomaticSummerTimingEnabled_ = true; + /** + *
+             * Is the automatic summer timing enabled for this device?
+             * 
+ * + * bool isAutomaticSummerTimingEnabled = 20 [default = true]; + * @return Whether the isAutomaticSummerTimingEnabled field is set. + */ + @java.lang.Override + public boolean hasIsAutomaticSummerTimingEnabled() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+             * Is the automatic summer timing enabled for this device?
+             * 
+ * + * bool isAutomaticSummerTimingEnabled = 20 [default = true]; + * @return The isAutomaticSummerTimingEnabled. + */ + @java.lang.Override + public boolean getIsAutomaticSummerTimingEnabled() { + return isAutomaticSummerTimingEnabled_; + } + /** + *
+             * Is the automatic summer timing enabled for this device?
+             * 
+ * + * bool isAutomaticSummerTimingEnabled = 20 [default = true]; + * @param value The isAutomaticSummerTimingEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsAutomaticSummerTimingEnabled(boolean value) { + + isAutomaticSummerTimingEnabled_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+             * Is the automatic summer timing enabled for this device?
+             * 
+ * + * bool isAutomaticSummerTimingEnabled = 20 [default = true]; + * @return This builder for chaining. + */ + public Builder clearIsAutomaticSummerTimingEnabled() { + bitField0_ = (bitField0_ & ~0x00080000); + isAutomaticSummerTimingEnabled_ = true; + onChanged(); + return this; + } - public static UpdateDeviceSslCertificationResponse getDefaultInstance() { - return defaultInstance; - } + private int astroGateSunRiseOffset_ ; + /** + *
+             * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunRiseOffset = 21 [default = 0]; + * @return Whether the astroGateSunRiseOffset field is set. + */ + @java.lang.Override + public boolean hasAstroGateSunRiseOffset() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+             * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunRiseOffset = 21 [default = 0]; + * @return The astroGateSunRiseOffset. + */ + @java.lang.Override + public int getAstroGateSunRiseOffset() { + return astroGateSunRiseOffset_; + } + /** + *
+             * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunRiseOffset = 21 [default = 0]; + * @param value The astroGateSunRiseOffset to set. + * @return This builder for chaining. + */ + public Builder setAstroGateSunRiseOffset(int value) { + + astroGateSunRiseOffset_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+             * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunRiseOffset = 21 [default = 0]; + * @return This builder for chaining. + */ + public Builder clearAstroGateSunRiseOffset() { + bitField0_ = (bitField0_ & ~0x00100000); + astroGateSunRiseOffset_ = 0; + onChanged(); + return this; + } - @Override - public UpdateDeviceSslCertificationResponse getDefaultInstanceForType() { - return defaultInstance; - } + private int astroGateSunSetOffset_ ; + /** + *
+             * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunSetOffset = 22 [default = 0]; + * @return Whether the astroGateSunSetOffset field is set. + */ + @java.lang.Override + public boolean hasAstroGateSunSetOffset() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+             * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunSetOffset = 22 [default = 0]; + * @return The astroGateSunSetOffset. + */ + @java.lang.Override + public int getAstroGateSunSetOffset() { + return astroGateSunSetOffset_; + } + /** + *
+             * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunSetOffset = 22 [default = 0]; + * @param value The astroGateSunSetOffset to set. + * @return This builder for chaining. + */ + public Builder setAstroGateSunSetOffset(int value) { + + astroGateSunSetOffset_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + *
+             * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunSetOffset = 22 [default = 0]; + * @return This builder for chaining. + */ + public Builder clearAstroGateSunSetOffset() { + bitField0_ = (bitField0_ & ~0x00200000); + astroGateSunSetOffset_ = 0; + onChanged(); + return this; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateDeviceSslCertificationResponse_descriptor; - } + private com.google.protobuf.Internal.IntList switchingDelay_ = emptyIntList(); + private void ensureSwitchingDelayIsMutable() { + if (!switchingDelay_.isModifiable()) { + switchingDelay_ = makeMutableCopy(switchingDelay_); + } + bitField0_ |= 0x00400000; + } + /** + *
+             * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+             * 
+ * + * repeated uint32 switchingDelay = 23; + * @return A list containing the switchingDelay. + */ + public java.util.List + getSwitchingDelayList() { + switchingDelay_.makeImmutable(); + return switchingDelay_; + } + /** + *
+             * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+             * 
+ * + * repeated uint32 switchingDelay = 23; + * @return The count of switchingDelay. + */ + public int getSwitchingDelayCount() { + return switchingDelay_.size(); + } + /** + *
+             * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+             * 
+ * + * repeated uint32 switchingDelay = 23; + * @param index The index of the element to return. + * @return The switchingDelay at the given index. + */ + public int getSwitchingDelay(int index) { + return switchingDelay_.getInt(index); + } + /** + *
+             * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+             * 
+ * + * repeated uint32 switchingDelay = 23; + * @param index The index to set the value at. + * @param value The switchingDelay to set. + * @return This builder for chaining. + */ + public Builder setSwitchingDelay( + int index, int value) { + + ensureSwitchingDelayIsMutable(); + switchingDelay_.setInt(index, value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+             * 
+ * + * repeated uint32 switchingDelay = 23; + * @param value The switchingDelay to add. + * @return This builder for chaining. + */ + public Builder addSwitchingDelay(int value) { + + ensureSwitchingDelayIsMutable(); + switchingDelay_.addInt(value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+             * 
+ * + * repeated uint32 switchingDelay = 23; + * @param values The switchingDelay to add. + * @return This builder for chaining. + */ + public Builder addAllSwitchingDelay( + java.lang.Iterable values) { + ensureSwitchingDelayIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, switchingDelay_); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+             * 
+ * + * repeated uint32 switchingDelay = 23; + * @return This builder for chaining. + */ + public Builder clearSwitchingDelay() { + switchingDelay_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00400000); + onChanged(); + return this; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateDeviceSslCertificationResponse_fieldAccessorTable; - } + private java.util.List relayLinking_ = + java.util.Collections.emptyList(); + private void ensureRelayLinkingIsMutable() { + if (!((bitField0_ & 0x00800000) != 0)) { + relayLinking_ = new java.util.ArrayList(relayLinking_); + bitField0_ |= 0x00800000; + } + } - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RelayMatrix, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder, org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder> relayLinkingBuilder_; + + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public java.util.List getRelayLinkingList() { + if (relayLinkingBuilder_ == null) { + return java.util.Collections.unmodifiableList(relayLinking_); + } else { + return relayLinkingBuilder_.getMessageList(); + } + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public int getRelayLinkingCount() { + if (relayLinkingBuilder_ == null) { + return relayLinking_.size(); + } else { + return relayLinkingBuilder_.getCount(); + } + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayMatrix getRelayLinking(int index) { + if (relayLinkingBuilder_ == null) { + return relayLinking_.get(index); + } else { + return relayLinkingBuilder_.getMessage(index); + } + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public Builder setRelayLinking( + int index, org.opensmartgridplatform.oslp.Oslp.RelayMatrix value) { + if (relayLinkingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelayLinkingIsMutable(); + relayLinking_.set(index, value); + onChanged(); + } else { + relayLinkingBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public Builder setRelayLinking( + int index, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder builderForValue) { + if (relayLinkingBuilder_ == null) { + ensureRelayLinkingIsMutable(); + relayLinking_.set(index, builderForValue.build()); + onChanged(); + } else { + relayLinkingBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public Builder addRelayLinking(org.opensmartgridplatform.oslp.Oslp.RelayMatrix value) { + if (relayLinkingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelayLinkingIsMutable(); + relayLinking_.add(value); + onChanged(); + } else { + relayLinkingBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public Builder addRelayLinking( + int index, org.opensmartgridplatform.oslp.Oslp.RelayMatrix value) { + if (relayLinkingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelayLinkingIsMutable(); + relayLinking_.add(index, value); + onChanged(); + } else { + relayLinkingBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public Builder addRelayLinking( + org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder builderForValue) { + if (relayLinkingBuilder_ == null) { + ensureRelayLinkingIsMutable(); + relayLinking_.add(builderForValue.build()); + onChanged(); + } else { + relayLinkingBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public Builder addRelayLinking( + int index, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder builderForValue) { + if (relayLinkingBuilder_ == null) { + ensureRelayLinkingIsMutable(); + relayLinking_.add(index, builderForValue.build()); + onChanged(); + } else { + relayLinkingBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public Builder addAllRelayLinking( + java.lang.Iterable values) { + if (relayLinkingBuilder_ == null) { + ensureRelayLinkingIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relayLinking_); + onChanged(); + } else { + relayLinkingBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public Builder clearRelayLinking() { + if (relayLinkingBuilder_ == null) { + relayLinking_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00800000); + onChanged(); + } else { + relayLinkingBuilder_.clear(); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public Builder removeRelayLinking(int index) { + if (relayLinkingBuilder_ == null) { + ensureRelayLinkingIsMutable(); + relayLinking_.remove(index); + onChanged(); + } else { + relayLinkingBuilder_.remove(index); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder getRelayLinkingBuilder( + int index) { + return internalGetRelayLinkingFieldBuilder().getBuilder(index); + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder getRelayLinkingOrBuilder( + int index) { + if (relayLinkingBuilder_ == null) { + return relayLinking_.get(index); } else { + return relayLinkingBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public java.util.List + getRelayLinkingOrBuilderList() { + if (relayLinkingBuilder_ != null) { + return relayLinkingBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(relayLinking_); + } + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder addRelayLinkingBuilder() { + return internalGetRelayLinkingFieldBuilder().addBuilder( + org.opensmartgridplatform.oslp.Oslp.RelayMatrix.getDefaultInstance()); + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder addRelayLinkingBuilder( + int index) { + return internalGetRelayLinkingFieldBuilder().addBuilder( + index, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.getDefaultInstance()); + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 24; + */ + public java.util.List + getRelayLinkingBuilderList() { + return internalGetRelayLinkingFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RelayMatrix, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder, org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder> + internalGetRelayLinkingFieldBuilder() { + if (relayLinkingBuilder_ == null) { + relayLinkingBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RelayMatrix, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder, org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder>( + relayLinking_, + ((bitField0_ & 0x00800000) != 0), + getParentForChildren(), + isClean()); + relayLinking_ = null; + } + return relayLinkingBuilder_; + } - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + private boolean relayRefreshing_ = true; + /** + *
+             * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+             * 
+ * + * bool relayRefreshing = 25 [default = true]; + * @return Whether the relayRefreshing field is set. + */ + @java.lang.Override + public boolean hasRelayRefreshing() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + *
+             * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+             * 
+ * + * bool relayRefreshing = 25 [default = true]; + * @return The relayRefreshing. + */ + @java.lang.Override + public boolean getRelayRefreshing() { + return relayRefreshing_; + } + /** + *
+             * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+             * 
+ * + * bool relayRefreshing = 25 [default = true]; + * @param value The relayRefreshing to set. + * @return This builder for chaining. + */ + public Builder setRelayRefreshing(boolean value) { + + relayRefreshing_ = value; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + /** + *
+             * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+             * 
+ * + * bool relayRefreshing = 25 [default = true]; + * @return This builder for chaining. + */ + public Builder clearRelayRefreshing() { + bitField0_ = (bitField0_ & ~0x01000000); + relayRefreshing_ = true; + onChanged(); + return this; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } + private java.lang.Object summerTimeDetails_ = "0360100"; + /** + *
+             * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string summerTimeDetails = 26 [default = "0360100"]; + * @return Whether the summerTimeDetails field is set. + */ + public boolean hasSummerTimeDetails() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + *
+             * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string summerTimeDetails = 26 [default = "0360100"]; + * @return The summerTimeDetails. + */ + public java.lang.String getSummerTimeDetails() { + java.lang.Object ref = summerTimeDetails_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summerTimeDetails_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string summerTimeDetails = 26 [default = "0360100"]; + * @return The bytes for summerTimeDetails. + */ + public com.google.protobuf.ByteString + getSummerTimeDetailsBytes() { + java.lang.Object ref = summerTimeDetails_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summerTimeDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string summerTimeDetails = 26 [default = "0360100"]; + * @param value The summerTimeDetails to set. + * @return This builder for chaining. + */ + public Builder setSummerTimeDetails( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + summerTimeDetails_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+             * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string summerTimeDetails = 26 [default = "0360100"]; + * @return This builder for chaining. + */ + public Builder clearSummerTimeDetails() { + summerTimeDetails_ = getDefaultInstance().getSummerTimeDetails(); + bitField0_ = (bitField0_ & ~0x02000000); + onChanged(); + return this; + } + /** + *
+             * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string summerTimeDetails = 26 [default = "0360100"]; + * @param value The bytes for summerTimeDetails to set. + * @return This builder for chaining. + */ + public Builder setSummerTimeDetailsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + summerTimeDetails_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - } + private java.lang.Object winterTimeDetails_ = "1060200"; + /** + *
+             * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string winterTimeDetails = 27 [default = "1060200"]; + * @return Whether the winterTimeDetails field is set. + */ + public boolean hasWinterTimeDetails() { + return ((bitField0_ & 0x04000000) != 0); + } + /** + *
+             * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string winterTimeDetails = 27 [default = "1060200"]; + * @return The winterTimeDetails. + */ + public java.lang.String getWinterTimeDetails() { + java.lang.Object ref = winterTimeDetails_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + winterTimeDetails_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string winterTimeDetails = 27 [default = "1060200"]; + * @return The bytes for winterTimeDetails. + */ + public com.google.protobuf.ByteString + getWinterTimeDetailsBytes() { + java.lang.Object ref = winterTimeDetails_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + winterTimeDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string winterTimeDetails = 27 [default = "1060200"]; + * @param value The winterTimeDetails to set. + * @return This builder for chaining. + */ + public Builder setWinterTimeDetails( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + winterTimeDetails_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + *
+             * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string winterTimeDetails = 27 [default = "1060200"]; + * @return This builder for chaining. + */ + public Builder clearWinterTimeDetails() { + winterTimeDetails_ = getDefaultInstance().getWinterTimeDetails(); + bitField0_ = (bitField0_ & ~0x04000000); + onChanged(); + return this; + } + /** + *
+             * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string winterTimeDetails = 27 [default = "1060200"]; + * @param value The bytes for winterTimeDetails to set. + * @return This builder for chaining. + */ + public Builder setWinterTimeDetailsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + winterTimeDetails_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + // @@protoc_insertion_point(builder_scope:oslp.SetConfigurationRequest) + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } + // @@protoc_insertion_point(class_scope:oslp.SetConfigurationRequest) + private static final org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest(); + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private static final long serialVersionUID = 0L; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetConfigurationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - parseFrom(final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - parseFrom(final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + public interface SetConfigurationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SetConfigurationResponse) + com.google.protobuf.MessageOrBuilder { - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - parseFrom(final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); } + /** + * Protobuf type {@code oslp.SetConfigurationResponse} + */ + public static final class SetConfigurationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SetConfigurationResponse) + SetConfigurationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SetConfigurationResponse.class.getName()); + } + // Use SetConfigurationResponse.newBuilder() to construct. + private SetConfigurationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetConfigurationResponse() { + status_ = 0; + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetConfigurationResponse_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - parseDelimitedFrom(final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.class, org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + getUnknownFields().writeTo(output); + } - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - parseFrom(final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static Builder newBuilder() { - return Builder.create(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse other = (org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse) obj; - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse prototype) { - return newBuilder().mergeFrom(prototype); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.SetConfigurationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SetConfigurationResponse) + org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetConfigurationResponse_descriptor; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.class, org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.Builder.class); + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + // Construct using org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.newBuilder() + private Builder() { - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp - .UpdateDeviceSslCertificationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateDeviceSslCertificationResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_UpdateDeviceSslCertificationResponse_fieldAccessorTable; - } - - // Construct using - // org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - .getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - .getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse build() { - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse result = - new org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other - instanceof org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse - .getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.UpdateDeviceSslCertificationResponse) - } + } - static { - defaultInstance = new UpdateDeviceSslCertificationResponse(true); - defaultInstance.initFields(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - // @@protoc_insertion_point(class_scope:oslp.UpdateDeviceSslCertificationResponse) - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + return this; + } - public interface SetDeviceVerificationKeyRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetConfigurationResponse_descriptor; + } - // required bytes certificateChunk = 1; - boolean hasCertificateChunk(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.getDefaultInstance(); + } - com.google.protobuf.ByteString getCertificateChunk(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse build() { + org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final class SetDeviceVerificationKeyRequest - extends com.google.protobuf.GeneratedMessage - implements SetDeviceVerificationKeyRequestOrBuilder { - // Use SetDeviceVerificationKeyRequest.newBuilder() to construct. - private SetDeviceVerificationKeyRequest(final Builder builder) { - super(builder); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse result = new org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - private SetDeviceVerificationKeyRequest(final boolean noInit) {} + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - private static final SetDeviceVerificationKeyRequest defaultInstance; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static SetDeviceVerificationKeyRequest getDefaultInstance() { - return defaultInstance; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public SetDeviceVerificationKeyRequest getDefaultInstanceForType() { - return defaultInstance; - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + return true; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetDeviceVerificationKeyRequest_descriptor; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetDeviceVerificationKeyRequest_fieldAccessorTable; - } + // @@protoc_insertion_point(builder_scope:oslp.SetConfigurationResponse) + } - private int bitField0_; - // required bytes certificateChunk = 1; - public static final int CERTIFICATECHUNK_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString certificateChunk_; + // @@protoc_insertion_point(class_scope:oslp.SetConfigurationResponse) + private static final org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse(); + } - @Override - public boolean hasCertificateChunk() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + public static org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public com.google.protobuf.ByteString getCertificateChunk() { - return this.certificateChunk_; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetConfigurationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - private void initFields() { - this.certificateChunk_ = com.google.protobuf.ByteString.EMPTY; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasCertificateChunk()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, this.certificateChunk_); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, this.certificateChunk_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; } - private static final long serialVersionUID = 0L; + public interface GetConfigurationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.GetConfigurationRequest) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + boolean hasPresent(); + /** + * bool present = 1 [default = true]; + * @return The present. + */ + boolean getPresent(); } + /** + * Protobuf type {@code oslp.GetConfigurationRequest} + */ + public static final class GetConfigurationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.GetConfigurationRequest) + GetConfigurationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + GetConfigurationRequest.class.getName()); + } + // Use GetConfigurationRequest.newBuilder() to construct. + private GetConfigurationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetConfigurationRequest() { + present_ = true; + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetConfigurationRequest_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.class, org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.Builder.class); + } + + private int bitField0_; + public static final int PRESENT_FIELD_NUMBER = 1; + private boolean present_ = true; + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + @java.lang.Override + public boolean hasPresent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * bool present = 1 [default = true]; + * @return The present. + */ + @java.lang.Override + public boolean getPresent() { + return present_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, present_); + } + getUnknownFields().writeTo(output); + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, present_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest other = (org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest) obj; - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + if (hasPresent() != other.hasPresent()) return false; + if (hasPresent()) { + if (getPresent() + != other.getPresent()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest - parseDelimitedFrom(final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPresent()) { + hash = (37 * hash) + PRESENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPresent()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.GetConfigurationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.GetConfigurationRequest) + org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetConfigurationRequest_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest - parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.class, org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.Builder.class); + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.newBuilder() + private Builder() { - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + } - public static Builder newBuilder() { - return Builder.create(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + present_ = true; + return this; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest prototype) { - return newBuilder().mergeFrom(prototype); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetConfigurationRequest_descriptor; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.getDefaultInstance(); + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest build() { + org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetDeviceVerificationKeyRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetDeviceVerificationKeyRequest_fieldAccessorTable; - } - - // Construct using - // org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.certificateChunk_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest - .getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest build() { - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest result = - new org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.certificateChunk_ = this.certificateChunk_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest - .getDefaultInstance()) { - return this; - } - if (other.hasCertificateChunk()) { - this.setCertificateChunk(other.getCertificateChunk()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasCertificateChunk()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - this.bitField0_ |= 0x00000001; - this.certificateChunk_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required bytes certificateChunk = 1; - private com.google.protobuf.ByteString certificateChunk_ = - com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasCertificateChunk() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public com.google.protobuf.ByteString getCertificateChunk() { - return this.certificateChunk_; - } - - public Builder setCertificateChunk(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.certificateChunk_ = value; - this.onChanged(); - return this; - } - - public Builder clearCertificateChunk() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.certificateChunk_ = getDefaultInstance().getCertificateChunk(); - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.SetDeviceVerificationKeyRequest) - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest result = new org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - static { - defaultInstance = new SetDeviceVerificationKeyRequest(true); - defaultInstance.initFields(); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.present_ = present_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - // @@protoc_insertion_point(class_scope:oslp.SetDeviceVerificationKeyRequest) - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - public interface SetDeviceVerificationKeyResponseOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.getDefaultInstance()) return this; + if (other.hasPresent()) { + setPresent(other.getPresent()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - // required .oslp.Status status = 1; - boolean hasStatus(); + @java.lang.Override + public final boolean isInitialized() { + return true; + } - org.opensmartgridplatform.oslp.Oslp.Status getStatus(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + present_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean present_ = true; + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + @java.lang.Override + public boolean hasPresent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * bool present = 1 [default = true]; + * @return The present. + */ + @java.lang.Override + public boolean getPresent() { + return present_; + } + /** + * bool present = 1 [default = true]; + * @param value The present to set. + * @return This builder for chaining. + */ + public Builder setPresent(boolean value) { + + present_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool present = 1 [default = true]; + * @return This builder for chaining. + */ + public Builder clearPresent() { + bitField0_ = (bitField0_ & ~0x00000001); + present_ = true; + onChanged(); + return this; + } - public static final class SetDeviceVerificationKeyResponse - extends com.google.protobuf.GeneratedMessage - implements SetDeviceVerificationKeyResponseOrBuilder { - // Use SetDeviceVerificationKeyResponse.newBuilder() to construct. - private SetDeviceVerificationKeyResponse(final Builder builder) { - super(builder); - } + // @@protoc_insertion_point(builder_scope:oslp.GetConfigurationRequest) + } - private SetDeviceVerificationKeyResponse(final boolean noInit) {} + // @@protoc_insertion_point(class_scope:oslp.GetConfigurationRequest) + private static final org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest(); + } - private static final SetDeviceVerificationKeyResponse defaultInstance; + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static SetDeviceVerificationKeyResponse getDefaultInstance() { - return defaultInstance; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConfigurationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public SetDeviceVerificationKeyResponse getDefaultInstanceForType() { - return defaultInstance; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetConfigurationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.GetConfigurationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); + + /** + * .oslp.LightType lightType = 2; + * @return Whether the lightType field is set. + */ + boolean hasLightType(); + /** + * .oslp.LightType lightType = 2; + * @return The enum numeric value on the wire for lightType. + */ + int getLightTypeValue(); + /** + * .oslp.LightType lightType = 2; + * @return The lightType. + */ + org.opensmartgridplatform.oslp.Oslp.LightType getLightType(); + + /** + *
+         * Contains specific configuration for DALI controllers.
+         * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 3; + * @return Whether the daliConfiguration field is set. + */ + boolean hasDaliConfiguration(); + /** + *
+         * Contains specific configuration for DALI controllers.
+         * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 3; + * @return The daliConfiguration. + */ + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDaliConfiguration(); + /** + *
+         * Contains specific configuration for DALI controllers.
+         * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 3; + */ + org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder getDaliConfigurationOrBuilder(); + + /** + *
+         * Contains specific configuration for Relay.
+         * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 4; + * @return Whether the relayConfiguration field is set. + */ + boolean hasRelayConfiguration(); + /** + *
+         * Contains specific configuration for Relay.
+         * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 4; + * @return The relayConfiguration. + */ + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getRelayConfiguration(); + /** + *
+         * Contains specific configuration for Relay.
+         * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 4; + */ + org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder getRelayConfigurationOrBuilder(); + + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 5; + * @return Whether the shortTermHistoryIntervalMinutes field is set. + */ + boolean hasShortTermHistoryIntervalMinutes(); + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 5; + * @return The shortTermHistoryIntervalMinutes. + */ + int getShortTermHistoryIntervalMinutes(); + + /** + * .oslp.LinkType preferredLinkType = 6; + * @return Whether the preferredLinkType field is set. + */ + boolean hasPreferredLinkType(); + /** + * .oslp.LinkType preferredLinkType = 6; + * @return The enum numeric value on the wire for preferredLinkType. + */ + int getPreferredLinkTypeValue(); + /** + * .oslp.LinkType preferredLinkType = 6; + * @return The preferredLinkType. + */ + org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinkType(); + + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.MeterType meterType = 7; + * @return Whether the meterType field is set. + */ + boolean hasMeterType(); + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.MeterType meterType = 7; + * @return The enum numeric value on the wire for meterType. + */ + int getMeterTypeValue(); + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.MeterType meterType = 7; + * @return The meterType. + */ + org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType(); + + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 longTermHistoryInterval = 8; + * @return Whether the longTermHistoryInterval field is set. + */ + boolean hasLongTermHistoryInterval(); + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 longTermHistoryInterval = 8; + * @return The longTermHistoryInterval. + */ + int getLongTermHistoryInterval(); + + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 9; + * @return Whether the longTermHistoryIntervalType field is set. + */ + boolean hasLongTermHistoryIntervalType(); + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 9; + * @return The enum numeric value on the wire for longTermHistoryIntervalType. + */ + int getLongTermHistoryIntervalTypeValue(); + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 9; + * @return The longTermHistoryIntervalType. + */ + org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType getLongTermHistoryIntervalType(); + + /** + *
+         * Time synch frequency (seconds).
+         * 
+ * + * uint32 timeSyncFrequency = 10 [default = 86400]; + * @return Whether the timeSyncFrequency field is set. + */ + boolean hasTimeSyncFrequency(); + /** + *
+         * Time synch frequency (seconds).
+         * 
+ * + * uint32 timeSyncFrequency = 10 [default = 86400]; + * @return The timeSyncFrequency. + */ + int getTimeSyncFrequency(); + + /** + *
+         * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+         * 
+ * + * bytes deviceFixIpValue = 11; + * @return Whether the deviceFixIpValue field is set. + */ + boolean hasDeviceFixIpValue(); + /** + *
+         * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+         * 
+ * + * bytes deviceFixIpValue = 11; + * @return The deviceFixIpValue. + */ + com.google.protobuf.ByteString getDeviceFixIpValue(); + + /** + *
+         * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+         * 
+ * + * bytes netMask = 12; + * @return Whether the netMask field is set. + */ + boolean hasNetMask(); + /** + *
+         * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+         * 
+ * + * bytes netMask = 12; + * @return The netMask. + */ + com.google.protobuf.ByteString getNetMask(); + + /** + *
+         * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+         * 
+ * + * bytes gateWay = 13; + * @return Whether the gateWay field is set. + */ + boolean hasGateWay(); + /** + *
+         * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+         * 
+ * + * bytes gateWay = 13; + * @return The gateWay. + */ + com.google.protobuf.ByteString getGateWay(); + + /** + *
+         * Is DHCP enabled for this device?
+         * 
+ * + * bool isDhcpEnabled = 14 [default = true]; + * @return Whether the isDhcpEnabled field is set. + */ + boolean hasIsDhcpEnabled(); + /** + *
+         * Is DHCP enabled for this device?
+         * 
+ * + * bool isDhcpEnabled = 14 [default = true]; + * @return The isDhcpEnabled. + */ + boolean getIsDhcpEnabled(); + + /** + *
+         * bool isTlsEnabled = 15;                                                     // Defines if TLS is enabled.
+         * uint32 oslpBindPortNumber = 16;                                             // The port used for TLS connections.
+         * string commonNameString = 17 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+         * 
+ * + * uint32 communicationTimeout = 15 [default = 20]; + * @return Whether the communicationTimeout field is set. + */ + boolean hasCommunicationTimeout(); + /** + *
+         * bool isTlsEnabled = 15;                                                     // Defines if TLS is enabled.
+         * uint32 oslpBindPortNumber = 16;                                             // The port used for TLS connections.
+         * string commonNameString = 17 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+         * 
+ * + * uint32 communicationTimeout = 15 [default = 20]; + * @return The communicationTimeout. + */ + int getCommunicationTimeout(); + + /** + *
+         * Communication number of retries.
+         * 
+ * + * uint32 communicationNumberOfRetries = 16 [default = 3]; + * @return Whether the communicationNumberOfRetries field is set. + */ + boolean hasCommunicationNumberOfRetries(); + /** + *
+         * Communication number of retries.
+         * 
+ * + * uint32 communicationNumberOfRetries = 16 [default = 3]; + * @return The communicationNumberOfRetries. + */ + int getCommunicationNumberOfRetries(); + + /** + *
+         * Time between communication attempts.
+         * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 17 [default = 60]; + * @return Whether the communicationPauseTimeBetweenConnectionTrials field is set. + */ + boolean hasCommunicationPauseTimeBetweenConnectionTrials(); + /** + *
+         * Time between communication attempts.
+         * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 17 [default = 60]; + * @return The communicationPauseTimeBetweenConnectionTrials. + */ + int getCommunicationPauseTimeBetweenConnectionTrials(); + + /** + *
+         * [(nanopb).max_count = 4];                      // The IP address of the platform.
+         * 
+ * + * bytes ospgIpAddress = 18; + * @return Whether the ospgIpAddress field is set. + */ + boolean hasOspgIpAddress(); + /** + *
+         * [(nanopb).max_count = 4];                      // The IP address of the platform.
+         * 
+ * + * bytes ospgIpAddress = 18; + * @return The ospgIpAddress. + */ + com.google.protobuf.ByteString getOspgIpAddress(); + + /** + *
+         * The port number of the platform.
+         * 
+ * + * uint32 osgpPortNumber = 19; + * @return Whether the osgpPortNumber field is set. + */ + boolean hasOsgpPortNumber(); + /** + *
+         * The port number of the platform.
+         * 
+ * + * uint32 osgpPortNumber = 19; + * @return The osgpPortNumber. + */ + int getOsgpPortNumber(); + + /** + *
+         * Is the test button enabled for this device?
+         * 
+ * + * bool isTestButtonEnabled = 20 [default = true]; + * @return Whether the isTestButtonEnabled field is set. + */ + boolean hasIsTestButtonEnabled(); + /** + *
+         * Is the test button enabled for this device?
+         * 
+ * + * bool isTestButtonEnabled = 20 [default = true]; + * @return The isTestButtonEnabled. + */ + boolean getIsTestButtonEnabled(); + + /** + *
+         * Is the automatic summer timing enabled for this device?
+         * 
+ * + * bool isAutomaticSummerTimingEnabled = 21 [default = true]; + * @return Whether the isAutomaticSummerTimingEnabled field is set. + */ + boolean hasIsAutomaticSummerTimingEnabled(); + /** + *
+         * Is the automatic summer timing enabled for this device?
+         * 
+ * + * bool isAutomaticSummerTimingEnabled = 21 [default = true]; + * @return The isAutomaticSummerTimingEnabled. + */ + boolean getIsAutomaticSummerTimingEnabled(); + + /** + *
+         * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunRiseOffset = 22 [default = 0]; + * @return Whether the astroGateSunRiseOffset field is set. + */ + boolean hasAstroGateSunRiseOffset(); + /** + *
+         * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunRiseOffset = 22 [default = 0]; + * @return The astroGateSunRiseOffset. + */ + int getAstroGateSunRiseOffset(); + + /** + *
+         * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunSetOffset = 23 [default = 0]; + * @return Whether the astroGateSunSetOffset field is set. + */ + boolean hasAstroGateSunSetOffset(); + /** + *
+         * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunSetOffset = 23 [default = 0]; + * @return The astroGateSunSetOffset. + */ + int getAstroGateSunSetOffset(); + + /** + *
+         * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+         * 
+ * + * repeated uint32 switchingDelay = 24; + * @return A list containing the switchingDelay. + */ + java.util.List getSwitchingDelayList(); + /** + *
+         * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+         * 
+ * + * repeated uint32 switchingDelay = 24; + * @return The count of switchingDelay. + */ + int getSwitchingDelayCount(); + /** + *
+         * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+         * 
+ * + * repeated uint32 switchingDelay = 24; + * @param index The index of the element to return. + * @return The switchingDelay at the given index. + */ + int getSwitchingDelay(int index); + + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + java.util.List + getRelayLinkingList(); + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + org.opensmartgridplatform.oslp.Oslp.RelayMatrix getRelayLinking(int index); + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + int getRelayLinkingCount(); + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + java.util.List + getRelayLinkingOrBuilderList(); + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder getRelayLinkingOrBuilder( + int index); + + /** + *
+         * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+         * 
+ * + * bool relayRefreshing = 26 [default = true]; + * @return Whether the relayRefreshing field is set. + */ + boolean hasRelayRefreshing(); + /** + *
+         * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+         * 
+ * + * bool relayRefreshing = 26 [default = true]; + * @return The relayRefreshing. + */ + boolean getRelayRefreshing(); + + /** + *
+         * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string summerTimeDetails = 27 [default = "0360100"]; + * @return Whether the summerTimeDetails field is set. + */ + boolean hasSummerTimeDetails(); + /** + *
+         * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string summerTimeDetails = 27 [default = "0360100"]; + * @return The summerTimeDetails. + */ + java.lang.String getSummerTimeDetails(); + /** + *
+         * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string summerTimeDetails = 27 [default = "0360100"]; + * @return The bytes for summerTimeDetails. + */ + com.google.protobuf.ByteString + getSummerTimeDetailsBytes(); + + /** + *
+         * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string winterTimeDetails = 28 [default = "1060200"]; + * @return Whether the winterTimeDetails field is set. + */ + boolean hasWinterTimeDetails(); + /** + *
+         * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string winterTimeDetails = 28 [default = "1060200"]; + * @return The winterTimeDetails. + */ + java.lang.String getWinterTimeDetails(); + /** + *
+         * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string winterTimeDetails = 28 [default = "1060200"]; + * @return The bytes for winterTimeDetails. + */ + com.google.protobuf.ByteString + getWinterTimeDetailsBytes(); + } + /** + * Protobuf type {@code oslp.GetConfigurationResponse} + */ + public static final class GetConfigurationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.GetConfigurationResponse) + GetConfigurationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + GetConfigurationResponse.class.getName()); + } + // Use GetConfigurationResponse.newBuilder() to construct. + private GetConfigurationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetConfigurationResponse() { + status_ = 0; + lightType_ = 0; + preferredLinkType_ = 0; + meterType_ = 0; + longTermHistoryIntervalType_ = 0; + timeSyncFrequency_ = 86400; + deviceFixIpValue_ = com.google.protobuf.ByteString.EMPTY; + netMask_ = com.google.protobuf.ByteString.EMPTY; + gateWay_ = com.google.protobuf.ByteString.EMPTY; + isDhcpEnabled_ = true; + communicationTimeout_ = 20; + communicationNumberOfRetries_ = 3; + communicationPauseTimeBetweenConnectionTrials_ = 60; + ospgIpAddress_ = com.google.protobuf.ByteString.EMPTY; + isTestButtonEnabled_ = true; + isAutomaticSummerTimingEnabled_ = true; + switchingDelay_ = emptyIntList(); + relayLinking_ = java.util.Collections.emptyList(); + relayRefreshing_ = true; + summerTimeDetails_ = "0360100"; + winterTimeDetails_ = "1060200"; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetConfigurationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.class, org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + public static final int LIGHTTYPE_FIELD_NUMBER = 2; + private int lightType_ = 0; + /** + * .oslp.LightType lightType = 2; + * @return Whether the lightType field is set. + */ + @java.lang.Override public boolean hasLightType() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .oslp.LightType lightType = 2; + * @return The enum numeric value on the wire for lightType. + */ + @java.lang.Override public int getLightTypeValue() { + return lightType_; + } + /** + * .oslp.LightType lightType = 2; + * @return The lightType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.LightType getLightType() { + org.opensmartgridplatform.oslp.Oslp.LightType result = org.opensmartgridplatform.oslp.Oslp.LightType.forNumber(lightType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LightType.UNRECOGNIZED : result; + } + + public static final int DALICONFIGURATION_FIELD_NUMBER = 3; + private org.opensmartgridplatform.oslp.Oslp.DaliConfiguration daliConfiguration_; + /** + *
+         * Contains specific configuration for DALI controllers.
+         * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 3; + * @return Whether the daliConfiguration field is set. + */ + @java.lang.Override + public boolean hasDaliConfiguration() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * Contains specific configuration for DALI controllers.
+         * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 3; + * @return The daliConfiguration. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDaliConfiguration() { + return daliConfiguration_ == null ? org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance() : daliConfiguration_; + } + /** + *
+         * Contains specific configuration for DALI controllers.
+         * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 3; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder getDaliConfigurationOrBuilder() { + return daliConfiguration_ == null ? org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance() : daliConfiguration_; + } + + public static final int RELAYCONFIGURATION_FIELD_NUMBER = 4; + private org.opensmartgridplatform.oslp.Oslp.RelayConfiguration relayConfiguration_; + /** + *
+         * Contains specific configuration for Relay.
+         * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 4; + * @return Whether the relayConfiguration field is set. + */ + @java.lang.Override + public boolean hasRelayConfiguration() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+         * Contains specific configuration for Relay.
+         * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 4; + * @return The relayConfiguration. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getRelayConfiguration() { + return relayConfiguration_ == null ? org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance() : relayConfiguration_; + } + /** + *
+         * Contains specific configuration for Relay.
+         * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 4; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder getRelayConfigurationOrBuilder() { + return relayConfiguration_ == null ? org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance() : relayConfiguration_; + } + + public static final int SHORTTERMHISTORYINTERVALMINUTES_FIELD_NUMBER = 5; + private int shortTermHistoryIntervalMinutes_ = 0; + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 5; + * @return Whether the shortTermHistoryIntervalMinutes field is set. + */ + @java.lang.Override + public boolean hasShortTermHistoryIntervalMinutes() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 5; + * @return The shortTermHistoryIntervalMinutes. + */ + @java.lang.Override + public int getShortTermHistoryIntervalMinutes() { + return shortTermHistoryIntervalMinutes_; + } + + public static final int PREFERREDLINKTYPE_FIELD_NUMBER = 6; + private int preferredLinkType_ = 0; + /** + * .oslp.LinkType preferredLinkType = 6; + * @return Whether the preferredLinkType field is set. + */ + @java.lang.Override public boolean hasPreferredLinkType() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .oslp.LinkType preferredLinkType = 6; + * @return The enum numeric value on the wire for preferredLinkType. + */ + @java.lang.Override public int getPreferredLinkTypeValue() { + return preferredLinkType_; + } + /** + * .oslp.LinkType preferredLinkType = 6; + * @return The preferredLinkType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinkType() { + org.opensmartgridplatform.oslp.Oslp.LinkType result = org.opensmartgridplatform.oslp.Oslp.LinkType.forNumber(preferredLinkType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LinkType.UNRECOGNIZED : result; + } + + public static final int METERTYPE_FIELD_NUMBER = 7; + private int meterType_ = 0; + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.MeterType meterType = 7; + * @return Whether the meterType field is set. + */ + @java.lang.Override public boolean hasMeterType() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.MeterType meterType = 7; + * @return The enum numeric value on the wire for meterType. + */ + @java.lang.Override public int getMeterTypeValue() { + return meterType_; + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.MeterType meterType = 7; + * @return The meterType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType() { + org.opensmartgridplatform.oslp.Oslp.MeterType result = org.opensmartgridplatform.oslp.Oslp.MeterType.forNumber(meterType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.MeterType.UNRECOGNIZED : result; + } + + public static final int LONGTERMHISTORYINTERVAL_FIELD_NUMBER = 8; + private int longTermHistoryInterval_ = 0; + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 longTermHistoryInterval = 8; + * @return Whether the longTermHistoryInterval field is set. + */ + @java.lang.Override + public boolean hasLongTermHistoryInterval() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * uint32 longTermHistoryInterval = 8; + * @return The longTermHistoryInterval. + */ + @java.lang.Override + public int getLongTermHistoryInterval() { + return longTermHistoryInterval_; + } + + public static final int LONGTERMHISTORYINTERVALTYPE_FIELD_NUMBER = 9; + private int longTermHistoryIntervalType_ = 0; + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 9; + * @return Whether the longTermHistoryIntervalType field is set. + */ + @java.lang.Override public boolean hasLongTermHistoryIntervalType() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 9; + * @return The enum numeric value on the wire for longTermHistoryIntervalType. + */ + @java.lang.Override public int getLongTermHistoryIntervalTypeValue() { + return longTermHistoryIntervalType_; + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 9; + * @return The longTermHistoryIntervalType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType getLongTermHistoryIntervalType() { + org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType result = org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.forNumber(longTermHistoryIntervalType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.UNRECOGNIZED : result; + } + + public static final int TIMESYNCFREQUENCY_FIELD_NUMBER = 10; + private int timeSyncFrequency_ = 86400; + /** + *
+         * Time synch frequency (seconds).
+         * 
+ * + * uint32 timeSyncFrequency = 10 [default = 86400]; + * @return Whether the timeSyncFrequency field is set. + */ + @java.lang.Override + public boolean hasTimeSyncFrequency() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+         * Time synch frequency (seconds).
+         * 
+ * + * uint32 timeSyncFrequency = 10 [default = 86400]; + * @return The timeSyncFrequency. + */ + @java.lang.Override + public int getTimeSyncFrequency() { + return timeSyncFrequency_; + } + + public static final int DEVICEFIXIPVALUE_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString deviceFixIpValue_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+         * 
+ * + * bytes deviceFixIpValue = 11; + * @return Whether the deviceFixIpValue field is set. + */ + @java.lang.Override + public boolean hasDeviceFixIpValue() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+         * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+         * 
+ * + * bytes deviceFixIpValue = 11; + * @return The deviceFixIpValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeviceFixIpValue() { + return deviceFixIpValue_; + } + + public static final int NETMASK_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString netMask_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+         * 
+ * + * bytes netMask = 12; + * @return Whether the netMask field is set. + */ + @java.lang.Override + public boolean hasNetMask() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+         * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+         * 
+ * + * bytes netMask = 12; + * @return The netMask. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetMask() { + return netMask_; + } + + public static final int GATEWAY_FIELD_NUMBER = 13; + private com.google.protobuf.ByteString gateWay_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+         * 
+ * + * bytes gateWay = 13; + * @return Whether the gateWay field is set. + */ + @java.lang.Override + public boolean hasGateWay() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+         * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+         * 
+ * + * bytes gateWay = 13; + * @return The gateWay. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGateWay() { + return gateWay_; + } + + public static final int ISDHCPENABLED_FIELD_NUMBER = 14; + private boolean isDhcpEnabled_ = true; + /** + *
+         * Is DHCP enabled for this device?
+         * 
+ * + * bool isDhcpEnabled = 14 [default = true]; + * @return Whether the isDhcpEnabled field is set. + */ + @java.lang.Override + public boolean hasIsDhcpEnabled() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+         * Is DHCP enabled for this device?
+         * 
+ * + * bool isDhcpEnabled = 14 [default = true]; + * @return The isDhcpEnabled. + */ + @java.lang.Override + public boolean getIsDhcpEnabled() { + return isDhcpEnabled_; + } + + public static final int COMMUNICATIONTIMEOUT_FIELD_NUMBER = 15; + private int communicationTimeout_ = 20; + /** + *
+         * bool isTlsEnabled = 15;                                                     // Defines if TLS is enabled.
+         * uint32 oslpBindPortNumber = 16;                                             // The port used for TLS connections.
+         * string commonNameString = 17 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+         * 
+ * + * uint32 communicationTimeout = 15 [default = 20]; + * @return Whether the communicationTimeout field is set. + */ + @java.lang.Override + public boolean hasCommunicationTimeout() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+         * bool isTlsEnabled = 15;                                                     // Defines if TLS is enabled.
+         * uint32 oslpBindPortNumber = 16;                                             // The port used for TLS connections.
+         * string commonNameString = 17 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+         * 
+ * + * uint32 communicationTimeout = 15 [default = 20]; + * @return The communicationTimeout. + */ + @java.lang.Override + public int getCommunicationTimeout() { + return communicationTimeout_; + } + + public static final int COMMUNICATIONNUMBEROFRETRIES_FIELD_NUMBER = 16; + private int communicationNumberOfRetries_ = 3; + /** + *
+         * Communication number of retries.
+         * 
+ * + * uint32 communicationNumberOfRetries = 16 [default = 3]; + * @return Whether the communicationNumberOfRetries field is set. + */ + @java.lang.Override + public boolean hasCommunicationNumberOfRetries() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+         * Communication number of retries.
+         * 
+ * + * uint32 communicationNumberOfRetries = 16 [default = 3]; + * @return The communicationNumberOfRetries. + */ + @java.lang.Override + public int getCommunicationNumberOfRetries() { + return communicationNumberOfRetries_; + } + + public static final int COMMUNICATIONPAUSETIMEBETWEENCONNECTIONTRIALS_FIELD_NUMBER = 17; + private int communicationPauseTimeBetweenConnectionTrials_ = 60; + /** + *
+         * Time between communication attempts.
+         * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 17 [default = 60]; + * @return Whether the communicationPauseTimeBetweenConnectionTrials field is set. + */ + @java.lang.Override + public boolean hasCommunicationPauseTimeBetweenConnectionTrials() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+         * Time between communication attempts.
+         * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 17 [default = 60]; + * @return The communicationPauseTimeBetweenConnectionTrials. + */ + @java.lang.Override + public int getCommunicationPauseTimeBetweenConnectionTrials() { + return communicationPauseTimeBetweenConnectionTrials_; + } + + public static final int OSPGIPADDRESS_FIELD_NUMBER = 18; + private com.google.protobuf.ByteString ospgIpAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_count = 4];                      // The IP address of the platform.
+         * 
+ * + * bytes ospgIpAddress = 18; + * @return Whether the ospgIpAddress field is set. + */ + @java.lang.Override + public boolean hasOspgIpAddress() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+         * [(nanopb).max_count = 4];                      // The IP address of the platform.
+         * 
+ * + * bytes ospgIpAddress = 18; + * @return The ospgIpAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOspgIpAddress() { + return ospgIpAddress_; + } + + public static final int OSGPPORTNUMBER_FIELD_NUMBER = 19; + private int osgpPortNumber_ = 0; + /** + *
+         * The port number of the platform.
+         * 
+ * + * uint32 osgpPortNumber = 19; + * @return Whether the osgpPortNumber field is set. + */ + @java.lang.Override + public boolean hasOsgpPortNumber() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+         * The port number of the platform.
+         * 
+ * + * uint32 osgpPortNumber = 19; + * @return The osgpPortNumber. + */ + @java.lang.Override + public int getOsgpPortNumber() { + return osgpPortNumber_; + } + + public static final int ISTESTBUTTONENABLED_FIELD_NUMBER = 20; + private boolean isTestButtonEnabled_ = true; + /** + *
+         * Is the test button enabled for this device?
+         * 
+ * + * bool isTestButtonEnabled = 20 [default = true]; + * @return Whether the isTestButtonEnabled field is set. + */ + @java.lang.Override + public boolean hasIsTestButtonEnabled() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+         * Is the test button enabled for this device?
+         * 
+ * + * bool isTestButtonEnabled = 20 [default = true]; + * @return The isTestButtonEnabled. + */ + @java.lang.Override + public boolean getIsTestButtonEnabled() { + return isTestButtonEnabled_; + } + + public static final int ISAUTOMATICSUMMERTIMINGENABLED_FIELD_NUMBER = 21; + private boolean isAutomaticSummerTimingEnabled_ = true; + /** + *
+         * Is the automatic summer timing enabled for this device?
+         * 
+ * + * bool isAutomaticSummerTimingEnabled = 21 [default = true]; + * @return Whether the isAutomaticSummerTimingEnabled field is set. + */ + @java.lang.Override + public boolean hasIsAutomaticSummerTimingEnabled() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+         * Is the automatic summer timing enabled for this device?
+         * 
+ * + * bool isAutomaticSummerTimingEnabled = 21 [default = true]; + * @return The isAutomaticSummerTimingEnabled. + */ + @java.lang.Override + public boolean getIsAutomaticSummerTimingEnabled() { + return isAutomaticSummerTimingEnabled_; + } + + public static final int ASTROGATESUNRISEOFFSET_FIELD_NUMBER = 22; + private int astroGateSunRiseOffset_ = 0; + /** + *
+         * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunRiseOffset = 22 [default = 0]; + * @return Whether the astroGateSunRiseOffset field is set. + */ + @java.lang.Override + public boolean hasAstroGateSunRiseOffset() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+         * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunRiseOffset = 22 [default = 0]; + * @return The astroGateSunRiseOffset. + */ + @java.lang.Override + public int getAstroGateSunRiseOffset() { + return astroGateSunRiseOffset_; + } + + public static final int ASTROGATESUNSETOFFSET_FIELD_NUMBER = 23; + private int astroGateSunSetOffset_ = 0; + /** + *
+         * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunSetOffset = 23 [default = 0]; + * @return Whether the astroGateSunSetOffset field is set. + */ + @java.lang.Override + public boolean hasAstroGateSunSetOffset() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + *
+         * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+         * 
+ * + * sint32 astroGateSunSetOffset = 23 [default = 0]; + * @return The astroGateSunSetOffset. + */ + @java.lang.Override + public int getAstroGateSunSetOffset() { + return astroGateSunSetOffset_; + } + + public static final int SWITCHINGDELAY_FIELD_NUMBER = 24; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList switchingDelay_ = + emptyIntList(); + /** + *
+         * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+         * 
+ * + * repeated uint32 switchingDelay = 24; + * @return A list containing the switchingDelay. + */ + @java.lang.Override + public java.util.List + getSwitchingDelayList() { + return switchingDelay_; + } + /** + *
+         * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+         * 
+ * + * repeated uint32 switchingDelay = 24; + * @return The count of switchingDelay. + */ + public int getSwitchingDelayCount() { + return switchingDelay_.size(); + } + /** + *
+         * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+         * 
+ * + * repeated uint32 switchingDelay = 24; + * @param index The index of the element to return. + * @return The switchingDelay at the given index. + */ + public int getSwitchingDelay(int index) { + return switchingDelay_.getInt(index); + } + private int switchingDelayMemoizedSerializedSize = -1; + + public static final int RELAYLINKING_FIELD_NUMBER = 25; + @SuppressWarnings("serial") + private java.util.List relayLinking_; + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + @java.lang.Override + public java.util.List getRelayLinkingList() { + return relayLinking_; + } + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + @java.lang.Override + public java.util.List + getRelayLinkingOrBuilderList() { + return relayLinking_; + } + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + @java.lang.Override + public int getRelayLinkingCount() { + return relayLinking_.size(); + } + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayMatrix getRelayLinking(int index) { + return relayLinking_.get(index); + } + /** + *
+         * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+         * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder getRelayLinkingOrBuilder( + int index) { + return relayLinking_.get(index); + } + + public static final int RELAYREFRESHING_FIELD_NUMBER = 26; + private boolean relayRefreshing_ = true; + /** + *
+         * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+         * 
+ * + * bool relayRefreshing = 26 [default = true]; + * @return Whether the relayRefreshing field is set. + */ + @java.lang.Override + public boolean hasRelayRefreshing() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + *
+         * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+         * 
+ * + * bool relayRefreshing = 26 [default = true]; + * @return The relayRefreshing. + */ + @java.lang.Override + public boolean getRelayRefreshing() { + return relayRefreshing_; + } + + public static final int SUMMERTIMEDETAILS_FIELD_NUMBER = 27; + @SuppressWarnings("serial") + private volatile java.lang.Object summerTimeDetails_ = "0360100"; + /** + *
+         * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string summerTimeDetails = 27 [default = "0360100"]; + * @return Whether the summerTimeDetails field is set. + */ + @java.lang.Override + public boolean hasSummerTimeDetails() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + *
+         * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string summerTimeDetails = 27 [default = "0360100"]; + * @return The summerTimeDetails. + */ + @java.lang.Override + public java.lang.String getSummerTimeDetails() { + java.lang.Object ref = summerTimeDetails_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summerTimeDetails_ = s; + return s; + } + } + /** + *
+         * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string summerTimeDetails = 27 [default = "0360100"]; + * @return The bytes for summerTimeDetails. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSummerTimeDetailsBytes() { + java.lang.Object ref = summerTimeDetails_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summerTimeDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetDeviceVerificationKeyResponse_descriptor; - } + public static final int WINTERTIMEDETAILS_FIELD_NUMBER = 28; + @SuppressWarnings("serial") + private volatile java.lang.Object winterTimeDetails_ = "1060200"; + /** + *
+         * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string winterTimeDetails = 28 [default = "1060200"]; + * @return Whether the winterTimeDetails field is set. + */ + @java.lang.Override + public boolean hasWinterTimeDetails() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + *
+         * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string winterTimeDetails = 28 [default = "1060200"]; + * @return The winterTimeDetails. + */ + @java.lang.Override + public java.lang.String getWinterTimeDetails() { + java.lang.Object ref = winterTimeDetails_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + winterTimeDetails_ = s; + return s; + } + } + /** + *
+         * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+         * 
+ * + * string winterTimeDetails = 28 [default = "1060200"]; + * @return The bytes for winterTimeDetails. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWinterTimeDetailsBytes() { + java.lang.Object ref = winterTimeDetails_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + winterTimeDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetDeviceVerificationKeyResponse_fieldAccessorTable; - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private int bitField0_; - // required .oslp.Status status = 1; - public static final int STATUS_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_; + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + if (hasDaliConfiguration()) { + if (!getDaliConfiguration().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasRelayConfiguration()) { + if (!getRelayConfiguration().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getRelayLinkingCount(); i++) { + if (!getRelayLinking(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, lightType_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getDaliConfiguration()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getRelayConfiguration()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeUInt32(5, shortTermHistoryIntervalMinutes_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(6, preferredLinkType_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeEnum(7, meterType_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeUInt32(8, longTermHistoryInterval_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeEnum(9, longTermHistoryIntervalType_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeUInt32(10, timeSyncFrequency_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeBytes(11, deviceFixIpValue_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeBytes(12, netMask_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeBytes(13, gateWay_); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeBool(14, isDhcpEnabled_); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeUInt32(15, communicationTimeout_); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeUInt32(16, communicationNumberOfRetries_); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeUInt32(17, communicationPauseTimeBetweenConnectionTrials_); + } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeBytes(18, ospgIpAddress_); + } + if (((bitField0_ & 0x00040000) != 0)) { + output.writeUInt32(19, osgpPortNumber_); + } + if (((bitField0_ & 0x00080000) != 0)) { + output.writeBool(20, isTestButtonEnabled_); + } + if (((bitField0_ & 0x00100000) != 0)) { + output.writeBool(21, isAutomaticSummerTimingEnabled_); + } + if (((bitField0_ & 0x00200000) != 0)) { + output.writeSInt32(22, astroGateSunRiseOffset_); + } + if (((bitField0_ & 0x00400000) != 0)) { + output.writeSInt32(23, astroGateSunSetOffset_); + } + if (getSwitchingDelayList().size() > 0) { + output.writeUInt32NoTag(194); + output.writeUInt32NoTag(switchingDelayMemoizedSerializedSize); + } + for (int i = 0; i < switchingDelay_.size(); i++) { + output.writeUInt32NoTag(switchingDelay_.getInt(i)); + } + for (int i = 0; i < relayLinking_.size(); i++) { + output.writeMessage(25, relayLinking_.get(i)); + } + if (((bitField0_ & 0x00800000) != 0)) { + output.writeBool(26, relayRefreshing_); + } + if (((bitField0_ & 0x01000000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 27, summerTimeDetails_); + } + if (((bitField0_ & 0x02000000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 28, winterTimeDetails_); + } + getUnknownFields().writeTo(output); + } - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private void initFields() { - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, lightType_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDaliConfiguration()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getRelayConfiguration()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, shortTermHistoryIntervalMinutes_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, preferredLinkType_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, meterType_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, longTermHistoryInterval_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, longTermHistoryIntervalType_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(10, timeSyncFrequency_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(11, deviceFixIpValue_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(12, netMask_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(13, gateWay_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, isDhcpEnabled_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(15, communicationTimeout_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(16, communicationNumberOfRetries_); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(17, communicationPauseTimeBetweenConnectionTrials_); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(18, ospgIpAddress_); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(19, osgpPortNumber_); + } + if (((bitField0_ & 0x00080000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(20, isTestButtonEnabled_); + } + if (((bitField0_ & 0x00100000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(21, isAutomaticSummerTimingEnabled_); + } + if (((bitField0_ & 0x00200000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeSInt32Size(22, astroGateSunRiseOffset_); + } + if (((bitField0_ & 0x00400000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeSInt32Size(23, astroGateSunSetOffset_); + } + { + int dataSize = 0; + for (int i = 0; i < switchingDelay_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(switchingDelay_.getInt(i)); + } + size += dataSize; + if (!getSwitchingDelayList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + switchingDelayMemoizedSerializedSize = dataSize; + } + for (int i = 0; i < relayLinking_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, relayLinking_.get(i)); + } + if (((bitField0_ & 0x00800000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(26, relayRefreshing_); + } + if (((bitField0_ & 0x01000000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(27, summerTimeDetails_); + } + if (((bitField0_ & 0x02000000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(28, winterTimeDetails_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStatus()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse other = (org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse) obj; - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.status_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (hasLightType() != other.hasLightType()) return false; + if (hasLightType()) { + if (lightType_ != other.lightType_) return false; + } + if (hasDaliConfiguration() != other.hasDaliConfiguration()) return false; + if (hasDaliConfiguration()) { + if (!getDaliConfiguration() + .equals(other.getDaliConfiguration())) return false; + } + if (hasRelayConfiguration() != other.hasRelayConfiguration()) return false; + if (hasRelayConfiguration()) { + if (!getRelayConfiguration() + .equals(other.getRelayConfiguration())) return false; + } + if (hasShortTermHistoryIntervalMinutes() != other.hasShortTermHistoryIntervalMinutes()) return false; + if (hasShortTermHistoryIntervalMinutes()) { + if (getShortTermHistoryIntervalMinutes() + != other.getShortTermHistoryIntervalMinutes()) return false; + } + if (hasPreferredLinkType() != other.hasPreferredLinkType()) return false; + if (hasPreferredLinkType()) { + if (preferredLinkType_ != other.preferredLinkType_) return false; + } + if (hasMeterType() != other.hasMeterType()) return false; + if (hasMeterType()) { + if (meterType_ != other.meterType_) return false; + } + if (hasLongTermHistoryInterval() != other.hasLongTermHistoryInterval()) return false; + if (hasLongTermHistoryInterval()) { + if (getLongTermHistoryInterval() + != other.getLongTermHistoryInterval()) return false; + } + if (hasLongTermHistoryIntervalType() != other.hasLongTermHistoryIntervalType()) return false; + if (hasLongTermHistoryIntervalType()) { + if (longTermHistoryIntervalType_ != other.longTermHistoryIntervalType_) return false; + } + if (hasTimeSyncFrequency() != other.hasTimeSyncFrequency()) return false; + if (hasTimeSyncFrequency()) { + if (getTimeSyncFrequency() + != other.getTimeSyncFrequency()) return false; + } + if (hasDeviceFixIpValue() != other.hasDeviceFixIpValue()) return false; + if (hasDeviceFixIpValue()) { + if (!getDeviceFixIpValue() + .equals(other.getDeviceFixIpValue())) return false; + } + if (hasNetMask() != other.hasNetMask()) return false; + if (hasNetMask()) { + if (!getNetMask() + .equals(other.getNetMask())) return false; + } + if (hasGateWay() != other.hasGateWay()) return false; + if (hasGateWay()) { + if (!getGateWay() + .equals(other.getGateWay())) return false; + } + if (hasIsDhcpEnabled() != other.hasIsDhcpEnabled()) return false; + if (hasIsDhcpEnabled()) { + if (getIsDhcpEnabled() + != other.getIsDhcpEnabled()) return false; + } + if (hasCommunicationTimeout() != other.hasCommunicationTimeout()) return false; + if (hasCommunicationTimeout()) { + if (getCommunicationTimeout() + != other.getCommunicationTimeout()) return false; + } + if (hasCommunicationNumberOfRetries() != other.hasCommunicationNumberOfRetries()) return false; + if (hasCommunicationNumberOfRetries()) { + if (getCommunicationNumberOfRetries() + != other.getCommunicationNumberOfRetries()) return false; + } + if (hasCommunicationPauseTimeBetweenConnectionTrials() != other.hasCommunicationPauseTimeBetweenConnectionTrials()) return false; + if (hasCommunicationPauseTimeBetweenConnectionTrials()) { + if (getCommunicationPauseTimeBetweenConnectionTrials() + != other.getCommunicationPauseTimeBetweenConnectionTrials()) return false; + } + if (hasOspgIpAddress() != other.hasOspgIpAddress()) return false; + if (hasOspgIpAddress()) { + if (!getOspgIpAddress() + .equals(other.getOspgIpAddress())) return false; + } + if (hasOsgpPortNumber() != other.hasOsgpPortNumber()) return false; + if (hasOsgpPortNumber()) { + if (getOsgpPortNumber() + != other.getOsgpPortNumber()) return false; + } + if (hasIsTestButtonEnabled() != other.hasIsTestButtonEnabled()) return false; + if (hasIsTestButtonEnabled()) { + if (getIsTestButtonEnabled() + != other.getIsTestButtonEnabled()) return false; + } + if (hasIsAutomaticSummerTimingEnabled() != other.hasIsAutomaticSummerTimingEnabled()) return false; + if (hasIsAutomaticSummerTimingEnabled()) { + if (getIsAutomaticSummerTimingEnabled() + != other.getIsAutomaticSummerTimingEnabled()) return false; + } + if (hasAstroGateSunRiseOffset() != other.hasAstroGateSunRiseOffset()) return false; + if (hasAstroGateSunRiseOffset()) { + if (getAstroGateSunRiseOffset() + != other.getAstroGateSunRiseOffset()) return false; + } + if (hasAstroGateSunSetOffset() != other.hasAstroGateSunSetOffset()) return false; + if (hasAstroGateSunSetOffset()) { + if (getAstroGateSunSetOffset() + != other.getAstroGateSunSetOffset()) return false; + } + if (!getSwitchingDelayList() + .equals(other.getSwitchingDelayList())) return false; + if (!getRelayLinkingList() + .equals(other.getRelayLinkingList())) return false; + if (hasRelayRefreshing() != other.hasRelayRefreshing()) return false; + if (hasRelayRefreshing()) { + if (getRelayRefreshing() + != other.getRelayRefreshing()) return false; + } + if (hasSummerTimeDetails() != other.hasSummerTimeDetails()) return false; + if (hasSummerTimeDetails()) { + if (!getSummerTimeDetails() + .equals(other.getSummerTimeDetails())) return false; + } + if (hasWinterTimeDetails() != other.hasWinterTimeDetails()) return false; + if (hasWinterTimeDetails()) { + if (!getWinterTimeDetails() + .equals(other.getWinterTimeDetails())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.status_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasLightType()) { + hash = (37 * hash) + LIGHTTYPE_FIELD_NUMBER; + hash = (53 * hash) + lightType_; + } + if (hasDaliConfiguration()) { + hash = (37 * hash) + DALICONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getDaliConfiguration().hashCode(); + } + if (hasRelayConfiguration()) { + hash = (37 * hash) + RELAYCONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getRelayConfiguration().hashCode(); + } + if (hasShortTermHistoryIntervalMinutes()) { + hash = (37 * hash) + SHORTTERMHISTORYINTERVALMINUTES_FIELD_NUMBER; + hash = (53 * hash) + getShortTermHistoryIntervalMinutes(); + } + if (hasPreferredLinkType()) { + hash = (37 * hash) + PREFERREDLINKTYPE_FIELD_NUMBER; + hash = (53 * hash) + preferredLinkType_; + } + if (hasMeterType()) { + hash = (37 * hash) + METERTYPE_FIELD_NUMBER; + hash = (53 * hash) + meterType_; + } + if (hasLongTermHistoryInterval()) { + hash = (37 * hash) + LONGTERMHISTORYINTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getLongTermHistoryInterval(); + } + if (hasLongTermHistoryIntervalType()) { + hash = (37 * hash) + LONGTERMHISTORYINTERVALTYPE_FIELD_NUMBER; + hash = (53 * hash) + longTermHistoryIntervalType_; + } + if (hasTimeSyncFrequency()) { + hash = (37 * hash) + TIMESYNCFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getTimeSyncFrequency(); + } + if (hasDeviceFixIpValue()) { + hash = (37 * hash) + DEVICEFIXIPVALUE_FIELD_NUMBER; + hash = (53 * hash) + getDeviceFixIpValue().hashCode(); + } + if (hasNetMask()) { + hash = (37 * hash) + NETMASK_FIELD_NUMBER; + hash = (53 * hash) + getNetMask().hashCode(); + } + if (hasGateWay()) { + hash = (37 * hash) + GATEWAY_FIELD_NUMBER; + hash = (53 * hash) + getGateWay().hashCode(); + } + if (hasIsDhcpEnabled()) { + hash = (37 * hash) + ISDHCPENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDhcpEnabled()); + } + if (hasCommunicationTimeout()) { + hash = (37 * hash) + COMMUNICATIONTIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getCommunicationTimeout(); + } + if (hasCommunicationNumberOfRetries()) { + hash = (37 * hash) + COMMUNICATIONNUMBEROFRETRIES_FIELD_NUMBER; + hash = (53 * hash) + getCommunicationNumberOfRetries(); + } + if (hasCommunicationPauseTimeBetweenConnectionTrials()) { + hash = (37 * hash) + COMMUNICATIONPAUSETIMEBETWEENCONNECTIONTRIALS_FIELD_NUMBER; + hash = (53 * hash) + getCommunicationPauseTimeBetweenConnectionTrials(); + } + if (hasOspgIpAddress()) { + hash = (37 * hash) + OSPGIPADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getOspgIpAddress().hashCode(); + } + if (hasOsgpPortNumber()) { + hash = (37 * hash) + OSGPPORTNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getOsgpPortNumber(); + } + if (hasIsTestButtonEnabled()) { + hash = (37 * hash) + ISTESTBUTTONENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsTestButtonEnabled()); + } + if (hasIsAutomaticSummerTimingEnabled()) { + hash = (37 * hash) + ISAUTOMATICSUMMERTIMINGENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsAutomaticSummerTimingEnabled()); + } + if (hasAstroGateSunRiseOffset()) { + hash = (37 * hash) + ASTROGATESUNRISEOFFSET_FIELD_NUMBER; + hash = (53 * hash) + getAstroGateSunRiseOffset(); + } + if (hasAstroGateSunSetOffset()) { + hash = (37 * hash) + ASTROGATESUNSETOFFSET_FIELD_NUMBER; + hash = (53 * hash) + getAstroGateSunSetOffset(); + } + if (getSwitchingDelayCount() > 0) { + hash = (37 * hash) + SWITCHINGDELAY_FIELD_NUMBER; + hash = (53 * hash) + getSwitchingDelayList().hashCode(); + } + if (getRelayLinkingCount() > 0) { + hash = (37 * hash) + RELAYLINKING_FIELD_NUMBER; + hash = (53 * hash) + getRelayLinkingList().hashCode(); + } + if (hasRelayRefreshing()) { + hash = (37 * hash) + RELAYREFRESHING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRelayRefreshing()); + } + if (hasSummerTimeDetails()) { + hash = (37 * hash) + SUMMERTIMEDETAILS_FIELD_NUMBER; + hash = (53 * hash) + getSummerTimeDetails().hashCode(); + } + if (hasWinterTimeDetails()) { + hash = (37 * hash) + WINTERTIMEDETAILS_FIELD_NUMBER; + hash = (53 * hash) + getWinterTimeDetails().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.GetConfigurationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.GetConfigurationResponse) + org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetConfigurationResponse_descriptor; + } - private static final long serialVersionUID = 0L; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.class, org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.Builder.class); + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + internalGetDaliConfigurationFieldBuilder(); + internalGetRelayConfigurationFieldBuilder(); + internalGetRelayLinkingFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + lightType_ = 0; + daliConfiguration_ = null; + if (daliConfigurationBuilder_ != null) { + daliConfigurationBuilder_.dispose(); + daliConfigurationBuilder_ = null; + } + relayConfiguration_ = null; + if (relayConfigurationBuilder_ != null) { + relayConfigurationBuilder_.dispose(); + relayConfigurationBuilder_ = null; + } + shortTermHistoryIntervalMinutes_ = 0; + preferredLinkType_ = 0; + meterType_ = 0; + longTermHistoryInterval_ = 0; + longTermHistoryIntervalType_ = 0; + timeSyncFrequency_ = 86400; + deviceFixIpValue_ = com.google.protobuf.ByteString.EMPTY; + netMask_ = com.google.protobuf.ByteString.EMPTY; + gateWay_ = com.google.protobuf.ByteString.EMPTY; + isDhcpEnabled_ = true; + communicationTimeout_ = 20; + communicationNumberOfRetries_ = 3; + communicationPauseTimeBetweenConnectionTrials_ = 60; + ospgIpAddress_ = com.google.protobuf.ByteString.EMPTY; + osgpPortNumber_ = 0; + isTestButtonEnabled_ = true; + isAutomaticSummerTimingEnabled_ = true; + astroGateSunRiseOffset_ = 0; + astroGateSunSetOffset_ = 0; + switchingDelay_ = emptyIntList(); + if (relayLinkingBuilder_ == null) { + relayLinking_ = java.util.Collections.emptyList(); + } else { + relayLinking_ = null; + relayLinkingBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x01000000); + relayRefreshing_ = true; + summerTimeDetails_ = "0360100"; + winterTimeDetails_ = "1060200"; + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetConfigurationResponse_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.getDefaultInstance(); + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse build() { + org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse result = new org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + private void buildPartialRepeatedFields(org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse result) { + if (relayLinkingBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0)) { + relayLinking_ = java.util.Collections.unmodifiableList(relayLinking_); + bitField0_ = (bitField0_ & ~0x01000000); + } + result.relayLinking_ = relayLinking_; + } else { + result.relayLinking_ = relayLinkingBuilder_.build(); + } + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse - parseDelimitedFrom(final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lightType_ = lightType_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.daliConfiguration_ = daliConfigurationBuilder_ == null + ? daliConfiguration_ + : daliConfigurationBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.relayConfiguration_ = relayConfigurationBuilder_ == null + ? relayConfiguration_ + : relayConfigurationBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.shortTermHistoryIntervalMinutes_ = shortTermHistoryIntervalMinutes_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.preferredLinkType_ = preferredLinkType_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.meterType_ = meterType_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.longTermHistoryInterval_ = longTermHistoryInterval_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.longTermHistoryIntervalType_ = longTermHistoryIntervalType_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.timeSyncFrequency_ = timeSyncFrequency_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.deviceFixIpValue_ = deviceFixIpValue_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.netMask_ = netMask_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.gateWay_ = gateWay_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.isDhcpEnabled_ = isDhcpEnabled_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.communicationTimeout_ = communicationTimeout_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.communicationNumberOfRetries_ = communicationNumberOfRetries_; + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.communicationPauseTimeBetweenConnectionTrials_ = communicationPauseTimeBetweenConnectionTrials_; + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.ospgIpAddress_ = ospgIpAddress_; + to_bitField0_ |= 0x00020000; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.osgpPortNumber_ = osgpPortNumber_; + to_bitField0_ |= 0x00040000; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.isTestButtonEnabled_ = isTestButtonEnabled_; + to_bitField0_ |= 0x00080000; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.isAutomaticSummerTimingEnabled_ = isAutomaticSummerTimingEnabled_; + to_bitField0_ |= 0x00100000; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.astroGateSunRiseOffset_ = astroGateSunRiseOffset_; + to_bitField0_ |= 0x00200000; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.astroGateSunSetOffset_ = astroGateSunSetOffset_; + to_bitField0_ |= 0x00400000; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + switchingDelay_.makeImmutable(); + result.switchingDelay_ = switchingDelay_; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.relayRefreshing_ = relayRefreshing_; + to_bitField0_ |= 0x00800000; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.summerTimeDetails_ = summerTimeDetails_; + to_bitField0_ |= 0x01000000; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.winterTimeDetails_ = winterTimeDetails_; + to_bitField0_ |= 0x02000000; + } + result.bitField0_ |= to_bitField0_; + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse - parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + if (other.hasLightType()) { + setLightTypeValue(other.getLightTypeValue()); + } + if (other.hasDaliConfiguration()) { + mergeDaliConfiguration(other.getDaliConfiguration()); + } + if (other.hasRelayConfiguration()) { + mergeRelayConfiguration(other.getRelayConfiguration()); + } + if (other.hasShortTermHistoryIntervalMinutes()) { + setShortTermHistoryIntervalMinutes(other.getShortTermHistoryIntervalMinutes()); + } + if (other.hasPreferredLinkType()) { + setPreferredLinkTypeValue(other.getPreferredLinkTypeValue()); + } + if (other.hasMeterType()) { + setMeterTypeValue(other.getMeterTypeValue()); + } + if (other.hasLongTermHistoryInterval()) { + setLongTermHistoryInterval(other.getLongTermHistoryInterval()); + } + if (other.hasLongTermHistoryIntervalType()) { + setLongTermHistoryIntervalTypeValue(other.getLongTermHistoryIntervalTypeValue()); + } + if (other.hasTimeSyncFrequency()) { + setTimeSyncFrequency(other.getTimeSyncFrequency()); + } + if (other.hasDeviceFixIpValue()) { + setDeviceFixIpValue(other.getDeviceFixIpValue()); + } + if (other.hasNetMask()) { + setNetMask(other.getNetMask()); + } + if (other.hasGateWay()) { + setGateWay(other.getGateWay()); + } + if (other.hasIsDhcpEnabled()) { + setIsDhcpEnabled(other.getIsDhcpEnabled()); + } + if (other.hasCommunicationTimeout()) { + setCommunicationTimeout(other.getCommunicationTimeout()); + } + if (other.hasCommunicationNumberOfRetries()) { + setCommunicationNumberOfRetries(other.getCommunicationNumberOfRetries()); + } + if (other.hasCommunicationPauseTimeBetweenConnectionTrials()) { + setCommunicationPauseTimeBetweenConnectionTrials(other.getCommunicationPauseTimeBetweenConnectionTrials()); + } + if (other.hasOspgIpAddress()) { + setOspgIpAddress(other.getOspgIpAddress()); + } + if (other.hasOsgpPortNumber()) { + setOsgpPortNumber(other.getOsgpPortNumber()); + } + if (other.hasIsTestButtonEnabled()) { + setIsTestButtonEnabled(other.getIsTestButtonEnabled()); + } + if (other.hasIsAutomaticSummerTimingEnabled()) { + setIsAutomaticSummerTimingEnabled(other.getIsAutomaticSummerTimingEnabled()); + } + if (other.hasAstroGateSunRiseOffset()) { + setAstroGateSunRiseOffset(other.getAstroGateSunRiseOffset()); + } + if (other.hasAstroGateSunSetOffset()) { + setAstroGateSunSetOffset(other.getAstroGateSunSetOffset()); + } + if (!other.switchingDelay_.isEmpty()) { + if (switchingDelay_.isEmpty()) { + switchingDelay_ = other.switchingDelay_; + switchingDelay_.makeImmutable(); + bitField0_ |= 0x00800000; + } else { + ensureSwitchingDelayIsMutable(); + switchingDelay_.addAll(other.switchingDelay_); + } + onChanged(); + } + if (relayLinkingBuilder_ == null) { + if (!other.relayLinking_.isEmpty()) { + if (relayLinking_.isEmpty()) { + relayLinking_ = other.relayLinking_; + bitField0_ = (bitField0_ & ~0x01000000); + } else { + ensureRelayLinkingIsMutable(); + relayLinking_.addAll(other.relayLinking_); + } + onChanged(); + } + } else { + if (!other.relayLinking_.isEmpty()) { + if (relayLinkingBuilder_.isEmpty()) { + relayLinkingBuilder_.dispose(); + relayLinkingBuilder_ = null; + relayLinking_ = other.relayLinking_; + bitField0_ = (bitField0_ & ~0x01000000); + relayLinkingBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetRelayLinkingFieldBuilder() : null; + } else { + relayLinkingBuilder_.addAllMessages(other.relayLinking_); + } + } + } + if (other.hasRelayRefreshing()) { + setRelayRefreshing(other.getRelayRefreshing()); + } + if (other.hasSummerTimeDetails()) { + summerTimeDetails_ = other.summerTimeDetails_; + bitField0_ |= 0x04000000; + onChanged(); + } + if (other.hasWinterTimeDetails()) { + winterTimeDetails_ = other.winterTimeDetails_; + bitField0_ |= 0x08000000; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + if (hasDaliConfiguration()) { + if (!getDaliConfiguration().isInitialized()) { + return false; + } + } + if (hasRelayConfiguration()) { + if (!getRelayConfiguration().isInitialized()) { + return false; + } + } + for (int i = 0; i < getRelayLinkingCount(); i++) { + if (!getRelayLinking(i).isInitialized()) { + return false; + } + } + return true; + } - public static Builder newBuilder() { - return Builder.create(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + lightType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + internalGetDaliConfigurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + internalGetRelayConfigurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + shortTermHistoryIntervalMinutes_ = input.readUInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + preferredLinkType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + meterType_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + longTermHistoryInterval_ = input.readUInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + longTermHistoryIntervalType_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: { + timeSyncFrequency_ = input.readUInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: { + deviceFixIpValue_ = input.readBytes(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + netMask_ = input.readBytes(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + gateWay_ = input.readBytes(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: { + isDhcpEnabled_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 120: { + communicationTimeout_ = input.readUInt32(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 128: { + communicationNumberOfRetries_ = input.readUInt32(); + bitField0_ |= 0x00008000; + break; + } // case 128 + case 136: { + communicationPauseTimeBetweenConnectionTrials_ = input.readUInt32(); + bitField0_ |= 0x00010000; + break; + } // case 136 + case 146: { + ospgIpAddress_ = input.readBytes(); + bitField0_ |= 0x00020000; + break; + } // case 146 + case 152: { + osgpPortNumber_ = input.readUInt32(); + bitField0_ |= 0x00040000; + break; + } // case 152 + case 160: { + isTestButtonEnabled_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 160 + case 168: { + isAutomaticSummerTimingEnabled_ = input.readBool(); + bitField0_ |= 0x00100000; + break; + } // case 168 + case 176: { + astroGateSunRiseOffset_ = input.readSInt32(); + bitField0_ |= 0x00200000; + break; + } // case 176 + case 184: { + astroGateSunSetOffset_ = input.readSInt32(); + bitField0_ |= 0x00400000; + break; + } // case 184 + case 192: { + int v = input.readUInt32(); + ensureSwitchingDelayIsMutable(); + switchingDelay_.addInt(v); + break; + } // case 192 + case 194: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSwitchingDelayIsMutable(); + while (input.getBytesUntilLimit() > 0) { + switchingDelay_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } // case 194 + case 202: { + org.opensmartgridplatform.oslp.Oslp.RelayMatrix m = + input.readMessage( + org.opensmartgridplatform.oslp.Oslp.RelayMatrix.parser(), + extensionRegistry); + if (relayLinkingBuilder_ == null) { + ensureRelayLinkingIsMutable(); + relayLinking_.add(m); + } else { + relayLinkingBuilder_.addMessage(m); + } + break; + } // case 202 + case 208: { + relayRefreshing_ = input.readBool(); + bitField0_ |= 0x02000000; + break; + } // case 208 + case 218: { + summerTimeDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x04000000; + break; + } // case 218 + case 226: { + winterTimeDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x08000000; + break; + } // case 226 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + private int lightType_ = 0; + /** + * .oslp.LightType lightType = 2; + * @return Whether the lightType field is set. + */ + @java.lang.Override public boolean hasLightType() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .oslp.LightType lightType = 2; + * @return The enum numeric value on the wire for lightType. + */ + @java.lang.Override public int getLightTypeValue() { + return lightType_; + } + /** + * .oslp.LightType lightType = 2; + * @param value The enum numeric value on the wire for lightType to set. + * @return This builder for chaining. + */ + public Builder setLightTypeValue(int value) { + lightType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .oslp.LightType lightType = 2; + * @return The lightType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LightType getLightType() { + org.opensmartgridplatform.oslp.Oslp.LightType result = org.opensmartgridplatform.oslp.Oslp.LightType.forNumber(lightType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LightType.UNRECOGNIZED : result; + } + /** + * .oslp.LightType lightType = 2; + * @param value The lightType to set. + * @return This builder for chaining. + */ + public Builder setLightType(org.opensmartgridplatform.oslp.Oslp.LightType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000002; + lightType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.LightType lightType = 2; + * @return This builder for chaining. + */ + public Builder clearLightType() { + bitField0_ = (bitField0_ & ~0x00000002); + lightType_ = 0; + onChanged(); + return this; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse prototype) { - return newBuilder().mergeFrom(prototype); - } + private org.opensmartgridplatform.oslp.Oslp.DaliConfiguration daliConfiguration_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration, org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder, org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder> daliConfigurationBuilder_; + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 3; + * @return Whether the daliConfiguration field is set. + */ + public boolean hasDaliConfiguration() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 3; + * @return The daliConfiguration. + */ + public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDaliConfiguration() { + if (daliConfigurationBuilder_ == null) { + return daliConfiguration_ == null ? org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance() : daliConfiguration_; + } else { + return daliConfigurationBuilder_.getMessage(); + } + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 3; + */ + public Builder setDaliConfiguration(org.opensmartgridplatform.oslp.Oslp.DaliConfiguration value) { + if (daliConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + daliConfiguration_ = value; + } else { + daliConfigurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 3; + */ + public Builder setDaliConfiguration( + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder builderForValue) { + if (daliConfigurationBuilder_ == null) { + daliConfiguration_ = builderForValue.build(); + } else { + daliConfigurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 3; + */ + public Builder mergeDaliConfiguration(org.opensmartgridplatform.oslp.Oslp.DaliConfiguration value) { + if (daliConfigurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + daliConfiguration_ != null && + daliConfiguration_ != org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance()) { + getDaliConfigurationBuilder().mergeFrom(value); + } else { + daliConfiguration_ = value; + } + } else { + daliConfigurationBuilder_.mergeFrom(value); + } + if (daliConfiguration_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 3; + */ + public Builder clearDaliConfiguration() { + bitField0_ = (bitField0_ & ~0x00000004); + daliConfiguration_ = null; + if (daliConfigurationBuilder_ != null) { + daliConfigurationBuilder_.dispose(); + daliConfigurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 3; + */ + public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder getDaliConfigurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDaliConfigurationFieldBuilder().getBuilder(); + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 3; + */ + public org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder getDaliConfigurationOrBuilder() { + if (daliConfigurationBuilder_ != null) { + return daliConfigurationBuilder_.getMessageOrBuilder(); + } else { + return daliConfiguration_ == null ? + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance() : daliConfiguration_; + } + } + /** + *
+             * Contains specific configuration for DALI controllers.
+             * 
+ * + * .oslp.DaliConfiguration daliConfiguration = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration, org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder, org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder> + internalGetDaliConfigurationFieldBuilder() { + if (daliConfigurationBuilder_ == null) { + daliConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration, org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder, org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder>( + getDaliConfiguration(), + getParentForChildren(), + isClean()); + daliConfiguration_ = null; + } + return daliConfigurationBuilder_; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + private org.opensmartgridplatform.oslp.Oslp.RelayConfiguration relayConfiguration_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration, org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder, org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder> relayConfigurationBuilder_; + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 4; + * @return Whether the relayConfiguration field is set. + */ + public boolean hasRelayConfiguration() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 4; + * @return The relayConfiguration. + */ + public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getRelayConfiguration() { + if (relayConfigurationBuilder_ == null) { + return relayConfiguration_ == null ? org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance() : relayConfiguration_; + } else { + return relayConfigurationBuilder_.getMessage(); + } + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 4; + */ + public Builder setRelayConfiguration(org.opensmartgridplatform.oslp.Oslp.RelayConfiguration value) { + if (relayConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + relayConfiguration_ = value; + } else { + relayConfigurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 4; + */ + public Builder setRelayConfiguration( + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder builderForValue) { + if (relayConfigurationBuilder_ == null) { + relayConfiguration_ = builderForValue.build(); + } else { + relayConfigurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 4; + */ + public Builder mergeRelayConfiguration(org.opensmartgridplatform.oslp.Oslp.RelayConfiguration value) { + if (relayConfigurationBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + relayConfiguration_ != null && + relayConfiguration_ != org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance()) { + getRelayConfigurationBuilder().mergeFrom(value); + } else { + relayConfiguration_ = value; + } + } else { + relayConfigurationBuilder_.mergeFrom(value); + } + if (relayConfiguration_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 4; + */ + public Builder clearRelayConfiguration() { + bitField0_ = (bitField0_ & ~0x00000008); + relayConfiguration_ = null; + if (relayConfigurationBuilder_ != null) { + relayConfigurationBuilder_.dispose(); + relayConfigurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 4; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder getRelayConfigurationBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetRelayConfigurationFieldBuilder().getBuilder(); + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 4; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder getRelayConfigurationOrBuilder() { + if (relayConfigurationBuilder_ != null) { + return relayConfigurationBuilder_.getMessageOrBuilder(); + } else { + return relayConfiguration_ == null ? + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance() : relayConfiguration_; + } + } + /** + *
+             * Contains specific configuration for Relay.
+             * 
+ * + * .oslp.RelayConfiguration relayConfiguration = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration, org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder, org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder> + internalGetRelayConfigurationFieldBuilder() { + if (relayConfigurationBuilder_ == null) { + relayConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration, org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder, org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder>( + getRelayConfiguration(), + getParentForChildren(), + isClean()); + relayConfiguration_ = null; + } + return relayConfigurationBuilder_; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + private int shortTermHistoryIntervalMinutes_ ; + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 5; + * @return Whether the shortTermHistoryIntervalMinutes field is set. + */ + @java.lang.Override + public boolean hasShortTermHistoryIntervalMinutes() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 5; + * @return The shortTermHistoryIntervalMinutes. + */ + @java.lang.Override + public int getShortTermHistoryIntervalMinutes() { + return shortTermHistoryIntervalMinutes_; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 5; + * @param value The shortTermHistoryIntervalMinutes to set. + * @return This builder for chaining. + */ + public Builder setShortTermHistoryIntervalMinutes(int value) { + + shortTermHistoryIntervalMinutes_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 shortTermHistoryIntervalMinutes = 5; + * @return This builder for chaining. + */ + public Builder clearShortTermHistoryIntervalMinutes() { + bitField0_ = (bitField0_ & ~0x00000010); + shortTermHistoryIntervalMinutes_ = 0; + onChanged(); + return this; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetDeviceVerificationKeyResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_SetDeviceVerificationKeyResponse_fieldAccessorTable; - } - - // Construct using - // org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse - getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse - .getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse build() { - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse result = - this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse result = - new org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.status_ = this.status_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse) { - return this.mergeFrom( - (org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse other) { - if (other - == org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse - .getDefaultInstance()) { - return this; - } - if (other.hasStatus()) { - this.setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStatus()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Status value = - org.opensmartgridplatform.oslp.Oslp.Status.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.status_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Status status = 1; - private org.opensmartgridplatform.oslp.Oslp.Status status_ = - org.opensmartgridplatform.oslp.Oslp.Status.OK; - - @Override - public boolean hasStatus() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { - return this.status_; - } - - public Builder setStatus(final org.opensmartgridplatform.oslp.Oslp.Status value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.status_ = value; - this.onChanged(); - return this; - } - - public Builder clearStatus() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.status_ = org.opensmartgridplatform.oslp.Oslp.Status.OK; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.SetDeviceVerificationKeyResponse) - } + private int preferredLinkType_ = 0; + /** + * .oslp.LinkType preferredLinkType = 6; + * @return Whether the preferredLinkType field is set. + */ + @java.lang.Override public boolean hasPreferredLinkType() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .oslp.LinkType preferredLinkType = 6; + * @return The enum numeric value on the wire for preferredLinkType. + */ + @java.lang.Override public int getPreferredLinkTypeValue() { + return preferredLinkType_; + } + /** + * .oslp.LinkType preferredLinkType = 6; + * @param value The enum numeric value on the wire for preferredLinkType to set. + * @return This builder for chaining. + */ + public Builder setPreferredLinkTypeValue(int value) { + preferredLinkType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .oslp.LinkType preferredLinkType = 6; + * @return The preferredLinkType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LinkType getPreferredLinkType() { + org.opensmartgridplatform.oslp.Oslp.LinkType result = org.opensmartgridplatform.oslp.Oslp.LinkType.forNumber(preferredLinkType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LinkType.UNRECOGNIZED : result; + } + /** + * .oslp.LinkType preferredLinkType = 6; + * @param value The preferredLinkType to set. + * @return This builder for chaining. + */ + public Builder setPreferredLinkType(org.opensmartgridplatform.oslp.Oslp.LinkType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000020; + preferredLinkType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.LinkType preferredLinkType = 6; + * @return This builder for chaining. + */ + public Builder clearPreferredLinkType() { + bitField0_ = (bitField0_ & ~0x00000020); + preferredLinkType_ = 0; + onChanged(); + return this; + } - static { - defaultInstance = new SetDeviceVerificationKeyResponse(true); - defaultInstance.initFields(); - } + private int meterType_ = 0; + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.MeterType meterType = 7; + * @return Whether the meterType field is set. + */ + @java.lang.Override public boolean hasMeterType() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.MeterType meterType = 7; + * @return The enum numeric value on the wire for meterType. + */ + @java.lang.Override public int getMeterTypeValue() { + return meterType_; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.MeterType meterType = 7; + * @param value The enum numeric value on the wire for meterType to set. + * @return This builder for chaining. + */ + public Builder setMeterTypeValue(int value) { + meterType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.MeterType meterType = 7; + * @return The meterType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType() { + org.opensmartgridplatform.oslp.Oslp.MeterType result = org.opensmartgridplatform.oslp.Oslp.MeterType.forNumber(meterType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.MeterType.UNRECOGNIZED : result; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.MeterType meterType = 7; + * @param value The meterType to set. + * @return This builder for chaining. + */ + public Builder setMeterType(org.opensmartgridplatform.oslp.Oslp.MeterType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000040; + meterType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.MeterType meterType = 7; + * @return This builder for chaining. + */ + public Builder clearMeterType() { + bitField0_ = (bitField0_ & ~0x00000040); + meterType_ = 0; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:oslp.SetDeviceVerificationKeyResponse) - } + private int longTermHistoryInterval_ ; + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 longTermHistoryInterval = 8; + * @return Whether the longTermHistoryInterval field is set. + */ + @java.lang.Override + public boolean hasLongTermHistoryInterval() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 longTermHistoryInterval = 8; + * @return The longTermHistoryInterval. + */ + @java.lang.Override + public int getLongTermHistoryInterval() { + return longTermHistoryInterval_; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 longTermHistoryInterval = 8; + * @param value The longTermHistoryInterval to set. + * @return This builder for chaining. + */ + public Builder setLongTermHistoryInterval(int value) { + + longTermHistoryInterval_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * uint32 longTermHistoryInterval = 8; + * @return This builder for chaining. + */ + public Builder clearLongTermHistoryInterval() { + bitField0_ = (bitField0_ & ~0x00000080); + longTermHistoryInterval_ = 0; + onChanged(); + return this; + } - public interface LocationInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { + private int longTermHistoryIntervalType_ = 0; + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 9; + * @return Whether the longTermHistoryIntervalType field is set. + */ + @java.lang.Override public boolean hasLongTermHistoryIntervalType() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 9; + * @return The enum numeric value on the wire for longTermHistoryIntervalType. + */ + @java.lang.Override public int getLongTermHistoryIntervalTypeValue() { + return longTermHistoryIntervalType_; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 9; + * @param value The enum numeric value on the wire for longTermHistoryIntervalType to set. + * @return This builder for chaining. + */ + public Builder setLongTermHistoryIntervalTypeValue(int value) { + longTermHistoryIntervalType_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 9; + * @return The longTermHistoryIntervalType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType getLongTermHistoryIntervalType() { + org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType result = org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.forNumber(longTermHistoryIntervalType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType.UNRECOGNIZED : result; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 9; + * @param value The longTermHistoryIntervalType to set. + * @return This builder for chaining. + */ + public Builder setLongTermHistoryIntervalType(org.opensmartgridplatform.oslp.Oslp.LongTermIntervalType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000100; + longTermHistoryIntervalType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * Deprecated, no longer supported by the platform.
+             * 
+ * + * .oslp.LongTermIntervalType longTermHistoryIntervalType = 9; + * @return This builder for chaining. + */ + public Builder clearLongTermHistoryIntervalType() { + bitField0_ = (bitField0_ & ~0x00000100); + longTermHistoryIntervalType_ = 0; + onChanged(); + return this; + } - // optional sint32 timeOffset = 1; - boolean hasTimeOffset(); + private int timeSyncFrequency_ = 86400; + /** + *
+             * Time synch frequency (seconds).
+             * 
+ * + * uint32 timeSyncFrequency = 10 [default = 86400]; + * @return Whether the timeSyncFrequency field is set. + */ + @java.lang.Override + public boolean hasTimeSyncFrequency() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+             * Time synch frequency (seconds).
+             * 
+ * + * uint32 timeSyncFrequency = 10 [default = 86400]; + * @return The timeSyncFrequency. + */ + @java.lang.Override + public int getTimeSyncFrequency() { + return timeSyncFrequency_; + } + /** + *
+             * Time synch frequency (seconds).
+             * 
+ * + * uint32 timeSyncFrequency = 10 [default = 86400]; + * @param value The timeSyncFrequency to set. + * @return This builder for chaining. + */ + public Builder setTimeSyncFrequency(int value) { + + timeSyncFrequency_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+             * Time synch frequency (seconds).
+             * 
+ * + * uint32 timeSyncFrequency = 10 [default = 86400]; + * @return This builder for chaining. + */ + public Builder clearTimeSyncFrequency() { + bitField0_ = (bitField0_ & ~0x00000200); + timeSyncFrequency_ = 86400; + onChanged(); + return this; + } - int getTimeOffset(); + private com.google.protobuf.ByteString deviceFixIpValue_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+             * 
+ * + * bytes deviceFixIpValue = 11; + * @return Whether the deviceFixIpValue field is set. + */ + @java.lang.Override + public boolean hasDeviceFixIpValue() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+             * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+             * 
+ * + * bytes deviceFixIpValue = 11; + * @return The deviceFixIpValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeviceFixIpValue() { + return deviceFixIpValue_; + } + /** + *
+             * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+             * 
+ * + * bytes deviceFixIpValue = 11; + * @param value The deviceFixIpValue to set. + * @return This builder for chaining. + */ + public Builder setDeviceFixIpValue(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + deviceFixIpValue_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4];                   // The fixed IP address of this device.
+             * 
+ * + * bytes deviceFixIpValue = 11; + * @return This builder for chaining. + */ + public Builder clearDeviceFixIpValue() { + bitField0_ = (bitField0_ & ~0x00000400); + deviceFixIpValue_ = getDefaultInstance().getDeviceFixIpValue(); + onChanged(); + return this; + } - // optional sint32 latitude = 2; - boolean hasLatitude(); + private com.google.protobuf.ByteString netMask_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+             * 
+ * + * bytes netMask = 12; + * @return Whether the netMask field is set. + */ + @java.lang.Override + public boolean hasNetMask() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+             * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+             * 
+ * + * bytes netMask = 12; + * @return The netMask. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetMask() { + return netMask_; + } + /** + *
+             * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+             * 
+ * + * bytes netMask = 12; + * @param value The netMask to set. + * @return This builder for chaining. + */ + public Builder setNetMask(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + netMask_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4];                            // Network mask for fixed IP address.
+             * 
+ * + * bytes netMask = 12; + * @return This builder for chaining. + */ + public Builder clearNetMask() { + bitField0_ = (bitField0_ & ~0x00000800); + netMask_ = getDefaultInstance().getNetMask(); + onChanged(); + return this; + } - int getLatitude(); + private com.google.protobuf.ByteString gateWay_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+             * 
+ * + * bytes gateWay = 13; + * @return Whether the gateWay field is set. + */ + @java.lang.Override + public boolean hasGateWay() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+             * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+             * 
+ * + * bytes gateWay = 13; + * @return The gateWay. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGateWay() { + return gateWay_; + } + /** + *
+             * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+             * 
+ * + * bytes gateWay = 13; + * @param value The gateWay to set. + * @return This builder for chaining. + */ + public Builder setGateWay(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + gateWay_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4];                            // Gateway address for fixed IP address.
+             * 
+ * + * bytes gateWay = 13; + * @return This builder for chaining. + */ + public Builder clearGateWay() { + bitField0_ = (bitField0_ & ~0x00001000); + gateWay_ = getDefaultInstance().getGateWay(); + onChanged(); + return this; + } - // optional sint32 longitude = 3; - boolean hasLongitude(); + private boolean isDhcpEnabled_ = true; + /** + *
+             * Is DHCP enabled for this device?
+             * 
+ * + * bool isDhcpEnabled = 14 [default = true]; + * @return Whether the isDhcpEnabled field is set. + */ + @java.lang.Override + public boolean hasIsDhcpEnabled() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+             * Is DHCP enabled for this device?
+             * 
+ * + * bool isDhcpEnabled = 14 [default = true]; + * @return The isDhcpEnabled. + */ + @java.lang.Override + public boolean getIsDhcpEnabled() { + return isDhcpEnabled_; + } + /** + *
+             * Is DHCP enabled for this device?
+             * 
+ * + * bool isDhcpEnabled = 14 [default = true]; + * @param value The isDhcpEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsDhcpEnabled(boolean value) { + + isDhcpEnabled_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+             * Is DHCP enabled for this device?
+             * 
+ * + * bool isDhcpEnabled = 14 [default = true]; + * @return This builder for chaining. + */ + public Builder clearIsDhcpEnabled() { + bitField0_ = (bitField0_ & ~0x00002000); + isDhcpEnabled_ = true; + onChanged(); + return this; + } - int getLongitude(); - } + private int communicationTimeout_ = 20; + /** + *
+             * bool isTlsEnabled = 15;                                                     // Defines if TLS is enabled.
+             * uint32 oslpBindPortNumber = 16;                                             // The port used for TLS connections.
+             * string commonNameString = 17 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+             * 
+ * + * uint32 communicationTimeout = 15 [default = 20]; + * @return Whether the communicationTimeout field is set. + */ + @java.lang.Override + public boolean hasCommunicationTimeout() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+             * bool isTlsEnabled = 15;                                                     // Defines if TLS is enabled.
+             * uint32 oslpBindPortNumber = 16;                                             // The port used for TLS connections.
+             * string commonNameString = 17 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+             * 
+ * + * uint32 communicationTimeout = 15 [default = 20]; + * @return The communicationTimeout. + */ + @java.lang.Override + public int getCommunicationTimeout() { + return communicationTimeout_; + } + /** + *
+             * bool isTlsEnabled = 15;                                                     // Defines if TLS is enabled.
+             * uint32 oslpBindPortNumber = 16;                                             // The port used for TLS connections.
+             * string commonNameString = 17 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+             * 
+ * + * uint32 communicationTimeout = 15 [default = 20]; + * @param value The communicationTimeout to set. + * @return This builder for chaining. + */ + public Builder setCommunicationTimeout(int value) { + + communicationTimeout_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+             * bool isTlsEnabled = 15;                                                     // Defines if TLS is enabled.
+             * uint32 oslpBindPortNumber = 16;                                             // The port used for TLS connections.
+             * string commonNameString = 17 [default = 'TLS Test']; //[default = 'TLS Test',(nanopb).max_count = 25]; // The common name (CN) used when isTlsEnabled equals true.
+             * 
+ * + * uint32 communicationTimeout = 15 [default = 20]; + * @return This builder for chaining. + */ + public Builder clearCommunicationTimeout() { + bitField0_ = (bitField0_ & ~0x00004000); + communicationTimeout_ = 20; + onChanged(); + return this; + } - public static final class LocationInfo extends com.google.protobuf.GeneratedMessage - implements LocationInfoOrBuilder { - // Use LocationInfo.newBuilder() to construct. - private LocationInfo(final Builder builder) { - super(builder); - } + private int communicationNumberOfRetries_ = 3; + /** + *
+             * Communication number of retries.
+             * 
+ * + * uint32 communicationNumberOfRetries = 16 [default = 3]; + * @return Whether the communicationNumberOfRetries field is set. + */ + @java.lang.Override + public boolean hasCommunicationNumberOfRetries() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+             * Communication number of retries.
+             * 
+ * + * uint32 communicationNumberOfRetries = 16 [default = 3]; + * @return The communicationNumberOfRetries. + */ + @java.lang.Override + public int getCommunicationNumberOfRetries() { + return communicationNumberOfRetries_; + } + /** + *
+             * Communication number of retries.
+             * 
+ * + * uint32 communicationNumberOfRetries = 16 [default = 3]; + * @param value The communicationNumberOfRetries to set. + * @return This builder for chaining. + */ + public Builder setCommunicationNumberOfRetries(int value) { + + communicationNumberOfRetries_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+             * Communication number of retries.
+             * 
+ * + * uint32 communicationNumberOfRetries = 16 [default = 3]; + * @return This builder for chaining. + */ + public Builder clearCommunicationNumberOfRetries() { + bitField0_ = (bitField0_ & ~0x00008000); + communicationNumberOfRetries_ = 3; + onChanged(); + return this; + } - private LocationInfo(final boolean noInit) {} + private int communicationPauseTimeBetweenConnectionTrials_ = 60; + /** + *
+             * Time between communication attempts.
+             * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 17 [default = 60]; + * @return Whether the communicationPauseTimeBetweenConnectionTrials field is set. + */ + @java.lang.Override + public boolean hasCommunicationPauseTimeBetweenConnectionTrials() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+             * Time between communication attempts.
+             * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 17 [default = 60]; + * @return The communicationPauseTimeBetweenConnectionTrials. + */ + @java.lang.Override + public int getCommunicationPauseTimeBetweenConnectionTrials() { + return communicationPauseTimeBetweenConnectionTrials_; + } + /** + *
+             * Time between communication attempts.
+             * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 17 [default = 60]; + * @param value The communicationPauseTimeBetweenConnectionTrials to set. + * @return This builder for chaining. + */ + public Builder setCommunicationPauseTimeBetweenConnectionTrials(int value) { + + communicationPauseTimeBetweenConnectionTrials_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+             * Time between communication attempts.
+             * 
+ * + * uint32 communicationPauseTimeBetweenConnectionTrials = 17 [default = 60]; + * @return This builder for chaining. + */ + public Builder clearCommunicationPauseTimeBetweenConnectionTrials() { + bitField0_ = (bitField0_ & ~0x00010000); + communicationPauseTimeBetweenConnectionTrials_ = 60; + onChanged(); + return this; + } - private static final LocationInfo defaultInstance; + private com.google.protobuf.ByteString ospgIpAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_count = 4];                      // The IP address of the platform.
+             * 
+ * + * bytes ospgIpAddress = 18; + * @return Whether the ospgIpAddress field is set. + */ + @java.lang.Override + public boolean hasOspgIpAddress() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+             * [(nanopb).max_count = 4];                      // The IP address of the platform.
+             * 
+ * + * bytes ospgIpAddress = 18; + * @return The ospgIpAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOspgIpAddress() { + return ospgIpAddress_; + } + /** + *
+             * [(nanopb).max_count = 4];                      // The IP address of the platform.
+             * 
+ * + * bytes ospgIpAddress = 18; + * @param value The ospgIpAddress to set. + * @return This builder for chaining. + */ + public Builder setOspgIpAddress(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + ospgIpAddress_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4];                      // The IP address of the platform.
+             * 
+ * + * bytes ospgIpAddress = 18; + * @return This builder for chaining. + */ + public Builder clearOspgIpAddress() { + bitField0_ = (bitField0_ & ~0x00020000); + ospgIpAddress_ = getDefaultInstance().getOspgIpAddress(); + onChanged(); + return this; + } - public static LocationInfo getDefaultInstance() { - return defaultInstance; - } + private int osgpPortNumber_ ; + /** + *
+             * The port number of the platform.
+             * 
+ * + * uint32 osgpPortNumber = 19; + * @return Whether the osgpPortNumber field is set. + */ + @java.lang.Override + public boolean hasOsgpPortNumber() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+             * The port number of the platform.
+             * 
+ * + * uint32 osgpPortNumber = 19; + * @return The osgpPortNumber. + */ + @java.lang.Override + public int getOsgpPortNumber() { + return osgpPortNumber_; + } + /** + *
+             * The port number of the platform.
+             * 
+ * + * uint32 osgpPortNumber = 19; + * @param value The osgpPortNumber to set. + * @return This builder for chaining. + */ + public Builder setOsgpPortNumber(int value) { + + osgpPortNumber_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+             * The port number of the platform.
+             * 
+ * + * uint32 osgpPortNumber = 19; + * @return This builder for chaining. + */ + public Builder clearOsgpPortNumber() { + bitField0_ = (bitField0_ & ~0x00040000); + osgpPortNumber_ = 0; + onChanged(); + return this; + } - @Override - public LocationInfo getDefaultInstanceForType() { - return defaultInstance; - } + private boolean isTestButtonEnabled_ = true; + /** + *
+             * Is the test button enabled for this device?
+             * 
+ * + * bool isTestButtonEnabled = 20 [default = true]; + * @return Whether the isTestButtonEnabled field is set. + */ + @java.lang.Override + public boolean hasIsTestButtonEnabled() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+             * Is the test button enabled for this device?
+             * 
+ * + * bool isTestButtonEnabled = 20 [default = true]; + * @return The isTestButtonEnabled. + */ + @java.lang.Override + public boolean getIsTestButtonEnabled() { + return isTestButtonEnabled_; + } + /** + *
+             * Is the test button enabled for this device?
+             * 
+ * + * bool isTestButtonEnabled = 20 [default = true]; + * @param value The isTestButtonEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsTestButtonEnabled(boolean value) { + + isTestButtonEnabled_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+             * Is the test button enabled for this device?
+             * 
+ * + * bool isTestButtonEnabled = 20 [default = true]; + * @return This builder for chaining. + */ + public Builder clearIsTestButtonEnabled() { + bitField0_ = (bitField0_ & ~0x00080000); + isTestButtonEnabled_ = true; + onChanged(); + return this; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_LocationInfo_descriptor; - } + private boolean isAutomaticSummerTimingEnabled_ = true; + /** + *
+             * Is the automatic summer timing enabled for this device?
+             * 
+ * + * bool isAutomaticSummerTimingEnabled = 21 [default = true]; + * @return Whether the isAutomaticSummerTimingEnabled field is set. + */ + @java.lang.Override + public boolean hasIsAutomaticSummerTimingEnabled() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+             * Is the automatic summer timing enabled for this device?
+             * 
+ * + * bool isAutomaticSummerTimingEnabled = 21 [default = true]; + * @return The isAutomaticSummerTimingEnabled. + */ + @java.lang.Override + public boolean getIsAutomaticSummerTimingEnabled() { + return isAutomaticSummerTimingEnabled_; + } + /** + *
+             * Is the automatic summer timing enabled for this device?
+             * 
+ * + * bool isAutomaticSummerTimingEnabled = 21 [default = true]; + * @param value The isAutomaticSummerTimingEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsAutomaticSummerTimingEnabled(boolean value) { + + isAutomaticSummerTimingEnabled_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+             * Is the automatic summer timing enabled for this device?
+             * 
+ * + * bool isAutomaticSummerTimingEnabled = 21 [default = true]; + * @return This builder for chaining. + */ + public Builder clearIsAutomaticSummerTimingEnabled() { + bitField0_ = (bitField0_ & ~0x00100000); + isAutomaticSummerTimingEnabled_ = true; + onChanged(); + return this; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_LocationInfo_fieldAccessorTable; - } + private int astroGateSunRiseOffset_ ; + /** + *
+             * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunRiseOffset = 22 [default = 0]; + * @return Whether the astroGateSunRiseOffset field is set. + */ + @java.lang.Override + public boolean hasAstroGateSunRiseOffset() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+             * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunRiseOffset = 22 [default = 0]; + * @return The astroGateSunRiseOffset. + */ + @java.lang.Override + public int getAstroGateSunRiseOffset() { + return astroGateSunRiseOffset_; + } + /** + *
+             * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunRiseOffset = 22 [default = 0]; + * @param value The astroGateSunRiseOffset to set. + * @return This builder for chaining. + */ + public Builder setAstroGateSunRiseOffset(int value) { + + astroGateSunRiseOffset_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + *
+             * The calculated sunrise time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunRiseOffset = 22 [default = 0]; + * @return This builder for chaining. + */ + public Builder clearAstroGateSunRiseOffset() { + bitField0_ = (bitField0_ & ~0x00200000); + astroGateSunRiseOffset_ = 0; + onChanged(); + return this; + } - private int bitField0_; - // optional sint32 timeOffset = 1; - public static final int TIMEOFFSET_FIELD_NUMBER = 1; - private int timeOffset_; + private int astroGateSunSetOffset_ ; + /** + *
+             * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunSetOffset = 23 [default = 0]; + * @return Whether the astroGateSunSetOffset field is set. + */ + @java.lang.Override + public boolean hasAstroGateSunSetOffset() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + *
+             * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunSetOffset = 23 [default = 0]; + * @return The astroGateSunSetOffset. + */ + @java.lang.Override + public int getAstroGateSunSetOffset() { + return astroGateSunSetOffset_; + } + /** + *
+             * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunSetOffset = 23 [default = 0]; + * @param value The astroGateSunSetOffset to set. + * @return This builder for chaining. + */ + public Builder setAstroGateSunSetOffset(int value) { + + astroGateSunSetOffset_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+             * The calculated sunset time modified by this value. Time is moved earlier (if offset is negative) or later (if offset is positive). In seconds.
+             * 
+ * + * sint32 astroGateSunSetOffset = 23 [default = 0]; + * @return This builder for chaining. + */ + public Builder clearAstroGateSunSetOffset() { + bitField0_ = (bitField0_ & ~0x00400000); + astroGateSunSetOffset_ = 0; + onChanged(); + return this; + } - @Override - public boolean hasTimeOffset() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + private com.google.protobuf.Internal.IntList switchingDelay_ = emptyIntList(); + private void ensureSwitchingDelayIsMutable() { + if (!switchingDelay_.isModifiable()) { + switchingDelay_ = makeMutableCopy(switchingDelay_); + } + bitField0_ |= 0x00800000; + } + /** + *
+             * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+             * 
+ * + * repeated uint32 switchingDelay = 24; + * @return A list containing the switchingDelay. + */ + public java.util.List + getSwitchingDelayList() { + switchingDelay_.makeImmutable(); + return switchingDelay_; + } + /** + *
+             * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+             * 
+ * + * repeated uint32 switchingDelay = 24; + * @return The count of switchingDelay. + */ + public int getSwitchingDelayCount() { + return switchingDelay_.size(); + } + /** + *
+             * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+             * 
+ * + * repeated uint32 switchingDelay = 24; + * @param index The index of the element to return. + * @return The switchingDelay at the given index. + */ + public int getSwitchingDelay(int index) { + return switchingDelay_.getInt(index); + } + /** + *
+             * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+             * 
+ * + * repeated uint32 switchingDelay = 24; + * @param index The index to set the value at. + * @param value The switchingDelay to set. + * @return This builder for chaining. + */ + public Builder setSwitchingDelay( + int index, int value) { + + ensureSwitchingDelayIsMutable(); + switchingDelay_.setInt(index, value); + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+             * 
+ * + * repeated uint32 switchingDelay = 24; + * @param value The switchingDelay to add. + * @return This builder for chaining. + */ + public Builder addSwitchingDelay(int value) { + + ensureSwitchingDelayIsMutable(); + switchingDelay_.addInt(value); + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+             * 
+ * + * repeated uint32 switchingDelay = 24; + * @param values The switchingDelay to add. + * @return This builder for chaining. + */ + public Builder addAllSwitchingDelay( + java.lang.Iterable values) { + ensureSwitchingDelayIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, switchingDelay_); + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4];                    // Switching delay (seconds), array of 4 values. Default 0, 0, 0, 0.
+             * 
+ * + * repeated uint32 switchingDelay = 24; + * @return This builder for chaining. + */ + public Builder clearSwitchingDelay() { + switchingDelay_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00800000); + onChanged(); + return this; + } - @Override - public int getTimeOffset() { - return this.timeOffset_; - } + private java.util.List relayLinking_ = + java.util.Collections.emptyList(); + private void ensureRelayLinkingIsMutable() { + if (!((bitField0_ & 0x01000000) != 0)) { + relayLinking_ = new java.util.ArrayList(relayLinking_); + bitField0_ |= 0x01000000; + } + } - // optional sint32 latitude = 2; - public static final int LATITUDE_FIELD_NUMBER = 2; - private int latitude_; + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RelayMatrix, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder, org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder> relayLinkingBuilder_; + + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public java.util.List getRelayLinkingList() { + if (relayLinkingBuilder_ == null) { + return java.util.Collections.unmodifiableList(relayLinking_); + } else { + return relayLinkingBuilder_.getMessageList(); + } + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public int getRelayLinkingCount() { + if (relayLinkingBuilder_ == null) { + return relayLinking_.size(); + } else { + return relayLinkingBuilder_.getCount(); + } + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayMatrix getRelayLinking(int index) { + if (relayLinkingBuilder_ == null) { + return relayLinking_.get(index); + } else { + return relayLinkingBuilder_.getMessage(index); + } + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public Builder setRelayLinking( + int index, org.opensmartgridplatform.oslp.Oslp.RelayMatrix value) { + if (relayLinkingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelayLinkingIsMutable(); + relayLinking_.set(index, value); + onChanged(); + } else { + relayLinkingBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public Builder setRelayLinking( + int index, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder builderForValue) { + if (relayLinkingBuilder_ == null) { + ensureRelayLinkingIsMutable(); + relayLinking_.set(index, builderForValue.build()); + onChanged(); + } else { + relayLinkingBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public Builder addRelayLinking(org.opensmartgridplatform.oslp.Oslp.RelayMatrix value) { + if (relayLinkingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelayLinkingIsMutable(); + relayLinking_.add(value); + onChanged(); + } else { + relayLinkingBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public Builder addRelayLinking( + int index, org.opensmartgridplatform.oslp.Oslp.RelayMatrix value) { + if (relayLinkingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelayLinkingIsMutable(); + relayLinking_.add(index, value); + onChanged(); + } else { + relayLinkingBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public Builder addRelayLinking( + org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder builderForValue) { + if (relayLinkingBuilder_ == null) { + ensureRelayLinkingIsMutable(); + relayLinking_.add(builderForValue.build()); + onChanged(); + } else { + relayLinkingBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public Builder addRelayLinking( + int index, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder builderForValue) { + if (relayLinkingBuilder_ == null) { + ensureRelayLinkingIsMutable(); + relayLinking_.add(index, builderForValue.build()); + onChanged(); + } else { + relayLinkingBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public Builder addAllRelayLinking( + java.lang.Iterable values) { + if (relayLinkingBuilder_ == null) { + ensureRelayLinkingIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relayLinking_); + onChanged(); + } else { + relayLinkingBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public Builder clearRelayLinking() { + if (relayLinkingBuilder_ == null) { + relayLinking_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x01000000); + onChanged(); + } else { + relayLinkingBuilder_.clear(); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public Builder removeRelayLinking(int index) { + if (relayLinkingBuilder_ == null) { + ensureRelayLinkingIsMutable(); + relayLinking_.remove(index); + onChanged(); + } else { + relayLinkingBuilder_.remove(index); + } + return this; + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder getRelayLinkingBuilder( + int index) { + return internalGetRelayLinkingFieldBuilder().getBuilder(index); + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder getRelayLinkingOrBuilder( + int index) { + if (relayLinkingBuilder_ == null) { + return relayLinking_.get(index); } else { + return relayLinkingBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public java.util.List + getRelayLinkingOrBuilderList() { + if (relayLinkingBuilder_ != null) { + return relayLinkingBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(relayLinking_); + } + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder addRelayLinkingBuilder() { + return internalGetRelayLinkingFieldBuilder().addBuilder( + org.opensmartgridplatform.oslp.Oslp.RelayMatrix.getDefaultInstance()); + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder addRelayLinkingBuilder( + int index) { + return internalGetRelayLinkingFieldBuilder().addBuilder( + index, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.getDefaultInstance()); + } + /** + *
+             * Relay linking is a software linking, to may link each relay with each other relay. It is a matrix. Example, if relay 1 is linked with relay 3, if relay 1 will be switched (by OSGP or local by internal scheduler), the relay 3 will switch automatically (on or off, as it set) without new command.
+             * 
+ * + * repeated .oslp.RelayMatrix relayLinking = 25; + */ + public java.util.List + getRelayLinkingBuilderList() { + return internalGetRelayLinkingFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RelayMatrix, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder, org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder> + internalGetRelayLinkingFieldBuilder() { + if (relayLinkingBuilder_ == null) { + relayLinkingBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RelayMatrix, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder, org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder>( + relayLinking_, + ((bitField0_ & 0x01000000) != 0), + getParentForChildren(), + isClean()); + relayLinking_ = null; + } + return relayLinkingBuilder_; + } - @Override - public boolean hasLatitude() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + private boolean relayRefreshing_ = true; + /** + *
+             * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+             * 
+ * + * bool relayRefreshing = 26 [default = true]; + * @return Whether the relayRefreshing field is set. + */ + @java.lang.Override + public boolean hasRelayRefreshing() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + *
+             * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+             * 
+ * + * bool relayRefreshing = 26 [default = true]; + * @return The relayRefreshing. + */ + @java.lang.Override + public boolean getRelayRefreshing() { + return relayRefreshing_; + } + /** + *
+             * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+             * 
+ * + * bool relayRefreshing = 26 [default = true]; + * @param value The relayRefreshing to set. + * @return This builder for chaining. + */ + public Builder setRelayRefreshing(boolean value) { + + relayRefreshing_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+             * Is relayRefreshing enabled for this device? Set minutely the nominal relay state and status according to active schedule after power outage and missed switching or anti manipulation.
+             * 
+ * + * bool relayRefreshing = 26 [default = true]; + * @return This builder for chaining. + */ + public Builder clearRelayRefreshing() { + bitField0_ = (bitField0_ & ~0x02000000); + relayRefreshing_ = true; + onChanged(); + return this; + } - @Override - public int getLatitude() { - return this.latitude_; - } + private java.lang.Object summerTimeDetails_ = "0360100"; + /** + *
+             * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string summerTimeDetails = 27 [default = "0360100"]; + * @return Whether the summerTimeDetails field is set. + */ + public boolean hasSummerTimeDetails() { + return ((bitField0_ & 0x04000000) != 0); + } + /** + *
+             * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string summerTimeDetails = 27 [default = "0360100"]; + * @return The summerTimeDetails. + */ + public java.lang.String getSummerTimeDetails() { + java.lang.Object ref = summerTimeDetails_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summerTimeDetails_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string summerTimeDetails = 27 [default = "0360100"]; + * @return The bytes for summerTimeDetails. + */ + public com.google.protobuf.ByteString + getSummerTimeDetailsBytes() { + java.lang.Object ref = summerTimeDetails_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summerTimeDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string summerTimeDetails = 27 [default = "0360100"]; + * @param value The summerTimeDetails to set. + * @return This builder for chaining. + */ + public Builder setSummerTimeDetails( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + summerTimeDetails_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + *
+             * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string summerTimeDetails = 27 [default = "0360100"]; + * @return This builder for chaining. + */ + public Builder clearSummerTimeDetails() { + summerTimeDetails_ = getDefaultInstance().getSummerTimeDetails(); + bitField0_ = (bitField0_ & ~0x04000000); + onChanged(); + return this; + } + /** + *
+             * [default = '0360100',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string summerTimeDetails = 27 [default = "0360100"]; + * @param value The bytes for summerTimeDetails to set. + * @return This builder for chaining. + */ + public Builder setSummerTimeDetailsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + summerTimeDetails_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } - // optional sint32 longitude = 3; - public static final int LONGITUDE_FIELD_NUMBER = 3; - private int longitude_; + private java.lang.Object winterTimeDetails_ = "1060200"; + /** + *
+             * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string winterTimeDetails = 28 [default = "1060200"]; + * @return Whether the winterTimeDetails field is set. + */ + public boolean hasWinterTimeDetails() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + *
+             * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string winterTimeDetails = 28 [default = "1060200"]; + * @return The winterTimeDetails. + */ + public java.lang.String getWinterTimeDetails() { + java.lang.Object ref = winterTimeDetails_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + winterTimeDetails_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string winterTimeDetails = 28 [default = "1060200"]; + * @return The bytes for winterTimeDetails. + */ + public com.google.protobuf.ByteString + getWinterTimeDetailsBytes() { + java.lang.Object ref = winterTimeDetails_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + winterTimeDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string winterTimeDetails = 28 [default = "1060200"]; + * @param value The winterTimeDetails to set. + * @return This builder for chaining. + */ + public Builder setWinterTimeDetails( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + winterTimeDetails_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + *
+             * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string winterTimeDetails = 28 [default = "1060200"]; + * @return This builder for chaining. + */ + public Builder clearWinterTimeDetails() { + winterTimeDetails_ = getDefaultInstance().getWinterTimeDetails(); + bitField0_ = (bitField0_ & ~0x08000000); + onChanged(); + return this; + } + /** + *
+             * [default = '1060200',(nanopb).max_count = 7]; // The time point for DST for Europe is not identical in every country. It should be added as parameters the weekday, month and time point for DST/summer and winter.
+             * 
+ * + * string winterTimeDetails = 28 [default = "1060200"]; + * @param value The bytes for winterTimeDetails to set. + * @return This builder for chaining. + */ + public Builder setWinterTimeDetailsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + winterTimeDetails_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } - @Override - public boolean hasLongitude() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } + // @@protoc_insertion_point(builder_scope:oslp.GetConfigurationResponse) + } - @Override - public int getLongitude() { - return this.longitude_; - } + // @@protoc_insertion_point(class_scope:oslp.GetConfigurationResponse) + private static final org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse(); + } - private void initFields() { - this.timeOffset_ = 0; - this.latitude_ = 0; - this.longitude_ = 0; - } + public static org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private byte memoizedIsInitialized = -1; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConfigurationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SwitchConfigurationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SwitchConfigurationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_count = 1]; // The index of the configuration set (0,1).
+         * 
+ * + * bytes newConfigurationSet = 1 [features = { ... } + * @return Whether the newConfigurationSet field is set. + */ + boolean hasNewConfigurationSet(); + /** + *
+         * [(nanopb).max_count = 1]; // The index of the configuration set (0,1).
+         * 
+ * + * bytes newConfigurationSet = 1 [features = { ... } + * @return The newConfigurationSet. + */ + com.google.protobuf.ByteString getNewConfigurationSet(); + } + /** + * Protobuf type {@code oslp.SwitchConfigurationRequest} + */ + public static final class SwitchConfigurationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SwitchConfigurationRequest) + SwitchConfigurationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SwitchConfigurationRequest.class.getName()); + } + // Use SwitchConfigurationRequest.newBuilder() to construct. + private SwitchConfigurationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SwitchConfigurationRequest() { + newConfigurationSet_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.class, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.Builder.class); + } + + private int bitField0_; + public static final int NEWCONFIGURATIONSET_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString newConfigurationSet_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_count = 1]; // The index of the configuration set (0,1).
+         * 
+ * + * bytes newConfigurationSet = 1 [features = { ... } + * @return Whether the newConfigurationSet field is set. + */ + @java.lang.Override + public boolean hasNewConfigurationSet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * [(nanopb).max_count = 1]; // The index of the configuration set (0,1).
+         * 
+ * + * bytes newConfigurationSet = 1 [features = { ... } + * @return The newConfigurationSet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewConfigurationSet() { + return newConfigurationSet_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasNewConfigurationSet()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - this.memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBytes(1, newConfigurationSet_); + } + getUnknownFields().writeTo(output); + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeSInt32(1, this.timeOffset_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeSInt32(2, this.latitude_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeSInt32(3, this.longitude_); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeSInt32Size(1, this.timeOffset_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeSInt32Size(2, this.latitude_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream.computeSInt32Size(3, this.longitude_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, newConfigurationSet_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest other = (org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest) obj; - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + if (hasNewConfigurationSet() != other.hasNewConfigurationSet()) return false; + if (hasNewConfigurationSet()) { + if (!getNewConfigurationSet() + .equals(other.getNewConfigurationSet())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNewConfigurationSet()) { + hash = (37 * hash) + NEWCONFIGURATIONSET_FIELD_NUMBER; + hash = (53 * hash) + getNewConfigurationSet().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.SwitchConfigurationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SwitchConfigurationRequest) + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchConfigurationRequest_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.class, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.Builder.class); + } - public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.newBuilder() + private Builder() { - public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + } - public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + newConfigurationSet_ = com.google.protobuf.ByteString.EMPTY; + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchConfigurationRequest_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.getDefaultInstance(); + } - public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest build() { + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest result = new org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static Builder newBuilder() { - return Builder.create(); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.newConfigurationSet_ = newConfigurationSet_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.LocationInfo prototype) { - return newBuilder().mergeFrom(prototype); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.getDefaultInstance()) return this; + if (other.hasNewConfigurationSet()) { + setNewConfigurationSet(other.getNewConfigurationSet()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasNewConfigurationSet()) { + return false; + } + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + newConfigurationSet_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString newConfigurationSet_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_count = 1]; // The index of the configuration set (0,1).
+             * 
+ * + * bytes newConfigurationSet = 1 [features = { ... } + * @return Whether the newConfigurationSet field is set. + */ + @java.lang.Override + public boolean hasNewConfigurationSet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * [(nanopb).max_count = 1]; // The index of the configuration set (0,1).
+             * 
+ * + * bytes newConfigurationSet = 1 [features = { ... } + * @return The newConfigurationSet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewConfigurationSet() { + return newConfigurationSet_; + } + /** + *
+             * [(nanopb).max_count = 1]; // The index of the configuration set (0,1).
+             * 
+ * + * bytes newConfigurationSet = 1 [features = { ... } + * @param value The newConfigurationSet to set. + * @return This builder for chaining. + */ + public Builder setNewConfigurationSet(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + newConfigurationSet_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 1]; // The index of the configuration set (0,1).
+             * 
+ * + * bytes newConfigurationSet = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearNewConfigurationSet() { + bitField0_ = (bitField0_ & ~0x00000001); + newConfigurationSet_ = getDefaultInstance().getNewConfigurationSet(); + onChanged(); + return this; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.LocationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_LocationInfo_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_LocationInfo_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.LocationInfo.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.timeOffset_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.latitude_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.longitude_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000004); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.LocationInfo.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LocationInfo getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.LocationInfo.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LocationInfo build() { - final org.opensmartgridplatform.oslp.Oslp.LocationInfo result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.LocationInfo buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.LocationInfo result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LocationInfo buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.LocationInfo result = - new org.opensmartgridplatform.oslp.Oslp.LocationInfo(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.timeOffset_ = this.timeOffset_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.latitude_ = this.latitude_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.longitude_ = this.longitude_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.LocationInfo) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.LocationInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.LocationInfo other) { - if (other == org.opensmartgridplatform.oslp.Oslp.LocationInfo.getDefaultInstance()) { - return this; - } - if (other.hasTimeOffset()) { - this.setTimeOffset(other.getTimeOffset()); - } - if (other.hasLatitude()) { - this.setLatitude(other.getLatitude()); - } - if (other.hasLongitude()) { - this.setLongitude(other.getLongitude()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - this.bitField0_ |= 0x00000001; - this.timeOffset_ = input.readSInt32(); - break; - } - case 16: - { - this.bitField0_ |= 0x00000002; - this.latitude_ = input.readSInt32(); - break; - } - case 24: - { - this.bitField0_ |= 0x00000004; - this.longitude_ = input.readSInt32(); - break; - } - } - } - } - - private int bitField0_; - - // optional sint32 timeOffset = 1; - private int timeOffset_; - - @Override - public boolean hasTimeOffset() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public int getTimeOffset() { - return this.timeOffset_; - } - - public Builder setTimeOffset(final int value) { - this.bitField0_ |= 0x00000001; - this.timeOffset_ = value; - this.onChanged(); - return this; - } - - public Builder clearTimeOffset() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.timeOffset_ = 0; - this.onChanged(); - return this; - } - - // optional sint32 latitude = 2; - private int latitude_; - - @Override - public boolean hasLatitude() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public int getLatitude() { - return this.latitude_; - } - - public Builder setLatitude(final int value) { - this.bitField0_ |= 0x00000002; - this.latitude_ = value; - this.onChanged(); - return this; - } - - public Builder clearLatitude() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.latitude_ = 0; - this.onChanged(); - return this; - } - - // optional sint32 longitude = 3; - private int longitude_; - - @Override - public boolean hasLongitude() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public int getLongitude() { - return this.longitude_; - } - - public Builder setLongitude(final int value) { - this.bitField0_ |= 0x00000004; - this.longitude_ = value; - this.onChanged(); - return this; - } - - public Builder clearLongitude() { - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.longitude_ = 0; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.LocationInfo) - } + // @@protoc_insertion_point(builder_scope:oslp.SwitchConfigurationRequest) + } - static { - defaultInstance = new LocationInfo(true); - defaultInstance.initFields(); - } + // @@protoc_insertion_point(class_scope:oslp.SwitchConfigurationRequest) + private static final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest(); + } - // @@protoc_insertion_point(class_scope:oslp.LocationInfo) - } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public interface LightValueOrBuilder extends com.google.protobuf.MessageOrBuilder { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SwitchConfigurationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - // optional bytes index = 1; - boolean hasIndex(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SwitchConfigurationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SwitchConfigurationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * FIRMWARE_EVENTS_CONFIGURATION_CHANGED Event will be sent, after the Configuration change.
+         * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+         * FIRMWARE_EVENTS_CONFIGURATION_CHANGED Event will be sent, after the Configuration change.
+         * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + *
+         * FIRMWARE_EVENTS_CONFIGURATION_CHANGED Event will be sent, after the Configuration change.
+         * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); + } + /** + * Protobuf type {@code oslp.SwitchConfigurationResponse} + */ + public static final class SwitchConfigurationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SwitchConfigurationResponse) + SwitchConfigurationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SwitchConfigurationResponse.class.getName()); + } + // Use SwitchConfigurationResponse.newBuilder() to construct. + private SwitchConfigurationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SwitchConfigurationResponse() { + status_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchConfigurationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.class, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + *
+         * FIRMWARE_EVENTS_CONFIGURATION_CHANGED Event will be sent, after the Configuration change.
+         * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * FIRMWARE_EVENTS_CONFIGURATION_CHANGED Event will be sent, after the Configuration change.
+         * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+         * FIRMWARE_EVENTS_CONFIGURATION_CHANGED Event will be sent, after the Configuration change.
+         * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - com.google.protobuf.ByteString getIndex(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + getUnknownFields().writeTo(output); + } - // required bool on = 2; - boolean hasOn(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - boolean getOn(); + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - // optional bytes dimValue = 3; - boolean hasDimValue(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse other = (org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse) obj; - com.google.protobuf.ByteString getDimValue(); - } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static final class LightValue extends com.google.protobuf.GeneratedMessage - implements LightValueOrBuilder { - // Use LightValue.newBuilder() to construct. - private LightValue(final Builder builder) { - super(builder); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.SwitchConfigurationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SwitchConfigurationResponse) + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchConfigurationResponse_descriptor; + } - private LightValue(final boolean noInit) {} + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.class, org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.Builder.class); + } - private static final LightValue defaultInstance; + // Construct using org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.newBuilder() + private Builder() { - public static LightValue getDefaultInstance() { - return defaultInstance; - } + } - @Override - public LightValue getDefaultInstanceForType() { - return defaultInstance; - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_LightValue_descriptor; - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + return this; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_LightValue_fieldAccessorTable; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SwitchConfigurationResponse_descriptor; + } - private int bitField0_; - // optional bytes index = 1; - public static final int INDEX_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString index_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.getDefaultInstance(); + } - @Override - public boolean hasIndex() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse build() { + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public com.google.protobuf.ByteString getIndex() { - return this.index_; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse result = new org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - // required bool on = 2; - public static final int ON_FIELD_NUMBER = 2; - private boolean on_; + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - @Override - public boolean hasOn() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - @Override - public boolean getOn() { - return this.on_; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - // optional bytes dimValue = 3; - public static final int DIMVALUE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString dimValue_; + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + return true; + } - @Override - public boolean hasDimValue() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + *
+             * FIRMWARE_EVENTS_CONFIGURATION_CHANGED Event will be sent, after the Configuration change.
+             * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * FIRMWARE_EVENTS_CONFIGURATION_CHANGED Event will be sent, after the Configuration change.
+             * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+             * FIRMWARE_EVENTS_CONFIGURATION_CHANGED Event will be sent, after the Configuration change.
+             * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * FIRMWARE_EVENTS_CONFIGURATION_CHANGED Event will be sent, after the Configuration change.
+             * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + *
+             * FIRMWARE_EVENTS_CONFIGURATION_CHANGED Event will be sent, after the Configuration change.
+             * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * FIRMWARE_EVENTS_CONFIGURATION_CHANGED Event will be sent, after the Configuration change.
+             * 
+ * + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - @Override - public com.google.protobuf.ByteString getDimValue() { - return this.dimValue_; - } + // @@protoc_insertion_point(builder_scope:oslp.SwitchConfigurationResponse) + } - private void initFields() { - this.index_ = com.google.protobuf.ByteString.EMPTY; - this.on_ = false; - this.dimValue_ = com.google.protobuf.ByteString.EMPTY; - } + // @@protoc_insertion_point(class_scope:oslp.SwitchConfigurationResponse) + private static final org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse(); + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasOn()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + public static org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, this.index_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBool(2, this.on_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, this.dimValue_); - } - this.getUnknownFields().writeTo(output); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SwitchConfigurationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, this.index_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, this.on_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, this.dimValue_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private static final long serialVersionUID = 0L; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); } - public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + public interface ConfirmRegisterDeviceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.ConfirmRegisterDeviceRequest) + com.google.protobuf.MessageOrBuilder { - public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + /** + * uint32 randomDevice = 1 [features = { ... } + * @return Whether the randomDevice field is set. + */ + boolean hasRandomDevice(); + /** + * uint32 randomDevice = 1 [features = { ... } + * @return The randomDevice. + */ + int getRandomDevice(); - public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); + /** + * uint32 randomPlatform = 2 [features = { ... } + * @return Whether the randomPlatform field is set. + */ + boolean hasRandomPlatform(); + /** + * uint32 randomPlatform = 2 [features = { ... } + * @return The randomPlatform. + */ + int getRandomPlatform(); } + /** + * Protobuf type {@code oslp.ConfirmRegisterDeviceRequest} + */ + public static final class ConfirmRegisterDeviceRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.ConfirmRegisterDeviceRequest) + ConfirmRegisterDeviceRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + ConfirmRegisterDeviceRequest.class.getName()); + } + // Use ConfirmRegisterDeviceRequest.newBuilder() to construct. + private ConfirmRegisterDeviceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ConfirmRegisterDeviceRequest() { + } - public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ConfirmRegisterDeviceRequest_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ConfirmRegisterDeviceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.class, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.Builder.class); + } + + private int bitField0_; + public static final int RANDOMDEVICE_FIELD_NUMBER = 1; + private int randomDevice_ = 0; + /** + * uint32 randomDevice = 1 [features = { ... } + * @return Whether the randomDevice field is set. + */ + @java.lang.Override + public boolean hasRandomDevice() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * uint32 randomDevice = 1 [features = { ... } + * @return The randomDevice. + */ + @java.lang.Override + public int getRandomDevice() { + return randomDevice_; + } + + public static final int RANDOMPLATFORM_FIELD_NUMBER = 2; + private int randomPlatform_ = 0; + /** + * uint32 randomPlatform = 2 [features = { ... } + * @return Whether the randomPlatform field is set. + */ + @java.lang.Override + public boolean hasRandomPlatform() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * uint32 randomPlatform = 2 [features = { ... } + * @return The randomPlatform. + */ + @java.lang.Override + public int getRandomPlatform() { + return randomPlatform_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasRandomDevice()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRandomPlatform()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.LightValue parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeUInt32(1, randomDevice_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(2, randomPlatform_); + } + getUnknownFields().writeTo(output); + } - public static org.opensmartgridplatform.oslp.Oslp.LightValue parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, randomDevice_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, randomPlatform_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest other = (org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest) obj; - public static Builder newBuilder() { - return Builder.create(); - } + if (hasRandomDevice() != other.hasRandomDevice()) return false; + if (hasRandomDevice()) { + if (getRandomDevice() + != other.getRandomDevice()) return false; + } + if (hasRandomPlatform() != other.hasRandomPlatform()) return false; + if (hasRandomPlatform()) { + if (getRandomPlatform() + != other.getRandomPlatform()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRandomDevice()) { + hash = (37 * hash) + RANDOMDEVICE_FIELD_NUMBER; + hash = (53 * hash) + getRandomDevice(); + } + if (hasRandomPlatform()) { + hash = (37 * hash) + RANDOMPLATFORM_FIELD_NUMBER; + hash = (53 * hash) + getRandomPlatform(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.ConfirmRegisterDeviceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.ConfirmRegisterDeviceRequest) + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ConfirmRegisterDeviceRequest_descriptor; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.LightValue prototype) { - return newBuilder().mergeFrom(prototype); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ConfirmRegisterDeviceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.class, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.Builder.class); + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.newBuilder() + private Builder() { - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_LightValue_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_LightValue_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.LightValue.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.index_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.on_ = false; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.dimValue_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000004); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.LightValue.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightValue getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightValue build() { - final org.opensmartgridplatform.oslp.Oslp.LightValue result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.LightValue buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.LightValue result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightValue buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.LightValue result = - new org.opensmartgridplatform.oslp.Oslp.LightValue(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.index_ = this.index_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.on_ = this.on_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.dimValue_ = this.dimValue_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.LightValue) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.LightValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.LightValue other) { - if (other == org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance()) { - return this; - } - if (other.hasIndex()) { - this.setIndex(other.getIndex()); - } - if (other.hasOn()) { - this.setOn(other.getOn()); - } - if (other.hasDimValue()) { - this.setDimValue(other.getDimValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasOn()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - this.bitField0_ |= 0x00000001; - this.index_ = input.readBytes(); - break; - } - case 16: - { - this.bitField0_ |= 0x00000002; - this.on_ = input.readBool(); - break; - } - case 26: - { - this.bitField0_ |= 0x00000004; - this.dimValue_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // optional bytes index = 1; - private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasIndex() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public com.google.protobuf.ByteString getIndex() { - return this.index_; - } - - public Builder setIndex(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.index_ = value; - this.onChanged(); - return this; - } - - public Builder clearIndex() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.index_ = getDefaultInstance().getIndex(); - this.onChanged(); - return this; - } - - // required bool on = 2; - private boolean on_; - - @Override - public boolean hasOn() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public boolean getOn() { - return this.on_; - } - - public Builder setOn(final boolean value) { - this.bitField0_ |= 0x00000002; - this.on_ = value; - this.onChanged(); - return this; - } - - public Builder clearOn() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.on_ = false; - this.onChanged(); - return this; - } - - // optional bytes dimValue = 3; - private com.google.protobuf.ByteString dimValue_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasDimValue() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public com.google.protobuf.ByteString getDimValue() { - return this.dimValue_; - } - - public Builder setDimValue(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000004; - this.dimValue_ = value; - this.onChanged(); - return this; - } - - public Builder clearDimValue() { - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.dimValue_ = getDefaultInstance().getDimValue(); - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.LightValue) - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - static { - defaultInstance = new LightValue(true); - defaultInstance.initFields(); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + randomDevice_ = 0; + randomPlatform_ = 0; + return this; + } - // @@protoc_insertion_point(class_scope:oslp.LightValue) - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ConfirmRegisterDeviceRequest_descriptor; + } - public interface EventNotificationOrBuilder extends com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.getDefaultInstance(); + } - // required .oslp.Event event = 1; - boolean hasEvent(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest build() { + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - org.opensmartgridplatform.oslp.Oslp.Event getEvent(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest result = new org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - // optional bytes index = 2; - boolean hasIndex(); + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.randomDevice_ = randomDevice_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.randomPlatform_ = randomPlatform_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } - com.google.protobuf.ByteString getIndex(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - // optional string description = 3; - boolean hasDescription(); + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.getDefaultInstance()) return this; + if (other.hasRandomDevice()) { + setRandomDevice(other.getRandomDevice()); + } + if (other.hasRandomPlatform()) { + setRandomPlatform(other.getRandomPlatform()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - String getDescription(); + @java.lang.Override + public final boolean isInitialized() { + if (!hasRandomDevice()) { + return false; + } + if (!hasRandomPlatform()) { + return false; + } + return true; + } - // optional string timestamp = 4; - boolean hasTimestamp(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + randomDevice_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + randomPlatform_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int randomDevice_ ; + /** + * uint32 randomDevice = 1 [features = { ... } + * @return Whether the randomDevice field is set. + */ + @java.lang.Override + public boolean hasRandomDevice() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * uint32 randomDevice = 1 [features = { ... } + * @return The randomDevice. + */ + @java.lang.Override + public int getRandomDevice() { + return randomDevice_; + } + /** + * uint32 randomDevice = 1 [features = { ... } + * @param value The randomDevice to set. + * @return This builder for chaining. + */ + public Builder setRandomDevice(int value) { + + randomDevice_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * uint32 randomDevice = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearRandomDevice() { + bitField0_ = (bitField0_ & ~0x00000001); + randomDevice_ = 0; + onChanged(); + return this; + } - String getTimestamp(); - } + private int randomPlatform_ ; + /** + * uint32 randomPlatform = 2 [features = { ... } + * @return Whether the randomPlatform field is set. + */ + @java.lang.Override + public boolean hasRandomPlatform() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * uint32 randomPlatform = 2 [features = { ... } + * @return The randomPlatform. + */ + @java.lang.Override + public int getRandomPlatform() { + return randomPlatform_; + } + /** + * uint32 randomPlatform = 2 [features = { ... } + * @param value The randomPlatform to set. + * @return This builder for chaining. + */ + public Builder setRandomPlatform(int value) { + + randomPlatform_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * uint32 randomPlatform = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearRandomPlatform() { + bitField0_ = (bitField0_ & ~0x00000002); + randomPlatform_ = 0; + onChanged(); + return this; + } - public static final class EventNotification extends com.google.protobuf.GeneratedMessage - implements EventNotificationOrBuilder { - // Use EventNotification.newBuilder() to construct. - private EventNotification(final Builder builder) { - super(builder); - } + // @@protoc_insertion_point(builder_scope:oslp.ConfirmRegisterDeviceRequest) + } - private EventNotification(final boolean noInit) {} + // @@protoc_insertion_point(class_scope:oslp.ConfirmRegisterDeviceRequest) + private static final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest(); + } - private static final EventNotification defaultInstance; + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static EventNotification getDefaultInstance() { - return defaultInstance; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfirmRegisterDeviceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public EventNotification getDefaultInstanceForType() { - return defaultInstance; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ConfirmRegisterDeviceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.ConfirmRegisterDeviceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); + + /** + * uint32 randomDevice = 2 [features = { ... } + * @return Whether the randomDevice field is set. + */ + boolean hasRandomDevice(); + /** + * uint32 randomDevice = 2 [features = { ... } + * @return The randomDevice. + */ + int getRandomDevice(); + + /** + * uint32 randomPlatform = 3 [features = { ... } + * @return Whether the randomPlatform field is set. + */ + boolean hasRandomPlatform(); + /** + * uint32 randomPlatform = 3 [features = { ... } + * @return The randomPlatform. + */ + int getRandomPlatform(); + + /** + * uint32 sequenceWindow = 4 [features = { ... } + * @return Whether the sequenceWindow field is set. + */ + boolean hasSequenceWindow(); + /** + * uint32 sequenceWindow = 4 [features = { ... } + * @return The sequenceWindow. + */ + int getSequenceWindow(); + } + /** + * Protobuf type {@code oslp.ConfirmRegisterDeviceResponse} + */ + public static final class ConfirmRegisterDeviceResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.ConfirmRegisterDeviceResponse) + ConfirmRegisterDeviceResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + ConfirmRegisterDeviceResponse.class.getName()); + } + // Use ConfirmRegisterDeviceResponse.newBuilder() to construct. + private ConfirmRegisterDeviceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ConfirmRegisterDeviceResponse() { + status_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ConfirmRegisterDeviceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ConfirmRegisterDeviceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.class, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + public static final int RANDOMDEVICE_FIELD_NUMBER = 2; + private int randomDevice_ = 0; + /** + * uint32 randomDevice = 2 [features = { ... } + * @return Whether the randomDevice field is set. + */ + @java.lang.Override + public boolean hasRandomDevice() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * uint32 randomDevice = 2 [features = { ... } + * @return The randomDevice. + */ + @java.lang.Override + public int getRandomDevice() { + return randomDevice_; + } + + public static final int RANDOMPLATFORM_FIELD_NUMBER = 3; + private int randomPlatform_ = 0; + /** + * uint32 randomPlatform = 3 [features = { ... } + * @return Whether the randomPlatform field is set. + */ + @java.lang.Override + public boolean hasRandomPlatform() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * uint32 randomPlatform = 3 [features = { ... } + * @return The randomPlatform. + */ + @java.lang.Override + public int getRandomPlatform() { + return randomPlatform_; + } + + public static final int SEQUENCEWINDOW_FIELD_NUMBER = 4; + private int sequenceWindow_ = 0; + /** + * uint32 sequenceWindow = 4 [features = { ... } + * @return Whether the sequenceWindow field is set. + */ + @java.lang.Override + public boolean hasSequenceWindow() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * uint32 sequenceWindow = 4 [features = { ... } + * @return The sequenceWindow. + */ + @java.lang.Override + public int getSequenceWindow() { + return sequenceWindow_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRandomDevice()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRandomPlatform()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasSequenceWindow()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotification_descriptor; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(2, randomDevice_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeUInt32(3, randomPlatform_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeUInt32(4, sequenceWindow_); + } + getUnknownFields().writeTo(output); + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_EventNotification_fieldAccessorTable; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private int bitField0_; - // required .oslp.Event event = 1; - public static final int EVENT_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Event event_; + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, randomDevice_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, randomPlatform_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, sequenceWindow_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @Override - public boolean hasEvent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse other = (org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse) obj; - @Override - public org.opensmartgridplatform.oslp.Oslp.Event getEvent() { - return this.event_; - } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (hasRandomDevice() != other.hasRandomDevice()) return false; + if (hasRandomDevice()) { + if (getRandomDevice() + != other.getRandomDevice()) return false; + } + if (hasRandomPlatform() != other.hasRandomPlatform()) return false; + if (hasRandomPlatform()) { + if (getRandomPlatform() + != other.getRandomPlatform()) return false; + } + if (hasSequenceWindow() != other.hasSequenceWindow()) return false; + if (hasSequenceWindow()) { + if (getSequenceWindow() + != other.getSequenceWindow()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - // optional bytes index = 2; - public static final int INDEX_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString index_; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasRandomDevice()) { + hash = (37 * hash) + RANDOMDEVICE_FIELD_NUMBER; + hash = (53 * hash) + getRandomDevice(); + } + if (hasRandomPlatform()) { + hash = (37 * hash) + RANDOMPLATFORM_FIELD_NUMBER; + hash = (53 * hash) + getRandomPlatform(); + } + if (hasSequenceWindow()) { + hash = (37 * hash) + SEQUENCEWINDOW_FIELD_NUMBER; + hash = (53 * hash) + getSequenceWindow(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.ConfirmRegisterDeviceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.ConfirmRegisterDeviceResponse) + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ConfirmRegisterDeviceResponse_descriptor; + } - @Override - public boolean hasIndex() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ConfirmRegisterDeviceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.class, org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.Builder.class); + } - @Override - public com.google.protobuf.ByteString getIndex() { - return this.index_; - } + // Construct using org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.newBuilder() + private Builder() { - // optional string description = 3; - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private java.lang.Object description_; + } - @Override - public boolean hasDescription() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - @Override - public String getDescription() { - final java.lang.Object ref = this.description_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.description_ = s; - } - return s; - } - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + randomDevice_ = 0; + randomPlatform_ = 0; + sequenceWindow_ = 0; + return this; + } - private com.google.protobuf.ByteString getDescriptionBytes() { - final java.lang.Object ref = this.description_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_ConfirmRegisterDeviceResponse_descriptor; + } - // optional string timestamp = 4; - public static final int TIMESTAMP_FIELD_NUMBER = 4; - private java.lang.Object timestamp_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.getDefaultInstance(); + } - @Override - public boolean hasTimestamp() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse build() { + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public String getTimestamp() { - final java.lang.Object ref = this.timestamp_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.timestamp_ = s; - } - return s; - } - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse result = new org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - private com.google.protobuf.ByteString getTimestampBytes() { - final java.lang.Object ref = this.timestamp_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.timestamp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.randomDevice_ = randomDevice_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.randomPlatform_ = randomPlatform_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sequenceWindow_ = sequenceWindow_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } - private void initFields() { - this.event_ = org.opensmartgridplatform.oslp.Oslp.Event.DIAG_EVENTS_GENERAL; - this.index_ = com.google.protobuf.ByteString.EMPTY; - this.description_ = ""; - this.timestamp_ = ""; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasEvent()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + if (other.hasRandomDevice()) { + setRandomDevice(other.getRandomDevice()); + } + if (other.hasRandomPlatform()) { + setRandomPlatform(other.getRandomPlatform()); + } + if (other.hasSequenceWindow()) { + setSequenceWindow(other.getSequenceWindow()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.event_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, this.index_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, this.getDescriptionBytes()); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, this.getTimestampBytes()); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + if (!hasRandomDevice()) { + return false; + } + if (!hasRandomPlatform()) { + return false; + } + if (!hasSequenceWindow()) { + return false; + } + return true; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.event_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, this.index_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize(3, this.getDescriptionBytes()); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, this.getTimestampBytes()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + randomDevice_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + randomPlatform_ = input.readUInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + sequenceWindow_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - private static final long serialVersionUID = 0L; + private int randomDevice_ ; + /** + * uint32 randomDevice = 2 [features = { ... } + * @return Whether the randomDevice field is set. + */ + @java.lang.Override + public boolean hasRandomDevice() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * uint32 randomDevice = 2 [features = { ... } + * @return The randomDevice. + */ + @java.lang.Override + public int getRandomDevice() { + return randomDevice_; + } + /** + * uint32 randomDevice = 2 [features = { ... } + * @param value The randomDevice to set. + * @return This builder for chaining. + */ + public Builder setRandomDevice(int value) { + + randomDevice_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * uint32 randomDevice = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearRandomDevice() { + bitField0_ = (bitField0_ & ~0x00000002); + randomDevice_ = 0; + onChanged(); + return this; + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + private int randomPlatform_ ; + /** + * uint32 randomPlatform = 3 [features = { ... } + * @return Whether the randomPlatform field is set. + */ + @java.lang.Override + public boolean hasRandomPlatform() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * uint32 randomPlatform = 3 [features = { ... } + * @return The randomPlatform. + */ + @java.lang.Override + public int getRandomPlatform() { + return randomPlatform_; + } + /** + * uint32 randomPlatform = 3 [features = { ... } + * @param value The randomPlatform to set. + * @return This builder for chaining. + */ + public Builder setRandomPlatform(int value) { + + randomPlatform_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * uint32 randomPlatform = 3 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearRandomPlatform() { + bitField0_ = (bitField0_ & ~0x00000004); + randomPlatform_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private int sequenceWindow_ ; + /** + * uint32 sequenceWindow = 4 [features = { ... } + * @return Whether the sequenceWindow field is set. + */ + @java.lang.Override + public boolean hasSequenceWindow() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * uint32 sequenceWindow = 4 [features = { ... } + * @return The sequenceWindow. + */ + @java.lang.Override + public int getSequenceWindow() { + return sequenceWindow_; + } + /** + * uint32 sequenceWindow = 4 [features = { ... } + * @param value The sequenceWindow to set. + * @return This builder for chaining. + */ + public Builder setSequenceWindow(int value) { + + sequenceWindow_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * uint32 sequenceWindow = 4 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearSequenceWindow() { + bitField0_ = (bitField0_ & ~0x00000008); + sequenceWindow_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + // @@protoc_insertion_point(builder_scope:oslp.ConfirmRegisterDeviceResponse) + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + // @@protoc_insertion_point(class_scope:oslp.ConfirmRegisterDeviceResponse) + private static final org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse(); + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + public static org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfirmRegisterDeviceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetPowerUsageHistoryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.GetPowerUsageHistoryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .oslp.TimePeriod timePeriod = 1 [features = { ... } + * @return Whether the timePeriod field is set. + */ + boolean hasTimePeriod(); + /** + * .oslp.TimePeriod timePeriod = 1 [features = { ... } + * @return The timePeriod. + */ + org.opensmartgridplatform.oslp.Oslp.TimePeriod getTimePeriod(); + /** + * .oslp.TimePeriod timePeriod = 1 [features = { ... } + */ + org.opensmartgridplatform.oslp.Oslp.TimePeriodOrBuilder getTimePeriodOrBuilder(); + + /** + * uint32 page = 2; + * @return Whether the page field is set. + */ + boolean hasPage(); + /** + * uint32 page = 2; + * @return The page. + */ + int getPage(); + + /** + * .oslp.HistoryTermType termType = 3 [features = { ... } + * @return Whether the termType field is set. + */ + boolean hasTermType(); + /** + * .oslp.HistoryTermType termType = 3 [features = { ... } + * @return The enum numeric value on the wire for termType. + */ + int getTermTypeValue(); + /** + * .oslp.HistoryTermType termType = 3 [features = { ... } + * @return The termType. + */ + org.opensmartgridplatform.oslp.Oslp.HistoryTermType getTermType(); + } + /** + *
+     * Deprecated, no longer supported by the platform.
+     * 
+ * + * Protobuf type {@code oslp.GetPowerUsageHistoryRequest} + */ + public static final class GetPowerUsageHistoryRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.GetPowerUsageHistoryRequest) + GetPowerUsageHistoryRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + GetPowerUsageHistoryRequest.class.getName()); + } + // Use GetPowerUsageHistoryRequest.newBuilder() to construct. + private GetPowerUsageHistoryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetPowerUsageHistoryRequest() { + termType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetPowerUsageHistoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetPowerUsageHistoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.class, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.Builder.class); + } + + private int bitField0_; + public static final int TIMEPERIOD_FIELD_NUMBER = 1; + private org.opensmartgridplatform.oslp.Oslp.TimePeriod timePeriod_; + /** + * .oslp.TimePeriod timePeriod = 1 [features = { ... } + * @return Whether the timePeriod field is set. + */ + @java.lang.Override + public boolean hasTimePeriod() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.TimePeriod timePeriod = 1 [features = { ... } + * @return The timePeriod. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.TimePeriod getTimePeriod() { + return timePeriod_ == null ? org.opensmartgridplatform.oslp.Oslp.TimePeriod.getDefaultInstance() : timePeriod_; + } + /** + * .oslp.TimePeriod timePeriod = 1 [features = { ... } + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.TimePeriodOrBuilder getTimePeriodOrBuilder() { + return timePeriod_ == null ? org.opensmartgridplatform.oslp.Oslp.TimePeriod.getDefaultInstance() : timePeriod_; + } + + public static final int PAGE_FIELD_NUMBER = 2; + private int page_ = 0; + /** + * uint32 page = 2; + * @return Whether the page field is set. + */ + @java.lang.Override + public boolean hasPage() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * uint32 page = 2; + * @return The page. + */ + @java.lang.Override + public int getPage() { + return page_; + } + + public static final int TERMTYPE_FIELD_NUMBER = 3; + private int termType_ = 0; + /** + * .oslp.HistoryTermType termType = 3 [features = { ... } + * @return Whether the termType field is set. + */ + @java.lang.Override public boolean hasTermType() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .oslp.HistoryTermType termType = 3 [features = { ... } + * @return The enum numeric value on the wire for termType. + */ + @java.lang.Override public int getTermTypeValue() { + return termType_; + } + /** + * .oslp.HistoryTermType termType = 3 [features = { ... } + * @return The termType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.HistoryTermType getTermType() { + org.opensmartgridplatform.oslp.Oslp.HistoryTermType result = org.opensmartgridplatform.oslp.Oslp.HistoryTermType.forNumber(termType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.HistoryTermType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasTimePeriod()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTermType()) { + memoizedIsInitialized = 0; + return false; + } + if (!getTimePeriod().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTimePeriod()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(2, page_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, termType_); + } + getUnknownFields().writeTo(output); + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTimePeriod()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, page_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, termType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest other = (org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest) obj; - public static Builder newBuilder() { - return Builder.create(); - } + if (hasTimePeriod() != other.hasTimePeriod()) return false; + if (hasTimePeriod()) { + if (!getTimePeriod() + .equals(other.getTimePeriod())) return false; + } + if (hasPage() != other.hasPage()) return false; + if (hasPage()) { + if (getPage() + != other.getPage()) return false; + } + if (hasTermType() != other.hasTermType()) return false; + if (hasTermType()) { + if (termType_ != other.termType_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTimePeriod()) { + hash = (37 * hash) + TIMEPERIOD_FIELD_NUMBER; + hash = (53 * hash) + getTimePeriod().hashCode(); + } + if (hasPage()) { + hash = (37 * hash) + PAGE_FIELD_NUMBER; + hash = (53 * hash) + getPage(); + } + if (hasTermType()) { + hash = (37 * hash) + TERMTYPE_FIELD_NUMBER; + hash = (53 * hash) + termType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * Protobuf type {@code oslp.GetPowerUsageHistoryRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.GetPowerUsageHistoryRequest) + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetPowerUsageHistoryRequest_descriptor; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.EventNotification prototype) { - return newBuilder().mergeFrom(prototype); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetPowerUsageHistoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.class, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.Builder.class); + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + internalGetTimePeriodFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + timePeriod_ = null; + if (timePeriodBuilder_ != null) { + timePeriodBuilder_.dispose(); + timePeriodBuilder_ = null; + } + page_ = 0; + termType_ = 0; + return this; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.EventNotificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_EventNotification_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_EventNotification_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.EventNotification.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.event_ = org.opensmartgridplatform.oslp.Oslp.Event.DIAG_EVENTS_GENERAL; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.index_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.description_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.timestamp_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000008); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.EventNotification.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotification getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.EventNotification.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotification build() { - final org.opensmartgridplatform.oslp.Oslp.EventNotification result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.EventNotification buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.EventNotification result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.EventNotification buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.EventNotification result = - new org.opensmartgridplatform.oslp.Oslp.EventNotification(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.event_ = this.event_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.index_ = this.index_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.description_ = this.description_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.timestamp_ = this.timestamp_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.EventNotification) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.EventNotification) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.EventNotification other) { - if (other == org.opensmartgridplatform.oslp.Oslp.EventNotification.getDefaultInstance()) { - return this; - } - if (other.hasEvent()) { - this.setEvent(other.getEvent()); - } - if (other.hasIndex()) { - this.setIndex(other.getIndex()); - } - if (other.hasDescription()) { - this.setDescription(other.getDescription()); - } - if (other.hasTimestamp()) { - this.setTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasEvent()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Event value = - org.opensmartgridplatform.oslp.Oslp.Event.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.event_ = value; - } - break; - } - case 18: - { - this.bitField0_ |= 0x00000002; - this.index_ = input.readBytes(); - break; - } - case 26: - { - this.bitField0_ |= 0x00000004; - this.description_ = input.readBytes(); - break; - } - case 34: - { - this.bitField0_ |= 0x00000008; - this.timestamp_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Event event = 1; - private org.opensmartgridplatform.oslp.Oslp.Event event_ = - org.opensmartgridplatform.oslp.Oslp.Event.DIAG_EVENTS_GENERAL; - - @Override - public boolean hasEvent() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Event getEvent() { - return this.event_; - } - - public Builder setEvent(final org.opensmartgridplatform.oslp.Oslp.Event value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.event_ = value; - this.onChanged(); - return this; - } - - public Builder clearEvent() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.event_ = org.opensmartgridplatform.oslp.Oslp.Event.DIAG_EVENTS_GENERAL; - this.onChanged(); - return this; - } - - // optional bytes index = 2; - private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasIndex() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public com.google.protobuf.ByteString getIndex() { - return this.index_; - } - - public Builder setIndex(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000002; - this.index_ = value; - this.onChanged(); - return this; - } - - public Builder clearIndex() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.index_ = getDefaultInstance().getIndex(); - this.onChanged(); - return this; - } - - // optional string description = 3; - private java.lang.Object description_ = ""; - - @Override - public boolean hasDescription() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public String getDescription() { - final java.lang.Object ref = this.description_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.description_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setDescription(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000004; - this.description_ = value; - this.onChanged(); - return this; - } - - public Builder clearDescription() { - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.description_ = getDefaultInstance().getDescription(); - this.onChanged(); - return this; - } - - void setDescription(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000004; - this.description_ = value; - this.onChanged(); - } - - // optional string timestamp = 4; - private java.lang.Object timestamp_ = ""; - - @Override - public boolean hasTimestamp() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public String getTimestamp() { - final java.lang.Object ref = this.timestamp_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.timestamp_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setTimestamp(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000008; - this.timestamp_ = value; - this.onChanged(); - return this; - } - - public Builder clearTimestamp() { - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.timestamp_ = getDefaultInstance().getTimestamp(); - this.onChanged(); - return this; - } - - void setTimestamp(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000008; - this.timestamp_ = value; - this.onChanged(); - } - - // @@protoc_insertion_point(builder_scope:oslp.EventNotification) - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetPowerUsageHistoryRequest_descriptor; + } - static { - defaultInstance = new EventNotification(true); - defaultInstance.initFields(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.getDefaultInstance(); + } - // @@protoc_insertion_point(class_scope:oslp.EventNotification) - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest build() { + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public interface ScheduleOrBuilder extends com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest result = new org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - // required .oslp.Weekday weekday = 1; - boolean hasWeekday(); + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timePeriod_ = timePeriodBuilder_ == null + ? timePeriod_ + : timePeriodBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.page_ = page_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.termType_ = termType_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } - org.opensmartgridplatform.oslp.Oslp.Weekday getWeekday(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - // optional string startDay = 2; - boolean hasStartDay(); + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.getDefaultInstance()) return this; + if (other.hasTimePeriod()) { + mergeTimePeriod(other.getTimePeriod()); + } + if (other.hasPage()) { + setPage(other.getPage()); + } + if (other.hasTermType()) { + setTermTypeValue(other.getTermTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - String getStartDay(); + @java.lang.Override + public final boolean isInitialized() { + if (!hasTimePeriod()) { + return false; + } + if (!hasTermType()) { + return false; + } + if (!getTimePeriod().isInitialized()) { + return false; + } + return true; + } - // optional string endDay = 3; - boolean hasEndDay(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + internalGetTimePeriodFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + page_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + termType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private org.opensmartgridplatform.oslp.Oslp.TimePeriod timePeriod_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.TimePeriod, org.opensmartgridplatform.oslp.Oslp.TimePeriod.Builder, org.opensmartgridplatform.oslp.Oslp.TimePeriodOrBuilder> timePeriodBuilder_; + /** + * .oslp.TimePeriod timePeriod = 1 [features = { ... } + * @return Whether the timePeriod field is set. + */ + public boolean hasTimePeriod() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.TimePeriod timePeriod = 1 [features = { ... } + * @return The timePeriod. + */ + public org.opensmartgridplatform.oslp.Oslp.TimePeriod getTimePeriod() { + if (timePeriodBuilder_ == null) { + return timePeriod_ == null ? org.opensmartgridplatform.oslp.Oslp.TimePeriod.getDefaultInstance() : timePeriod_; + } else { + return timePeriodBuilder_.getMessage(); + } + } + /** + * .oslp.TimePeriod timePeriod = 1 [features = { ... } + */ + public Builder setTimePeriod(org.opensmartgridplatform.oslp.Oslp.TimePeriod value) { + if (timePeriodBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timePeriod_ = value; + } else { + timePeriodBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.TimePeriod timePeriod = 1 [features = { ... } + */ + public Builder setTimePeriod( + org.opensmartgridplatform.oslp.Oslp.TimePeriod.Builder builderForValue) { + if (timePeriodBuilder_ == null) { + timePeriod_ = builderForValue.build(); + } else { + timePeriodBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.TimePeriod timePeriod = 1 [features = { ... } + */ + public Builder mergeTimePeriod(org.opensmartgridplatform.oslp.Oslp.TimePeriod value) { + if (timePeriodBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + timePeriod_ != null && + timePeriod_ != org.opensmartgridplatform.oslp.Oslp.TimePeriod.getDefaultInstance()) { + getTimePeriodBuilder().mergeFrom(value); + } else { + timePeriod_ = value; + } + } else { + timePeriodBuilder_.mergeFrom(value); + } + if (timePeriod_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .oslp.TimePeriod timePeriod = 1 [features = { ... } + */ + public Builder clearTimePeriod() { + bitField0_ = (bitField0_ & ~0x00000001); + timePeriod_ = null; + if (timePeriodBuilder_ != null) { + timePeriodBuilder_.dispose(); + timePeriodBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.TimePeriod timePeriod = 1 [features = { ... } + */ + public org.opensmartgridplatform.oslp.Oslp.TimePeriod.Builder getTimePeriodBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetTimePeriodFieldBuilder().getBuilder(); + } + /** + * .oslp.TimePeriod timePeriod = 1 [features = { ... } + */ + public org.opensmartgridplatform.oslp.Oslp.TimePeriodOrBuilder getTimePeriodOrBuilder() { + if (timePeriodBuilder_ != null) { + return timePeriodBuilder_.getMessageOrBuilder(); + } else { + return timePeriod_ == null ? + org.opensmartgridplatform.oslp.Oslp.TimePeriod.getDefaultInstance() : timePeriod_; + } + } + /** + * .oslp.TimePeriod timePeriod = 1 [features = { ... } + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.TimePeriod, org.opensmartgridplatform.oslp.Oslp.TimePeriod.Builder, org.opensmartgridplatform.oslp.Oslp.TimePeriodOrBuilder> + internalGetTimePeriodFieldBuilder() { + if (timePeriodBuilder_ == null) { + timePeriodBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.TimePeriod, org.opensmartgridplatform.oslp.Oslp.TimePeriod.Builder, org.opensmartgridplatform.oslp.Oslp.TimePeriodOrBuilder>( + getTimePeriod(), + getParentForChildren(), + isClean()); + timePeriod_ = null; + } + return timePeriodBuilder_; + } - String getEndDay(); + private int page_ ; + /** + * uint32 page = 2; + * @return Whether the page field is set. + */ + @java.lang.Override + public boolean hasPage() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * uint32 page = 2; + * @return The page. + */ + @java.lang.Override + public int getPage() { + return page_; + } + /** + * uint32 page = 2; + * @param value The page to set. + * @return This builder for chaining. + */ + public Builder setPage(int value) { + + page_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * uint32 page = 2; + * @return This builder for chaining. + */ + public Builder clearPage() { + bitField0_ = (bitField0_ & ~0x00000002); + page_ = 0; + onChanged(); + return this; + } - // required .oslp.ActionTime actionTime = 4; - boolean hasActionTime(); + private int termType_ = 0; + /** + * .oslp.HistoryTermType termType = 3 [features = { ... } + * @return Whether the termType field is set. + */ + @java.lang.Override public boolean hasTermType() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .oslp.HistoryTermType termType = 3 [features = { ... } + * @return The enum numeric value on the wire for termType. + */ + @java.lang.Override public int getTermTypeValue() { + return termType_; + } + /** + * .oslp.HistoryTermType termType = 3 [features = { ... } + * @param value The enum numeric value on the wire for termType to set. + * @return This builder for chaining. + */ + public Builder setTermTypeValue(int value) { + termType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .oslp.HistoryTermType termType = 3 [features = { ... } + * @return The termType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.HistoryTermType getTermType() { + org.opensmartgridplatform.oslp.Oslp.HistoryTermType result = org.opensmartgridplatform.oslp.Oslp.HistoryTermType.forNumber(termType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.HistoryTermType.UNRECOGNIZED : result; + } + /** + * .oslp.HistoryTermType termType = 3 [features = { ... } + * @param value The termType to set. + * @return This builder for chaining. + */ + public Builder setTermType(org.opensmartgridplatform.oslp.Oslp.HistoryTermType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000004; + termType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.HistoryTermType termType = 3 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearTermType() { + bitField0_ = (bitField0_ & ~0x00000004); + termType_ = 0; + onChanged(); + return this; + } - org.opensmartgridplatform.oslp.Oslp.ActionTime getActionTime(); + // @@protoc_insertion_point(builder_scope:oslp.GetPowerUsageHistoryRequest) + } - // optional string time = 5; - boolean hasTime(); + // @@protoc_insertion_point(class_scope:oslp.GetPowerUsageHistoryRequest) + private static final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest(); + } - String getTime(); + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // optional .oslp.Window window = 6; - boolean hasWindow(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPowerUsageHistoryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - org.opensmartgridplatform.oslp.Oslp.Window getWindow(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetPowerUsageHistoryResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.GetPowerUsageHistoryResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); + + /** + *
+         * [(nanopb).max_count = 20];
+         * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + java.util.List + getPowerUsageDataList(); + /** + *
+         * [(nanopb).max_count = 20];
+         * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + org.opensmartgridplatform.oslp.Oslp.PowerUsageData getPowerUsageData(int index); + /** + *
+         * [(nanopb).max_count = 20];
+         * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + int getPowerUsageDataCount(); + /** + *
+         * [(nanopb).max_count = 20];
+         * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + java.util.List + getPowerUsageDataOrBuilderList(); + /** + *
+         * [(nanopb).max_count = 20];
+         * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder getPowerUsageDataOrBuilder( + int index); + + /** + * .oslp.PageInfo pageInfo = 3; + * @return Whether the pageInfo field is set. + */ + boolean hasPageInfo(); + /** + * .oslp.PageInfo pageInfo = 3; + * @return The pageInfo. + */ + org.opensmartgridplatform.oslp.Oslp.PageInfo getPageInfo(); + /** + * .oslp.PageInfo pageInfo = 3; + */ + org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder getPageInfoOrBuilder(); + } + /** + *
+     * Deprecated, no longer supported by the platform.
+     * 
+ * + * Protobuf type {@code oslp.GetPowerUsageHistoryResponse} + */ + public static final class GetPowerUsageHistoryResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.GetPowerUsageHistoryResponse) + GetPowerUsageHistoryResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + GetPowerUsageHistoryResponse.class.getName()); + } + // Use GetPowerUsageHistoryResponse.newBuilder() to construct. + private GetPowerUsageHistoryResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetPowerUsageHistoryResponse() { + status_ = 0; + powerUsageData_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetPowerUsageHistoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetPowerUsageHistoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.class, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + public static final int POWERUSAGEDATA_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List powerUsageData_; + /** + *
+         * [(nanopb).max_count = 20];
+         * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + @java.lang.Override + public java.util.List getPowerUsageDataList() { + return powerUsageData_; + } + /** + *
+         * [(nanopb).max_count = 20];
+         * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + @java.lang.Override + public java.util.List + getPowerUsageDataOrBuilderList() { + return powerUsageData_; + } + /** + *
+         * [(nanopb).max_count = 20];
+         * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + @java.lang.Override + public int getPowerUsageDataCount() { + return powerUsageData_.size(); + } + /** + *
+         * [(nanopb).max_count = 20];
+         * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PowerUsageData getPowerUsageData(int index) { + return powerUsageData_.get(index); + } + /** + *
+         * [(nanopb).max_count = 20];
+         * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder getPowerUsageDataOrBuilder( + int index) { + return powerUsageData_.get(index); + } + + public static final int PAGEINFO_FIELD_NUMBER = 3; + private org.opensmartgridplatform.oslp.Oslp.PageInfo pageInfo_; + /** + * .oslp.PageInfo pageInfo = 3; + * @return Whether the pageInfo field is set. + */ + @java.lang.Override + public boolean hasPageInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .oslp.PageInfo pageInfo = 3; + * @return The pageInfo. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PageInfo getPageInfo() { + return pageInfo_ == null ? org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance() : pageInfo_; + } + /** + * .oslp.PageInfo pageInfo = 3; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder getPageInfoOrBuilder() { + return pageInfo_ == null ? org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance() : pageInfo_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getPowerUsageDataCount(); i++) { + if (!getPowerUsageData(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasPageInfo()) { + if (!getPageInfo().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - org.opensmartgridplatform.oslp.Oslp.WindowOrBuilder getWindowOrBuilder(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + for (int i = 0; i < powerUsageData_.size(); i++) { + output.writeMessage(2, powerUsageData_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getPageInfo()); + } + getUnknownFields().writeTo(output); + } - // repeated .oslp.LightValue value = 7; - java.util.List getValueList(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - org.opensmartgridplatform.oslp.Oslp.LightValue getValue(int index); + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + for (int i = 0; i < powerUsageData_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, powerUsageData_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPageInfo()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - int getValueCount(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse other = (org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse) obj; - java.util.List - getValueOrBuilderList(); + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getPowerUsageDataList() + .equals(other.getPowerUsageDataList())) return false; + if (hasPageInfo() != other.hasPageInfo()) return false; + if (hasPageInfo()) { + if (!getPageInfo() + .equals(other.getPageInfo())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValueOrBuilder(int index); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (getPowerUsageDataCount() > 0) { + hash = (37 * hash) + POWERUSAGEDATA_FIELD_NUMBER; + hash = (53 * hash) + getPowerUsageDataList().hashCode(); + } + if (hasPageInfo()) { + hash = (37 * hash) + PAGEINFO_FIELD_NUMBER; + hash = (53 * hash) + getPageInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * Protobuf type {@code oslp.GetPowerUsageHistoryResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.GetPowerUsageHistoryResponse) + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetPowerUsageHistoryResponse_descriptor; + } - // optional .oslp.TriggerType triggerType = 8; - boolean hasTriggerType(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetPowerUsageHistoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.class, org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.Builder.class); + } - org.opensmartgridplatform.oslp.Oslp.TriggerType getTriggerType(); + // Construct using org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - // optional uint32 minimumLightsOn = 9; - boolean hasMinimumLightsOn(); + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + internalGetPowerUsageDataFieldBuilder(); + internalGetPageInfoFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + if (powerUsageDataBuilder_ == null) { + powerUsageData_ = java.util.Collections.emptyList(); + } else { + powerUsageData_ = null; + powerUsageDataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + pageInfo_ = null; + if (pageInfoBuilder_ != null) { + pageInfoBuilder_.dispose(); + pageInfoBuilder_ = null; + } + return this; + } - int getMinimumLightsOn(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetPowerUsageHistoryResponse_descriptor; + } - // optional uint32 index = 10; - boolean hasIndex(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.getDefaultInstance(); + } - int getIndex(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse build() { + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - // optional bool isEnabled = 11; - boolean hasIsEnabled(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse result = new org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - boolean getIsEnabled(); - } + private void buildPartialRepeatedFields(org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse result) { + if (powerUsageDataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + powerUsageData_ = java.util.Collections.unmodifiableList(powerUsageData_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.powerUsageData_ = powerUsageData_; + } else { + result.powerUsageData_ = powerUsageDataBuilder_.build(); + } + } - public static final class Schedule extends com.google.protobuf.GeneratedMessage - implements ScheduleOrBuilder { - // Use Schedule.newBuilder() to construct. - private Schedule(final Builder builder) { - super(builder); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageInfo_ = pageInfoBuilder_ == null + ? pageInfo_ + : pageInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } - private Schedule(final boolean noInit) {} + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - private static final Schedule defaultInstance; + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + if (powerUsageDataBuilder_ == null) { + if (!other.powerUsageData_.isEmpty()) { + if (powerUsageData_.isEmpty()) { + powerUsageData_ = other.powerUsageData_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePowerUsageDataIsMutable(); + powerUsageData_.addAll(other.powerUsageData_); + } + onChanged(); + } + } else { + if (!other.powerUsageData_.isEmpty()) { + if (powerUsageDataBuilder_.isEmpty()) { + powerUsageDataBuilder_.dispose(); + powerUsageDataBuilder_ = null; + powerUsageData_ = other.powerUsageData_; + bitField0_ = (bitField0_ & ~0x00000002); + powerUsageDataBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetPowerUsageDataFieldBuilder() : null; + } else { + powerUsageDataBuilder_.addAllMessages(other.powerUsageData_); + } + } + } + if (other.hasPageInfo()) { + mergePageInfo(other.getPageInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static Schedule getDefaultInstance() { - return defaultInstance; - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + for (int i = 0; i < getPowerUsageDataCount(); i++) { + if (!getPowerUsageData(i).isInitialized()) { + return false; + } + } + if (hasPageInfo()) { + if (!getPageInfo().isInitialized()) { + return false; + } + } + return true; + } - @Override - public Schedule getDefaultInstanceForType() { - return defaultInstance; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + org.opensmartgridplatform.oslp.Oslp.PowerUsageData m = + input.readMessage( + org.opensmartgridplatform.oslp.Oslp.PowerUsageData.parser(), + extensionRegistry); + if (powerUsageDataBuilder_ == null) { + ensurePowerUsageDataIsMutable(); + powerUsageData_.add(m); + } else { + powerUsageDataBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + input.readMessage( + internalGetPageInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Schedule_descriptor; - } + private java.util.List powerUsageData_ = + java.util.Collections.emptyList(); + private void ensurePowerUsageDataIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + powerUsageData_ = new java.util.ArrayList(powerUsageData_); + bitField0_ |= 0x00000002; + } + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Schedule_fieldAccessorTable; - } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.PowerUsageData, org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder, org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder> powerUsageDataBuilder_; + + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public java.util.List getPowerUsageDataList() { + if (powerUsageDataBuilder_ == null) { + return java.util.Collections.unmodifiableList(powerUsageData_); + } else { + return powerUsageDataBuilder_.getMessageList(); + } + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public int getPowerUsageDataCount() { + if (powerUsageDataBuilder_ == null) { + return powerUsageData_.size(); + } else { + return powerUsageDataBuilder_.getCount(); + } + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.PowerUsageData getPowerUsageData(int index) { + if (powerUsageDataBuilder_ == null) { + return powerUsageData_.get(index); + } else { + return powerUsageDataBuilder_.getMessage(index); + } + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public Builder setPowerUsageData( + int index, org.opensmartgridplatform.oslp.Oslp.PowerUsageData value) { + if (powerUsageDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePowerUsageDataIsMutable(); + powerUsageData_.set(index, value); + onChanged(); + } else { + powerUsageDataBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public Builder setPowerUsageData( + int index, org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder builderForValue) { + if (powerUsageDataBuilder_ == null) { + ensurePowerUsageDataIsMutable(); + powerUsageData_.set(index, builderForValue.build()); + onChanged(); + } else { + powerUsageDataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public Builder addPowerUsageData(org.opensmartgridplatform.oslp.Oslp.PowerUsageData value) { + if (powerUsageDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePowerUsageDataIsMutable(); + powerUsageData_.add(value); + onChanged(); + } else { + powerUsageDataBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public Builder addPowerUsageData( + int index, org.opensmartgridplatform.oslp.Oslp.PowerUsageData value) { + if (powerUsageDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePowerUsageDataIsMutable(); + powerUsageData_.add(index, value); + onChanged(); + } else { + powerUsageDataBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public Builder addPowerUsageData( + org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder builderForValue) { + if (powerUsageDataBuilder_ == null) { + ensurePowerUsageDataIsMutable(); + powerUsageData_.add(builderForValue.build()); + onChanged(); + } else { + powerUsageDataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public Builder addPowerUsageData( + int index, org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder builderForValue) { + if (powerUsageDataBuilder_ == null) { + ensurePowerUsageDataIsMutable(); + powerUsageData_.add(index, builderForValue.build()); + onChanged(); + } else { + powerUsageDataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public Builder addAllPowerUsageData( + java.lang.Iterable values) { + if (powerUsageDataBuilder_ == null) { + ensurePowerUsageDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, powerUsageData_); + onChanged(); + } else { + powerUsageDataBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public Builder clearPowerUsageData() { + if (powerUsageDataBuilder_ == null) { + powerUsageData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + powerUsageDataBuilder_.clear(); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public Builder removePowerUsageData(int index) { + if (powerUsageDataBuilder_ == null) { + ensurePowerUsageDataIsMutable(); + powerUsageData_.remove(index); + onChanged(); + } else { + powerUsageDataBuilder_.remove(index); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder getPowerUsageDataBuilder( + int index) { + return internalGetPowerUsageDataFieldBuilder().getBuilder(index); + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder getPowerUsageDataOrBuilder( + int index) { + if (powerUsageDataBuilder_ == null) { + return powerUsageData_.get(index); } else { + return powerUsageDataBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public java.util.List + getPowerUsageDataOrBuilderList() { + if (powerUsageDataBuilder_ != null) { + return powerUsageDataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(powerUsageData_); + } + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder addPowerUsageDataBuilder() { + return internalGetPowerUsageDataFieldBuilder().addBuilder( + org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder addPowerUsageDataBuilder( + int index) { + return internalGetPowerUsageDataFieldBuilder().addBuilder( + index, org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 20];
+             * 
+ * + * repeated .oslp.PowerUsageData powerUsageData = 2; + */ + public java.util.List + getPowerUsageDataBuilderList() { + return internalGetPowerUsageDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.PowerUsageData, org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder, org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder> + internalGetPowerUsageDataFieldBuilder() { + if (powerUsageDataBuilder_ == null) { + powerUsageDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.PowerUsageData, org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder, org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder>( + powerUsageData_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + powerUsageData_ = null; + } + return powerUsageDataBuilder_; + } - private int bitField0_; - // required .oslp.Weekday weekday = 1; - public static final int WEEKDAY_FIELD_NUMBER = 1; - private org.opensmartgridplatform.oslp.Oslp.Weekday weekday_; + private org.opensmartgridplatform.oslp.Oslp.PageInfo pageInfo_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.PageInfo, org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder, org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder> pageInfoBuilder_; + /** + * .oslp.PageInfo pageInfo = 3; + * @return Whether the pageInfo field is set. + */ + public boolean hasPageInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .oslp.PageInfo pageInfo = 3; + * @return The pageInfo. + */ + public org.opensmartgridplatform.oslp.Oslp.PageInfo getPageInfo() { + if (pageInfoBuilder_ == null) { + return pageInfo_ == null ? org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance() : pageInfo_; + } else { + return pageInfoBuilder_.getMessage(); + } + } + /** + * .oslp.PageInfo pageInfo = 3; + */ + public Builder setPageInfo(org.opensmartgridplatform.oslp.Oslp.PageInfo value) { + if (pageInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pageInfo_ = value; + } else { + pageInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .oslp.PageInfo pageInfo = 3; + */ + public Builder setPageInfo( + org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder builderForValue) { + if (pageInfoBuilder_ == null) { + pageInfo_ = builderForValue.build(); + } else { + pageInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .oslp.PageInfo pageInfo = 3; + */ + public Builder mergePageInfo(org.opensmartgridplatform.oslp.Oslp.PageInfo value) { + if (pageInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + pageInfo_ != null && + pageInfo_ != org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance()) { + getPageInfoBuilder().mergeFrom(value); + } else { + pageInfo_ = value; + } + } else { + pageInfoBuilder_.mergeFrom(value); + } + if (pageInfo_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .oslp.PageInfo pageInfo = 3; + */ + public Builder clearPageInfo() { + bitField0_ = (bitField0_ & ~0x00000004); + pageInfo_ = null; + if (pageInfoBuilder_ != null) { + pageInfoBuilder_.dispose(); + pageInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.PageInfo pageInfo = 3; + */ + public org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder getPageInfoBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetPageInfoFieldBuilder().getBuilder(); + } + /** + * .oslp.PageInfo pageInfo = 3; + */ + public org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder getPageInfoOrBuilder() { + if (pageInfoBuilder_ != null) { + return pageInfoBuilder_.getMessageOrBuilder(); + } else { + return pageInfo_ == null ? + org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance() : pageInfo_; + } + } + /** + * .oslp.PageInfo pageInfo = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.PageInfo, org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder, org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder> + internalGetPageInfoFieldBuilder() { + if (pageInfoBuilder_ == null) { + pageInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.PageInfo, org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder, org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder>( + getPageInfo(), + getParentForChildren(), + isClean()); + pageInfo_ = null; + } + return pageInfoBuilder_; + } - @Override - public boolean hasWeekday() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + // @@protoc_insertion_point(builder_scope:oslp.GetPowerUsageHistoryResponse) + } - @Override - public org.opensmartgridplatform.oslp.Oslp.Weekday getWeekday() { - return this.weekday_; - } + // @@protoc_insertion_point(class_scope:oslp.GetPowerUsageHistoryResponse) + private static final org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse(); + } - // optional string startDay = 2; - public static final int STARTDAY_FIELD_NUMBER = 2; - private java.lang.Object startDay_; + public static org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public boolean hasStartDay() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPowerUsageHistoryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public String getStartDay() { - final java.lang.Object ref = this.startDay_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.startDay_ = s; - } - return s; - } - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private com.google.protobuf.ByteString getStartDayBytes() { - final java.lang.Object ref = this.startDay_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.startDay_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - // optional string endDay = 3; - public static final int ENDDAY_FIELD_NUMBER = 3; - private java.lang.Object endDay_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @Override - public boolean hasEndDay() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); } - @Override - public String getEndDay() { - final java.lang.Object ref = this.endDay_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.endDay_ = s; - } - return s; - } - } + public interface GetActualPowerUsageRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.GetActualPowerUsageRequest) + com.google.protobuf.MessageOrBuilder { - private com.google.protobuf.ByteString getEndDayBytes() { - final java.lang.Object ref = this.endDay_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.endDay_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + boolean hasPresent(); + /** + * bool present = 1 [default = true]; + * @return The present. + */ + boolean getPresent(); } + /** + *
+     * Deprecated, no longer supported by the platform.
+     * 
+ * + * Protobuf type {@code oslp.GetActualPowerUsageRequest} + */ + public static final class GetActualPowerUsageRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.GetActualPowerUsageRequest) + GetActualPowerUsageRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + GetActualPowerUsageRequest.class.getName()); + } + // Use GetActualPowerUsageRequest.newBuilder() to construct. + private GetActualPowerUsageRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetActualPowerUsageRequest() { + present_ = true; + } - // required .oslp.ActionTime actionTime = 4; - public static final int ACTIONTIME_FIELD_NUMBER = 4; - private org.opensmartgridplatform.oslp.Oslp.ActionTime actionTime_; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetActualPowerUsageRequest_descriptor; + } - @Override - public boolean hasActionTime() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetActualPowerUsageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.class, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.Builder.class); + } + + private int bitField0_; + public static final int PRESENT_FIELD_NUMBER = 1; + private boolean present_ = true; + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + @java.lang.Override + public boolean hasPresent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * bool present = 1 [default = true]; + * @return The present. + */ + @java.lang.Override + public boolean getPresent() { + return present_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, present_); + } + getUnknownFields().writeTo(output); + } - @Override - public org.opensmartgridplatform.oslp.Oslp.ActionTime getActionTime() { - return this.actionTime_; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - // optional string time = 5; - public static final int TIME_FIELD_NUMBER = 5; - private java.lang.Object time_; + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, present_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @Override - public boolean hasTime() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest other = (org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest) obj; - @Override - public String getTime() { - final java.lang.Object ref = this.time_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.time_ = s; - } - return s; - } - } + if (hasPresent() != other.hasPresent()) return false; + if (hasPresent()) { + if (getPresent() + != other.getPresent()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - private com.google.protobuf.ByteString getTimeBytes() { - final java.lang.Object ref = this.time_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.time_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPresent()) { + hash = (37 * hash) + PRESENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPresent()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * Protobuf type {@code oslp.GetActualPowerUsageRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.GetActualPowerUsageRequest) + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetActualPowerUsageRequest_descriptor; + } - // optional .oslp.Window window = 6; - public static final int WINDOW_FIELD_NUMBER = 6; - private org.opensmartgridplatform.oslp.Oslp.Window window_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetActualPowerUsageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.class, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.Builder.class); + } - @Override - public boolean hasWindow() { - return ((this.bitField0_ & 0x00000020) == 0x00000020); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.newBuilder() + private Builder() { - @Override - public org.opensmartgridplatform.oslp.Oslp.Window getWindow() { - return this.window_; - } + } - @Override - public org.opensmartgridplatform.oslp.Oslp.WindowOrBuilder getWindowOrBuilder() { - return this.window_; - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - // repeated .oslp.LightValue value = 7; - public static final int VALUE_FIELD_NUMBER = 7; - private java.util.List value_; + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + present_ = true; + return this; + } - @Override - public java.util.List getValueList() { - return this.value_; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetActualPowerUsageRequest_descriptor; + } - @Override - public java.util.List - getValueOrBuilderList() { - return this.value_; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.getDefaultInstance(); + } - @Override - public int getValueCount() { - return this.value_.size(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest build() { + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.LightValue getValue(final int index) { - return this.value_.get(index); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest result = new org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValueOrBuilder( - final int index) { - return this.value_.get(index); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.present_ = present_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - // optional .oslp.TriggerType triggerType = 8; - public static final int TRIGGERTYPE_FIELD_NUMBER = 8; - private org.opensmartgridplatform.oslp.Oslp.TriggerType triggerType_; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - @Override - public boolean hasTriggerType() { - return ((this.bitField0_ & 0x00000040) == 0x00000040); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.getDefaultInstance()) return this; + if (other.hasPresent()) { + setPresent(other.getPresent()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.TriggerType getTriggerType() { - return this.triggerType_; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - // optional uint32 minimumLightsOn = 9; - public static final int MINIMUMLIGHTSON_FIELD_NUMBER = 9; - private int minimumLightsOn_; + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + present_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean present_ = true; + /** + * bool present = 1 [default = true]; + * @return Whether the present field is set. + */ + @java.lang.Override + public boolean hasPresent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * bool present = 1 [default = true]; + * @return The present. + */ + @java.lang.Override + public boolean getPresent() { + return present_; + } + /** + * bool present = 1 [default = true]; + * @param value The present to set. + * @return This builder for chaining. + */ + public Builder setPresent(boolean value) { + + present_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool present = 1 [default = true]; + * @return This builder for chaining. + */ + public Builder clearPresent() { + bitField0_ = (bitField0_ & ~0x00000001); + present_ = true; + onChanged(); + return this; + } - @Override - public boolean hasMinimumLightsOn() { - return ((this.bitField0_ & 0x00000080) == 0x00000080); - } + // @@protoc_insertion_point(builder_scope:oslp.GetActualPowerUsageRequest) + } - @Override - public int getMinimumLightsOn() { - return this.minimumLightsOn_; - } + // @@protoc_insertion_point(class_scope:oslp.GetActualPowerUsageRequest) + private static final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest(); + } - // optional uint32 index = 10; - public static final int INDEX_FIELD_NUMBER = 10; - private int index_; + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public boolean hasIndex() { - return ((this.bitField0_ & 0x00000100) == 0x00000100); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetActualPowerUsageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public int getIndex() { - return this.index_; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetActualPowerUsageResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.GetActualPowerUsageResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); + + /** + * .oslp.PowerUsageData powerUsageData = 2 [features = { ... } + * @return Whether the powerUsageData field is set. + */ + boolean hasPowerUsageData(); + /** + * .oslp.PowerUsageData powerUsageData = 2 [features = { ... } + * @return The powerUsageData. + */ + org.opensmartgridplatform.oslp.Oslp.PowerUsageData getPowerUsageData(); + /** + * .oslp.PowerUsageData powerUsageData = 2 [features = { ... } + */ + org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder getPowerUsageDataOrBuilder(); + } + /** + *
+     * Deprecated, no longer supported by the platform.
+     * 
+ * + * Protobuf type {@code oslp.GetActualPowerUsageResponse} + */ + public static final class GetActualPowerUsageResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.GetActualPowerUsageResponse) + GetActualPowerUsageResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + GetActualPowerUsageResponse.class.getName()); + } + // Use GetActualPowerUsageResponse.newBuilder() to construct. + private GetActualPowerUsageResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GetActualPowerUsageResponse() { + status_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetActualPowerUsageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetActualPowerUsageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.class, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + public static final int POWERUSAGEDATA_FIELD_NUMBER = 2; + private org.opensmartgridplatform.oslp.Oslp.PowerUsageData powerUsageData_; + /** + * .oslp.PowerUsageData powerUsageData = 2 [features = { ... } + * @return Whether the powerUsageData field is set. + */ + @java.lang.Override + public boolean hasPowerUsageData() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .oslp.PowerUsageData powerUsageData = 2 [features = { ... } + * @return The powerUsageData. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PowerUsageData getPowerUsageData() { + return powerUsageData_ == null ? org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance() : powerUsageData_; + } + /** + * .oslp.PowerUsageData powerUsageData = 2 [features = { ... } + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder getPowerUsageDataOrBuilder() { + return powerUsageData_ == null ? org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance() : powerUsageData_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPowerUsageData()) { + memoizedIsInitialized = 0; + return false; + } + if (!getPowerUsageData().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - // optional bool isEnabled = 11; - public static final int ISENABLED_FIELD_NUMBER = 11; - private boolean isEnabled_; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getPowerUsageData()); + } + getUnknownFields().writeTo(output); + } - @Override - public boolean hasIsEnabled() { - return ((this.bitField0_ & 0x00000200) == 0x00000200); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public boolean getIsEnabled() { - return this.isEnabled_; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPowerUsageData()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private void initFields() { - this.weekday_ = org.opensmartgridplatform.oslp.Oslp.Weekday.MONDAY; - this.startDay_ = ""; - this.endDay_ = ""; - this.actionTime_ = org.opensmartgridplatform.oslp.Oslp.ActionTime.ABSOLUTETIME; - this.time_ = ""; - this.window_ = org.opensmartgridplatform.oslp.Oslp.Window.getDefaultInstance(); - this.value_ = java.util.Collections.emptyList(); - this.triggerType_ = org.opensmartgridplatform.oslp.Oslp.TriggerType.TT_NOT_SET; - this.minimumLightsOn_ = 0; - this.index_ = 0; - this.isEnabled_ = false; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse other = (org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse) obj; - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasWeekday()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasActionTime()) { - this.memoizedIsInitialized = 0; - return false; - } - if (this.hasWindow()) { - if (!this.getWindow().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < this.getValueCount(); i++) { - if (!this.getValue(i).isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - this.memoizedIsInitialized = 1; - return true; - } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (hasPowerUsageData() != other.hasPowerUsageData()) return false; + if (hasPowerUsageData()) { + if (!getPowerUsageData() + .equals(other.getPowerUsageData())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, this.weekday_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, this.getStartDayBytes()); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, this.getEndDayBytes()); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - output.writeEnum(4, this.actionTime_.getNumber()); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, this.getTimeBytes()); - } - if (((this.bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, this.window_); - } - for (int i = 0; i < this.value_.size(); i++) { - output.writeMessage(7, this.value_.get(i)); - } - if (((this.bitField0_ & 0x00000040) == 0x00000040)) { - output.writeEnum(8, this.triggerType_.getNumber()); - } - if (((this.bitField0_ & 0x00000080) == 0x00000080)) { - output.writeUInt32(9, this.minimumLightsOn_); - } - if (((this.bitField0_ & 0x00000100) == 0x00000100)) { - output.writeUInt32(10, this.index_); - } - if (((this.bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBool(11, this.isEnabled_); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasPowerUsageData()) { + hash = (37 * hash) + POWERUSAGEDATA_FIELD_NUMBER; + hash = (53 * hash) + getPowerUsageData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * Protobuf type {@code oslp.GetActualPowerUsageResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.GetActualPowerUsageResponse) + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetActualPowerUsageResponse_descriptor; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.weekday_.getNumber()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, this.getStartDayBytes()); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, this.getEndDayBytes()); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(4, this.actionTime_.getNumber()); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, this.getTimeBytes()); - } - if (((this.bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, this.window_); - } - for (int i = 0; i < this.value_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, this.value_.get(i)); - } - if (((this.bitField0_ & 0x00000040) == 0x00000040)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(8, this.triggerType_.getNumber()); - } - if (((this.bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(9, this.minimumLightsOn_); - } - if (((this.bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(10, this.index_); - } - if (((this.bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, this.isEnabled_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetActualPowerUsageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.class, org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.Builder.class); + } - private static final long serialVersionUID = 0L; + // Construct using org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + internalGetPowerUsageDataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + powerUsageData_ = null; + if (powerUsageDataBuilder_ != null) { + powerUsageDataBuilder_.dispose(); + powerUsageDataBuilder_ = null; + } + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_GetActualPowerUsageResponse_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.getDefaultInstance(); + } - public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse build() { + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse result = new org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.powerUsageData_ = powerUsageDataBuilder_ == null + ? powerUsageData_ + : powerUsageDataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } - public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static org.opensmartgridplatform.oslp.Oslp.Schedule parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + if (other.hasPowerUsageData()) { + mergePowerUsageData(other.getPowerUsageData()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.Schedule parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + if (!hasPowerUsageData()) { + return false; + } + if (!getPowerUsageData().isInitialized()) { + return false; + } + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + internalGetPowerUsageDataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + private org.opensmartgridplatform.oslp.Oslp.PowerUsageData powerUsageData_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.PowerUsageData, org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder, org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder> powerUsageDataBuilder_; + /** + * .oslp.PowerUsageData powerUsageData = 2 [features = { ... } + * @return Whether the powerUsageData field is set. + */ + public boolean hasPowerUsageData() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .oslp.PowerUsageData powerUsageData = 2 [features = { ... } + * @return The powerUsageData. + */ + public org.opensmartgridplatform.oslp.Oslp.PowerUsageData getPowerUsageData() { + if (powerUsageDataBuilder_ == null) { + return powerUsageData_ == null ? org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance() : powerUsageData_; + } else { + return powerUsageDataBuilder_.getMessage(); + } + } + /** + * .oslp.PowerUsageData powerUsageData = 2 [features = { ... } + */ + public Builder setPowerUsageData(org.opensmartgridplatform.oslp.Oslp.PowerUsageData value) { + if (powerUsageDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + powerUsageData_ = value; + } else { + powerUsageDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .oslp.PowerUsageData powerUsageData = 2 [features = { ... } + */ + public Builder setPowerUsageData( + org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder builderForValue) { + if (powerUsageDataBuilder_ == null) { + powerUsageData_ = builderForValue.build(); + } else { + powerUsageDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .oslp.PowerUsageData powerUsageData = 2 [features = { ... } + */ + public Builder mergePowerUsageData(org.opensmartgridplatform.oslp.Oslp.PowerUsageData value) { + if (powerUsageDataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + powerUsageData_ != null && + powerUsageData_ != org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance()) { + getPowerUsageDataBuilder().mergeFrom(value); + } else { + powerUsageData_ = value; + } + } else { + powerUsageDataBuilder_.mergeFrom(value); + } + if (powerUsageData_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .oslp.PowerUsageData powerUsageData = 2 [features = { ... } + */ + public Builder clearPowerUsageData() { + bitField0_ = (bitField0_ & ~0x00000002); + powerUsageData_ = null; + if (powerUsageDataBuilder_ != null) { + powerUsageDataBuilder_.dispose(); + powerUsageDataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.PowerUsageData powerUsageData = 2 [features = { ... } + */ + public org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder getPowerUsageDataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetPowerUsageDataFieldBuilder().getBuilder(); + } + /** + * .oslp.PowerUsageData powerUsageData = 2 [features = { ... } + */ + public org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder getPowerUsageDataOrBuilder() { + if (powerUsageDataBuilder_ != null) { + return powerUsageDataBuilder_.getMessageOrBuilder(); + } else { + return powerUsageData_ == null ? + org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance() : powerUsageData_; + } + } + /** + * .oslp.PowerUsageData powerUsageData = 2 [features = { ... } + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.PowerUsageData, org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder, org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder> + internalGetPowerUsageDataFieldBuilder() { + if (powerUsageDataBuilder_ == null) { + powerUsageDataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.PowerUsageData, org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder, org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder>( + getPowerUsageData(), + getParentForChildren(), + isClean()); + powerUsageData_ = null; + } + return powerUsageDataBuilder_; + } - public static Builder newBuilder() { - return Builder.create(); - } + // @@protoc_insertion_point(builder_scope:oslp.GetActualPowerUsageResponse) + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + // @@protoc_insertion_point(class_scope:oslp.GetActualPowerUsageResponse) + private static final org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse(); + } - public static Builder newBuilder(final org.opensmartgridplatform.oslp.Oslp.Schedule prototype) { - return newBuilder().mergeFrom(prototype); - } + public static org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetActualPowerUsageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateDeviceSslCertificationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.UpdateDeviceSslCertificationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_size = 100]; // The domain name of the certificate Server.
+         * 
+ * + * string certificateDomain = 1 [features = { ... } + * @return Whether the certificateDomain field is set. + */ + boolean hasCertificateDomain(); + /** + *
+         * [(nanopb).max_size = 100]; // The domain name of the certificate Server.
+         * 
+ * + * string certificateDomain = 1 [features = { ... } + * @return The certificateDomain. + */ + java.lang.String getCertificateDomain(); + /** + *
+         * [(nanopb).max_size = 100]; // The domain name of the certificate Server.
+         * 
+ * + * string certificateDomain = 1 [features = { ... } + * @return The bytes for certificateDomain. + */ + com.google.protobuf.ByteString + getCertificateDomainBytes(); + + /** + *
+         * [(nanopb).max_size = 255];    // The relative path of the certificate.
+         * 
+ * + * string certificateUrl = 2 [features = { ... } + * @return Whether the certificateUrl field is set. + */ + boolean hasCertificateUrl(); + /** + *
+         * [(nanopb).max_size = 255];    // The relative path of the certificate.
+         * 
+ * + * string certificateUrl = 2 [features = { ... } + * @return The certificateUrl. + */ + java.lang.String getCertificateUrl(); + /** + *
+         * [(nanopb).max_size = 255];    // The relative path of the certificate.
+         * 
+ * + * string certificateUrl = 2 [features = { ... } + * @return The bytes for certificateUrl. + */ + com.google.protobuf.ByteString + getCertificateUrlBytes(); + } + /** + *
+     * ========= Certificate Management
+     * 
+ * + * Protobuf type {@code oslp.UpdateDeviceSslCertificationRequest} + */ + public static final class UpdateDeviceSslCertificationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.UpdateDeviceSslCertificationRequest) + UpdateDeviceSslCertificationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + UpdateDeviceSslCertificationRequest.class.getName()); + } + // Use UpdateDeviceSslCertificationRequest.newBuilder() to construct. + private UpdateDeviceSslCertificationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateDeviceSslCertificationRequest() { + certificateDomain_ = ""; + certificateUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateDeviceSslCertificationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateDeviceSslCertificationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.class, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.Builder.class); + } + + private int bitField0_; + public static final int CERTIFICATEDOMAIN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object certificateDomain_ = ""; + /** + *
+         * [(nanopb).max_size = 100]; // The domain name of the certificate Server.
+         * 
+ * + * string certificateDomain = 1 [features = { ... } + * @return Whether the certificateDomain field is set. + */ + @java.lang.Override + public boolean hasCertificateDomain() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * [(nanopb).max_size = 100]; // The domain name of the certificate Server.
+         * 
+ * + * string certificateDomain = 1 [features = { ... } + * @return The certificateDomain. + */ + @java.lang.Override + public java.lang.String getCertificateDomain() { + java.lang.Object ref = certificateDomain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + certificateDomain_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 100]; // The domain name of the certificate Server.
+         * 
+ * + * string certificateDomain = 1 [features = { ... } + * @return The bytes for certificateDomain. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCertificateDomainBytes() { + java.lang.Object ref = certificateDomain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + certificateDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Schedule_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Schedule_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.Schedule.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getWindowFieldBuilder(); - this.getValueFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.weekday_ = org.opensmartgridplatform.oslp.Oslp.Weekday.MONDAY; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.startDay_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.endDay_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.actionTime_ = org.opensmartgridplatform.oslp.Oslp.ActionTime.ABSOLUTETIME; - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.time_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000010); - if (this.windowBuilder_ == null) { - this.window_ = org.opensmartgridplatform.oslp.Oslp.Window.getDefaultInstance(); - } else { - this.windowBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000020); - if (this.valueBuilder_ == null) { - this.value_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000040); - } else { - this.valueBuilder_.clear(); - } - this.triggerType_ = org.opensmartgridplatform.oslp.Oslp.TriggerType.TT_NOT_SET; - this.bitField0_ = (this.bitField0_ & ~0x00000080); - this.minimumLightsOn_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000100); - this.index_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000200); - this.isEnabled_ = false; - this.bitField0_ = (this.bitField0_ & ~0x00000400); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.Schedule.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Schedule getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.Schedule.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Schedule build() { - final org.opensmartgridplatform.oslp.Oslp.Schedule result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.Schedule buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.Schedule result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Schedule buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.Schedule result = - new org.opensmartgridplatform.oslp.Oslp.Schedule(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.weekday_ = this.weekday_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.startDay_ = this.startDay_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.endDay_ = this.endDay_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.actionTime_ = this.actionTime_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.time_ = this.time_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - if (this.windowBuilder_ == null) { - result.window_ = this.window_; - } else { - result.window_ = this.windowBuilder_.build(); - } - if (this.valueBuilder_ == null) { - if (((this.bitField0_ & 0x00000040) == 0x00000040)) { - this.value_ = java.util.Collections.unmodifiableList(this.value_); - this.bitField0_ = (this.bitField0_ & ~0x00000040); - } - result.value_ = this.value_; - } else { - result.value_ = this.valueBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000040; - } - result.triggerType_ = this.triggerType_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000080; - } - result.minimumLightsOn_ = this.minimumLightsOn_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000100; - } - result.index_ = this.index_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000200; - } - result.isEnabled_ = this.isEnabled_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.Schedule) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.Schedule) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.Schedule other) { - if (other == org.opensmartgridplatform.oslp.Oslp.Schedule.getDefaultInstance()) { - return this; - } - if (other.hasWeekday()) { - this.setWeekday(other.getWeekday()); - } - if (other.hasStartDay()) { - this.setStartDay(other.getStartDay()); - } - if (other.hasEndDay()) { - this.setEndDay(other.getEndDay()); - } - if (other.hasActionTime()) { - this.setActionTime(other.getActionTime()); - } - if (other.hasTime()) { - this.setTime(other.getTime()); - } - if (other.hasWindow()) { - this.mergeWindow(other.getWindow()); - } - if (this.valueBuilder_ == null) { - if (!other.value_.isEmpty()) { - if (this.value_.isEmpty()) { - this.value_ = other.value_; - this.bitField0_ = (this.bitField0_ & ~0x00000040); + public static final int CERTIFICATEURL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object certificateUrl_ = ""; + /** + *
+         * [(nanopb).max_size = 255];    // The relative path of the certificate.
+         * 
+ * + * string certificateUrl = 2 [features = { ... } + * @return Whether the certificateUrl field is set. + */ + @java.lang.Override + public boolean hasCertificateUrl() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * [(nanopb).max_size = 255];    // The relative path of the certificate.
+         * 
+ * + * string certificateUrl = 2 [features = { ... } + * @return The certificateUrl. + */ + @java.lang.Override + public java.lang.String getCertificateUrl() { + java.lang.Object ref = certificateUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - this.ensureValueIsMutable(); - this.value_.addAll(other.value_); - } - this.onChanged(); - } - } else { - if (!other.value_.isEmpty()) { - if (this.valueBuilder_.isEmpty()) { - this.valueBuilder_.dispose(); - this.valueBuilder_ = null; - this.value_ = other.value_; - this.bitField0_ = (this.bitField0_ & ~0x00000040); - this.valueBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? this.getValueFieldBuilder() - : null; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + certificateUrl_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 255];    // The relative path of the certificate.
+         * 
+ * + * string certificateUrl = 2 [features = { ... } + * @return The bytes for certificateUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCertificateUrlBytes() { + java.lang.Object ref = certificateUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + certificateUrl_ = b; + return b; } else { - this.valueBuilder_.addAllMessages(other.value_); - } - } - } - if (other.hasTriggerType()) { - this.setTriggerType(other.getTriggerType()); - } - if (other.hasMinimumLightsOn()) { - this.setMinimumLightsOn(other.getMinimumLightsOn()); - } - if (other.hasIndex()) { - this.setIndex(other.getIndex()); - } - if (other.hasIsEnabled()) { - this.setIsEnabled(other.getIsEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasWeekday()) { - - return false; - } - if (!this.hasActionTime()) { - - return false; - } - if (this.hasWindow()) { - if (!this.getWindow().isInitialized()) { - - return false; - } - } - for (int i = 0; i < this.getValueCount(); i++) { - if (!this.getValue(i).isInitialized()) { - - return false; - } - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.Weekday value = - org.opensmartgridplatform.oslp.Oslp.Weekday.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - this.bitField0_ |= 0x00000001; - this.weekday_ = value; - } - break; - } - case 18: - { - this.bitField0_ |= 0x00000002; - this.startDay_ = input.readBytes(); - break; - } - case 26: - { - this.bitField0_ |= 0x00000004; - this.endDay_ = input.readBytes(); - break; - } - case 32: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.ActionTime value = - org.opensmartgridplatform.oslp.Oslp.ActionTime.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - this.bitField0_ |= 0x00000008; - this.actionTime_ = value; - } - break; - } - case 42: - { - this.bitField0_ |= 0x00000010; - this.time_ = input.readBytes(); - break; - } - case 50: - { - final org.opensmartgridplatform.oslp.Oslp.Window.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.Window.newBuilder(); - if (this.hasWindow()) { - subBuilder.mergeFrom(this.getWindow()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setWindow(subBuilder.buildPartial()); - break; - } - case 58: - { - final org.opensmartgridplatform.oslp.Oslp.LightValue.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.LightValue.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - this.addValue(subBuilder.buildPartial()); - break; - } - case 64: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.TriggerType value = - org.opensmartgridplatform.oslp.Oslp.TriggerType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(8, rawValue); - } else { - this.bitField0_ |= 0x00000080; - this.triggerType_ = value; - } - break; - } - case 72: - { - this.bitField0_ |= 0x00000100; - this.minimumLightsOn_ = input.readUInt32(); - break; - } - case 80: - { - this.bitField0_ |= 0x00000200; - this.index_ = input.readUInt32(); - break; - } - case 88: - { - this.bitField0_ |= 0x00000400; - this.isEnabled_ = input.readBool(); - break; - } - } - } - } - - private int bitField0_; - - // required .oslp.Weekday weekday = 1; - private org.opensmartgridplatform.oslp.Oslp.Weekday weekday_ = - org.opensmartgridplatform.oslp.Oslp.Weekday.MONDAY; - - @Override - public boolean hasWeekday() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Weekday getWeekday() { - return this.weekday_; - } - - public Builder setWeekday(final org.opensmartgridplatform.oslp.Oslp.Weekday value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.weekday_ = value; - this.onChanged(); - return this; - } - - public Builder clearWeekday() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.weekday_ = org.opensmartgridplatform.oslp.Oslp.Weekday.MONDAY; - this.onChanged(); - return this; - } - - // optional string startDay = 2; - private java.lang.Object startDay_ = ""; - - @Override - public boolean hasStartDay() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public String getStartDay() { - final java.lang.Object ref = this.startDay_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.startDay_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setStartDay(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000002; - this.startDay_ = value; - this.onChanged(); - return this; - } - - public Builder clearStartDay() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.startDay_ = getDefaultInstance().getStartDay(); - this.onChanged(); - return this; - } - - void setStartDay(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000002; - this.startDay_ = value; - this.onChanged(); - } - - // optional string endDay = 3; - private java.lang.Object endDay_ = ""; - - @Override - public boolean hasEndDay() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public String getEndDay() { - final java.lang.Object ref = this.endDay_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.endDay_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setEndDay(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000004; - this.endDay_ = value; - this.onChanged(); - return this; - } - - public Builder clearEndDay() { - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.endDay_ = getDefaultInstance().getEndDay(); - this.onChanged(); - return this; - } - - void setEndDay(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000004; - this.endDay_ = value; - this.onChanged(); - } - - // required .oslp.ActionTime actionTime = 4; - private org.opensmartgridplatform.oslp.Oslp.ActionTime actionTime_ = - org.opensmartgridplatform.oslp.Oslp.ActionTime.ABSOLUTETIME; - - @Override - public boolean hasActionTime() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.ActionTime getActionTime() { - return this.actionTime_; - } - - public Builder setActionTime(final org.opensmartgridplatform.oslp.Oslp.ActionTime value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000008; - this.actionTime_ = value; - this.onChanged(); - return this; - } - - public Builder clearActionTime() { - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.actionTime_ = org.opensmartgridplatform.oslp.Oslp.ActionTime.ABSOLUTETIME; - this.onChanged(); - return this; - } - - // optional string time = 5; - private java.lang.Object time_ = ""; - - @Override - public boolean hasTime() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } - - @Override - public String getTime() { - final java.lang.Object ref = this.time_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.time_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setTime(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000010; - this.time_ = value; - this.onChanged(); - return this; - } - - public Builder clearTime() { - this.bitField0_ = (this.bitField0_ & ~0x00000010); - this.time_ = getDefaultInstance().getTime(); - this.onChanged(); - return this; - } - - void setTime(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000010; - this.time_ = value; - this.onChanged(); - } - - // optional .oslp.Window window = 6; - private org.opensmartgridplatform.oslp.Oslp.Window window_ = - org.opensmartgridplatform.oslp.Oslp.Window.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.Window, - org.opensmartgridplatform.oslp.Oslp.Window.Builder, - org.opensmartgridplatform.oslp.Oslp.WindowOrBuilder> - windowBuilder_; - - @Override - public boolean hasWindow() { - return ((this.bitField0_ & 0x00000020) == 0x00000020); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Window getWindow() { - if (this.windowBuilder_ == null) { - return this.window_; - } else { - return this.windowBuilder_.getMessage(); - } - } - - public Builder setWindow(final org.opensmartgridplatform.oslp.Oslp.Window value) { - if (this.windowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.window_ = value; - this.onChanged(); - } else { - this.windowBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000020; - return this; - } - - public Builder setWindow( - final org.opensmartgridplatform.oslp.Oslp.Window.Builder builderForValue) { - if (this.windowBuilder_ == null) { - this.window_ = builderForValue.build(); - this.onChanged(); - } else { - this.windowBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000020; - return this; - } - - public Builder mergeWindow(final org.opensmartgridplatform.oslp.Oslp.Window value) { - if (this.windowBuilder_ == null) { - if (((this.bitField0_ & 0x00000020) == 0x00000020) - && this.window_ != org.opensmartgridplatform.oslp.Oslp.Window.getDefaultInstance()) { - this.window_ = - org.opensmartgridplatform.oslp.Oslp.Window.newBuilder(this.window_) - .mergeFrom(value) - .buildPartial(); - } else { - this.window_ = value; - } - this.onChanged(); - } else { - this.windowBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000020; - return this; - } - - public Builder clearWindow() { - if (this.windowBuilder_ == null) { - this.window_ = org.opensmartgridplatform.oslp.Oslp.Window.getDefaultInstance(); - this.onChanged(); - } else { - this.windowBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000020); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.Window.Builder getWindowBuilder() { - this.bitField0_ |= 0x00000020; - this.onChanged(); - return this.getWindowFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.WindowOrBuilder getWindowOrBuilder() { - if (this.windowBuilder_ != null) { - return this.windowBuilder_.getMessageOrBuilder(); - } else { - return this.window_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.Window, - org.opensmartgridplatform.oslp.Oslp.Window.Builder, - org.opensmartgridplatform.oslp.Oslp.WindowOrBuilder> - getWindowFieldBuilder() { - if (this.windowBuilder_ == null) { - this.windowBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.Window, - org.opensmartgridplatform.oslp.Oslp.Window.Builder, - org.opensmartgridplatform.oslp.Oslp.WindowOrBuilder>( - this.window_, this.getParentForChildren(), this.isClean()); - this.window_ = null; - } - return this.windowBuilder_; - } - - // repeated .oslp.LightValue value = 7; - private java.util.List value_ = - java.util.Collections.emptyList(); - - private void ensureValueIsMutable() { - if (!((this.bitField0_ & 0x00000040) == 0x00000040)) { - this.value_ = - new java.util.ArrayList(this.value_); - this.bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.LightValue, - org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, - org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder> - valueBuilder_; - - @Override - public java.util.List getValueList() { - if (this.valueBuilder_ == null) { - return java.util.Collections.unmodifiableList(this.value_); - } else { - return this.valueBuilder_.getMessageList(); - } - } - - @Override - public int getValueCount() { - if (this.valueBuilder_ == null) { - return this.value_.size(); - } else { - return this.valueBuilder_.getCount(); - } - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightValue getValue(final int index) { - if (this.valueBuilder_ == null) { - return this.value_.get(index); - } else { - return this.valueBuilder_.getMessage(index); - } - } - - public Builder setValue( - final int index, final org.opensmartgridplatform.oslp.Oslp.LightValue value) { - if (this.valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureValueIsMutable(); - this.value_.set(index, value); - this.onChanged(); - } else { - this.valueBuilder_.setMessage(index, value); - } - return this; - } - - public Builder setValue( - final int index, - final org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { - if (this.valueBuilder_ == null) { - this.ensureValueIsMutable(); - this.value_.set(index, builderForValue.build()); - this.onChanged(); - } else { - this.valueBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addValue(final org.opensmartgridplatform.oslp.Oslp.LightValue value) { - if (this.valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureValueIsMutable(); - this.value_.add(value); - this.onChanged(); - } else { - this.valueBuilder_.addMessage(value); - } - return this; - } - - public Builder addValue( - final int index, final org.opensmartgridplatform.oslp.Oslp.LightValue value) { - if (this.valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureValueIsMutable(); - this.value_.add(index, value); - this.onChanged(); - } else { - this.valueBuilder_.addMessage(index, value); - } - return this; - } - - public Builder addValue( - final org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { - if (this.valueBuilder_ == null) { - this.ensureValueIsMutable(); - this.value_.add(builderForValue.build()); - this.onChanged(); - } else { - this.valueBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - public Builder addValue( - final int index, - final org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { - if (this.valueBuilder_ == null) { - this.ensureValueIsMutable(); - this.value_.add(index, builderForValue.build()); - this.onChanged(); - } else { - this.valueBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addAllValue( - final java.lang.Iterable - values) { - if (this.valueBuilder_ == null) { - this.ensureValueIsMutable(); - super.addAll(values, this.value_); - this.onChanged(); - } else { - this.valueBuilder_.addAllMessages(values); - } - return this; - } - - public Builder clearValue() { - if (this.valueBuilder_ == null) { - this.value_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000040); - this.onChanged(); - } else { - this.valueBuilder_.clear(); - } - return this; - } - - public Builder removeValue(final int index) { - if (this.valueBuilder_ == null) { - this.ensureValueIsMutable(); - this.value_.remove(index); - this.onChanged(); - } else { - this.valueBuilder_.remove(index); - } - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder getValueBuilder( - final int index) { - return this.getValueFieldBuilder().getBuilder(index); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValueOrBuilder( - final int index) { - if (this.valueBuilder_ == null) { - return this.value_.get(index); - } else { - return this.valueBuilder_.getMessageOrBuilder(index); - } - } - - @Override - public java.util.List - getValueOrBuilderList() { - if (this.valueBuilder_ != null) { - return this.valueBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(this.value_); - } - } - - public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder addValueBuilder() { - return this.getValueFieldBuilder() - .addBuilder(org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance()); - } - - public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder addValueBuilder( - final int index) { - return this.getValueFieldBuilder() - .addBuilder(index, org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance()); - } - - public java.util.List - getValueBuilderList() { - return this.getValueFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.LightValue, - org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, - org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder> - getValueFieldBuilder() { - if (this.valueBuilder_ == null) { - this.valueBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.LightValue, - org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, - org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder>( - this.value_, - ((this.bitField0_ & 0x00000040) == 0x00000040), - this.getParentForChildren(), - this.isClean()); - this.value_ = null; - } - return this.valueBuilder_; - } - - // optional .oslp.TriggerType triggerType = 8; - private org.opensmartgridplatform.oslp.Oslp.TriggerType triggerType_ = - org.opensmartgridplatform.oslp.Oslp.TriggerType.TT_NOT_SET; - - @Override - public boolean hasTriggerType() { - return ((this.bitField0_ & 0x00000080) == 0x00000080); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.TriggerType getTriggerType() { - return this.triggerType_; - } - - public Builder setTriggerType(final org.opensmartgridplatform.oslp.Oslp.TriggerType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000080; - this.triggerType_ = value; - this.onChanged(); - return this; - } - - public Builder clearTriggerType() { - this.bitField0_ = (this.bitField0_ & ~0x00000080); - this.triggerType_ = org.opensmartgridplatform.oslp.Oslp.TriggerType.TT_NOT_SET; - this.onChanged(); - return this; - } - - // optional uint32 minimumLightsOn = 9; - private int minimumLightsOn_; - - @Override - public boolean hasMinimumLightsOn() { - return ((this.bitField0_ & 0x00000100) == 0x00000100); - } - - @Override - public int getMinimumLightsOn() { - return this.minimumLightsOn_; - } - - public Builder setMinimumLightsOn(final int value) { - this.bitField0_ |= 0x00000100; - this.minimumLightsOn_ = value; - this.onChanged(); - return this; - } - - public Builder clearMinimumLightsOn() { - this.bitField0_ = (this.bitField0_ & ~0x00000100); - this.minimumLightsOn_ = 0; - this.onChanged(); - return this; - } - - // optional uint32 index = 10; - private int index_; - - @Override - public boolean hasIndex() { - return ((this.bitField0_ & 0x00000200) == 0x00000200); - } - - @Override - public int getIndex() { - return this.index_; - } - - public Builder setIndex(final int value) { - this.bitField0_ |= 0x00000200; - this.index_ = value; - this.onChanged(); - return this; - } - - public Builder clearIndex() { - this.bitField0_ = (this.bitField0_ & ~0x00000200); - this.index_ = 0; - this.onChanged(); - return this; - } - - // optional bool isEnabled = 11; - private boolean isEnabled_; - - @Override - public boolean hasIsEnabled() { - return ((this.bitField0_ & 0x00000400) == 0x00000400); - } - - @Override - public boolean getIsEnabled() { - return this.isEnabled_; - } - - public Builder setIsEnabled(final boolean value) { - this.bitField0_ |= 0x00000400; - this.isEnabled_ = value; - this.onChanged(); - return this; - } - - public Builder clearIsEnabled() { - this.bitField0_ = (this.bitField0_ & ~0x00000400); - this.isEnabled_ = false; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.Schedule) - } + return (com.google.protobuf.ByteString) ref; + } + } - static { - defaultInstance = new Schedule(true); - defaultInstance.initFields(); - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - // @@protoc_insertion_point(class_scope:oslp.Schedule) - } + if (!hasCertificateDomain()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasCertificateUrl()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - public interface WindowOrBuilder extends com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, certificateDomain_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, certificateUrl_); + } + getUnknownFields().writeTo(output); + } - // required uint32 minutesBefore = 1; - boolean hasMinutesBefore(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - int getMinutesBefore(); + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, certificateDomain_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, certificateUrl_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - // required uint32 minutesAfter = 2; - boolean hasMinutesAfter(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest other = (org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest) obj; - int getMinutesAfter(); - } + if (hasCertificateDomain() != other.hasCertificateDomain()) return false; + if (hasCertificateDomain()) { + if (!getCertificateDomain() + .equals(other.getCertificateDomain())) return false; + } + if (hasCertificateUrl() != other.hasCertificateUrl()) return false; + if (hasCertificateUrl()) { + if (!getCertificateUrl() + .equals(other.getCertificateUrl())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static final class Window extends com.google.protobuf.GeneratedMessage - implements WindowOrBuilder { - // Use Window.newBuilder() to construct. - private Window(final Builder builder) { - super(builder); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCertificateDomain()) { + hash = (37 * hash) + CERTIFICATEDOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getCertificateDomain().hashCode(); + } + if (hasCertificateUrl()) { + hash = (37 * hash) + CERTIFICATEURL_FIELD_NUMBER; + hash = (53 * hash) + getCertificateUrl().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * ========= Certificate Management
+         * 
+ * + * Protobuf type {@code oslp.UpdateDeviceSslCertificationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.UpdateDeviceSslCertificationRequest) + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateDeviceSslCertificationRequest_descriptor; + } - private Window(final boolean noInit) {} + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateDeviceSslCertificationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.class, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.Builder.class); + } - private static final Window defaultInstance; + // Construct using org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.newBuilder() + private Builder() { - public static Window getDefaultInstance() { - return defaultInstance; - } + } - @Override - public Window getDefaultInstanceForType() { - return defaultInstance; - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Window_descriptor; - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + certificateDomain_ = ""; + certificateUrl_ = ""; + return this; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Window_fieldAccessorTable; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateDeviceSslCertificationRequest_descriptor; + } - private int bitField0_; - // required uint32 minutesBefore = 1; - public static final int MINUTESBEFORE_FIELD_NUMBER = 1; - private int minutesBefore_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.getDefaultInstance(); + } - @Override - public boolean hasMinutesBefore() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest build() { + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public int getMinutesBefore() { - return this.minutesBefore_; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest result = new org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - // required uint32 minutesAfter = 2; - public static final int MINUTESAFTER_FIELD_NUMBER = 2; - private int minutesAfter_; + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.certificateDomain_ = certificateDomain_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.certificateUrl_ = certificateUrl_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } - @Override - public boolean hasMinutesAfter() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - @Override - public int getMinutesAfter() { - return this.minutesAfter_; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.getDefaultInstance()) return this; + if (other.hasCertificateDomain()) { + certificateDomain_ = other.certificateDomain_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCertificateUrl()) { + certificateUrl_ = other.certificateUrl_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private void initFields() { - this.minutesBefore_ = 0; - this.minutesAfter_ = 0; - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasCertificateDomain()) { + return false; + } + if (!hasCertificateUrl()) { + return false; + } + return true; + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasMinutesBefore()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasMinutesAfter()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + certificateDomain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + certificateUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object certificateDomain_ = ""; + /** + *
+             * [(nanopb).max_size = 100]; // The domain name of the certificate Server.
+             * 
+ * + * string certificateDomain = 1 [features = { ... } + * @return Whether the certificateDomain field is set. + */ + public boolean hasCertificateDomain() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * [(nanopb).max_size = 100]; // The domain name of the certificate Server.
+             * 
+ * + * string certificateDomain = 1 [features = { ... } + * @return The certificateDomain. + */ + public java.lang.String getCertificateDomain() { + java.lang.Object ref = certificateDomain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + certificateDomain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 100]; // The domain name of the certificate Server.
+             * 
+ * + * string certificateDomain = 1 [features = { ... } + * @return The bytes for certificateDomain. + */ + public com.google.protobuf.ByteString + getCertificateDomainBytes() { + java.lang.Object ref = certificateDomain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + certificateDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 100]; // The domain name of the certificate Server.
+             * 
+ * + * string certificateDomain = 1 [features = { ... } + * @param value The certificateDomain to set. + * @return This builder for chaining. + */ + public Builder setCertificateDomain( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + certificateDomain_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 100]; // The domain name of the certificate Server.
+             * 
+ * + * string certificateDomain = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearCertificateDomain() { + certificateDomain_ = getDefaultInstance().getCertificateDomain(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 100]; // The domain name of the certificate Server.
+             * 
+ * + * string certificateDomain = 1 [features = { ... } + * @param value The bytes for certificateDomain to set. + * @return This builder for chaining. + */ + public Builder setCertificateDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + certificateDomain_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeUInt32(1, this.minutesBefore_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeUInt32(2, this.minutesAfter_); - } - this.getUnknownFields().writeTo(output); - } + private java.lang.Object certificateUrl_ = ""; + /** + *
+             * [(nanopb).max_size = 255];    // The relative path of the certificate.
+             * 
+ * + * string certificateUrl = 2 [features = { ... } + * @return Whether the certificateUrl field is set. + */ + public boolean hasCertificateUrl() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * [(nanopb).max_size = 255];    // The relative path of the certificate.
+             * 
+ * + * string certificateUrl = 2 [features = { ... } + * @return The certificateUrl. + */ + public java.lang.String getCertificateUrl() { + java.lang.Object ref = certificateUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + certificateUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 255];    // The relative path of the certificate.
+             * 
+ * + * string certificateUrl = 2 [features = { ... } + * @return The bytes for certificateUrl. + */ + public com.google.protobuf.ByteString + getCertificateUrlBytes() { + java.lang.Object ref = certificateUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + certificateUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 255];    // The relative path of the certificate.
+             * 
+ * + * string certificateUrl = 2 [features = { ... } + * @param value The certificateUrl to set. + * @return This builder for chaining. + */ + public Builder setCertificateUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + certificateUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 255];    // The relative path of the certificate.
+             * 
+ * + * string certificateUrl = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearCertificateUrl() { + certificateUrl_ = getDefaultInstance().getCertificateUrl(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 255];    // The relative path of the certificate.
+             * 
+ * + * string certificateUrl = 2 [features = { ... } + * @param value The bytes for certificateUrl to set. + * @return This builder for chaining. + */ + public Builder setCertificateUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + certificateUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, this.minutesBefore_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, this.minutesAfter_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + // @@protoc_insertion_point(builder_scope:oslp.UpdateDeviceSslCertificationRequest) + } - private static final long serialVersionUID = 0L; + // @@protoc_insertion_point(class_scope:oslp.UpdateDeviceSslCertificationRequest) + private static final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest(); + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDeviceSslCertificationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); } - public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + public interface UpdateDeviceSslCertificationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.UpdateDeviceSslCertificationResponse) + com.google.protobuf.MessageOrBuilder { - public static org.opensmartgridplatform.oslp.Oslp.Window parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); } + /** + * Protobuf type {@code oslp.UpdateDeviceSslCertificationResponse} + */ + public static final class UpdateDeviceSslCertificationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.UpdateDeviceSslCertificationResponse) + UpdateDeviceSslCertificationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + UpdateDeviceSslCertificationResponse.class.getName()); + } + // Use UpdateDeviceSslCertificationResponse.newBuilder() to construct. + private UpdateDeviceSslCertificationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UpdateDeviceSslCertificationResponse() { + status_ = 0; + } - public static org.opensmartgridplatform.oslp.Oslp.Window parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateDeviceSslCertificationResponse_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateDeviceSslCertificationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.class, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse other = (org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse) obj; - public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static Builder newBuilder() { - return Builder.create(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.UpdateDeviceSslCertificationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.UpdateDeviceSslCertificationResponse) + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateDeviceSslCertificationResponse_descriptor; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateDeviceSslCertificationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.class, org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.Builder.class); + } - public static Builder newBuilder(final org.opensmartgridplatform.oslp.Oslp.Window prototype) { - return newBuilder().mergeFrom(prototype); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.newBuilder() + private Builder() { - @Override - public Builder toBuilder() { - return newBuilder(this); - } + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.WindowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Window_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Window_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.Window.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.minutesBefore_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.minutesAfter_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.Window.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Window getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.Window.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Window build() { - final org.opensmartgridplatform.oslp.Oslp.Window result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.Window buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.Window result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.Window buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.Window result = - new org.opensmartgridplatform.oslp.Oslp.Window(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.minutesBefore_ = this.minutesBefore_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.minutesAfter_ = this.minutesAfter_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.Window) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.Window) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.Window other) { - if (other == org.opensmartgridplatform.oslp.Oslp.Window.getDefaultInstance()) { - return this; - } - if (other.hasMinutesBefore()) { - this.setMinutesBefore(other.getMinutesBefore()); - } - if (other.hasMinutesAfter()) { - this.setMinutesAfter(other.getMinutesAfter()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasMinutesBefore()) { - - return false; - } - if (!this.hasMinutesAfter()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - this.bitField0_ |= 0x00000001; - this.minutesBefore_ = input.readUInt32(); - break; - } - case 16: - { - this.bitField0_ |= 0x00000002; - this.minutesAfter_ = input.readUInt32(); - break; - } - } - } - } - - private int bitField0_; - - // required uint32 minutesBefore = 1; - private int minutesBefore_; - - @Override - public boolean hasMinutesBefore() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public int getMinutesBefore() { - return this.minutesBefore_; - } - - public Builder setMinutesBefore(final int value) { - this.bitField0_ |= 0x00000001; - this.minutesBefore_ = value; - this.onChanged(); - return this; - } - - public Builder clearMinutesBefore() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.minutesBefore_ = 0; - this.onChanged(); - return this; - } - - // required uint32 minutesAfter = 2; - private int minutesAfter_; - - @Override - public boolean hasMinutesAfter() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public int getMinutesAfter() { - return this.minutesAfter_; - } - - public Builder setMinutesAfter(final int value) { - this.bitField0_ |= 0x00000002; - this.minutesAfter_ = value; - this.onChanged(); - return this; - } - - public Builder clearMinutesAfter() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.minutesAfter_ = 0; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.Window) - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + return this; + } - static { - defaultInstance = new Window(true); - defaultInstance.initFields(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_UpdateDeviceSslCertificationResponse_descriptor; + } - // @@protoc_insertion_point(class_scope:oslp.Window) - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.getDefaultInstance(); + } - public interface DaliConfigurationOrBuilder extends com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse build() { + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - // optional bytes numberOfLights = 1; - boolean hasNumberOfLights(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse result = new org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - com.google.protobuf.ByteString getNumberOfLights(); + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - // repeated .oslp.IndexAddressMap addressMap = 2; - java.util.List getAddressMapList(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getAddressMap(int index); + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - int getAddressMapCount(); + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + return true; + } - java.util.List - getAddressMapOrBuilderList(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder getAddressMapOrBuilder(int index); - } + // @@protoc_insertion_point(builder_scope:oslp.UpdateDeviceSslCertificationResponse) + } - public static final class DaliConfiguration extends com.google.protobuf.GeneratedMessage - implements DaliConfigurationOrBuilder { - // Use DaliConfiguration.newBuilder() to construct. - private DaliConfiguration(final Builder builder) { - super(builder); - } + // @@protoc_insertion_point(class_scope:oslp.UpdateDeviceSslCertificationResponse) + private static final org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse(); + } - private DaliConfiguration(final boolean noInit) {} + public static org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private static final DaliConfiguration defaultInstance; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDeviceSslCertificationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static DaliConfiguration getDefaultInstance() { - return defaultInstance; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SetDeviceVerificationKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SetDeviceVerificationKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_size = 138]; // Verification key / public key of the platform to check the validity of an incoming message.
+         * 
+ * + * bytes certificateChunk = 1 [features = { ... } + * @return Whether the certificateChunk field is set. + */ + boolean hasCertificateChunk(); + /** + *
+         * [(nanopb).max_size = 138]; // Verification key / public key of the platform to check the validity of an incoming message.
+         * 
+ * + * bytes certificateChunk = 1 [features = { ... } + * @return The certificateChunk. + */ + com.google.protobuf.ByteString getCertificateChunk(); + } + /** + *
+     * ========= Key Management
+     * 
+ * + * Protobuf type {@code oslp.SetDeviceVerificationKeyRequest} + */ + public static final class SetDeviceVerificationKeyRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SetDeviceVerificationKeyRequest) + SetDeviceVerificationKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SetDeviceVerificationKeyRequest.class.getName()); + } + // Use SetDeviceVerificationKeyRequest.newBuilder() to construct. + private SetDeviceVerificationKeyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetDeviceVerificationKeyRequest() { + certificateChunk_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetDeviceVerificationKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetDeviceVerificationKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.class, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.Builder.class); + } + + private int bitField0_; + public static final int CERTIFICATECHUNK_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString certificateChunk_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_size = 138]; // Verification key / public key of the platform to check the validity of an incoming message.
+         * 
+ * + * bytes certificateChunk = 1 [features = { ... } + * @return Whether the certificateChunk field is set. + */ + @java.lang.Override + public boolean hasCertificateChunk() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * [(nanopb).max_size = 138]; // Verification key / public key of the platform to check the validity of an incoming message.
+         * 
+ * + * bytes certificateChunk = 1 [features = { ... } + * @return The certificateChunk. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCertificateChunk() { + return certificateChunk_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasCertificateChunk()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - @Override - public DaliConfiguration getDefaultInstanceForType() { - return defaultInstance; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBytes(1, certificateChunk_); + } + getUnknownFields().writeTo(output); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_DaliConfiguration_descriptor; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_DaliConfiguration_fieldAccessorTable; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, certificateChunk_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private int bitField0_; - // optional bytes numberOfLights = 1; - public static final int NUMBEROFLIGHTS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString numberOfLights_; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest other = (org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest) obj; - @Override - public boolean hasNumberOfLights() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + if (hasCertificateChunk() != other.hasCertificateChunk()) return false; + if (hasCertificateChunk()) { + if (!getCertificateChunk() + .equals(other.getCertificateChunk())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public com.google.protobuf.ByteString getNumberOfLights() { - return this.numberOfLights_; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCertificateChunk()) { + hash = (37 * hash) + CERTIFICATECHUNK_FIELD_NUMBER; + hash = (53 * hash) + getCertificateChunk().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * ========= Key Management
+         * 
+ * + * Protobuf type {@code oslp.SetDeviceVerificationKeyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SetDeviceVerificationKeyRequest) + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetDeviceVerificationKeyRequest_descriptor; + } - // repeated .oslp.IndexAddressMap addressMap = 2; - public static final int ADDRESSMAP_FIELD_NUMBER = 2; - private java.util.List addressMap_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetDeviceVerificationKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.class, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.Builder.class); + } - @Override - public java.util.List getAddressMapList() { - return this.addressMap_; - } + // Construct using org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.newBuilder() + private Builder() { - @Override - public java.util.List - getAddressMapOrBuilderList() { - return this.addressMap_; - } + } - @Override - public int getAddressMapCount() { - return this.addressMap_.size(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - @Override - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getAddressMap(final int index) { - return this.addressMap_.get(index); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + certificateChunk_ = com.google.protobuf.ByteString.EMPTY; + return this; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder getAddressMapOrBuilder( - final int index) { - return this.addressMap_.get(index); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetDeviceVerificationKeyRequest_descriptor; + } - private void initFields() { - this.numberOfLights_ = com.google.protobuf.ByteString.EMPTY; - this.addressMap_ = java.util.Collections.emptyList(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.getDefaultInstance(); + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest build() { + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest result = new org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - for (int i = 0; i < this.getAddressMapCount(); i++) { - if (!this.getAddressMap(i).isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - this.memoizedIsInitialized = 1; - return true; - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.certificateChunk_ = certificateChunk_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, this.numberOfLights_); - } - for (int i = 0; i < this.addressMap_.size(); i++) { - output.writeMessage(2, this.addressMap_.get(i)); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, this.numberOfLights_); - } - for (int i = 0; i < this.addressMap_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, this.addressMap_.get(i)); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.getDefaultInstance()) return this; + if (other.hasCertificateChunk()) { + setCertificateChunk(other.getCertificateChunk()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private static final long serialVersionUID = 0L; + @java.lang.Override + public final boolean isInitialized() { + if (!hasCertificateChunk()) { + return false; + } + return true; + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + certificateChunk_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString certificateChunk_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_size = 138]; // Verification key / public key of the platform to check the validity of an incoming message.
+             * 
+ * + * bytes certificateChunk = 1 [features = { ... } + * @return Whether the certificateChunk field is set. + */ + @java.lang.Override + public boolean hasCertificateChunk() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * [(nanopb).max_size = 138]; // Verification key / public key of the platform to check the validity of an incoming message.
+             * 
+ * + * bytes certificateChunk = 1 [features = { ... } + * @return The certificateChunk. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCertificateChunk() { + return certificateChunk_; + } + /** + *
+             * [(nanopb).max_size = 138]; // Verification key / public key of the platform to check the validity of an incoming message.
+             * 
+ * + * bytes certificateChunk = 1 [features = { ... } + * @param value The certificateChunk to set. + * @return This builder for chaining. + */ + public Builder setCertificateChunk(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + certificateChunk_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 138]; // Verification key / public key of the platform to check the validity of an incoming message.
+             * 
+ * + * bytes certificateChunk = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearCertificateChunk() { + bitField0_ = (bitField0_ & ~0x00000001); + certificateChunk_ = getDefaultInstance().getCertificateChunk(); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + // @@protoc_insertion_point(builder_scope:oslp.SetDeviceVerificationKeyRequest) + } - public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + // @@protoc_insertion_point(class_scope:oslp.SetDeviceVerificationKeyRequest) + private static final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest(); + } - public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetDeviceVerificationKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } } - public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + public interface SetDeviceVerificationKeyResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SetDeviceVerificationKeyResponse) + com.google.protobuf.MessageOrBuilder { - public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + org.opensmartgridplatform.oslp.Oslp.Status getStatus(); } + /** + * Protobuf type {@code oslp.SetDeviceVerificationKeyResponse} + */ + public static final class SetDeviceVerificationKeyResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SetDeviceVerificationKeyResponse) + SetDeviceVerificationKeyResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SetDeviceVerificationKeyResponse.class.getName()); + } + // Use SetDeviceVerificationKeyResponse.newBuilder() to construct. + private SetDeviceVerificationKeyResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SetDeviceVerificationKeyResponse() { + status_ = 0; + } - public static Builder newBuilder() { - return Builder.create(); - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetDeviceVerificationKeyResponse_descriptor; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetDeviceVerificationKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.class, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.DaliConfiguration prototype) { - return newBuilder().mergeFrom(prototype); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, status_); + } + getUnknownFields().writeTo(output); + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_DaliConfiguration_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_DaliConfiguration_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getAddressMapFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.numberOfLights_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - if (this.addressMapBuilder_ == null) { - this.addressMap_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000002); - } else { - this.addressMapBuilder_.clear(); - } - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration build() { - final org.opensmartgridplatform.oslp.Oslp.DaliConfiguration result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.DaliConfiguration buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.DaliConfiguration result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.DaliConfiguration result = - new org.opensmartgridplatform.oslp.Oslp.DaliConfiguration(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.numberOfLights_ = this.numberOfLights_; - if (this.addressMapBuilder_ == null) { - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - this.addressMap_ = java.util.Collections.unmodifiableList(this.addressMap_); - this.bitField0_ = (this.bitField0_ & ~0x00000002); - } - result.addressMap_ = this.addressMap_; - } else { - result.addressMap_ = this.addressMapBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.DaliConfiguration) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.DaliConfiguration) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.DaliConfiguration other) { - if (other == org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance()) { - return this; - } - if (other.hasNumberOfLights()) { - this.setNumberOfLights(other.getNumberOfLights()); - } - if (this.addressMapBuilder_ == null) { - if (!other.addressMap_.isEmpty()) { - if (this.addressMap_.isEmpty()) { - this.addressMap_ = other.addressMap_; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - } else { - this.ensureAddressMapIsMutable(); - this.addressMap_.addAll(other.addressMap_); - } - this.onChanged(); - } - } else { - if (!other.addressMap_.isEmpty()) { - if (this.addressMapBuilder_.isEmpty()) { - this.addressMapBuilder_.dispose(); - this.addressMapBuilder_ = null; - this.addressMap_ = other.addressMap_; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.addressMapBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? this.getAddressMapFieldBuilder() - : null; - } else { - this.addressMapBuilder_.addAllMessages(other.addressMap_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - for (int i = 0; i < this.getAddressMapCount(); i++) { - if (!this.getAddressMap(i).isInitialized()) { - - return false; - } - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - this.bitField0_ |= 0x00000001; - this.numberOfLights_ = input.readBytes(); - break; - } - case 18: - { - final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - this.addAddressMap(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional bytes numberOfLights = 1; - private com.google.protobuf.ByteString numberOfLights_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasNumberOfLights() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public com.google.protobuf.ByteString getNumberOfLights() { - return this.numberOfLights_; - } - - public Builder setNumberOfLights(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.numberOfLights_ = value; - this.onChanged(); - return this; - } - - public Builder clearNumberOfLights() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.numberOfLights_ = getDefaultInstance().getNumberOfLights(); - this.onChanged(); - return this; - } - - // repeated .oslp.IndexAddressMap addressMap = 2; - private java.util.List addressMap_ = - java.util.Collections.emptyList(); - - private void ensureAddressMapIsMutable() { - if (!((this.bitField0_ & 0x00000002) == 0x00000002)) { - this.addressMap_ = - new java.util.ArrayList( - this.addressMap_); - this.bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap, - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder, - org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder> - addressMapBuilder_; - - @Override - public java.util.List - getAddressMapList() { - if (this.addressMapBuilder_ == null) { - return java.util.Collections.unmodifiableList(this.addressMap_); - } else { - return this.addressMapBuilder_.getMessageList(); - } - } - - @Override - public int getAddressMapCount() { - if (this.addressMapBuilder_ == null) { - return this.addressMap_.size(); - } else { - return this.addressMapBuilder_.getCount(); - } - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getAddressMap(final int index) { - if (this.addressMapBuilder_ == null) { - return this.addressMap_.get(index); - } else { - return this.addressMapBuilder_.getMessage(index); - } - } - - public Builder setAddressMap( - final int index, final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap value) { - if (this.addressMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureAddressMapIsMutable(); - this.addressMap_.set(index, value); - this.onChanged(); - } else { - this.addressMapBuilder_.setMessage(index, value); - } - return this; - } - - public Builder setAddressMap( - final int index, - final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder builderForValue) { - if (this.addressMapBuilder_ == null) { - this.ensureAddressMapIsMutable(); - this.addressMap_.set(index, builderForValue.build()); - this.onChanged(); - } else { - this.addressMapBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addAddressMap( - final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap value) { - if (this.addressMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureAddressMapIsMutable(); - this.addressMap_.add(value); - this.onChanged(); - } else { - this.addressMapBuilder_.addMessage(value); - } - return this; - } - - public Builder addAddressMap( - final int index, final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap value) { - if (this.addressMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureAddressMapIsMutable(); - this.addressMap_.add(index, value); - this.onChanged(); - } else { - this.addressMapBuilder_.addMessage(index, value); - } - return this; - } - - public Builder addAddressMap( - final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder builderForValue) { - if (this.addressMapBuilder_ == null) { - this.ensureAddressMapIsMutable(); - this.addressMap_.add(builderForValue.build()); - this.onChanged(); - } else { - this.addressMapBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - public Builder addAddressMap( - final int index, - final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder builderForValue) { - if (this.addressMapBuilder_ == null) { - this.ensureAddressMapIsMutable(); - this.addressMap_.add(index, builderForValue.build()); - this.onChanged(); - } else { - this.addressMapBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addAllAddressMap( - final java.lang.Iterable - values) { - if (this.addressMapBuilder_ == null) { - this.ensureAddressMapIsMutable(); - super.addAll(values, this.addressMap_); - this.onChanged(); - } else { - this.addressMapBuilder_.addAllMessages(values); - } - return this; - } - - public Builder clearAddressMap() { - if (this.addressMapBuilder_ == null) { - this.addressMap_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.onChanged(); - } else { - this.addressMapBuilder_.clear(); - } - return this; - } - - public Builder removeAddressMap(final int index) { - if (this.addressMapBuilder_ == null) { - this.ensureAddressMapIsMutable(); - this.addressMap_.remove(index); - this.onChanged(); - } else { - this.addressMapBuilder_.remove(index); - } - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder getAddressMapBuilder( - final int index) { - return this.getAddressMapFieldBuilder().getBuilder(index); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder getAddressMapOrBuilder( - final int index) { - if (this.addressMapBuilder_ == null) { - return this.addressMap_.get(index); - } else { - return this.addressMapBuilder_.getMessageOrBuilder(index); - } - } - - @Override - public java.util.List - getAddressMapOrBuilderList() { - if (this.addressMapBuilder_ != null) { - return this.addressMapBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(this.addressMap_); - } - } - - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder addAddressMapBuilder() { - return this.getAddressMapFieldBuilder() - .addBuilder(org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.getDefaultInstance()); - } - - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder addAddressMapBuilder( - final int index) { - return this.getAddressMapFieldBuilder() - .addBuilder( - index, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.getDefaultInstance()); - } - - public java.util.List - getAddressMapBuilderList() { - return this.getAddressMapFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap, - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder, - org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder> - getAddressMapFieldBuilder() { - if (this.addressMapBuilder_ == null) { - this.addressMapBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap, - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder, - org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder>( - this.addressMap_, - ((this.bitField0_ & 0x00000002) == 0x00000002), - this.getParentForChildren(), - this.isClean()); - this.addressMap_ = null; - } - return this.addressMapBuilder_; - } - - // @@protoc_insertion_point(builder_scope:oslp.DaliConfiguration) - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse other = (org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse) obj; - static { - defaultInstance = new DaliConfiguration(true); - defaultInstance.initFields(); - } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - // @@protoc_insertion_point(class_scope:oslp.DaliConfiguration) - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.SetDeviceVerificationKeyResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SetDeviceVerificationKeyResponse) + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetDeviceVerificationKeyResponse_descriptor; + } - public interface RelayConfigurationOrBuilder extends com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetDeviceVerificationKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.class, org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.Builder.class); + } - // repeated .oslp.IndexAddressMap addressMap = 1; - java.util.List getAddressMapList(); + // Construct using org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.newBuilder() + private Builder() { - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getAddressMap(int index); + } - int getAddressMapCount(); + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - java.util.List - getAddressMapOrBuilderList(); + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + return this; + } - org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder getAddressMapOrBuilder(int index); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SetDeviceVerificationKeyResponse_descriptor; + } - public static final class RelayConfiguration extends com.google.protobuf.GeneratedMessage - implements RelayConfigurationOrBuilder { - // Use RelayConfiguration.newBuilder() to construct. - private RelayConfiguration(final Builder builder) { - super(builder); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.getDefaultInstance(); + } - private RelayConfiguration(final boolean noInit) {} + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse build() { + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - private static final RelayConfiguration defaultInstance; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse result = new org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static RelayConfiguration getDefaultInstance() { - return defaultInstance; - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - @Override - public RelayConfiguration getDefaultInstanceForType() { - return defaultInstance; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayConfiguration_descriptor; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_RelayConfiguration_fieldAccessorTable; - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStatus()) { + return false; + } + return true; + } - // repeated .oslp.IndexAddressMap addressMap = 1; - public static final int ADDRESSMAP_FIELD_NUMBER = 1; - private java.util.List addressMap_; + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ = 0; + /** + * .oslp.Status status = 1 [features = { ... } + * @return Whether the status field is set. + */ + @java.lang.Override public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return The status. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Status getStatus() { + org.opensmartgridplatform.oslp.Oslp.Status result = org.opensmartgridplatform.oslp.Oslp.Status.forNumber(status_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Status.UNRECOGNIZED : result; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.opensmartgridplatform.oslp.Oslp.Status value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Status status = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } - @Override - public java.util.List getAddressMapList() { - return this.addressMap_; - } + // @@protoc_insertion_point(builder_scope:oslp.SetDeviceVerificationKeyResponse) + } - @Override - public java.util.List - getAddressMapOrBuilderList() { - return this.addressMap_; - } + // @@protoc_insertion_point(class_scope:oslp.SetDeviceVerificationKeyResponse) + private static final org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse(); + } - @Override - public int getAddressMapCount() { - return this.addressMap_.size(); - } + public static org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getAddressMap(final int index) { - return this.addressMap_.get(index); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetDeviceVerificationKeyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder getAddressMapOrBuilder( - final int index) { - return this.addressMap_.get(index); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LocationInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.LocationInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Correction in minutes with respect to UTC.
+         * 
+ * + * sint32 timeOffset = 1; + * @return Whether the timeOffset field is set. + */ + boolean hasTimeOffset(); + /** + *
+         * Correction in minutes with respect to UTC.
+         * 
+ * + * sint32 timeOffset = 1; + * @return The timeOffset. + */ + int getTimeOffset(); + + /** + *
+         * Divide by 1000000 to get float value.
+         * 
+ * + * sint32 latitude = 2; + * @return Whether the latitude field is set. + */ + boolean hasLatitude(); + /** + *
+         * Divide by 1000000 to get float value.
+         * 
+ * + * sint32 latitude = 2; + * @return The latitude. + */ + int getLatitude(); + + /** + *
+         * Divide by 1000000 to get float value.
+         * 
+ * + * sint32 longitude = 3; + * @return Whether the longitude field is set. + */ + boolean hasLongitude(); + /** + *
+         * Divide by 1000000 to get float value.
+         * 
+ * + * sint32 longitude = 3; + * @return The longitude. + */ + int getLongitude(); + } + /** + *
+     * ========= Types
+     * 
+ * + * Protobuf type {@code oslp.LocationInfo} + */ + public static final class LocationInfo extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.LocationInfo) + LocationInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + LocationInfo.class.getName()); + } + // Use LocationInfo.newBuilder() to construct. + private LocationInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private LocationInfo() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_LocationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_LocationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.LocationInfo.class, org.opensmartgridplatform.oslp.Oslp.LocationInfo.Builder.class); + } + + private int bitField0_; + public static final int TIMEOFFSET_FIELD_NUMBER = 1; + private int timeOffset_ = 0; + /** + *
+         * Correction in minutes with respect to UTC.
+         * 
+ * + * sint32 timeOffset = 1; + * @return Whether the timeOffset field is set. + */ + @java.lang.Override + public boolean hasTimeOffset() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Correction in minutes with respect to UTC.
+         * 
+ * + * sint32 timeOffset = 1; + * @return The timeOffset. + */ + @java.lang.Override + public int getTimeOffset() { + return timeOffset_; + } + + public static final int LATITUDE_FIELD_NUMBER = 2; + private int latitude_ = 0; + /** + *
+         * Divide by 1000000 to get float value.
+         * 
+ * + * sint32 latitude = 2; + * @return Whether the latitude field is set. + */ + @java.lang.Override + public boolean hasLatitude() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * Divide by 1000000 to get float value.
+         * 
+ * + * sint32 latitude = 2; + * @return The latitude. + */ + @java.lang.Override + public int getLatitude() { + return latitude_; + } + + public static final int LONGITUDE_FIELD_NUMBER = 3; + private int longitude_ = 0; + /** + *
+         * Divide by 1000000 to get float value.
+         * 
+ * + * sint32 longitude = 3; + * @return Whether the longitude field is set. + */ + @java.lang.Override + public boolean hasLongitude() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * Divide by 1000000 to get float value.
+         * 
+ * + * sint32 longitude = 3; + * @return The longitude. + */ + @java.lang.Override + public int getLongitude() { + return longitude_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeSInt32(1, timeOffset_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeSInt32(2, latitude_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeSInt32(3, longitude_); + } + getUnknownFields().writeTo(output); + } - private void initFields() { - this.addressMap_ = java.util.Collections.emptyList(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private byte memoizedIsInitialized = -1; + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeSInt32Size(1, timeOffset_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeSInt32Size(2, latitude_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeSInt32Size(3, longitude_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.LocationInfo)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.LocationInfo other = (org.opensmartgridplatform.oslp.Oslp.LocationInfo) obj; - for (int i = 0; i < this.getAddressMapCount(); i++) { - if (!this.getAddressMap(i).isInitialized()) { - this.memoizedIsInitialized = 0; - return false; + if (hasTimeOffset() != other.hasTimeOffset()) return false; + if (hasTimeOffset()) { + if (getTimeOffset() + != other.getTimeOffset()) return false; + } + if (hasLatitude() != other.hasLatitude()) return false; + if (hasLatitude()) { + if (getLatitude() + != other.getLatitude()) return false; + } + if (hasLongitude() != other.hasLongitude()) return false; + if (hasLongitude()) { + if (getLongitude() + != other.getLongitude()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - } - this.memoizedIsInitialized = 1; - return true; - } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - for (int i = 0; i < this.addressMap_.size(); i++) { - output.writeMessage(1, this.addressMap_.get(i)); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTimeOffset()) { + hash = (37 * hash) + TIMEOFFSET_FIELD_NUMBER; + hash = (53 * hash) + getTimeOffset(); + } + if (hasLatitude()) { + hash = (37 * hash) + LATITUDE_FIELD_NUMBER; + hash = (53 * hash) + getLatitude(); + } + if (hasLongitude()) { + hash = (37 * hash) + LONGITUDE_FIELD_NUMBER; + hash = (53 * hash) + getLongitude(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.LocationInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.LocationInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * ========= Types
+         * 
+ * + * Protobuf type {@code oslp.LocationInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.LocationInfo) + org.opensmartgridplatform.oslp.Oslp.LocationInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_LocationInfo_descriptor; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - for (int i = 0; i < this.addressMap_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, this.addressMap_.get(i)); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_LocationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.LocationInfo.class, org.opensmartgridplatform.oslp.Oslp.LocationInfo.Builder.class); + } - private static final long serialVersionUID = 0L; + // Construct using org.opensmartgridplatform.oslp.Oslp.LocationInfo.newBuilder() + private Builder() { - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + } - public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + timeOffset_ = 0; + latitude_ = 0; + longitude_ = 0; + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( - final byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_LocationInfo_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LocationInfo getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.LocationInfo.getDefaultInstance(); + } - public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LocationInfo build() { + org.opensmartgridplatform.oslp.Oslp.LocationInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LocationInfo buildPartial() { + org.opensmartgridplatform.oslp.Oslp.LocationInfo result = new org.opensmartgridplatform.oslp.Oslp.LocationInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.LocationInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeOffset_ = timeOffset_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.latitude_ = latitude_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.longitude_ = longitude_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.LocationInfo) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.LocationInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.LocationInfo other) { + if (other == org.opensmartgridplatform.oslp.Oslp.LocationInfo.getDefaultInstance()) return this; + if (other.hasTimeOffset()) { + setTimeOffset(other.getTimeOffset()); + } + if (other.hasLatitude()) { + setLatitude(other.getLatitude()); + } + if (other.hasLongitude()) { + setLongitude(other.getLongitude()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + timeOffset_ = input.readSInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + latitude_ = input.readSInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + longitude_ = input.readSInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int timeOffset_ ; + /** + *
+             * Correction in minutes with respect to UTC.
+             * 
+ * + * sint32 timeOffset = 1; + * @return Whether the timeOffset field is set. + */ + @java.lang.Override + public boolean hasTimeOffset() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Correction in minutes with respect to UTC.
+             * 
+ * + * sint32 timeOffset = 1; + * @return The timeOffset. + */ + @java.lang.Override + public int getTimeOffset() { + return timeOffset_; + } + /** + *
+             * Correction in minutes with respect to UTC.
+             * 
+ * + * sint32 timeOffset = 1; + * @param value The timeOffset to set. + * @return This builder for chaining. + */ + public Builder setTimeOffset(int value) { + + timeOffset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Correction in minutes with respect to UTC.
+             * 
+ * + * sint32 timeOffset = 1; + * @return This builder for chaining. + */ + public Builder clearTimeOffset() { + bitField0_ = (bitField0_ & ~0x00000001); + timeOffset_ = 0; + onChanged(); + return this; + } - public static Builder newBuilder() { - return Builder.create(); - } + private int latitude_ ; + /** + *
+             * Divide by 1000000 to get float value.
+             * 
+ * + * sint32 latitude = 2; + * @return Whether the latitude field is set. + */ + @java.lang.Override + public boolean hasLatitude() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * Divide by 1000000 to get float value.
+             * 
+ * + * sint32 latitude = 2; + * @return The latitude. + */ + @java.lang.Override + public int getLatitude() { + return latitude_; + } + /** + *
+             * Divide by 1000000 to get float value.
+             * 
+ * + * sint32 latitude = 2; + * @param value The latitude to set. + * @return This builder for chaining. + */ + public Builder setLatitude(int value) { + + latitude_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Divide by 1000000 to get float value.
+             * 
+ * + * sint32 latitude = 2; + * @return This builder for chaining. + */ + public Builder clearLatitude() { + bitField0_ = (bitField0_ & ~0x00000002); + latitude_ = 0; + onChanged(); + return this; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + private int longitude_ ; + /** + *
+             * Divide by 1000000 to get float value.
+             * 
+ * + * sint32 longitude = 3; + * @return Whether the longitude field is set. + */ + @java.lang.Override + public boolean hasLongitude() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * Divide by 1000000 to get float value.
+             * 
+ * + * sint32 longitude = 3; + * @return The longitude. + */ + @java.lang.Override + public int getLongitude() { + return longitude_; + } + /** + *
+             * Divide by 1000000 to get float value.
+             * 
+ * + * sint32 longitude = 3; + * @param value The longitude to set. + * @return This builder for chaining. + */ + public Builder setLongitude(int value) { + + longitude_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * Divide by 1000000 to get float value.
+             * 
+ * + * sint32 longitude = 3; + * @return This builder for chaining. + */ + public Builder clearLongitude() { + bitField0_ = (bitField0_ & ~0x00000004); + longitude_ = 0; + onChanged(); + return this; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.RelayConfiguration prototype) { - return newBuilder().mergeFrom(prototype); - } + // @@protoc_insertion_point(builder_scope:oslp.LocationInfo) + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + // @@protoc_insertion_point(class_scope:oslp.LocationInfo) + private static final org.opensmartgridplatform.oslp.Oslp.LocationInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.LocationInfo(); + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + public static org.opensmartgridplatform.oslp.Oslp.LocationInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_RelayConfiguration_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_RelayConfiguration_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getAddressMapFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - if (this.addressMapBuilder_ == null) { - this.addressMap_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000001); - } else { - this.addressMapBuilder_.clear(); - } - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration build() { - final org.opensmartgridplatform.oslp.Oslp.RelayConfiguration result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.RelayConfiguration buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.RelayConfiguration result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.RelayConfiguration result = - new org.opensmartgridplatform.oslp.Oslp.RelayConfiguration(this); - final int from_bitField0_ = this.bitField0_; - if (this.addressMapBuilder_ == null) { - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - this.addressMap_ = java.util.Collections.unmodifiableList(this.addressMap_); - this.bitField0_ = (this.bitField0_ & ~0x00000001); - } - result.addressMap_ = this.addressMap_; - } else { - result.addressMap_ = this.addressMapBuilder_.build(); - } - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.RelayConfiguration) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.RelayConfiguration) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.RelayConfiguration other) { - if (other == org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance()) { - return this; - } - if (this.addressMapBuilder_ == null) { - if (!other.addressMap_.isEmpty()) { - if (this.addressMap_.isEmpty()) { - this.addressMap_ = other.addressMap_; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - } else { - this.ensureAddressMapIsMutable(); - this.addressMap_.addAll(other.addressMap_); - } - this.onChanged(); - } - } else { - if (!other.addressMap_.isEmpty()) { - if (this.addressMapBuilder_.isEmpty()) { - this.addressMapBuilder_.dispose(); - this.addressMapBuilder_ = null; - this.addressMap_ = other.addressMap_; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.addressMapBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? this.getAddressMapFieldBuilder() - : null; - } else { - this.addressMapBuilder_.addAllMessages(other.addressMap_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - for (int i = 0; i < this.getAddressMapCount(); i++) { - if (!this.getAddressMap(i).isInitialized()) { - - return false; - } - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - this.addAddressMap(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // repeated .oslp.IndexAddressMap addressMap = 1; - private java.util.List addressMap_ = - java.util.Collections.emptyList(); - - private void ensureAddressMapIsMutable() { - if (!((this.bitField0_ & 0x00000001) == 0x00000001)) { - this.addressMap_ = - new java.util.ArrayList( - this.addressMap_); - this.bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap, - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder, - org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder> - addressMapBuilder_; - - @Override - public java.util.List - getAddressMapList() { - if (this.addressMapBuilder_ == null) { - return java.util.Collections.unmodifiableList(this.addressMap_); - } else { - return this.addressMapBuilder_.getMessageList(); - } - } - - @Override - public int getAddressMapCount() { - if (this.addressMapBuilder_ == null) { - return this.addressMap_.size(); - } else { - return this.addressMapBuilder_.getCount(); - } - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getAddressMap(final int index) { - if (this.addressMapBuilder_ == null) { - return this.addressMap_.get(index); - } else { - return this.addressMapBuilder_.getMessage(index); - } - } - - public Builder setAddressMap( - final int index, final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap value) { - if (this.addressMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureAddressMapIsMutable(); - this.addressMap_.set(index, value); - this.onChanged(); - } else { - this.addressMapBuilder_.setMessage(index, value); - } - return this; - } - - public Builder setAddressMap( - final int index, - final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder builderForValue) { - if (this.addressMapBuilder_ == null) { - this.ensureAddressMapIsMutable(); - this.addressMap_.set(index, builderForValue.build()); - this.onChanged(); - } else { - this.addressMapBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addAddressMap( - final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap value) { - if (this.addressMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureAddressMapIsMutable(); - this.addressMap_.add(value); - this.onChanged(); - } else { - this.addressMapBuilder_.addMessage(value); - } - return this; - } - - public Builder addAddressMap( - final int index, final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap value) { - if (this.addressMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureAddressMapIsMutable(); - this.addressMap_.add(index, value); - this.onChanged(); - } else { - this.addressMapBuilder_.addMessage(index, value); - } - return this; - } - - public Builder addAddressMap( - final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder builderForValue) { - if (this.addressMapBuilder_ == null) { - this.ensureAddressMapIsMutable(); - this.addressMap_.add(builderForValue.build()); - this.onChanged(); - } else { - this.addressMapBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - public Builder addAddressMap( - final int index, - final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder builderForValue) { - if (this.addressMapBuilder_ == null) { - this.ensureAddressMapIsMutable(); - this.addressMap_.add(index, builderForValue.build()); - this.onChanged(); - } else { - this.addressMapBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addAllAddressMap( - final java.lang.Iterable - values) { - if (this.addressMapBuilder_ == null) { - this.ensureAddressMapIsMutable(); - super.addAll(values, this.addressMap_); - this.onChanged(); - } else { - this.addressMapBuilder_.addAllMessages(values); - } - return this; - } - - public Builder clearAddressMap() { - if (this.addressMapBuilder_ == null) { - this.addressMap_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.onChanged(); - } else { - this.addressMapBuilder_.clear(); - } - return this; - } - - public Builder removeAddressMap(final int index) { - if (this.addressMapBuilder_ == null) { - this.ensureAddressMapIsMutable(); - this.addressMap_.remove(index); - this.onChanged(); - } else { - this.addressMapBuilder_.remove(index); - } - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder getAddressMapBuilder( - final int index) { - return this.getAddressMapFieldBuilder().getBuilder(index); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder getAddressMapOrBuilder( - final int index) { - if (this.addressMapBuilder_ == null) { - return this.addressMap_.get(index); - } else { - return this.addressMapBuilder_.getMessageOrBuilder(index); - } - } - - @Override - public java.util.List - getAddressMapOrBuilderList() { - if (this.addressMapBuilder_ != null) { - return this.addressMapBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(this.addressMap_); - } - } - - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder addAddressMapBuilder() { - return this.getAddressMapFieldBuilder() - .addBuilder(org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.getDefaultInstance()); - } - - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder addAddressMapBuilder( - final int index) { - return this.getAddressMapFieldBuilder() - .addBuilder( - index, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.getDefaultInstance()); - } - - public java.util.List - getAddressMapBuilderList() { - return this.getAddressMapFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap, - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder, - org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder> - getAddressMapFieldBuilder() { - if (this.addressMapBuilder_ == null) { - this.addressMapBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap, - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder, - org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder>( - this.addressMap_, - ((this.bitField0_ & 0x00000001) == 0x00000001), - this.getParentForChildren(), - this.isClean()); - this.addressMap_ = null; - } - return this.addressMapBuilder_; - } - - // @@protoc_insertion_point(builder_scope:oslp.RelayConfiguration) - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - static { - defaultInstance = new RelayConfiguration(true); - defaultInstance.initFields(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LocationInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LightValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.LightValue) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+         * 
+ * + * bytes index = 1; + * @return Whether the index field is set. + */ + boolean hasIndex(); + /** + *
+         * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+         * 
+ * + * bytes index = 1; + * @return The index. + */ + com.google.protobuf.ByteString getIndex(); + + /** + * bool on = 2 [features = { ... } + * @return Whether the on field is set. + */ + boolean hasOn(); + /** + * bool on = 2 [features = { ... } + * @return The on. + */ + boolean getOn(); + + /** + *
+         * [(nanopb).max_size = 1]; // 1 - 100 %
+         * 
+ * + * bytes dimValue = 3; + * @return Whether the dimValue field is set. + */ + boolean hasDimValue(); + /** + *
+         * [(nanopb).max_size = 1]; // 1 - 100 %
+         * 
+ * + * bytes dimValue = 3; + * @return The dimValue. + */ + com.google.protobuf.ByteString getDimValue(); + } + /** + * Protobuf type {@code oslp.LightValue} + */ + public static final class LightValue extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.LightValue) + LightValueOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + LightValue.class.getName()); + } + // Use LightValue.newBuilder() to construct. + private LightValue(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private LightValue() { + index_ = com.google.protobuf.ByteString.EMPTY; + dimValue_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_LightValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_LightValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.LightValue.class, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder.class); + } + + private int bitField0_; + public static final int INDEX_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+         * 
+ * + * bytes index = 1; + * @return Whether the index field is set. + */ + @java.lang.Override + public boolean hasIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+         * 
+ * + * bytes index = 1; + * @return The index. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndex() { + return index_; + } + + public static final int ON_FIELD_NUMBER = 2; + private boolean on_ = false; + /** + * bool on = 2 [features = { ... } + * @return Whether the on field is set. + */ + @java.lang.Override + public boolean hasOn() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * bool on = 2 [features = { ... } + * @return The on. + */ + @java.lang.Override + public boolean getOn() { + return on_; + } + + public static final int DIMVALUE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString dimValue_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_size = 1]; // 1 - 100 %
+         * 
+ * + * bytes dimValue = 3; + * @return Whether the dimValue field is set. + */ + @java.lang.Override + public boolean hasDimValue() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * [(nanopb).max_size = 1]; // 1 - 100 %
+         * 
+ * + * bytes dimValue = 3; + * @return The dimValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDimValue() { + return dimValue_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasOn()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - // @@protoc_insertion_point(class_scope:oslp.RelayConfiguration) - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBytes(1, index_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, on_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBytes(3, dimValue_); + } + getUnknownFields().writeTo(output); + } - public interface RelayMatrixOrBuilder extends com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - // required bytes masterRelayIndex = 1; - boolean hasMasterRelayIndex(); + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, index_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, on_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, dimValue_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - com.google.protobuf.ByteString getMasterRelayIndex(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.LightValue)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.LightValue other = (org.opensmartgridplatform.oslp.Oslp.LightValue) obj; - // required bool masterRelayOn = 2; - boolean hasMasterRelayOn(); + if (hasIndex() != other.hasIndex()) return false; + if (hasIndex()) { + if (!getIndex() + .equals(other.getIndex())) return false; + } + if (hasOn() != other.hasOn()) return false; + if (hasOn()) { + if (getOn() + != other.getOn()) return false; + } + if (hasDimValue() != other.hasDimValue()) return false; + if (hasDimValue()) { + if (!getDimValue() + .equals(other.getDimValue())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - boolean getMasterRelayOn(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIndex()) { + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex().hashCode(); + } + if (hasOn()) { + hash = (37 * hash) + ON_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOn()); + } + if (hasDimValue()) { + hash = (37 * hash) + DIMVALUE_FIELD_NUMBER; + hash = (53 * hash) + getDimValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.LightValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.LightValue parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.LightValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.LightValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.LightValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.LightValue) + org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_LightValue_descriptor; + } - // optional bytes indicesOfControlledRelaysOn = 3; - boolean hasIndicesOfControlledRelaysOn(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_LightValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.LightValue.class, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder.class); + } - com.google.protobuf.ByteString getIndicesOfControlledRelaysOn(); + // Construct using org.opensmartgridplatform.oslp.Oslp.LightValue.newBuilder() + private Builder() { - // optional bytes indicesOfControlledRelaysOff = 4; - boolean hasIndicesOfControlledRelaysOff(); + } - com.google.protobuf.ByteString getIndicesOfControlledRelaysOff(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static final class RelayMatrix extends com.google.protobuf.GeneratedMessage - implements RelayMatrixOrBuilder { - // Use RelayMatrix.newBuilder() to construct. - private RelayMatrix(final Builder builder) { - super(builder); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + index_ = com.google.protobuf.ByteString.EMPTY; + on_ = false; + dimValue_ = com.google.protobuf.ByteString.EMPTY; + return this; + } - private RelayMatrix(final boolean noInit) {} + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_LightValue_descriptor; + } - private static final RelayMatrix defaultInstance; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LightValue getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance(); + } - public static RelayMatrix getDefaultInstance() { - return defaultInstance; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LightValue build() { + org.opensmartgridplatform.oslp.Oslp.LightValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public RelayMatrix getDefaultInstanceForType() { - return defaultInstance; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LightValue buildPartial() { + org.opensmartgridplatform.oslp.Oslp.LightValue result = new org.opensmartgridplatform.oslp.Oslp.LightValue(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayMatrix_descriptor; - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.LightValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.index_ = index_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.on_ = on_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dimValue_ = dimValue_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_RelayMatrix_fieldAccessorTable; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.LightValue) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.LightValue)other); + } else { + super.mergeFrom(other); + return this; + } + } - private int bitField0_; - // required bytes masterRelayIndex = 1; - public static final int MASTERRELAYINDEX_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString masterRelayIndex_; + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.LightValue other) { + if (other == org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance()) return this; + if (other.hasIndex()) { + setIndex(other.getIndex()); + } + if (other.hasOn()) { + setOn(other.getOn()); + } + if (other.hasDimValue()) { + setDimValue(other.getDimValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public boolean hasMasterRelayIndex() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasOn()) { + return false; + } + return true; + } - @Override - public com.google.protobuf.ByteString getMasterRelayIndex() { - return this.masterRelayIndex_; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + index_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + on_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + dimValue_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+             * 
+ * + * bytes index = 1; + * @return Whether the index field is set. + */ + @java.lang.Override + public boolean hasIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+             * 
+ * + * bytes index = 1; + * @return The index. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndex() { + return index_; + } + /** + *
+             * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+             * 
+ * + * bytes index = 1; + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + index_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 1]; // Index number of connected light (DALI), none means all connected lights.
+             * 
+ * + * bytes index = 1; + * @return This builder for chaining. + */ + public Builder clearIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + index_ = getDefaultInstance().getIndex(); + onChanged(); + return this; + } - // required bool masterRelayOn = 2; - public static final int MASTERRELAYON_FIELD_NUMBER = 2; - private boolean masterRelayOn_; + private boolean on_ ; + /** + * bool on = 2 [features = { ... } + * @return Whether the on field is set. + */ + @java.lang.Override + public boolean hasOn() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * bool on = 2 [features = { ... } + * @return The on. + */ + @java.lang.Override + public boolean getOn() { + return on_; + } + /** + * bool on = 2 [features = { ... } + * @param value The on to set. + * @return This builder for chaining. + */ + public Builder setOn(boolean value) { + + on_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * bool on = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearOn() { + bitField0_ = (bitField0_ & ~0x00000002); + on_ = false; + onChanged(); + return this; + } - @Override - public boolean hasMasterRelayOn() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + private com.google.protobuf.ByteString dimValue_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_size = 1]; // 1 - 100 %
+             * 
+ * + * bytes dimValue = 3; + * @return Whether the dimValue field is set. + */ + @java.lang.Override + public boolean hasDimValue() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * [(nanopb).max_size = 1]; // 1 - 100 %
+             * 
+ * + * bytes dimValue = 3; + * @return The dimValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDimValue() { + return dimValue_; + } + /** + *
+             * [(nanopb).max_size = 1]; // 1 - 100 %
+             * 
+ * + * bytes dimValue = 3; + * @param value The dimValue to set. + * @return This builder for chaining. + */ + public Builder setDimValue(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + dimValue_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 1]; // 1 - 100 %
+             * 
+ * + * bytes dimValue = 3; + * @return This builder for chaining. + */ + public Builder clearDimValue() { + bitField0_ = (bitField0_ & ~0x00000004); + dimValue_ = getDefaultInstance().getDimValue(); + onChanged(); + return this; + } - @Override - public boolean getMasterRelayOn() { - return this.masterRelayOn_; - } + // @@protoc_insertion_point(builder_scope:oslp.LightValue) + } - // optional bytes indicesOfControlledRelaysOn = 3; - public static final int INDICESOFCONTROLLEDRELAYSON_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString indicesOfControlledRelaysOn_; + // @@protoc_insertion_point(class_scope:oslp.LightValue) + private static final org.opensmartgridplatform.oslp.Oslp.LightValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.LightValue(); + } - @Override - public boolean hasIndicesOfControlledRelaysOn() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } + public static org.opensmartgridplatform.oslp.Oslp.LightValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public com.google.protobuf.ByteString getIndicesOfControlledRelaysOn() { - return this.indicesOfControlledRelaysOn_; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LightValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - // optional bytes indicesOfControlledRelaysOff = 4; - public static final int INDICESOFCONTROLLEDRELAYSOFF_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString indicesOfControlledRelaysOff_; + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LightValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EventNotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.EventNotification) + com.google.protobuf.MessageOrBuilder { + + /** + * .oslp.Event event = 1 [features = { ... } + * @return Whether the event field is set. + */ + boolean hasEvent(); + /** + * .oslp.Event event = 1 [features = { ... } + * @return The enum numeric value on the wire for event. + */ + int getEventValue(); + /** + * .oslp.Event event = 1 [features = { ... } + * @return The event. + */ + org.opensmartgridplatform.oslp.Oslp.Event getEvent(); + + /** + *
+         * [(nanopb).max_size=1];
+         * 
+ * + * bytes index = 2; + * @return Whether the index field is set. + */ + boolean hasIndex(); + /** + *
+         * [(nanopb).max_size=1];
+         * 
+ * + * bytes index = 2; + * @return The index. + */ + com.google.protobuf.ByteString getIndex(); + + /** + *
+         * [(nanopb).max_size = 81];
+         * 
+ * + * string description = 3; + * @return Whether the description field is set. + */ + boolean hasDescription(); + /** + *
+         * [(nanopb).max_size = 81];
+         * 
+ * + * string description = 3; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+         * [(nanopb).max_size = 81];
+         * 
+ * + * string description = 3; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+         * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC, indicates the date and time of the event.
+         * 
+ * + * string timestamp = 4; + * @return Whether the timestamp field is set. + */ + boolean hasTimestamp(); + /** + *
+         * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC, indicates the date and time of the event.
+         * 
+ * + * string timestamp = 4; + * @return The timestamp. + */ + java.lang.String getTimestamp(); + /** + *
+         * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC, indicates the date and time of the event.
+         * 
+ * + * string timestamp = 4; + * @return The bytes for timestamp. + */ + com.google.protobuf.ByteString + getTimestampBytes(); + } + /** + * Protobuf type {@code oslp.EventNotification} + */ + public static final class EventNotification extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.EventNotification) + EventNotificationOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + EventNotification.class.getName()); + } + // Use EventNotification.newBuilder() to construct. + private EventNotification(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private EventNotification() { + event_ = 0; + index_ = com.google.protobuf.ByteString.EMPTY; + description_ = ""; + timestamp_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.EventNotification.class, org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder.class); + } + + private int bitField0_; + public static final int EVENT_FIELD_NUMBER = 1; + private int event_ = 0; + /** + * .oslp.Event event = 1 [features = { ... } + * @return Whether the event field is set. + */ + @java.lang.Override public boolean hasEvent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Event event = 1 [features = { ... } + * @return The enum numeric value on the wire for event. + */ + @java.lang.Override public int getEventValue() { + return event_; + } + /** + * .oslp.Event event = 1 [features = { ... } + * @return The event. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Event getEvent() { + org.opensmartgridplatform.oslp.Oslp.Event result = org.opensmartgridplatform.oslp.Oslp.Event.forNumber(event_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Event.UNRECOGNIZED : result; + } + + public static final int INDEX_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_size=1];
+         * 
+ * + * bytes index = 2; + * @return Whether the index field is set. + */ + @java.lang.Override + public boolean hasIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * [(nanopb).max_size=1];
+         * 
+ * + * bytes index = 2; + * @return The index. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndex() { + return index_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + *
+         * [(nanopb).max_size = 81];
+         * 
+ * + * string description = 3; + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * [(nanopb).max_size = 81];
+         * 
+ * + * string description = 3; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 81];
+         * 
+ * + * string description = 3; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @Override - public boolean hasIndicesOfControlledRelaysOff() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } + public static final int TIMESTAMP_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object timestamp_ = ""; + /** + *
+         * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC, indicates the date and time of the event.
+         * 
+ * + * string timestamp = 4; + * @return Whether the timestamp field is set. + */ + @java.lang.Override + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+         * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC, indicates the date and time of the event.
+         * 
+ * + * string timestamp = 4; + * @return The timestamp. + */ + @java.lang.Override + public java.lang.String getTimestamp() { + java.lang.Object ref = timestamp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timestamp_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC, indicates the date and time of the event.
+         * 
+ * + * string timestamp = 4; + * @return The bytes for timestamp. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTimestampBytes() { + java.lang.Object ref = timestamp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + timestamp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @Override - public com.google.protobuf.ByteString getIndicesOfControlledRelaysOff() { - return this.indicesOfControlledRelaysOff_; - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private void initFields() { - this.masterRelayIndex_ = com.google.protobuf.ByteString.EMPTY; - this.masterRelayOn_ = false; - this.indicesOfControlledRelaysOn_ = com.google.protobuf.ByteString.EMPTY; - this.indicesOfControlledRelaysOff_ = com.google.protobuf.ByteString.EMPTY; - } + if (!hasEvent()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasMasterRelayIndex()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasMasterRelayOn()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, event_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBytes(2, index_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, timestamp_); + } + getUnknownFields().writeTo(output); + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, this.masterRelayIndex_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBool(2, this.masterRelayOn_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, this.indicesOfControlledRelaysOn_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, this.indicesOfControlledRelaysOff_); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, this.masterRelayIndex_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, this.masterRelayOn_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 3, this.indicesOfControlledRelaysOn_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 4, this.indicesOfControlledRelaysOff_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, event_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, index_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, timestamp_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.EventNotification)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.EventNotification other = (org.opensmartgridplatform.oslp.Oslp.EventNotification) obj; - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + if (hasEvent() != other.hasEvent()) return false; + if (hasEvent()) { + if (event_ != other.event_) return false; + } + if (hasIndex() != other.hasIndex()) return false; + if (hasIndex()) { + if (!getIndex() + .equals(other.getIndex())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription() + .equals(other.getDescription())) return false; + } + if (hasTimestamp() != other.hasTimestamp()) return false; + if (hasTimestamp()) { + if (!getTimestamp() + .equals(other.getTimestamp())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEvent()) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + event_; + } + if (hasIndex()) { + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasTimestamp()) { + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getTimestamp().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.EventNotification parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.EventNotification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.EventNotification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.EventNotification) + org.opensmartgridplatform.oslp.Oslp.EventNotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotification_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.EventNotification.class, org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder.class); + } - public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.EventNotification.newBuilder() + private Builder() { - public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + } - public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + event_ = 0; + index_ = com.google.protobuf.ByteString.EMPTY; + description_ = ""; + timestamp_ = ""; + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_EventNotification_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotification getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.EventNotification.getDefaultInstance(); + } - public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotification build() { + org.opensmartgridplatform.oslp.Oslp.EventNotification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotification buildPartial() { + org.opensmartgridplatform.oslp.Oslp.EventNotification result = new org.opensmartgridplatform.oslp.Oslp.EventNotification(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static Builder newBuilder() { - return Builder.create(); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.EventNotification result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.event_ = event_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.index_ = index_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timestamp_ = timestamp_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.EventNotification) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.EventNotification)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.RelayMatrix prototype) { - return newBuilder().mergeFrom(prototype); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.EventNotification other) { + if (other == org.opensmartgridplatform.oslp.Oslp.EventNotification.getDefaultInstance()) return this; + if (other.hasEvent()) { + setEventValue(other.getEventValue()); + } + if (other.hasIndex()) { + setIndex(other.getIndex()); + } + if (other.hasDescription()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTimestamp()) { + timestamp_ = other.timestamp_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasEvent()) { + return false; + } + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + event_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + index_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + timestamp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int event_ = 0; + /** + * .oslp.Event event = 1 [features = { ... } + * @return Whether the event field is set. + */ + @java.lang.Override public boolean hasEvent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Event event = 1 [features = { ... } + * @return The enum numeric value on the wire for event. + */ + @java.lang.Override public int getEventValue() { + return event_; + } + /** + * .oslp.Event event = 1 [features = { ... } + * @param value The enum numeric value on the wire for event to set. + * @return This builder for chaining. + */ + public Builder setEventValue(int value) { + event_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Event event = 1 [features = { ... } + * @return The event. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Event getEvent() { + org.opensmartgridplatform.oslp.Oslp.Event result = org.opensmartgridplatform.oslp.Oslp.Event.forNumber(event_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Event.UNRECOGNIZED : result; + } + /** + * .oslp.Event event = 1 [features = { ... } + * @param value The event to set. + * @return This builder for chaining. + */ + public Builder setEvent(org.opensmartgridplatform.oslp.Oslp.Event value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + event_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Event event = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearEvent() { + bitField0_ = (bitField0_ & ~0x00000001); + event_ = 0; + onChanged(); + return this; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayMatrix_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_RelayMatrix_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.RelayMatrix.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.masterRelayIndex_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.masterRelayOn_ = false; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.indicesOfControlledRelaysOn_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.indicesOfControlledRelaysOff_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000008); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.RelayMatrix.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayMatrix getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.RelayMatrix.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayMatrix build() { - final org.opensmartgridplatform.oslp.Oslp.RelayMatrix result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.RelayMatrix buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.RelayMatrix result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayMatrix buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.RelayMatrix result = - new org.opensmartgridplatform.oslp.Oslp.RelayMatrix(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.masterRelayIndex_ = this.masterRelayIndex_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.masterRelayOn_ = this.masterRelayOn_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.indicesOfControlledRelaysOn_ = this.indicesOfControlledRelaysOn_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.indicesOfControlledRelaysOff_ = this.indicesOfControlledRelaysOff_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.RelayMatrix) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.RelayMatrix) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.RelayMatrix other) { - if (other == org.opensmartgridplatform.oslp.Oslp.RelayMatrix.getDefaultInstance()) { - return this; - } - if (other.hasMasterRelayIndex()) { - this.setMasterRelayIndex(other.getMasterRelayIndex()); - } - if (other.hasMasterRelayOn()) { - this.setMasterRelayOn(other.getMasterRelayOn()); - } - if (other.hasIndicesOfControlledRelaysOn()) { - this.setIndicesOfControlledRelaysOn(other.getIndicesOfControlledRelaysOn()); - } - if (other.hasIndicesOfControlledRelaysOff()) { - this.setIndicesOfControlledRelaysOff(other.getIndicesOfControlledRelaysOff()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasMasterRelayIndex()) { - - return false; - } - if (!this.hasMasterRelayOn()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - this.bitField0_ |= 0x00000001; - this.masterRelayIndex_ = input.readBytes(); - break; - } - case 16: - { - this.bitField0_ |= 0x00000002; - this.masterRelayOn_ = input.readBool(); - break; - } - case 26: - { - this.bitField0_ |= 0x00000004; - this.indicesOfControlledRelaysOn_ = input.readBytes(); - break; - } - case 34: - { - this.bitField0_ |= 0x00000008; - this.indicesOfControlledRelaysOff_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required bytes masterRelayIndex = 1; - private com.google.protobuf.ByteString masterRelayIndex_ = - com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasMasterRelayIndex() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public com.google.protobuf.ByteString getMasterRelayIndex() { - return this.masterRelayIndex_; - } - - public Builder setMasterRelayIndex(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.masterRelayIndex_ = value; - this.onChanged(); - return this; - } - - public Builder clearMasterRelayIndex() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.masterRelayIndex_ = getDefaultInstance().getMasterRelayIndex(); - this.onChanged(); - return this; - } - - // required bool masterRelayOn = 2; - private boolean masterRelayOn_; - - @Override - public boolean hasMasterRelayOn() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public boolean getMasterRelayOn() { - return this.masterRelayOn_; - } - - public Builder setMasterRelayOn(final boolean value) { - this.bitField0_ |= 0x00000002; - this.masterRelayOn_ = value; - this.onChanged(); - return this; - } - - public Builder clearMasterRelayOn() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.masterRelayOn_ = false; - this.onChanged(); - return this; - } - - // optional bytes indicesOfControlledRelaysOn = 3; - private com.google.protobuf.ByteString indicesOfControlledRelaysOn_ = - com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasIndicesOfControlledRelaysOn() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public com.google.protobuf.ByteString getIndicesOfControlledRelaysOn() { - return this.indicesOfControlledRelaysOn_; - } - - public Builder setIndicesOfControlledRelaysOn(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000004; - this.indicesOfControlledRelaysOn_ = value; - this.onChanged(); - return this; - } - - public Builder clearIndicesOfControlledRelaysOn() { - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.indicesOfControlledRelaysOn_ = getDefaultInstance().getIndicesOfControlledRelaysOn(); - this.onChanged(); - return this; - } - - // optional bytes indicesOfControlledRelaysOff = 4; - private com.google.protobuf.ByteString indicesOfControlledRelaysOff_ = - com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasIndicesOfControlledRelaysOff() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public com.google.protobuf.ByteString getIndicesOfControlledRelaysOff() { - return this.indicesOfControlledRelaysOff_; - } - - public Builder setIndicesOfControlledRelaysOff(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000008; - this.indicesOfControlledRelaysOff_ = value; - this.onChanged(); - return this; - } - - public Builder clearIndicesOfControlledRelaysOff() { - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.indicesOfControlledRelaysOff_ = getDefaultInstance().getIndicesOfControlledRelaysOff(); - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.RelayMatrix) - } + private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_size=1];
+             * 
+ * + * bytes index = 2; + * @return Whether the index field is set. + */ + @java.lang.Override + public boolean hasIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * [(nanopb).max_size=1];
+             * 
+ * + * bytes index = 2; + * @return The index. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndex() { + return index_; + } + /** + *
+             * [(nanopb).max_size=1];
+             * 
+ * + * bytes index = 2; + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + index_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size=1];
+             * 
+ * + * bytes index = 2; + * @return This builder for chaining. + */ + public Builder clearIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + index_ = getDefaultInstance().getIndex(); + onChanged(); + return this; + } - static { - defaultInstance = new RelayMatrix(true); - defaultInstance.initFields(); - } + private java.lang.Object description_ = ""; + /** + *
+             * [(nanopb).max_size = 81];
+             * 
+ * + * string description = 3; + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * [(nanopb).max_size = 81];
+             * 
+ * + * string description = 3; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 81];
+             * 
+ * + * string description = 3; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 81];
+             * 
+ * + * string description = 3; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 81];
+             * 
+ * + * string description = 3; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 81];
+             * 
+ * + * string description = 3; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:oslp.RelayMatrix) - } + private java.lang.Object timestamp_ = ""; + /** + *
+             * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC, indicates the date and time of the event.
+             * 
+ * + * string timestamp = 4; + * @return Whether the timestamp field is set. + */ + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+             * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC, indicates the date and time of the event.
+             * 
+ * + * string timestamp = 4; + * @return The timestamp. + */ + public java.lang.String getTimestamp() { + java.lang.Object ref = timestamp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timestamp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC, indicates the date and time of the event.
+             * 
+ * + * string timestamp = 4; + * @return The bytes for timestamp. + */ + public com.google.protobuf.ByteString + getTimestampBytes() { + java.lang.Object ref = timestamp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + timestamp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC, indicates the date and time of the event.
+             * 
+ * + * string timestamp = 4; + * @param value The timestamp to set. + * @return This builder for chaining. + */ + public Builder setTimestamp( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + timestamp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC, indicates the date and time of the event.
+             * 
+ * + * string timestamp = 4; + * @return This builder for chaining. + */ + public Builder clearTimestamp() { + timestamp_ = getDefaultInstance().getTimestamp(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC, indicates the date and time of the event.
+             * 
+ * + * string timestamp = 4; + * @param value The bytes for timestamp to set. + * @return This builder for chaining. + */ + public Builder setTimestampBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + timestamp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - public interface IndexAddressMapOrBuilder extends com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(builder_scope:oslp.EventNotification) + } - // required bytes index = 1; - boolean hasIndex(); + // @@protoc_insertion_point(class_scope:oslp.EventNotification) + private static final org.opensmartgridplatform.oslp.Oslp.EventNotification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.EventNotification(); + } - com.google.protobuf.ByteString getIndex(); + public static org.opensmartgridplatform.oslp.Oslp.EventNotification getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // required bytes address = 2; - boolean hasAddress(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventNotification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - com.google.protobuf.ByteString getAddress(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.EventNotification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ScheduleOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.Schedule) + com.google.protobuf.MessageOrBuilder { + + /** + * .oslp.Weekday weekday = 1 [features = { ... } + * @return Whether the weekday field is set. + */ + boolean hasWeekday(); + /** + * .oslp.Weekday weekday = 1 [features = { ... } + * @return The enum numeric value on the wire for weekday. + */ + int getWeekdayValue(); + /** + * .oslp.Weekday weekday = 1 [features = { ... } + * @return The weekday. + */ + org.opensmartgridplatform.oslp.Oslp.Weekday getWeekday(); + + /** + *
+         * [(nanopb).max_size = 9]; //- Format YYYYMMDD UTC, indicates the range of a schedule entry, from startDay.
+         * 
+ * + * string startDay = 2; + * @return Whether the startDay field is set. + */ + boolean hasStartDay(); + /** + *
+         * [(nanopb).max_size = 9]; //- Format YYYYMMDD UTC, indicates the range of a schedule entry, from startDay.
+         * 
+ * + * string startDay = 2; + * @return The startDay. + */ + java.lang.String getStartDay(); + /** + *
+         * [(nanopb).max_size = 9]; //- Format YYYYMMDD UTC, indicates the range of a schedule entry, from startDay.
+         * 
+ * + * string startDay = 2; + * @return The bytes for startDay. + */ + com.google.protobuf.ByteString + getStartDayBytes(); + + /** + *
+         * [(nanopb).max_size = 9]; // - Format YYYYMMDD UTC, including endDay.
+         * 
+ * + * string endDay = 3; + * @return Whether the endDay field is set. + */ + boolean hasEndDay(); + /** + *
+         * [(nanopb).max_size = 9]; // - Format YYYYMMDD UTC, including endDay.
+         * 
+ * + * string endDay = 3; + * @return The endDay. + */ + java.lang.String getEndDay(); + /** + *
+         * [(nanopb).max_size = 9]; // - Format YYYYMMDD UTC, including endDay.
+         * 
+ * + * string endDay = 3; + * @return The bytes for endDay. + */ + com.google.protobuf.ByteString + getEndDayBytes(); + + /** + * .oslp.ActionTime actionTime = 4 [features = { ... } + * @return Whether the actionTime field is set. + */ + boolean hasActionTime(); + /** + * .oslp.ActionTime actionTime = 4 [features = { ... } + * @return The enum numeric value on the wire for actionTime. + */ + int getActionTimeValue(); + /** + * .oslp.ActionTime actionTime = 4 [features = { ... } + * @return The actionTime. + */ + org.opensmartgridplatform.oslp.Oslp.ActionTime getActionTime(); + + /** + *
+         * [(nanopb).max_size = 7]; // - Format hhmmss localtime set when actionTime = ABSOLUTETIME.
+         * 
+ * + * string time = 5; + * @return Whether the time field is set. + */ + boolean hasTime(); + /** + *
+         * [(nanopb).max_size = 7]; // - Format hhmmss localtime set when actionTime = ABSOLUTETIME.
+         * 
+ * + * string time = 5; + * @return The time. + */ + java.lang.String getTime(); + /** + *
+         * [(nanopb).max_size = 7]; // - Format hhmmss localtime set when actionTime = ABSOLUTETIME.
+         * 
+ * + * string time = 5; + * @return The bytes for time. + */ + com.google.protobuf.ByteString + getTimeBytes(); + + /** + *
+         * Window to wait for light sensor trigger.
+         * 
+ * + * .oslp.Window window = 6; + * @return Whether the window field is set. + */ + boolean hasWindow(); + /** + *
+         * Window to wait for light sensor trigger.
+         * 
+ * + * .oslp.Window window = 6; + * @return The window. + */ + org.opensmartgridplatform.oslp.Oslp.Window getWindow(); + /** + *
+         * Window to wait for light sensor trigger.
+         * 
+ * + * .oslp.Window window = 6; + */ + org.opensmartgridplatform.oslp.Oslp.WindowOrBuilder getWindowOrBuilder(); + + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 7; + */ + java.util.List + getValueList(); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 7; + */ + org.opensmartgridplatform.oslp.Oslp.LightValue getValue(int index); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 7; + */ + int getValueCount(); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 7; + */ + java.util.List + getValueOrBuilderList(); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 7; + */ + org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValueOrBuilder( + int index); + + /** + *
+         * React to setTransition or switch astronomical.
+         * 
+ * + * .oslp.TriggerType triggerType = 8; + * @return Whether the triggerType field is set. + */ + boolean hasTriggerType(); + /** + *
+         * React to setTransition or switch astronomical.
+         * 
+ * + * .oslp.TriggerType triggerType = 8; + * @return The enum numeric value on the wire for triggerType. + */ + int getTriggerTypeValue(); + /** + *
+         * React to setTransition or switch astronomical.
+         * 
+ * + * .oslp.TriggerType triggerType = 8; + * @return The triggerType. + */ + org.opensmartgridplatform.oslp.Oslp.TriggerType getTriggerType(); + + /** + *
+         * Minimal time (in seconds) the lights should burn before deciding to switch the lights on.
+         * 
+ * + * uint32 minimumLightsOn = 9; + * @return Whether the minimumLightsOn field is set. + */ + boolean hasMinimumLightsOn(); + /** + *
+         * Minimal time (in seconds) the lights should burn before deciding to switch the lights on.
+         * 
+ * + * uint32 minimumLightsOn = 9; + * @return The minimumLightsOn. + */ + int getMinimumLightsOn(); + + /** + *
+         * Index of schedule entry in the schedule list.
+         * 
+ * + * uint32 index = 10; + * @return Whether the index field is set. + */ + boolean hasIndex(); + /** + *
+         * Index of schedule entry in the schedule list.
+         * 
+ * + * uint32 index = 10; + * @return The index. + */ + int getIndex(); + + /** + *
+         * Is this schedule entry enabled?
+         * 
+ * + * bool isEnabled = 11; + * @return Whether the isEnabled field is set. + */ + boolean hasIsEnabled(); + /** + *
+         * Is this schedule entry enabled?
+         * 
+ * + * bool isEnabled = 11; + * @return The isEnabled. + */ + boolean getIsEnabled(); + } + /** + * Protobuf type {@code oslp.Schedule} + */ + public static final class Schedule extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.Schedule) + ScheduleOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + Schedule.class.getName()); + } + // Use Schedule.newBuilder() to construct. + private Schedule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Schedule() { + weekday_ = 0; + startDay_ = ""; + endDay_ = ""; + actionTime_ = 0; + time_ = ""; + value_ = java.util.Collections.emptyList(); + triggerType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Schedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.Schedule.class, org.opensmartgridplatform.oslp.Oslp.Schedule.Builder.class); + } + + private int bitField0_; + public static final int WEEKDAY_FIELD_NUMBER = 1; + private int weekday_ = 0; + /** + * .oslp.Weekday weekday = 1 [features = { ... } + * @return Whether the weekday field is set. + */ + @java.lang.Override public boolean hasWeekday() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Weekday weekday = 1 [features = { ... } + * @return The enum numeric value on the wire for weekday. + */ + @java.lang.Override public int getWeekdayValue() { + return weekday_; + } + /** + * .oslp.Weekday weekday = 1 [features = { ... } + * @return The weekday. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.Weekday getWeekday() { + org.opensmartgridplatform.oslp.Oslp.Weekday result = org.opensmartgridplatform.oslp.Oslp.Weekday.forNumber(weekday_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Weekday.UNRECOGNIZED : result; + } + + public static final int STARTDAY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object startDay_ = ""; + /** + *
+         * [(nanopb).max_size = 9]; //- Format YYYYMMDD UTC, indicates the range of a schedule entry, from startDay.
+         * 
+ * + * string startDay = 2; + * @return Whether the startDay field is set. + */ + @java.lang.Override + public boolean hasStartDay() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * [(nanopb).max_size = 9]; //- Format YYYYMMDD UTC, indicates the range of a schedule entry, from startDay.
+         * 
+ * + * string startDay = 2; + * @return The startDay. + */ + @java.lang.Override + public java.lang.String getStartDay() { + java.lang.Object ref = startDay_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startDay_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 9]; //- Format YYYYMMDD UTC, indicates the range of a schedule entry, from startDay.
+         * 
+ * + * string startDay = 2; + * @return The bytes for startDay. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStartDayBytes() { + java.lang.Object ref = startDay_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startDay_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // required .oslp.RelayType relayType = 3; - boolean hasRelayType(); + public static final int ENDDAY_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object endDay_ = ""; + /** + *
+         * [(nanopb).max_size = 9]; // - Format YYYYMMDD UTC, including endDay.
+         * 
+ * + * string endDay = 3; + * @return Whether the endDay field is set. + */ + @java.lang.Override + public boolean hasEndDay() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * [(nanopb).max_size = 9]; // - Format YYYYMMDD UTC, including endDay.
+         * 
+ * + * string endDay = 3; + * @return The endDay. + */ + @java.lang.Override + public java.lang.String getEndDay() { + java.lang.Object ref = endDay_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endDay_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 9]; // - Format YYYYMMDD UTC, including endDay.
+         * 
+ * + * string endDay = 3; + * @return The bytes for endDay. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEndDayBytes() { + java.lang.Object ref = endDay_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endDay_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - org.opensmartgridplatform.oslp.Oslp.RelayType getRelayType(); - } + public static final int ACTIONTIME_FIELD_NUMBER = 4; + private int actionTime_ = 0; + /** + * .oslp.ActionTime actionTime = 4 [features = { ... } + * @return Whether the actionTime field is set. + */ + @java.lang.Override public boolean hasActionTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .oslp.ActionTime actionTime = 4 [features = { ... } + * @return The enum numeric value on the wire for actionTime. + */ + @java.lang.Override public int getActionTimeValue() { + return actionTime_; + } + /** + * .oslp.ActionTime actionTime = 4 [features = { ... } + * @return The actionTime. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.ActionTime getActionTime() { + org.opensmartgridplatform.oslp.Oslp.ActionTime result = org.opensmartgridplatform.oslp.Oslp.ActionTime.forNumber(actionTime_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.ActionTime.UNRECOGNIZED : result; + } + + public static final int TIME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object time_ = ""; + /** + *
+         * [(nanopb).max_size = 7]; // - Format hhmmss localtime set when actionTime = ABSOLUTETIME.
+         * 
+ * + * string time = 5; + * @return Whether the time field is set. + */ + @java.lang.Override + public boolean hasTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+         * [(nanopb).max_size = 7]; // - Format hhmmss localtime set when actionTime = ABSOLUTETIME.
+         * 
+ * + * string time = 5; + * @return The time. + */ + @java.lang.Override + public java.lang.String getTime() { + java.lang.Object ref = time_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + time_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 7]; // - Format hhmmss localtime set when actionTime = ABSOLUTETIME.
+         * 
+ * + * string time = 5; + * @return The bytes for time. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTimeBytes() { + java.lang.Object ref = time_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + time_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final class IndexAddressMap extends com.google.protobuf.GeneratedMessage - implements IndexAddressMapOrBuilder { - // Use IndexAddressMap.newBuilder() to construct. - private IndexAddressMap(final Builder builder) { - super(builder); - } + public static final int WINDOW_FIELD_NUMBER = 6; + private org.opensmartgridplatform.oslp.Oslp.Window window_; + /** + *
+         * Window to wait for light sensor trigger.
+         * 
+ * + * .oslp.Window window = 6; + * @return Whether the window field is set. + */ + @java.lang.Override + public boolean hasWindow() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+         * Window to wait for light sensor trigger.
+         * 
+ * + * .oslp.Window window = 6; + * @return The window. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Window getWindow() { + return window_ == null ? org.opensmartgridplatform.oslp.Oslp.Window.getDefaultInstance() : window_; + } + /** + *
+         * Window to wait for light sensor trigger.
+         * 
+ * + * .oslp.Window window = 6; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.WindowOrBuilder getWindowOrBuilder() { + return window_ == null ? org.opensmartgridplatform.oslp.Oslp.Window.getDefaultInstance() : window_; + } + + public static final int VALUE_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private java.util.List value_; + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 7; + */ + @java.lang.Override + public java.util.List getValueList() { + return value_; + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 7; + */ + @java.lang.Override + public java.util.List + getValueOrBuilderList() { + return value_; + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 7; + */ + @java.lang.Override + public int getValueCount() { + return value_.size(); + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 7; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LightValue getValue(int index) { + return value_.get(index); + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.LightValue value = 7; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValueOrBuilder( + int index) { + return value_.get(index); + } + + public static final int TRIGGERTYPE_FIELD_NUMBER = 8; + private int triggerType_ = 0; + /** + *
+         * React to setTransition or switch astronomical.
+         * 
+ * + * .oslp.TriggerType triggerType = 8; + * @return Whether the triggerType field is set. + */ + @java.lang.Override public boolean hasTriggerType() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+         * React to setTransition or switch astronomical.
+         * 
+ * + * .oslp.TriggerType triggerType = 8; + * @return The enum numeric value on the wire for triggerType. + */ + @java.lang.Override public int getTriggerTypeValue() { + return triggerType_; + } + /** + *
+         * React to setTransition or switch astronomical.
+         * 
+ * + * .oslp.TriggerType triggerType = 8; + * @return The triggerType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.TriggerType getTriggerType() { + org.opensmartgridplatform.oslp.Oslp.TriggerType result = org.opensmartgridplatform.oslp.Oslp.TriggerType.forNumber(triggerType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.TriggerType.UNRECOGNIZED : result; + } + + public static final int MINIMUMLIGHTSON_FIELD_NUMBER = 9; + private int minimumLightsOn_ = 0; + /** + *
+         * Minimal time (in seconds) the lights should burn before deciding to switch the lights on.
+         * 
+ * + * uint32 minimumLightsOn = 9; + * @return Whether the minimumLightsOn field is set. + */ + @java.lang.Override + public boolean hasMinimumLightsOn() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+         * Minimal time (in seconds) the lights should burn before deciding to switch the lights on.
+         * 
+ * + * uint32 minimumLightsOn = 9; + * @return The minimumLightsOn. + */ + @java.lang.Override + public int getMinimumLightsOn() { + return minimumLightsOn_; + } + + public static final int INDEX_FIELD_NUMBER = 10; + private int index_ = 0; + /** + *
+         * Index of schedule entry in the schedule list.
+         * 
+ * + * uint32 index = 10; + * @return Whether the index field is set. + */ + @java.lang.Override + public boolean hasIndex() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+         * Index of schedule entry in the schedule list.
+         * 
+ * + * uint32 index = 10; + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + public static final int ISENABLED_FIELD_NUMBER = 11; + private boolean isEnabled_ = false; + /** + *
+         * Is this schedule entry enabled?
+         * 
+ * + * bool isEnabled = 11; + * @return Whether the isEnabled field is set. + */ + @java.lang.Override + public boolean hasIsEnabled() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+         * Is this schedule entry enabled?
+         * 
+ * + * bool isEnabled = 11; + * @return The isEnabled. + */ + @java.lang.Override + public boolean getIsEnabled() { + return isEnabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasWeekday()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasActionTime()) { + memoizedIsInitialized = 0; + return false; + } + if (hasWindow()) { + if (!getWindow().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getValueCount(); i++) { + if (!getValue(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - private IndexAddressMap(final boolean noInit) {} + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, weekday_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, startDay_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, endDay_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(4, actionTime_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, time_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getWindow()); + } + for (int i = 0; i < value_.size(); i++) { + output.writeMessage(7, value_.get(i)); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeEnum(8, triggerType_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeUInt32(9, minimumLightsOn_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeUInt32(10, index_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeBool(11, isEnabled_); + } + getUnknownFields().writeTo(output); + } - private static final IndexAddressMap defaultInstance; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static IndexAddressMap getDefaultInstance() { - return defaultInstance; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, weekday_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, startDay_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, endDay_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, actionTime_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, time_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getWindow()); + } + for (int i = 0; i < value_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, value_.get(i)); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, triggerType_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, minimumLightsOn_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(10, index_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, isEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @Override - public IndexAddressMap getDefaultInstanceForType() { - return defaultInstance; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.Schedule)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.Schedule other = (org.opensmartgridplatform.oslp.Oslp.Schedule) obj; - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_IndexAddressMap_descriptor; - } + if (hasWeekday() != other.hasWeekday()) return false; + if (hasWeekday()) { + if (weekday_ != other.weekday_) return false; + } + if (hasStartDay() != other.hasStartDay()) return false; + if (hasStartDay()) { + if (!getStartDay() + .equals(other.getStartDay())) return false; + } + if (hasEndDay() != other.hasEndDay()) return false; + if (hasEndDay()) { + if (!getEndDay() + .equals(other.getEndDay())) return false; + } + if (hasActionTime() != other.hasActionTime()) return false; + if (hasActionTime()) { + if (actionTime_ != other.actionTime_) return false; + } + if (hasTime() != other.hasTime()) return false; + if (hasTime()) { + if (!getTime() + .equals(other.getTime())) return false; + } + if (hasWindow() != other.hasWindow()) return false; + if (hasWindow()) { + if (!getWindow() + .equals(other.getWindow())) return false; + } + if (!getValueList() + .equals(other.getValueList())) return false; + if (hasTriggerType() != other.hasTriggerType()) return false; + if (hasTriggerType()) { + if (triggerType_ != other.triggerType_) return false; + } + if (hasMinimumLightsOn() != other.hasMinimumLightsOn()) return false; + if (hasMinimumLightsOn()) { + if (getMinimumLightsOn() + != other.getMinimumLightsOn()) return false; + } + if (hasIndex() != other.hasIndex()) return false; + if (hasIndex()) { + if (getIndex() + != other.getIndex()) return false; + } + if (hasIsEnabled() != other.hasIsEnabled()) return false; + if (hasIsEnabled()) { + if (getIsEnabled() + != other.getIsEnabled()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_IndexAddressMap_fieldAccessorTable; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWeekday()) { + hash = (37 * hash) + WEEKDAY_FIELD_NUMBER; + hash = (53 * hash) + weekday_; + } + if (hasStartDay()) { + hash = (37 * hash) + STARTDAY_FIELD_NUMBER; + hash = (53 * hash) + getStartDay().hashCode(); + } + if (hasEndDay()) { + hash = (37 * hash) + ENDDAY_FIELD_NUMBER; + hash = (53 * hash) + getEndDay().hashCode(); + } + if (hasActionTime()) { + hash = (37 * hash) + ACTIONTIME_FIELD_NUMBER; + hash = (53 * hash) + actionTime_; + } + if (hasTime()) { + hash = (37 * hash) + TIME_FIELD_NUMBER; + hash = (53 * hash) + getTime().hashCode(); + } + if (hasWindow()) { + hash = (37 * hash) + WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getWindow().hashCode(); + } + if (getValueCount() > 0) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValueList().hashCode(); + } + if (hasTriggerType()) { + hash = (37 * hash) + TRIGGERTYPE_FIELD_NUMBER; + hash = (53 * hash) + triggerType_; + } + if (hasMinimumLightsOn()) { + hash = (37 * hash) + MINIMUMLIGHTSON_FIELD_NUMBER; + hash = (53 * hash) + getMinimumLightsOn(); + } + if (hasIndex()) { + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + } + if (hasIsEnabled()) { + hash = (37 * hash) + ISENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsEnabled()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.Schedule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.Schedule parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.Schedule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.Schedule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.Schedule} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.Schedule) + org.opensmartgridplatform.oslp.Oslp.ScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Schedule_descriptor; + } - private int bitField0_; - // required bytes index = 1; - public static final int INDEX_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString index_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.Schedule.class, org.opensmartgridplatform.oslp.Oslp.Schedule.Builder.class); + } - @Override - public boolean hasIndex() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.Schedule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @Override - public com.google.protobuf.ByteString getIndex() { - return this.index_; - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + internalGetWindowFieldBuilder(); + internalGetValueFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + weekday_ = 0; + startDay_ = ""; + endDay_ = ""; + actionTime_ = 0; + time_ = ""; + window_ = null; + if (windowBuilder_ != null) { + windowBuilder_.dispose(); + windowBuilder_ = null; + } + if (valueBuilder_ == null) { + value_ = java.util.Collections.emptyList(); + } else { + value_ = null; + valueBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + triggerType_ = 0; + minimumLightsOn_ = 0; + index_ = 0; + isEnabled_ = false; + return this; + } - // required bytes address = 2; - public static final int ADDRESS_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString address_; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Schedule_descriptor; + } - @Override - public boolean hasAddress() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Schedule getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.Schedule.getDefaultInstance(); + } - @Override - public com.google.protobuf.ByteString getAddress() { - return this.address_; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Schedule build() { + org.opensmartgridplatform.oslp.Oslp.Schedule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - // required .oslp.RelayType relayType = 3; - public static final int RELAYTYPE_FIELD_NUMBER = 3; - private org.opensmartgridplatform.oslp.Oslp.RelayType relayType_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Schedule buildPartial() { + org.opensmartgridplatform.oslp.Oslp.Schedule result = new org.opensmartgridplatform.oslp.Oslp.Schedule(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - @Override - public boolean hasRelayType() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } + private void buildPartialRepeatedFields(org.opensmartgridplatform.oslp.Oslp.Schedule result) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + value_ = java.util.Collections.unmodifiableList(value_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + } - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayType getRelayType() { - return this.relayType_; - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.Schedule result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.weekday_ = weekday_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startDay_ = startDay_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endDay_ = endDay_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.actionTime_ = actionTime_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.time_ = time_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.window_ = windowBuilder_ == null + ? window_ + : windowBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.triggerType_ = triggerType_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.minimumLightsOn_ = minimumLightsOn_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.index_ = index_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.isEnabled_ = isEnabled_; + to_bitField0_ |= 0x00000200; + } + result.bitField0_ |= to_bitField0_; + } - private void initFields() { - this.index_ = com.google.protobuf.ByteString.EMPTY; - this.address_ = com.google.protobuf.ByteString.EMPTY; - this.relayType_ = org.opensmartgridplatform.oslp.Oslp.RelayType.RT_NOT_SET; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.Schedule) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.Schedule)other); + } else { + super.mergeFrom(other); + return this; + } + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasIndex()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasAddress()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasRelayType()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.Schedule other) { + if (other == org.opensmartgridplatform.oslp.Oslp.Schedule.getDefaultInstance()) return this; + if (other.hasWeekday()) { + setWeekdayValue(other.getWeekdayValue()); + } + if (other.hasStartDay()) { + startDay_ = other.startDay_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasEndDay()) { + endDay_ = other.endDay_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasActionTime()) { + setActionTimeValue(other.getActionTimeValue()); + } + if (other.hasTime()) { + time_ = other.time_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasWindow()) { + mergeWindow(other.getWindow()); + } + if (valueBuilder_ == null) { + if (!other.value_.isEmpty()) { + if (value_.isEmpty()) { + value_ = other.value_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureValueIsMutable(); + value_.addAll(other.value_); + } + onChanged(); + } + } else { + if (!other.value_.isEmpty()) { + if (valueBuilder_.isEmpty()) { + valueBuilder_.dispose(); + valueBuilder_ = null; + value_ = other.value_; + bitField0_ = (bitField0_ & ~0x00000040); + valueBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetValueFieldBuilder() : null; + } else { + valueBuilder_.addAllMessages(other.value_); + } + } + } + if (other.hasTriggerType()) { + setTriggerTypeValue(other.getTriggerTypeValue()); + } + if (other.hasMinimumLightsOn()) { + setMinimumLightsOn(other.getMinimumLightsOn()); + } + if (other.hasIndex()) { + setIndex(other.getIndex()); + } + if (other.hasIsEnabled()) { + setIsEnabled(other.getIsEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, this.index_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, this.address_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, this.relayType_.getNumber()); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasWeekday()) { + return false; + } + if (!hasActionTime()) { + return false; + } + if (hasWindow()) { + if (!getWindow().isInitialized()) { + return false; + } + } + for (int i = 0; i < getValueCount(); i++) { + if (!getValue(i).isInitialized()) { + return false; + } + } + return true; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, this.index_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, this.address_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(3, this.relayType_.getNumber()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + weekday_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + startDay_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + endDay_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + actionTime_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + time_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + internalGetWindowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + org.opensmartgridplatform.oslp.Oslp.LightValue m = + input.readMessage( + org.opensmartgridplatform.oslp.Oslp.LightValue.parser(), + extensionRegistry); + if (valueBuilder_ == null) { + ensureValueIsMutable(); + value_.add(m); + } else { + valueBuilder_.addMessage(m); + } + break; + } // case 58 + case 64: { + triggerType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + minimumLightsOn_ = input.readUInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: { + index_ = input.readUInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: { + isEnabled_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int weekday_ = 0; + /** + * .oslp.Weekday weekday = 1 [features = { ... } + * @return Whether the weekday field is set. + */ + @java.lang.Override public boolean hasWeekday() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .oslp.Weekday weekday = 1 [features = { ... } + * @return The enum numeric value on the wire for weekday. + */ + @java.lang.Override public int getWeekdayValue() { + return weekday_; + } + /** + * .oslp.Weekday weekday = 1 [features = { ... } + * @param value The enum numeric value on the wire for weekday to set. + * @return This builder for chaining. + */ + public Builder setWeekdayValue(int value) { + weekday_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .oslp.Weekday weekday = 1 [features = { ... } + * @return The weekday. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Weekday getWeekday() { + org.opensmartgridplatform.oslp.Oslp.Weekday result = org.opensmartgridplatform.oslp.Oslp.Weekday.forNumber(weekday_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.Weekday.UNRECOGNIZED : result; + } + /** + * .oslp.Weekday weekday = 1 [features = { ... } + * @param value The weekday to set. + * @return This builder for chaining. + */ + public Builder setWeekday(org.opensmartgridplatform.oslp.Oslp.Weekday value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000001; + weekday_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.Weekday weekday = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearWeekday() { + bitField0_ = (bitField0_ & ~0x00000001); + weekday_ = 0; + onChanged(); + return this; + } - private static final long serialVersionUID = 0L; + private java.lang.Object startDay_ = ""; + /** + *
+             * [(nanopb).max_size = 9]; //- Format YYYYMMDD UTC, indicates the range of a schedule entry, from startDay.
+             * 
+ * + * string startDay = 2; + * @return Whether the startDay field is set. + */ + public boolean hasStartDay() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * [(nanopb).max_size = 9]; //- Format YYYYMMDD UTC, indicates the range of a schedule entry, from startDay.
+             * 
+ * + * string startDay = 2; + * @return The startDay. + */ + public java.lang.String getStartDay() { + java.lang.Object ref = startDay_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startDay_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 9]; //- Format YYYYMMDD UTC, indicates the range of a schedule entry, from startDay.
+             * 
+ * + * string startDay = 2; + * @return The bytes for startDay. + */ + public com.google.protobuf.ByteString + getStartDayBytes() { + java.lang.Object ref = startDay_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startDay_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 9]; //- Format YYYYMMDD UTC, indicates the range of a schedule entry, from startDay.
+             * 
+ * + * string startDay = 2; + * @param value The startDay to set. + * @return This builder for chaining. + */ + public Builder setStartDay( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + startDay_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 9]; //- Format YYYYMMDD UTC, indicates the range of a schedule entry, from startDay.
+             * 
+ * + * string startDay = 2; + * @return This builder for chaining. + */ + public Builder clearStartDay() { + startDay_ = getDefaultInstance().getStartDay(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 9]; //- Format YYYYMMDD UTC, indicates the range of a schedule entry, from startDay.
+             * 
+ * + * string startDay = 2; + * @param value The bytes for startDay to set. + * @return This builder for chaining. + */ + public Builder setStartDayBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + startDay_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + private java.lang.Object endDay_ = ""; + /** + *
+             * [(nanopb).max_size = 9]; // - Format YYYYMMDD UTC, including endDay.
+             * 
+ * + * string endDay = 3; + * @return Whether the endDay field is set. + */ + public boolean hasEndDay() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * [(nanopb).max_size = 9]; // - Format YYYYMMDD UTC, including endDay.
+             * 
+ * + * string endDay = 3; + * @return The endDay. + */ + public java.lang.String getEndDay() { + java.lang.Object ref = endDay_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endDay_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 9]; // - Format YYYYMMDD UTC, including endDay.
+             * 
+ * + * string endDay = 3; + * @return The bytes for endDay. + */ + public com.google.protobuf.ByteString + getEndDayBytes() { + java.lang.Object ref = endDay_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endDay_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 9]; // - Format YYYYMMDD UTC, including endDay.
+             * 
+ * + * string endDay = 3; + * @param value The endDay to set. + * @return This builder for chaining. + */ + public Builder setEndDay( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + endDay_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 9]; // - Format YYYYMMDD UTC, including endDay.
+             * 
+ * + * string endDay = 3; + * @return This builder for chaining. + */ + public Builder clearEndDay() { + endDay_ = getDefaultInstance().getEndDay(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 9]; // - Format YYYYMMDD UTC, including endDay.
+             * 
+ * + * string endDay = 3; + * @param value The bytes for endDay to set. + * @return This builder for chaining. + */ + public Builder setEndDayBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + endDay_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private int actionTime_ = 0; + /** + * .oslp.ActionTime actionTime = 4 [features = { ... } + * @return Whether the actionTime field is set. + */ + @java.lang.Override public boolean hasActionTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .oslp.ActionTime actionTime = 4 [features = { ... } + * @return The enum numeric value on the wire for actionTime. + */ + @java.lang.Override public int getActionTimeValue() { + return actionTime_; + } + /** + * .oslp.ActionTime actionTime = 4 [features = { ... } + * @param value The enum numeric value on the wire for actionTime to set. + * @return This builder for chaining. + */ + public Builder setActionTimeValue(int value) { + actionTime_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .oslp.ActionTime actionTime = 4 [features = { ... } + * @return The actionTime. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.ActionTime getActionTime() { + org.opensmartgridplatform.oslp.Oslp.ActionTime result = org.opensmartgridplatform.oslp.Oslp.ActionTime.forNumber(actionTime_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.ActionTime.UNRECOGNIZED : result; + } + /** + * .oslp.ActionTime actionTime = 4 [features = { ... } + * @param value The actionTime to set. + * @return This builder for chaining. + */ + public Builder setActionTime(org.opensmartgridplatform.oslp.Oslp.ActionTime value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000008; + actionTime_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.ActionTime actionTime = 4 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearActionTime() { + bitField0_ = (bitField0_ & ~0x00000008); + actionTime_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + private java.lang.Object time_ = ""; + /** + *
+             * [(nanopb).max_size = 7]; // - Format hhmmss localtime set when actionTime = ABSOLUTETIME.
+             * 
+ * + * string time = 5; + * @return Whether the time field is set. + */ + public boolean hasTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+             * [(nanopb).max_size = 7]; // - Format hhmmss localtime set when actionTime = ABSOLUTETIME.
+             * 
+ * + * string time = 5; + * @return The time. + */ + public java.lang.String getTime() { + java.lang.Object ref = time_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + time_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 7]; // - Format hhmmss localtime set when actionTime = ABSOLUTETIME.
+             * 
+ * + * string time = 5; + * @return The bytes for time. + */ + public com.google.protobuf.ByteString + getTimeBytes() { + java.lang.Object ref = time_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + time_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 7]; // - Format hhmmss localtime set when actionTime = ABSOLUTETIME.
+             * 
+ * + * string time = 5; + * @param value The time to set. + * @return This builder for chaining. + */ + public Builder setTime( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + time_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 7]; // - Format hhmmss localtime set when actionTime = ABSOLUTETIME.
+             * 
+ * + * string time = 5; + * @return This builder for chaining. + */ + public Builder clearTime() { + time_ = getDefaultInstance().getTime(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 7]; // - Format hhmmss localtime set when actionTime = ABSOLUTETIME.
+             * 
+ * + * string time = 5; + * @param value The bytes for time to set. + * @return This builder for chaining. + */ + public Builder setTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + time_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private org.opensmartgridplatform.oslp.Oslp.Window window_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.Window, org.opensmartgridplatform.oslp.Oslp.Window.Builder, org.opensmartgridplatform.oslp.Oslp.WindowOrBuilder> windowBuilder_; + /** + *
+             * Window to wait for light sensor trigger.
+             * 
+ * + * .oslp.Window window = 6; + * @return Whether the window field is set. + */ + public boolean hasWindow() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+             * Window to wait for light sensor trigger.
+             * 
+ * + * .oslp.Window window = 6; + * @return The window. + */ + public org.opensmartgridplatform.oslp.Oslp.Window getWindow() { + if (windowBuilder_ == null) { + return window_ == null ? org.opensmartgridplatform.oslp.Oslp.Window.getDefaultInstance() : window_; + } else { + return windowBuilder_.getMessage(); + } + } + /** + *
+             * Window to wait for light sensor trigger.
+             * 
+ * + * .oslp.Window window = 6; + */ + public Builder setWindow(org.opensmartgridplatform.oslp.Oslp.Window value) { + if (windowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + window_ = value; + } else { + windowBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+             * Window to wait for light sensor trigger.
+             * 
+ * + * .oslp.Window window = 6; + */ + public Builder setWindow( + org.opensmartgridplatform.oslp.Oslp.Window.Builder builderForValue) { + if (windowBuilder_ == null) { + window_ = builderForValue.build(); + } else { + windowBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+             * Window to wait for light sensor trigger.
+             * 
+ * + * .oslp.Window window = 6; + */ + public Builder mergeWindow(org.opensmartgridplatform.oslp.Oslp.Window value) { + if (windowBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + window_ != null && + window_ != org.opensmartgridplatform.oslp.Oslp.Window.getDefaultInstance()) { + getWindowBuilder().mergeFrom(value); + } else { + window_ = value; + } + } else { + windowBuilder_.mergeFrom(value); + } + if (window_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+             * Window to wait for light sensor trigger.
+             * 
+ * + * .oslp.Window window = 6; + */ + public Builder clearWindow() { + bitField0_ = (bitField0_ & ~0x00000020); + window_ = null; + if (windowBuilder_ != null) { + windowBuilder_.dispose(); + windowBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * Window to wait for light sensor trigger.
+             * 
+ * + * .oslp.Window window = 6; + */ + public org.opensmartgridplatform.oslp.Oslp.Window.Builder getWindowBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetWindowFieldBuilder().getBuilder(); + } + /** + *
+             * Window to wait for light sensor trigger.
+             * 
+ * + * .oslp.Window window = 6; + */ + public org.opensmartgridplatform.oslp.Oslp.WindowOrBuilder getWindowOrBuilder() { + if (windowBuilder_ != null) { + return windowBuilder_.getMessageOrBuilder(); + } else { + return window_ == null ? + org.opensmartgridplatform.oslp.Oslp.Window.getDefaultInstance() : window_; + } + } + /** + *
+             * Window to wait for light sensor trigger.
+             * 
+ * + * .oslp.Window window = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.Window, org.opensmartgridplatform.oslp.Oslp.Window.Builder, org.opensmartgridplatform.oslp.Oslp.WindowOrBuilder> + internalGetWindowFieldBuilder() { + if (windowBuilder_ == null) { + windowBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.Window, org.opensmartgridplatform.oslp.Oslp.Window.Builder, org.opensmartgridplatform.oslp.Oslp.WindowOrBuilder>( + getWindow(), + getParentForChildren(), + isClean()); + window_ = null; + } + return windowBuilder_; + } - public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + private java.util.List value_ = + java.util.Collections.emptyList(); + private void ensureValueIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + value_ = new java.util.ArrayList(value_); + bitField0_ |= 0x00000040; + } + } - public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.LightValue, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder> valueBuilder_; + + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public java.util.List getValueList() { + if (valueBuilder_ == null) { + return java.util.Collections.unmodifiableList(value_); + } else { + return valueBuilder_.getMessageList(); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public int getValueCount() { + if (valueBuilder_ == null) { + return value_.size(); + } else { + return valueBuilder_.getCount(); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public org.opensmartgridplatform.oslp.Oslp.LightValue getValue(int index) { + if (valueBuilder_ == null) { + return value_.get(index); + } else { + return valueBuilder_.getMessage(index); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public Builder setValue( + int index, org.opensmartgridplatform.oslp.Oslp.LightValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.set(index, value); + onChanged(); + } else { + valueBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public Builder setValue( + int index, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { + if (valueBuilder_ == null) { + ensureValueIsMutable(); + value_.set(index, builderForValue.build()); + onChanged(); + } else { + valueBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public Builder addValue(org.opensmartgridplatform.oslp.Oslp.LightValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.add(value); + onChanged(); + } else { + valueBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public Builder addValue( + int index, org.opensmartgridplatform.oslp.Oslp.LightValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.add(index, value); + onChanged(); + } else { + valueBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public Builder addValue( + org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { + if (valueBuilder_ == null) { + ensureValueIsMutable(); + value_.add(builderForValue.build()); + onChanged(); + } else { + valueBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public Builder addValue( + int index, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder builderForValue) { + if (valueBuilder_ == null) { + ensureValueIsMutable(); + value_.add(index, builderForValue.build()); + onChanged(); + } else { + valueBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public Builder addAllValue( + java.lang.Iterable values) { + if (valueBuilder_ == null) { + ensureValueIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, value_); + onChanged(); + } else { + valueBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + valueBuilder_.clear(); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public Builder removeValue(int index) { + if (valueBuilder_ == null) { + ensureValueIsMutable(); + value_.remove(index); + onChanged(); + } else { + valueBuilder_.remove(index); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder getValueBuilder( + int index) { + return internalGetValueFieldBuilder().getBuilder(index); + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder getValueOrBuilder( + int index) { + if (valueBuilder_ == null) { + return value_.get(index); } else { + return valueBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public java.util.List + getValueOrBuilderList() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(value_); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder addValueBuilder() { + return internalGetValueFieldBuilder().addBuilder( + org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public org.opensmartgridplatform.oslp.Oslp.LightValue.Builder addValueBuilder( + int index) { + return internalGetValueFieldBuilder().addBuilder( + index, org.opensmartgridplatform.oslp.Oslp.LightValue.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.LightValue value = 7; + */ + public java.util.List + getValueBuilderList() { + return internalGetValueFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.LightValue, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder> + internalGetValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.LightValue, org.opensmartgridplatform.oslp.Oslp.LightValue.Builder, org.opensmartgridplatform.oslp.Oslp.LightValueOrBuilder>( + value_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } - public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + private int triggerType_ = 0; + /** + *
+             * React to setTransition or switch astronomical.
+             * 
+ * + * .oslp.TriggerType triggerType = 8; + * @return Whether the triggerType field is set. + */ + @java.lang.Override public boolean hasTriggerType() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+             * React to setTransition or switch astronomical.
+             * 
+ * + * .oslp.TriggerType triggerType = 8; + * @return The enum numeric value on the wire for triggerType. + */ + @java.lang.Override public int getTriggerTypeValue() { + return triggerType_; + } + /** + *
+             * React to setTransition or switch astronomical.
+             * 
+ * + * .oslp.TriggerType triggerType = 8; + * @param value The enum numeric value on the wire for triggerType to set. + * @return This builder for chaining. + */ + public Builder setTriggerTypeValue(int value) { + triggerType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+             * React to setTransition or switch astronomical.
+             * 
+ * + * .oslp.TriggerType triggerType = 8; + * @return The triggerType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.TriggerType getTriggerType() { + org.opensmartgridplatform.oslp.Oslp.TriggerType result = org.opensmartgridplatform.oslp.Oslp.TriggerType.forNumber(triggerType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.TriggerType.UNRECOGNIZED : result; + } + /** + *
+             * React to setTransition or switch astronomical.
+             * 
+ * + * .oslp.TriggerType triggerType = 8; + * @param value The triggerType to set. + * @return This builder for chaining. + */ + public Builder setTriggerType(org.opensmartgridplatform.oslp.Oslp.TriggerType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000080; + triggerType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * React to setTransition or switch astronomical.
+             * 
+ * + * .oslp.TriggerType triggerType = 8; + * @return This builder for chaining. + */ + public Builder clearTriggerType() { + bitField0_ = (bitField0_ & ~0x00000080); + triggerType_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + private int minimumLightsOn_ ; + /** + *
+             * Minimal time (in seconds) the lights should burn before deciding to switch the lights on.
+             * 
+ * + * uint32 minimumLightsOn = 9; + * @return Whether the minimumLightsOn field is set. + */ + @java.lang.Override + public boolean hasMinimumLightsOn() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+             * Minimal time (in seconds) the lights should burn before deciding to switch the lights on.
+             * 
+ * + * uint32 minimumLightsOn = 9; + * @return The minimumLightsOn. + */ + @java.lang.Override + public int getMinimumLightsOn() { + return minimumLightsOn_; + } + /** + *
+             * Minimal time (in seconds) the lights should burn before deciding to switch the lights on.
+             * 
+ * + * uint32 minimumLightsOn = 9; + * @param value The minimumLightsOn to set. + * @return This builder for chaining. + */ + public Builder setMinimumLightsOn(int value) { + + minimumLightsOn_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+             * Minimal time (in seconds) the lights should burn before deciding to switch the lights on.
+             * 
+ * + * uint32 minimumLightsOn = 9; + * @return This builder for chaining. + */ + public Builder clearMinimumLightsOn() { + bitField0_ = (bitField0_ & ~0x00000100); + minimumLightsOn_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + private int index_ ; + /** + *
+             * Index of schedule entry in the schedule list.
+             * 
+ * + * uint32 index = 10; + * @return Whether the index field is set. + */ + @java.lang.Override + public boolean hasIndex() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+             * Index of schedule entry in the schedule list.
+             * 
+ * + * uint32 index = 10; + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + /** + *
+             * Index of schedule entry in the schedule list.
+             * 
+ * + * uint32 index = 10; + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(int value) { + + index_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+             * Index of schedule entry in the schedule list.
+             * 
+ * + * uint32 index = 10; + * @return This builder for chaining. + */ + public Builder clearIndex() { + bitField0_ = (bitField0_ & ~0x00000200); + index_ = 0; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private boolean isEnabled_ ; + /** + *
+             * Is this schedule entry enabled?
+             * 
+ * + * bool isEnabled = 11; + * @return Whether the isEnabled field is set. + */ + @java.lang.Override + public boolean hasIsEnabled() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+             * Is this schedule entry enabled?
+             * 
+ * + * bool isEnabled = 11; + * @return The isEnabled. + */ + @java.lang.Override + public boolean getIsEnabled() { + return isEnabled_; + } + /** + *
+             * Is this schedule entry enabled?
+             * 
+ * + * bool isEnabled = 11; + * @param value The isEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsEnabled(boolean value) { + + isEnabled_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+             * Is this schedule entry enabled?
+             * 
+ * + * bool isEnabled = 11; + * @return This builder for chaining. + */ + public Builder clearIsEnabled() { + bitField0_ = (bitField0_ & ~0x00000400); + isEnabled_ = false; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + // @@protoc_insertion_point(builder_scope:oslp.Schedule) + } - public static Builder newBuilder() { - return Builder.create(); - } + // @@protoc_insertion_point(class_scope:oslp.Schedule) + private static final org.opensmartgridplatform.oslp.Oslp.Schedule DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.Schedule(); + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static org.opensmartgridplatform.oslp.Oslp.Schedule getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap prototype) { - return newBuilder().mergeFrom(prototype); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public Builder toBuilder() { - return newBuilder(this); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Schedule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WindowOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.Window) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Minutes before sunset / sunrise.
+         * 
+ * + * uint32 minutesBefore = 1 [features = { ... } + * @return Whether the minutesBefore field is set. + */ + boolean hasMinutesBefore(); + /** + *
+         * Minutes before sunset / sunrise.
+         * 
+ * + * uint32 minutesBefore = 1 [features = { ... } + * @return The minutesBefore. + */ + int getMinutesBefore(); + + /** + *
+         * Minutes after sunset / sunrise.
+         * 
+ * + * uint32 minutesAfter = 2 [features = { ... } + * @return Whether the minutesAfter field is set. + */ + boolean hasMinutesAfter(); + /** + *
+         * Minutes after sunset / sunrise.
+         * 
+ * + * uint32 minutesAfter = 2 [features = { ... } + * @return The minutesAfter. + */ + int getMinutesAfter(); + } + /** + * Protobuf type {@code oslp.Window} + */ + public static final class Window extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.Window) + WindowOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + Window.class.getName()); + } + // Use Window.newBuilder() to construct. + private Window(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Window() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Window_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Window_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.Window.class, org.opensmartgridplatform.oslp.Oslp.Window.Builder.class); + } + + private int bitField0_; + public static final int MINUTESBEFORE_FIELD_NUMBER = 1; + private int minutesBefore_ = 0; + /** + *
+         * Minutes before sunset / sunrise.
+         * 
+ * + * uint32 minutesBefore = 1 [features = { ... } + * @return Whether the minutesBefore field is set. + */ + @java.lang.Override + public boolean hasMinutesBefore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Minutes before sunset / sunrise.
+         * 
+ * + * uint32 minutesBefore = 1 [features = { ... } + * @return The minutesBefore. + */ + @java.lang.Override + public int getMinutesBefore() { + return minutesBefore_; + } + + public static final int MINUTESAFTER_FIELD_NUMBER = 2; + private int minutesAfter_ = 0; + /** + *
+         * Minutes after sunset / sunrise.
+         * 
+ * + * uint32 minutesAfter = 2 [features = { ... } + * @return Whether the minutesAfter field is set. + */ + @java.lang.Override + public boolean hasMinutesAfter() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * Minutes after sunset / sunrise.
+         * 
+ * + * uint32 minutesAfter = 2 [features = { ... } + * @return The minutesAfter. + */ + @java.lang.Override + public int getMinutesAfter() { + return minutesAfter_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasMinutesBefore()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMinutesAfter()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeUInt32(1, minutesBefore_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(2, minutesAfter_); + } + getUnknownFields().writeTo(output); + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_IndexAddressMap_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_IndexAddressMap_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.index_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.address_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.relayType_ = org.opensmartgridplatform.oslp.Oslp.RelayType.RT_NOT_SET; - this.bitField0_ = (this.bitField0_ & ~0x00000004); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap build() { - final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.IndexAddressMap buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap result = - new org.opensmartgridplatform.oslp.Oslp.IndexAddressMap(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.index_ = this.index_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.address_ = this.address_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.relayType_ = this.relayType_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.IndexAddressMap) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.IndexAddressMap) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap other) { - if (other == org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.getDefaultInstance()) { - return this; - } - if (other.hasIndex()) { - this.setIndex(other.getIndex()); - } - if (other.hasAddress()) { - this.setAddress(other.getAddress()); - } - if (other.hasRelayType()) { - this.setRelayType(other.getRelayType()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasIndex()) { - - return false; - } - if (!this.hasAddress()) { - - return false; - } - if (!this.hasRelayType()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - this.bitField0_ |= 0x00000001; - this.index_ = input.readBytes(); - break; - } - case 18: - { - this.bitField0_ |= 0x00000002; - this.address_ = input.readBytes(); - break; - } - case 24: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.RelayType value = - org.opensmartgridplatform.oslp.Oslp.RelayType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - this.bitField0_ |= 0x00000004; - this.relayType_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required bytes index = 1; - private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasIndex() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public com.google.protobuf.ByteString getIndex() { - return this.index_; - } - - public Builder setIndex(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.index_ = value; - this.onChanged(); - return this; - } - - public Builder clearIndex() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.index_ = getDefaultInstance().getIndex(); - this.onChanged(); - return this; - } - - // required bytes address = 2; - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasAddress() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public com.google.protobuf.ByteString getAddress() { - return this.address_; - } - - public Builder setAddress(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000002; - this.address_ = value; - this.onChanged(); - return this; - } - - public Builder clearAddress() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.address_ = getDefaultInstance().getAddress(); - this.onChanged(); - return this; - } - - // required .oslp.RelayType relayType = 3; - private org.opensmartgridplatform.oslp.Oslp.RelayType relayType_ = - org.opensmartgridplatform.oslp.Oslp.RelayType.RT_NOT_SET; - - @Override - public boolean hasRelayType() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayType getRelayType() { - return this.relayType_; - } - - public Builder setRelayType(final org.opensmartgridplatform.oslp.Oslp.RelayType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000004; - this.relayType_ = value; - this.onChanged(); - return this; - } - - public Builder clearRelayType() { - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.relayType_ = org.opensmartgridplatform.oslp.Oslp.RelayType.RT_NOT_SET; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.IndexAddressMap) - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - static { - defaultInstance = new IndexAddressMap(true); - defaultInstance.initFields(); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, minutesBefore_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, minutesAfter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - // @@protoc_insertion_point(class_scope:oslp.IndexAddressMap) - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.Window)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.Window other = (org.opensmartgridplatform.oslp.Oslp.Window) obj; - public interface PageInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { + if (hasMinutesBefore() != other.hasMinutesBefore()) return false; + if (hasMinutesBefore()) { + if (getMinutesBefore() + != other.getMinutesBefore()) return false; + } + if (hasMinutesAfter() != other.hasMinutesAfter()) return false; + if (hasMinutesAfter()) { + if (getMinutesAfter() + != other.getMinutesAfter()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - // required uint32 currentPage = 1; - boolean hasCurrentPage(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMinutesBefore()) { + hash = (37 * hash) + MINUTESBEFORE_FIELD_NUMBER; + hash = (53 * hash) + getMinutesBefore(); + } + if (hasMinutesAfter()) { + hash = (37 * hash) + MINUTESAFTER_FIELD_NUMBER; + hash = (53 * hash) + getMinutesAfter(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.Window parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.Window parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.Window parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.Window prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.Window} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.Window) + org.opensmartgridplatform.oslp.Oslp.WindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Window_descriptor; + } - int getCurrentPage(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Window_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.Window.class, org.opensmartgridplatform.oslp.Oslp.Window.Builder.class); + } - // required uint32 pageSize = 2; - boolean hasPageSize(); + // Construct using org.opensmartgridplatform.oslp.Oslp.Window.newBuilder() + private Builder() { - int getPageSize(); + } - // required uint32 totalPages = 3; - boolean hasTotalPages(); + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - int getTotalPages(); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + minutesBefore_ = 0; + minutesAfter_ = 0; + return this; + } - public static final class PageInfo extends com.google.protobuf.GeneratedMessage - implements PageInfoOrBuilder { - // Use PageInfo.newBuilder() to construct. - private PageInfo(final Builder builder) { - super(builder); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_Window_descriptor; + } - private PageInfo(final boolean noInit) {} + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Window getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.Window.getDefaultInstance(); + } - private static final PageInfo defaultInstance; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Window build() { + org.opensmartgridplatform.oslp.Oslp.Window result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static PageInfo getDefaultInstance() { - return defaultInstance; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Window buildPartial() { + org.opensmartgridplatform.oslp.Oslp.Window result = new org.opensmartgridplatform.oslp.Oslp.Window(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - @Override - public PageInfo getDefaultInstanceForType() { - return defaultInstance; - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.Window result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.minutesBefore_ = minutesBefore_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minutesAfter_ = minutesAfter_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PageInfo_descriptor; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.Window) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.Window)other); + } else { + super.mergeFrom(other); + return this; + } + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PageInfo_fieldAccessorTable; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.Window other) { + if (other == org.opensmartgridplatform.oslp.Oslp.Window.getDefaultInstance()) return this; + if (other.hasMinutesBefore()) { + setMinutesBefore(other.getMinutesBefore()); + } + if (other.hasMinutesAfter()) { + setMinutesAfter(other.getMinutesAfter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private int bitField0_; - // required uint32 currentPage = 1; - public static final int CURRENTPAGE_FIELD_NUMBER = 1; - private int currentPage_; + @java.lang.Override + public final boolean isInitialized() { + if (!hasMinutesBefore()) { + return false; + } + if (!hasMinutesAfter()) { + return false; + } + return true; + } - @Override - public boolean hasCurrentPage() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + minutesBefore_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + minutesAfter_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int minutesBefore_ ; + /** + *
+             * Minutes before sunset / sunrise.
+             * 
+ * + * uint32 minutesBefore = 1 [features = { ... } + * @return Whether the minutesBefore field is set. + */ + @java.lang.Override + public boolean hasMinutesBefore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Minutes before sunset / sunrise.
+             * 
+ * + * uint32 minutesBefore = 1 [features = { ... } + * @return The minutesBefore. + */ + @java.lang.Override + public int getMinutesBefore() { + return minutesBefore_; + } + /** + *
+             * Minutes before sunset / sunrise.
+             * 
+ * + * uint32 minutesBefore = 1 [features = { ... } + * @param value The minutesBefore to set. + * @return This builder for chaining. + */ + public Builder setMinutesBefore(int value) { + + minutesBefore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Minutes before sunset / sunrise.
+             * 
+ * + * uint32 minutesBefore = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearMinutesBefore() { + bitField0_ = (bitField0_ & ~0x00000001); + minutesBefore_ = 0; + onChanged(); + return this; + } - @Override - public int getCurrentPage() { - return this.currentPage_; - } + private int minutesAfter_ ; + /** + *
+             * Minutes after sunset / sunrise.
+             * 
+ * + * uint32 minutesAfter = 2 [features = { ... } + * @return Whether the minutesAfter field is set. + */ + @java.lang.Override + public boolean hasMinutesAfter() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * Minutes after sunset / sunrise.
+             * 
+ * + * uint32 minutesAfter = 2 [features = { ... } + * @return The minutesAfter. + */ + @java.lang.Override + public int getMinutesAfter() { + return minutesAfter_; + } + /** + *
+             * Minutes after sunset / sunrise.
+             * 
+ * + * uint32 minutesAfter = 2 [features = { ... } + * @param value The minutesAfter to set. + * @return This builder for chaining. + */ + public Builder setMinutesAfter(int value) { + + minutesAfter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Minutes after sunset / sunrise.
+             * 
+ * + * uint32 minutesAfter = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearMinutesAfter() { + bitField0_ = (bitField0_ & ~0x00000002); + minutesAfter_ = 0; + onChanged(); + return this; + } - // required uint32 pageSize = 2; - public static final int PAGESIZE_FIELD_NUMBER = 2; - private int pageSize_; + // @@protoc_insertion_point(builder_scope:oslp.Window) + } - @Override - public boolean hasPageSize() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + // @@protoc_insertion_point(class_scope:oslp.Window) + private static final org.opensmartgridplatform.oslp.Oslp.Window DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.Window(); + } - @Override - public int getPageSize() { - return this.pageSize_; - } + public static org.opensmartgridplatform.oslp.Oslp.Window getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // required uint32 totalPages = 3; - public static final int TOTALPAGES_FIELD_NUMBER = 3; - private int totalPages_; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Window parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public boolean hasTotalPages() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.Window getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DaliConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.DaliConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_size = 1]; // Number of lights connected to DALI controller.
+         * 
+ * + * bytes numberOfLights = 1; + * @return Whether the numberOfLights field is set. + */ + boolean hasNumberOfLights(); + /** + *
+         * [(nanopb).max_size = 1]; // Number of lights connected to DALI controller.
+         * 
+ * + * bytes numberOfLights = 1; + * @return The numberOfLights. + */ + com.google.protobuf.ByteString getNumberOfLights(); + + /** + *
+         * [(nanopb).max_count = 4];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + java.util.List + getAddressMapList(); + /** + *
+         * [(nanopb).max_count = 4];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getAddressMap(int index); + /** + *
+         * [(nanopb).max_count = 4];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + int getAddressMapCount(); + /** + *
+         * [(nanopb).max_count = 4];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + java.util.List + getAddressMapOrBuilderList(); + /** + *
+         * [(nanopb).max_count = 4];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder getAddressMapOrBuilder( + int index); + } + /** + * Protobuf type {@code oslp.DaliConfiguration} + */ + public static final class DaliConfiguration extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.DaliConfiguration) + DaliConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + DaliConfiguration.class.getName()); + } + // Use DaliConfiguration.newBuilder() to construct. + private DaliConfiguration(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private DaliConfiguration() { + numberOfLights_ = com.google.protobuf.ByteString.EMPTY; + addressMap_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_DaliConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_DaliConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.class, org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder.class); + } + + private int bitField0_; + public static final int NUMBEROFLIGHTS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString numberOfLights_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_size = 1]; // Number of lights connected to DALI controller.
+         * 
+ * + * bytes numberOfLights = 1; + * @return Whether the numberOfLights field is set. + */ + @java.lang.Override + public boolean hasNumberOfLights() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * [(nanopb).max_size = 1]; // Number of lights connected to DALI controller.
+         * 
+ * + * bytes numberOfLights = 1; + * @return The numberOfLights. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNumberOfLights() { + return numberOfLights_; + } + + public static final int ADDRESSMAP_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List addressMap_; + /** + *
+         * [(nanopb).max_count = 4];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + @java.lang.Override + public java.util.List getAddressMapList() { + return addressMap_; + } + /** + *
+         * [(nanopb).max_count = 4];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + @java.lang.Override + public java.util.List + getAddressMapOrBuilderList() { + return addressMap_; + } + /** + *
+         * [(nanopb).max_count = 4];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + @java.lang.Override + public int getAddressMapCount() { + return addressMap_.size(); + } + /** + *
+         * [(nanopb).max_count = 4];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getAddressMap(int index) { + return addressMap_.get(index); + } + /** + *
+         * [(nanopb).max_count = 4];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder getAddressMapOrBuilder( + int index) { + return addressMap_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + for (int i = 0; i < getAddressMapCount(); i++) { + if (!getAddressMap(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - @Override - public int getTotalPages() { - return this.totalPages_; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBytes(1, numberOfLights_); + } + for (int i = 0; i < addressMap_.size(); i++) { + output.writeMessage(2, addressMap_.get(i)); + } + getUnknownFields().writeTo(output); + } - private void initFields() { - this.currentPage_ = 0; - this.pageSize_ = 0; - this.totalPages_ = 0; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasCurrentPage()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasPageSize()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasTotalPages()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, numberOfLights_); + } + for (int i = 0; i < addressMap_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, addressMap_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeUInt32(1, this.currentPage_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeUInt32(2, this.pageSize_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeUInt32(3, this.totalPages_); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.DaliConfiguration)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration other = (org.opensmartgridplatform.oslp.Oslp.DaliConfiguration) obj; - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, this.currentPage_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, this.pageSize_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, this.totalPages_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + if (hasNumberOfLights() != other.hasNumberOfLights()) return false; + if (hasNumberOfLights()) { + if (!getNumberOfLights() + .equals(other.getNumberOfLights())) return false; + } + if (!getAddressMapList() + .equals(other.getAddressMapList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - private static final long serialVersionUID = 0L; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNumberOfLights()) { + hash = (37 * hash) + NUMBEROFLIGHTS_FIELD_NUMBER; + hash = (53 * hash) + getNumberOfLights().hashCode(); + } + if (getAddressMapCount() > 0) { + hash = (37 * hash) + ADDRESSMAP_FIELD_NUMBER; + hash = (53 * hash) + getAddressMapList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.DaliConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.DaliConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.DaliConfiguration) + org.opensmartgridplatform.oslp.Oslp.DaliConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_DaliConfiguration_descriptor; + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_DaliConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.class, org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder.class); + } - public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.newBuilder() + private Builder() { - public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + } - public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + numberOfLights_ = com.google.protobuf.ByteString.EMPTY; + if (addressMapBuilder_ == null) { + addressMap_ = java.util.Collections.emptyList(); + } else { + addressMap_ = null; + addressMapBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_DaliConfiguration_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance(); + } - public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration build() { + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration buildPartial() { + org.opensmartgridplatform.oslp.Oslp.DaliConfiguration result = new org.opensmartgridplatform.oslp.Oslp.DaliConfiguration(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + private void buildPartialRepeatedFields(org.opensmartgridplatform.oslp.Oslp.DaliConfiguration result) { + if (addressMapBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + addressMap_ = java.util.Collections.unmodifiableList(addressMap_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.addressMap_ = addressMap_; + } else { + result.addressMap_ = addressMapBuilder_.build(); + } + } - public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.DaliConfiguration result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.numberOfLights_ = numberOfLights_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - public static Builder newBuilder() { - return Builder.create(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.DaliConfiguration) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.DaliConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.DaliConfiguration other) { + if (other == org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.getDefaultInstance()) return this; + if (other.hasNumberOfLights()) { + setNumberOfLights(other.getNumberOfLights()); + } + if (addressMapBuilder_ == null) { + if (!other.addressMap_.isEmpty()) { + if (addressMap_.isEmpty()) { + addressMap_ = other.addressMap_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAddressMapIsMutable(); + addressMap_.addAll(other.addressMap_); + } + onChanged(); + } + } else { + if (!other.addressMap_.isEmpty()) { + if (addressMapBuilder_.isEmpty()) { + addressMapBuilder_.dispose(); + addressMapBuilder_ = null; + addressMap_ = other.addressMap_; + bitField0_ = (bitField0_ & ~0x00000002); + addressMapBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetAddressMapFieldBuilder() : null; + } else { + addressMapBuilder_.addAllMessages(other.addressMap_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static Builder newBuilder(final org.opensmartgridplatform.oslp.Oslp.PageInfo prototype) { - return newBuilder().mergeFrom(prototype); - } + @java.lang.Override + public final boolean isInitialized() { + for (int i = 0; i < getAddressMapCount(); i++) { + if (!getAddressMap(i).isInitialized()) { + return false; + } + } + return true; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + numberOfLights_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap m = + input.readMessage( + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.parser(), + extensionRegistry); + if (addressMapBuilder_ == null) { + ensureAddressMapIsMutable(); + addressMap_.add(m); + } else { + addressMapBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString numberOfLights_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_size = 1]; // Number of lights connected to DALI controller.
+             * 
+ * + * bytes numberOfLights = 1; + * @return Whether the numberOfLights field is set. + */ + @java.lang.Override + public boolean hasNumberOfLights() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * [(nanopb).max_size = 1]; // Number of lights connected to DALI controller.
+             * 
+ * + * bytes numberOfLights = 1; + * @return The numberOfLights. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNumberOfLights() { + return numberOfLights_; + } + /** + *
+             * [(nanopb).max_size = 1]; // Number of lights connected to DALI controller.
+             * 
+ * + * bytes numberOfLights = 1; + * @param value The numberOfLights to set. + * @return This builder for chaining. + */ + public Builder setNumberOfLights(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + numberOfLights_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 1]; // Number of lights connected to DALI controller.
+             * 
+ * + * bytes numberOfLights = 1; + * @return This builder for chaining. + */ + public Builder clearNumberOfLights() { + bitField0_ = (bitField0_ & ~0x00000001); + numberOfLights_ = getDefaultInstance().getNumberOfLights(); + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + private java.util.List addressMap_ = + java.util.Collections.emptyList(); + private void ensureAddressMapIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + addressMap_ = new java.util.ArrayList(addressMap_); + bitField0_ |= 0x00000002; + } + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PageInfo_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PageInfo_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.PageInfo.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.currentPage_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.pageSize_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.totalPages_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000004); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.PageInfo.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PageInfo getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PageInfo build() { - final org.opensmartgridplatform.oslp.Oslp.PageInfo result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.PageInfo buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.PageInfo result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PageInfo buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.PageInfo result = - new org.opensmartgridplatform.oslp.Oslp.PageInfo(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.currentPage_ = this.currentPage_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.pageSize_ = this.pageSize_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.totalPages_ = this.totalPages_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.PageInfo) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.PageInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.PageInfo other) { - if (other == org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance()) { - return this; - } - if (other.hasCurrentPage()) { - this.setCurrentPage(other.getCurrentPage()); - } - if (other.hasPageSize()) { - this.setPageSize(other.getPageSize()); - } - if (other.hasTotalPages()) { - this.setTotalPages(other.getTotalPages()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasCurrentPage()) { - - return false; - } - if (!this.hasPageSize()) { - - return false; - } - if (!this.hasTotalPages()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - this.bitField0_ |= 0x00000001; - this.currentPage_ = input.readUInt32(); - break; - } - case 16: - { - this.bitField0_ |= 0x00000002; - this.pageSize_ = input.readUInt32(); - break; - } - case 24: - { - this.bitField0_ |= 0x00000004; - this.totalPages_ = input.readUInt32(); - break; - } - } - } - } - - private int bitField0_; - - // required uint32 currentPage = 1; - private int currentPage_; - - @Override - public boolean hasCurrentPage() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public int getCurrentPage() { - return this.currentPage_; - } - - public Builder setCurrentPage(final int value) { - this.bitField0_ |= 0x00000001; - this.currentPage_ = value; - this.onChanged(); - return this; - } - - public Builder clearCurrentPage() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.currentPage_ = 0; - this.onChanged(); - return this; - } - - // required uint32 pageSize = 2; - private int pageSize_; - - @Override - public boolean hasPageSize() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public int getPageSize() { - return this.pageSize_; - } - - public Builder setPageSize(final int value) { - this.bitField0_ |= 0x00000002; - this.pageSize_ = value; - this.onChanged(); - return this; - } - - public Builder clearPageSize() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.pageSize_ = 0; - this.onChanged(); - return this; - } - - // required uint32 totalPages = 3; - private int totalPages_; - - @Override - public boolean hasTotalPages() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public int getTotalPages() { - return this.totalPages_; - } - - public Builder setTotalPages(final int value) { - this.bitField0_ |= 0x00000004; - this.totalPages_ = value; - this.onChanged(); - return this; - } - - public Builder clearTotalPages() { - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.totalPages_ = 0; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.PageInfo) - } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder, org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder> addressMapBuilder_; + + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public java.util.List getAddressMapList() { + if (addressMapBuilder_ == null) { + return java.util.Collections.unmodifiableList(addressMap_); + } else { + return addressMapBuilder_.getMessageList(); + } + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public int getAddressMapCount() { + if (addressMapBuilder_ == null) { + return addressMap_.size(); + } else { + return addressMapBuilder_.getCount(); + } + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getAddressMap(int index) { + if (addressMapBuilder_ == null) { + return addressMap_.get(index); + } else { + return addressMapBuilder_.getMessage(index); + } + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public Builder setAddressMap( + int index, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap value) { + if (addressMapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressMapIsMutable(); + addressMap_.set(index, value); + onChanged(); + } else { + addressMapBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public Builder setAddressMap( + int index, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder builderForValue) { + if (addressMapBuilder_ == null) { + ensureAddressMapIsMutable(); + addressMap_.set(index, builderForValue.build()); + onChanged(); + } else { + addressMapBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public Builder addAddressMap(org.opensmartgridplatform.oslp.Oslp.IndexAddressMap value) { + if (addressMapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressMapIsMutable(); + addressMap_.add(value); + onChanged(); + } else { + addressMapBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public Builder addAddressMap( + int index, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap value) { + if (addressMapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressMapIsMutable(); + addressMap_.add(index, value); + onChanged(); + } else { + addressMapBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public Builder addAddressMap( + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder builderForValue) { + if (addressMapBuilder_ == null) { + ensureAddressMapIsMutable(); + addressMap_.add(builderForValue.build()); + onChanged(); + } else { + addressMapBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public Builder addAddressMap( + int index, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder builderForValue) { + if (addressMapBuilder_ == null) { + ensureAddressMapIsMutable(); + addressMap_.add(index, builderForValue.build()); + onChanged(); + } else { + addressMapBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public Builder addAllAddressMap( + java.lang.Iterable values) { + if (addressMapBuilder_ == null) { + ensureAddressMapIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, addressMap_); + onChanged(); + } else { + addressMapBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public Builder clearAddressMap() { + if (addressMapBuilder_ == null) { + addressMap_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + addressMapBuilder_.clear(); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public Builder removeAddressMap(int index) { + if (addressMapBuilder_ == null) { + ensureAddressMapIsMutable(); + addressMap_.remove(index); + onChanged(); + } else { + addressMapBuilder_.remove(index); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder getAddressMapBuilder( + int index) { + return internalGetAddressMapFieldBuilder().getBuilder(index); + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder getAddressMapOrBuilder( + int index) { + if (addressMapBuilder_ == null) { + return addressMap_.get(index); } else { + return addressMapBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public java.util.List + getAddressMapOrBuilderList() { + if (addressMapBuilder_ != null) { + return addressMapBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(addressMap_); + } + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder addAddressMapBuilder() { + return internalGetAddressMapFieldBuilder().addBuilder( + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder addAddressMapBuilder( + int index) { + return internalGetAddressMapFieldBuilder().addBuilder( + index, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 4];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 2; + */ + public java.util.List + getAddressMapBuilderList() { + return internalGetAddressMapFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder, org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder> + internalGetAddressMapFieldBuilder() { + if (addressMapBuilder_ == null) { + addressMapBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder, org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder>( + addressMap_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + addressMap_ = null; + } + return addressMapBuilder_; + } - static { - defaultInstance = new PageInfo(true); - defaultInstance.initFields(); - } + // @@protoc_insertion_point(builder_scope:oslp.DaliConfiguration) + } - // @@protoc_insertion_point(class_scope:oslp.PageInfo) - } + // @@protoc_insertion_point(class_scope:oslp.DaliConfiguration) + private static final org.opensmartgridplatform.oslp.Oslp.DaliConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.DaliConfiguration(); + } - public interface TimePeriodOrBuilder extends com.google.protobuf.MessageOrBuilder { + public static org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // required string startTime = 1; - boolean hasStartTime(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DaliConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - String getStartTime(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.DaliConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RelayConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.RelayConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + java.util.List + getAddressMapList(); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getAddressMap(int index); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + int getAddressMapCount(); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + java.util.List + getAddressMapOrBuilderList(); + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder getAddressMapOrBuilder( + int index); + } + /** + * Protobuf type {@code oslp.RelayConfiguration} + */ + public static final class RelayConfiguration extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.RelayConfiguration) + RelayConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + RelayConfiguration.class.getName()); + } + // Use RelayConfiguration.newBuilder() to construct. + private RelayConfiguration(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private RelayConfiguration() { + addressMap_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.class, org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder.class); + } + + public static final int ADDRESSMAP_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List addressMap_; + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + @java.lang.Override + public java.util.List getAddressMapList() { + return addressMap_; + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + @java.lang.Override + public java.util.List + getAddressMapOrBuilderList() { + return addressMap_; + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + @java.lang.Override + public int getAddressMapCount() { + return addressMap_.size(); + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getAddressMap(int index) { + return addressMap_.get(index); + } + /** + *
+         * [(nanopb).max_count = 6];
+         * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder getAddressMapOrBuilder( + int index) { + return addressMap_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + for (int i = 0; i < getAddressMapCount(); i++) { + if (!getAddressMap(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - // required string endTime = 2; - boolean hasEndTime(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < addressMap_.size(); i++) { + output.writeMessage(1, addressMap_.get(i)); + } + getUnknownFields().writeTo(output); + } - String getEndTime(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final class TimePeriod extends com.google.protobuf.GeneratedMessage - implements TimePeriodOrBuilder { - // Use TimePeriod.newBuilder() to construct. - private TimePeriod(final Builder builder) { - super(builder); - } + size = 0; + for (int i = 0; i < addressMap_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, addressMap_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private TimePeriod(final boolean noInit) {} + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.RelayConfiguration)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration other = (org.opensmartgridplatform.oslp.Oslp.RelayConfiguration) obj; - private static final TimePeriod defaultInstance; + if (!getAddressMapList() + .equals(other.getAddressMapList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static TimePeriod getDefaultInstance() { - return defaultInstance; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAddressMapCount() > 0) { + hash = (37 * hash) + ADDRESSMAP_FIELD_NUMBER; + hash = (53 * hash) + getAddressMapList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.RelayConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.RelayConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.RelayConfiguration) + org.opensmartgridplatform.oslp.Oslp.RelayConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayConfiguration_descriptor; + } - @Override - public TimePeriod getDefaultInstanceForType() { - return defaultInstance; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.class, org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder.class); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_TimePeriod_descriptor; - } + // Construct using org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.newBuilder() + private Builder() { - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_TimePeriod_fieldAccessorTable; - } + } - private int bitField0_; - // required string startTime = 1; - public static final int STARTTIME_FIELD_NUMBER = 1; - private java.lang.Object startTime_; + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - @Override - public boolean hasStartTime() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (addressMapBuilder_ == null) { + addressMap_ = java.util.Collections.emptyList(); + } else { + addressMap_ = null; + addressMapBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - @Override - public String getStartTime() { - final java.lang.Object ref = this.startTime_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.startTime_ = s; - } - return s; - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayConfiguration_descriptor; + } - private com.google.protobuf.ByteString getStartTimeBytes() { - final java.lang.Object ref = this.startTime_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance(); + } - // required string endTime = 2; - public static final int ENDTIME_FIELD_NUMBER = 2; - private java.lang.Object endTime_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration build() { + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public boolean hasEndTime() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration buildPartial() { + org.opensmartgridplatform.oslp.Oslp.RelayConfiguration result = new org.opensmartgridplatform.oslp.Oslp.RelayConfiguration(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - @Override - public String getEndTime() { - final java.lang.Object ref = this.endTime_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.endTime_ = s; - } - return s; - } - } + private void buildPartialRepeatedFields(org.opensmartgridplatform.oslp.Oslp.RelayConfiguration result) { + if (addressMapBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + addressMap_ = java.util.Collections.unmodifiableList(addressMap_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.addressMap_ = addressMap_; + } else { + result.addressMap_ = addressMapBuilder_.build(); + } + } - private com.google.protobuf.ByteString getEndTimeBytes() { - final java.lang.Object ref = this.endTime_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.endTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.RelayConfiguration result) { + int from_bitField0_ = bitField0_; + } - private void initFields() { - this.startTime_ = ""; - this.endTime_ = ""; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.RelayConfiguration) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.RelayConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasStartTime()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasEndTime()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.RelayConfiguration other) { + if (other == org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.getDefaultInstance()) return this; + if (addressMapBuilder_ == null) { + if (!other.addressMap_.isEmpty()) { + if (addressMap_.isEmpty()) { + addressMap_ = other.addressMap_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAddressMapIsMutable(); + addressMap_.addAll(other.addressMap_); + } + onChanged(); + } + } else { + if (!other.addressMap_.isEmpty()) { + if (addressMapBuilder_.isEmpty()) { + addressMapBuilder_.dispose(); + addressMapBuilder_ = null; + addressMap_ = other.addressMap_; + bitField0_ = (bitField0_ & ~0x00000001); + addressMapBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetAddressMapFieldBuilder() : null; + } else { + addressMapBuilder_.addAllMessages(other.addressMap_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, this.getStartTimeBytes()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, this.getEndTimeBytes()); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public final boolean isInitialized() { + for (int i = 0; i < getAddressMapCount(); i++) { + if (!getAddressMap(i).isInitialized()) { + return false; + } + } + return true; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, this.getStartTimeBytes()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, this.getEndTimeBytes()); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap m = + input.readMessage( + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.parser(), + extensionRegistry); + if (addressMapBuilder_ == null) { + ensureAddressMapIsMutable(); + addressMap_.add(m); + } else { + addressMapBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List addressMap_ = + java.util.Collections.emptyList(); + private void ensureAddressMapIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + addressMap_ = new java.util.ArrayList(addressMap_); + bitField0_ |= 0x00000001; + } + } - private static final long serialVersionUID = 0L; + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder, org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder> addressMapBuilder_; + + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public java.util.List getAddressMapList() { + if (addressMapBuilder_ == null) { + return java.util.Collections.unmodifiableList(addressMap_); + } else { + return addressMapBuilder_.getMessageList(); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public int getAddressMapCount() { + if (addressMapBuilder_ == null) { + return addressMap_.size(); + } else { + return addressMapBuilder_.getCount(); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getAddressMap(int index) { + if (addressMapBuilder_ == null) { + return addressMap_.get(index); + } else { + return addressMapBuilder_.getMessage(index); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public Builder setAddressMap( + int index, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap value) { + if (addressMapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressMapIsMutable(); + addressMap_.set(index, value); + onChanged(); + } else { + addressMapBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public Builder setAddressMap( + int index, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder builderForValue) { + if (addressMapBuilder_ == null) { + ensureAddressMapIsMutable(); + addressMap_.set(index, builderForValue.build()); + onChanged(); + } else { + addressMapBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public Builder addAddressMap(org.opensmartgridplatform.oslp.Oslp.IndexAddressMap value) { + if (addressMapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressMapIsMutable(); + addressMap_.add(value); + onChanged(); + } else { + addressMapBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public Builder addAddressMap( + int index, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap value) { + if (addressMapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressMapIsMutable(); + addressMap_.add(index, value); + onChanged(); + } else { + addressMapBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public Builder addAddressMap( + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder builderForValue) { + if (addressMapBuilder_ == null) { + ensureAddressMapIsMutable(); + addressMap_.add(builderForValue.build()); + onChanged(); + } else { + addressMapBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public Builder addAddressMap( + int index, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder builderForValue) { + if (addressMapBuilder_ == null) { + ensureAddressMapIsMutable(); + addressMap_.add(index, builderForValue.build()); + onChanged(); + } else { + addressMapBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public Builder addAllAddressMap( + java.lang.Iterable values) { + if (addressMapBuilder_ == null) { + ensureAddressMapIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, addressMap_); + onChanged(); + } else { + addressMapBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public Builder clearAddressMap() { + if (addressMapBuilder_ == null) { + addressMap_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + addressMapBuilder_.clear(); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public Builder removeAddressMap(int index) { + if (addressMapBuilder_ == null) { + ensureAddressMapIsMutable(); + addressMap_.remove(index); + onChanged(); + } else { + addressMapBuilder_.remove(index); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder getAddressMapBuilder( + int index) { + return internalGetAddressMapFieldBuilder().getBuilder(index); + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder getAddressMapOrBuilder( + int index) { + if (addressMapBuilder_ == null) { + return addressMap_.get(index); } else { + return addressMapBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public java.util.List + getAddressMapOrBuilderList() { + if (addressMapBuilder_ != null) { + return addressMapBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(addressMap_); + } + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder addAddressMapBuilder() { + return internalGetAddressMapFieldBuilder().addBuilder( + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder addAddressMapBuilder( + int index) { + return internalGetAddressMapFieldBuilder().addBuilder( + index, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 6];
+             * 
+ * + * repeated .oslp.IndexAddressMap addressMap = 1; + */ + public java.util.List + getAddressMapBuilderList() { + return internalGetAddressMapFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder, org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder> + internalGetAddressMapFieldBuilder() { + if (addressMapBuilder_ == null) { + addressMapBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder, org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder>( + addressMap_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + addressMap_ = null; + } + return addressMapBuilder_; + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + // @@protoc_insertion_point(builder_scope:oslp.RelayConfiguration) + } - public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + // @@protoc_insertion_point(class_scope:oslp.RelayConfiguration) + private static final org.opensmartgridplatform.oslp.Oslp.RelayConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.RelayConfiguration(); + } - public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + public static org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelayConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RelayMatrixOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.RelayMatrix) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_count = 1];
+         * 
+ * + * bytes masterRelayIndex = 1 [features = { ... } + * @return Whether the masterRelayIndex field is set. + */ + boolean hasMasterRelayIndex(); + /** + *
+         * [(nanopb).max_count = 1];
+         * 
+ * + * bytes masterRelayIndex = 1 [features = { ... } + * @return The masterRelayIndex. + */ + com.google.protobuf.ByteString getMasterRelayIndex(); + + /** + *
+         * [(nanopb).max_count = 1];
+         * 
+ * + * bool masterRelayOn = 2 [features = { ... } + * @return Whether the masterRelayOn field is set. + */ + boolean hasMasterRelayOn(); + /** + *
+         * [(nanopb).max_count = 1];
+         * 
+ * + * bool masterRelayOn = 2 [features = { ... } + * @return The masterRelayOn. + */ + boolean getMasterRelayOn(); + + /** + *
+         * [(nanopb).max_count = 4];  // IndexNumber of output Relay to switch ON if Master Relay state changes as determined by masterRelayOn.
+         * 
+ * + * bytes indicesOfControlledRelaysOn = 3; + * @return Whether the indicesOfControlledRelaysOn field is set. + */ + boolean hasIndicesOfControlledRelaysOn(); + /** + *
+         * [(nanopb).max_count = 4];  // IndexNumber of output Relay to switch ON if Master Relay state changes as determined by masterRelayOn.
+         * 
+ * + * bytes indicesOfControlledRelaysOn = 3; + * @return The indicesOfControlledRelaysOn. + */ + com.google.protobuf.ByteString getIndicesOfControlledRelaysOn(); + + /** + *
+         * [(nanopb).max_count = 4]; // IndexNumber of output Relay to switch OFF if Master Relay sate changes as determined by MasterRelayOff.
+         * 
+ * + * bytes indicesOfControlledRelaysOff = 4; + * @return Whether the indicesOfControlledRelaysOff field is set. + */ + boolean hasIndicesOfControlledRelaysOff(); + /** + *
+         * [(nanopb).max_count = 4]; // IndexNumber of output Relay to switch OFF if Master Relay sate changes as determined by MasterRelayOff.
+         * 
+ * + * bytes indicesOfControlledRelaysOff = 4; + * @return The indicesOfControlledRelaysOff. + */ + com.google.protobuf.ByteString getIndicesOfControlledRelaysOff(); + } + /** + * Protobuf type {@code oslp.RelayMatrix} + */ + public static final class RelayMatrix extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.RelayMatrix) + RelayMatrixOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + RelayMatrix.class.getName()); + } + // Use RelayMatrix.newBuilder() to construct. + private RelayMatrix(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private RelayMatrix() { + masterRelayIndex_ = com.google.protobuf.ByteString.EMPTY; + indicesOfControlledRelaysOn_ = com.google.protobuf.ByteString.EMPTY; + indicesOfControlledRelaysOff_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayMatrix_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayMatrix_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.RelayMatrix.class, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder.class); + } + + private int bitField0_; + public static final int MASTERRELAYINDEX_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString masterRelayIndex_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_count = 1];
+         * 
+ * + * bytes masterRelayIndex = 1 [features = { ... } + * @return Whether the masterRelayIndex field is set. + */ + @java.lang.Override + public boolean hasMasterRelayIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * [(nanopb).max_count = 1];
+         * 
+ * + * bytes masterRelayIndex = 1 [features = { ... } + * @return The masterRelayIndex. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMasterRelayIndex() { + return masterRelayIndex_; + } + + public static final int MASTERRELAYON_FIELD_NUMBER = 2; + private boolean masterRelayOn_ = false; + /** + *
+         * [(nanopb).max_count = 1];
+         * 
+ * + * bool masterRelayOn = 2 [features = { ... } + * @return Whether the masterRelayOn field is set. + */ + @java.lang.Override + public boolean hasMasterRelayOn() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * [(nanopb).max_count = 1];
+         * 
+ * + * bool masterRelayOn = 2 [features = { ... } + * @return The masterRelayOn. + */ + @java.lang.Override + public boolean getMasterRelayOn() { + return masterRelayOn_; + } + + public static final int INDICESOFCONTROLLEDRELAYSON_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString indicesOfControlledRelaysOn_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_count = 4];  // IndexNumber of output Relay to switch ON if Master Relay state changes as determined by masterRelayOn.
+         * 
+ * + * bytes indicesOfControlledRelaysOn = 3; + * @return Whether the indicesOfControlledRelaysOn field is set. + */ + @java.lang.Override + public boolean hasIndicesOfControlledRelaysOn() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * [(nanopb).max_count = 4];  // IndexNumber of output Relay to switch ON if Master Relay state changes as determined by masterRelayOn.
+         * 
+ * + * bytes indicesOfControlledRelaysOn = 3; + * @return The indicesOfControlledRelaysOn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndicesOfControlledRelaysOn() { + return indicesOfControlledRelaysOn_; + } + + public static final int INDICESOFCONTROLLEDRELAYSOFF_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString indicesOfControlledRelaysOff_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_count = 4]; // IndexNumber of output Relay to switch OFF if Master Relay sate changes as determined by MasterRelayOff.
+         * 
+ * + * bytes indicesOfControlledRelaysOff = 4; + * @return Whether the indicesOfControlledRelaysOff field is set. + */ + @java.lang.Override + public boolean hasIndicesOfControlledRelaysOff() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+         * [(nanopb).max_count = 4]; // IndexNumber of output Relay to switch OFF if Master Relay sate changes as determined by MasterRelayOff.
+         * 
+ * + * bytes indicesOfControlledRelaysOff = 4; + * @return The indicesOfControlledRelaysOff. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndicesOfControlledRelaysOff() { + return indicesOfControlledRelaysOff_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasMasterRelayIndex()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMasterRelayOn()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBytes(1, masterRelayIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, masterRelayOn_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBytes(3, indicesOfControlledRelaysOn_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBytes(4, indicesOfControlledRelaysOff_); + } + getUnknownFields().writeTo(output); + } - public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, masterRelayIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, masterRelayOn_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, indicesOfControlledRelaysOn_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, indicesOfControlledRelaysOff_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.RelayMatrix)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.RelayMatrix other = (org.opensmartgridplatform.oslp.Oslp.RelayMatrix) obj; - public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + if (hasMasterRelayIndex() != other.hasMasterRelayIndex()) return false; + if (hasMasterRelayIndex()) { + if (!getMasterRelayIndex() + .equals(other.getMasterRelayIndex())) return false; + } + if (hasMasterRelayOn() != other.hasMasterRelayOn()) return false; + if (hasMasterRelayOn()) { + if (getMasterRelayOn() + != other.getMasterRelayOn()) return false; + } + if (hasIndicesOfControlledRelaysOn() != other.hasIndicesOfControlledRelaysOn()) return false; + if (hasIndicesOfControlledRelaysOn()) { + if (!getIndicesOfControlledRelaysOn() + .equals(other.getIndicesOfControlledRelaysOn())) return false; + } + if (hasIndicesOfControlledRelaysOff() != other.hasIndicesOfControlledRelaysOff()) return false; + if (hasIndicesOfControlledRelaysOff()) { + if (!getIndicesOfControlledRelaysOff() + .equals(other.getIndicesOfControlledRelaysOff())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMasterRelayIndex()) { + hash = (37 * hash) + MASTERRELAYINDEX_FIELD_NUMBER; + hash = (53 * hash) + getMasterRelayIndex().hashCode(); + } + if (hasMasterRelayOn()) { + hash = (37 * hash) + MASTERRELAYON_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMasterRelayOn()); + } + if (hasIndicesOfControlledRelaysOn()) { + hash = (37 * hash) + INDICESOFCONTROLLEDRELAYSON_FIELD_NUMBER; + hash = (53 * hash) + getIndicesOfControlledRelaysOn().hashCode(); + } + if (hasIndicesOfControlledRelaysOff()) { + hash = (37 * hash) + INDICESOFCONTROLLEDRELAYSOFF_FIELD_NUMBER; + hash = (53 * hash) + getIndicesOfControlledRelaysOff().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.RelayMatrix prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.RelayMatrix} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.RelayMatrix) + org.opensmartgridplatform.oslp.Oslp.RelayMatrixOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayMatrix_descriptor; + } - public static Builder newBuilder() { - return Builder.create(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayMatrix_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.RelayMatrix.class, org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder.class); + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.RelayMatrix.newBuilder() + private Builder() { - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.TimePeriod prototype) { - return newBuilder().mergeFrom(prototype); - } + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + masterRelayIndex_ = com.google.protobuf.ByteString.EMPTY; + masterRelayOn_ = false; + indicesOfControlledRelaysOn_ = com.google.protobuf.ByteString.EMPTY; + indicesOfControlledRelaysOff_ = com.google.protobuf.ByteString.EMPTY; + return this; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.TimePeriodOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_TimePeriod_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_TimePeriod_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.TimePeriod.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.startTime_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.endTime_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.TimePeriod.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.TimePeriod getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.TimePeriod.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.TimePeriod build() { - final org.opensmartgridplatform.oslp.Oslp.TimePeriod result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.TimePeriod buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.TimePeriod result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.TimePeriod buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.TimePeriod result = - new org.opensmartgridplatform.oslp.Oslp.TimePeriod(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.startTime_ = this.startTime_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.endTime_ = this.endTime_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.TimePeriod) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.TimePeriod) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.TimePeriod other) { - if (other == org.opensmartgridplatform.oslp.Oslp.TimePeriod.getDefaultInstance()) { - return this; - } - if (other.hasStartTime()) { - this.setStartTime(other.getStartTime()); - } - if (other.hasEndTime()) { - this.setEndTime(other.getEndTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasStartTime()) { - - return false; - } - if (!this.hasEndTime()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - this.bitField0_ |= 0x00000001; - this.startTime_ = input.readBytes(); - break; - } - case 18: - { - this.bitField0_ |= 0x00000002; - this.endTime_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required string startTime = 1; - private java.lang.Object startTime_ = ""; - - @Override - public boolean hasStartTime() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public String getStartTime() { - final java.lang.Object ref = this.startTime_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.startTime_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setStartTime(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.startTime_ = value; - this.onChanged(); - return this; - } - - public Builder clearStartTime() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.startTime_ = getDefaultInstance().getStartTime(); - this.onChanged(); - return this; - } - - void setStartTime(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000001; - this.startTime_ = value; - this.onChanged(); - } - - // required string endTime = 2; - private java.lang.Object endTime_ = ""; - - @Override - public boolean hasEndTime() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public String getEndTime() { - final java.lang.Object ref = this.endTime_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.endTime_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setEndTime(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000002; - this.endTime_ = value; - this.onChanged(); - return this; - } - - public Builder clearEndTime() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.endTime_ = getDefaultInstance().getEndTime(); - this.onChanged(); - return this; - } - - void setEndTime(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000002; - this.endTime_ = value; - this.onChanged(); - } - - // @@protoc_insertion_point(builder_scope:oslp.TimePeriod) - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayMatrix_descriptor; + } - static { - defaultInstance = new TimePeriod(true); - defaultInstance.initFields(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayMatrix getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.RelayMatrix.getDefaultInstance(); + } - // @@protoc_insertion_point(class_scope:oslp.TimePeriod) - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayMatrix build() { + org.opensmartgridplatform.oslp.Oslp.RelayMatrix result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public interface PowerUsageDataOrBuilder extends com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayMatrix buildPartial() { + org.opensmartgridplatform.oslp.Oslp.RelayMatrix result = new org.opensmartgridplatform.oslp.Oslp.RelayMatrix(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - // required string recordTime = 1; - boolean hasRecordTime(); + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.RelayMatrix result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.masterRelayIndex_ = masterRelayIndex_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.masterRelayOn_ = masterRelayOn_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.indicesOfControlledRelaysOn_ = indicesOfControlledRelaysOn_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.indicesOfControlledRelaysOff_ = indicesOfControlledRelaysOff_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } - String getRecordTime(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.RelayMatrix) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.RelayMatrix)other); + } else { + super.mergeFrom(other); + return this; + } + } - // required .oslp.MeterType meterType = 2; - boolean hasMeterType(); + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.RelayMatrix other) { + if (other == org.opensmartgridplatform.oslp.Oslp.RelayMatrix.getDefaultInstance()) return this; + if (other.hasMasterRelayIndex()) { + setMasterRelayIndex(other.getMasterRelayIndex()); + } + if (other.hasMasterRelayOn()) { + setMasterRelayOn(other.getMasterRelayOn()); + } + if (other.hasIndicesOfControlledRelaysOn()) { + setIndicesOfControlledRelaysOn(other.getIndicesOfControlledRelaysOn()); + } + if (other.hasIndicesOfControlledRelaysOff()) { + setIndicesOfControlledRelaysOff(other.getIndicesOfControlledRelaysOff()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType(); + @java.lang.Override + public final boolean isInitialized() { + if (!hasMasterRelayIndex()) { + return false; + } + if (!hasMasterRelayOn()) { + return false; + } + return true; + } - // required uint64 totalConsumedEnergy = 3; - boolean hasTotalConsumedEnergy(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + masterRelayIndex_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + masterRelayOn_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + indicesOfControlledRelaysOn_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + indicesOfControlledRelaysOff_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString masterRelayIndex_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_count = 1];
+             * 
+ * + * bytes masterRelayIndex = 1 [features = { ... } + * @return Whether the masterRelayIndex field is set. + */ + @java.lang.Override + public boolean hasMasterRelayIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * [(nanopb).max_count = 1];
+             * 
+ * + * bytes masterRelayIndex = 1 [features = { ... } + * @return The masterRelayIndex. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMasterRelayIndex() { + return masterRelayIndex_; + } + /** + *
+             * [(nanopb).max_count = 1];
+             * 
+ * + * bytes masterRelayIndex = 1 [features = { ... } + * @param value The masterRelayIndex to set. + * @return This builder for chaining. + */ + public Builder setMasterRelayIndex(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + masterRelayIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 1];
+             * 
+ * + * bytes masterRelayIndex = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearMasterRelayIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + masterRelayIndex_ = getDefaultInstance().getMasterRelayIndex(); + onChanged(); + return this; + } - long getTotalConsumedEnergy(); + private boolean masterRelayOn_ ; + /** + *
+             * [(nanopb).max_count = 1];
+             * 
+ * + * bool masterRelayOn = 2 [features = { ... } + * @return Whether the masterRelayOn field is set. + */ + @java.lang.Override + public boolean hasMasterRelayOn() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * [(nanopb).max_count = 1];
+             * 
+ * + * bool masterRelayOn = 2 [features = { ... } + * @return The masterRelayOn. + */ + @java.lang.Override + public boolean getMasterRelayOn() { + return masterRelayOn_; + } + /** + *
+             * [(nanopb).max_count = 1];
+             * 
+ * + * bool masterRelayOn = 2 [features = { ... } + * @param value The masterRelayOn to set. + * @return This builder for chaining. + */ + public Builder setMasterRelayOn(boolean value) { + + masterRelayOn_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 1];
+             * 
+ * + * bool masterRelayOn = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearMasterRelayOn() { + bitField0_ = (bitField0_ & ~0x00000002); + masterRelayOn_ = false; + onChanged(); + return this; + } - // required uint32 actualConsumedPower = 4; - boolean hasActualConsumedPower(); + private com.google.protobuf.ByteString indicesOfControlledRelaysOn_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_count = 4];  // IndexNumber of output Relay to switch ON if Master Relay state changes as determined by masterRelayOn.
+             * 
+ * + * bytes indicesOfControlledRelaysOn = 3; + * @return Whether the indicesOfControlledRelaysOn field is set. + */ + @java.lang.Override + public boolean hasIndicesOfControlledRelaysOn() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * [(nanopb).max_count = 4];  // IndexNumber of output Relay to switch ON if Master Relay state changes as determined by masterRelayOn.
+             * 
+ * + * bytes indicesOfControlledRelaysOn = 3; + * @return The indicesOfControlledRelaysOn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndicesOfControlledRelaysOn() { + return indicesOfControlledRelaysOn_; + } + /** + *
+             * [(nanopb).max_count = 4];  // IndexNumber of output Relay to switch ON if Master Relay state changes as determined by masterRelayOn.
+             * 
+ * + * bytes indicesOfControlledRelaysOn = 3; + * @param value The indicesOfControlledRelaysOn to set. + * @return This builder for chaining. + */ + public Builder setIndicesOfControlledRelaysOn(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + indicesOfControlledRelaysOn_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4];  // IndexNumber of output Relay to switch ON if Master Relay state changes as determined by masterRelayOn.
+             * 
+ * + * bytes indicesOfControlledRelaysOn = 3; + * @return This builder for chaining. + */ + public Builder clearIndicesOfControlledRelaysOn() { + bitField0_ = (bitField0_ & ~0x00000004); + indicesOfControlledRelaysOn_ = getDefaultInstance().getIndicesOfControlledRelaysOn(); + onChanged(); + return this; + } - int getActualConsumedPower(); + private com.google.protobuf.ByteString indicesOfControlledRelaysOff_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_count = 4]; // IndexNumber of output Relay to switch OFF if Master Relay sate changes as determined by MasterRelayOff.
+             * 
+ * + * bytes indicesOfControlledRelaysOff = 4; + * @return Whether the indicesOfControlledRelaysOff field is set. + */ + @java.lang.Override + public boolean hasIndicesOfControlledRelaysOff() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+             * [(nanopb).max_count = 4]; // IndexNumber of output Relay to switch OFF if Master Relay sate changes as determined by MasterRelayOff.
+             * 
+ * + * bytes indicesOfControlledRelaysOff = 4; + * @return The indicesOfControlledRelaysOff. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndicesOfControlledRelaysOff() { + return indicesOfControlledRelaysOff_; + } + /** + *
+             * [(nanopb).max_count = 4]; // IndexNumber of output Relay to switch OFF if Master Relay sate changes as determined by MasterRelayOff.
+             * 
+ * + * bytes indicesOfControlledRelaysOff = 4; + * @param value The indicesOfControlledRelaysOff to set. + * @return This builder for chaining. + */ + public Builder setIndicesOfControlledRelaysOff(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + indicesOfControlledRelaysOff_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_count = 4]; // IndexNumber of output Relay to switch OFF if Master Relay sate changes as determined by MasterRelayOff.
+             * 
+ * + * bytes indicesOfControlledRelaysOff = 4; + * @return This builder for chaining. + */ + public Builder clearIndicesOfControlledRelaysOff() { + bitField0_ = (bitField0_ & ~0x00000008); + indicesOfControlledRelaysOff_ = getDefaultInstance().getIndicesOfControlledRelaysOff(); + onChanged(); + return this; + } - // optional .oslp.PsldData psldData = 5; - boolean hasPsldData(); + // @@protoc_insertion_point(builder_scope:oslp.RelayMatrix) + } - org.opensmartgridplatform.oslp.Oslp.PsldData getPsldData(); + // @@protoc_insertion_point(class_scope:oslp.RelayMatrix) + private static final org.opensmartgridplatform.oslp.Oslp.RelayMatrix DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.RelayMatrix(); + } - org.opensmartgridplatform.oslp.Oslp.PsldDataOrBuilder getPsldDataOrBuilder(); + public static org.opensmartgridplatform.oslp.Oslp.RelayMatrix getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // optional .oslp.SsldData ssldData = 6; - boolean hasSsldData(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelayMatrix parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - org.opensmartgridplatform.oslp.Oslp.SsldData getSsldData(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayMatrix getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IndexAddressMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.IndexAddressMap) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_size = 1];   // External index, for example 1.
+         * 
+ * + * bytes index = 1 [features = { ... } + * @return Whether the index field is set. + */ + boolean hasIndex(); + /** + *
+         * [(nanopb).max_size = 1];   // External index, for example 1.
+         * 
+ * + * bytes index = 1 [features = { ... } + * @return The index. + */ + com.google.protobuf.ByteString getIndex(); + + /** + *
+         * [(nanopb).max_size = 1]; // Internal address, for example 2.
+         * 
+ * + * bytes address = 2 [features = { ... } + * @return Whether the address field is set. + */ + boolean hasAddress(); + /** + *
+         * [(nanopb).max_size = 1]; // Internal address, for example 2.
+         * 
+ * + * bytes address = 2 [features = { ... } + * @return The address. + */ + com.google.protobuf.ByteString getAddress(); + + /** + * .oslp.RelayType relayType = 3 [features = { ... } + * @return Whether the relayType field is set. + */ + boolean hasRelayType(); + /** + * .oslp.RelayType relayType = 3 [features = { ... } + * @return The enum numeric value on the wire for relayType. + */ + int getRelayTypeValue(); + /** + * .oslp.RelayType relayType = 3 [features = { ... } + * @return The relayType. + */ + org.opensmartgridplatform.oslp.Oslp.RelayType getRelayType(); + } + /** + * Protobuf type {@code oslp.IndexAddressMap} + */ + public static final class IndexAddressMap extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.IndexAddressMap) + IndexAddressMapOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + IndexAddressMap.class.getName()); + } + // Use IndexAddressMap.newBuilder() to construct. + private IndexAddressMap(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private IndexAddressMap() { + index_ = com.google.protobuf.ByteString.EMPTY; + address_ = com.google.protobuf.ByteString.EMPTY; + relayType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_IndexAddressMap_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_IndexAddressMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.class, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder.class); + } + + private int bitField0_; + public static final int INDEX_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_size = 1];   // External index, for example 1.
+         * 
+ * + * bytes index = 1 [features = { ... } + * @return Whether the index field is set. + */ + @java.lang.Override + public boolean hasIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * [(nanopb).max_size = 1];   // External index, for example 1.
+         * 
+ * + * bytes index = 1 [features = { ... } + * @return The index. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndex() { + return index_; + } + + public static final int ADDRESS_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_size = 1]; // Internal address, for example 2.
+         * 
+ * + * bytes address = 2 [features = { ... } + * @return Whether the address field is set. + */ + @java.lang.Override + public boolean hasAddress() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * [(nanopb).max_size = 1]; // Internal address, for example 2.
+         * 
+ * + * bytes address = 2 [features = { ... } + * @return The address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddress() { + return address_; + } + + public static final int RELAYTYPE_FIELD_NUMBER = 3; + private int relayType_ = 0; + /** + * .oslp.RelayType relayType = 3 [features = { ... } + * @return Whether the relayType field is set. + */ + @java.lang.Override public boolean hasRelayType() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .oslp.RelayType relayType = 3 [features = { ... } + * @return The enum numeric value on the wire for relayType. + */ + @java.lang.Override public int getRelayTypeValue() { + return relayType_; + } + /** + * .oslp.RelayType relayType = 3 [features = { ... } + * @return The relayType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.RelayType getRelayType() { + org.opensmartgridplatform.oslp.Oslp.RelayType result = org.opensmartgridplatform.oslp.Oslp.RelayType.forNumber(relayType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.RelayType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasIndex()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAddress()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRelayType()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - org.opensmartgridplatform.oslp.Oslp.SsldDataOrBuilder getSsldDataOrBuilder(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBytes(1, index_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBytes(2, address_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, relayType_); + } + getUnknownFields().writeTo(output); + } - public static final class PowerUsageData extends com.google.protobuf.GeneratedMessage - implements PowerUsageDataOrBuilder { - // Use PowerUsageData.newBuilder() to construct. - private PowerUsageData(final Builder builder) { - super(builder); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private PowerUsageData(final boolean noInit) {} + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, index_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, address_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, relayType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private static final PowerUsageData defaultInstance; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.IndexAddressMap)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap other = (org.opensmartgridplatform.oslp.Oslp.IndexAddressMap) obj; - public static PowerUsageData getDefaultInstance() { - return defaultInstance; - } + if (hasIndex() != other.hasIndex()) return false; + if (hasIndex()) { + if (!getIndex() + .equals(other.getIndex())) return false; + } + if (hasAddress() != other.hasAddress()) return false; + if (hasAddress()) { + if (!getAddress() + .equals(other.getAddress())) return false; + } + if (hasRelayType() != other.hasRelayType()) return false; + if (hasRelayType()) { + if (relayType_ != other.relayType_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public PowerUsageData getDefaultInstanceForType() { - return defaultInstance; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIndex()) { + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex().hashCode(); + } + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + } + if (hasRelayType()) { + hash = (37 * hash) + RELAYTYPE_FIELD_NUMBER; + hash = (53 * hash) + relayType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.IndexAddressMap prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.IndexAddressMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.IndexAddressMap) + org.opensmartgridplatform.oslp.Oslp.IndexAddressMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_IndexAddressMap_descriptor; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PowerUsageData_descriptor; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_IndexAddressMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.class, org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder.class); + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_PowerUsageData_fieldAccessorTable; - } + // Construct using org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.newBuilder() + private Builder() { - private int bitField0_; - // required string recordTime = 1; - public static final int RECORDTIME_FIELD_NUMBER = 1; - private java.lang.Object recordTime_; + } - @Override - public boolean hasRecordTime() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - @Override - public String getRecordTime() { - final java.lang.Object ref = this.recordTime_; - if (ref instanceof String) { - return (String) ref; - } else { - final com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - final String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - this.recordTime_ = s; - } - return s; - } - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + index_ = com.google.protobuf.ByteString.EMPTY; + address_ = com.google.protobuf.ByteString.EMPTY; + relayType_ = 0; + return this; + } - private com.google.protobuf.ByteString getRecordTimeBytes() { - final java.lang.Object ref = this.recordTime_; - if (ref instanceof String) { - final com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - this.recordTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_IndexAddressMap_descriptor; + } - // required .oslp.MeterType meterType = 2; - public static final int METERTYPE_FIELD_NUMBER = 2; - private org.opensmartgridplatform.oslp.Oslp.MeterType meterType_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.getDefaultInstance(); + } - @Override - public boolean hasMeterType() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap build() { + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType() { - return this.meterType_; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap buildPartial() { + org.opensmartgridplatform.oslp.Oslp.IndexAddressMap result = new org.opensmartgridplatform.oslp.Oslp.IndexAddressMap(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - // required uint64 totalConsumedEnergy = 3; - public static final int TOTALCONSUMEDENERGY_FIELD_NUMBER = 3; - private long totalConsumedEnergy_; + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.IndexAddressMap result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.index_ = index_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.address_ = address_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.relayType_ = relayType_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } - @Override - public boolean hasTotalConsumedEnergy() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.IndexAddressMap) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.IndexAddressMap)other); + } else { + super.mergeFrom(other); + return this; + } + } - @Override - public long getTotalConsumedEnergy() { - return this.totalConsumedEnergy_; - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.IndexAddressMap other) { + if (other == org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.getDefaultInstance()) return this; + if (other.hasIndex()) { + setIndex(other.getIndex()); + } + if (other.hasAddress()) { + setAddress(other.getAddress()); + } + if (other.hasRelayType()) { + setRelayTypeValue(other.getRelayTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - // required uint32 actualConsumedPower = 4; - public static final int ACTUALCONSUMEDPOWER_FIELD_NUMBER = 4; - private int actualConsumedPower_; + @java.lang.Override + public final boolean isInitialized() { + if (!hasIndex()) { + return false; + } + if (!hasAddress()) { + return false; + } + if (!hasRelayType()) { + return false; + } + return true; + } - @Override - public boolean hasActualConsumedPower() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + index_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + address_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + relayType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_size = 1];   // External index, for example 1.
+             * 
+ * + * bytes index = 1 [features = { ... } + * @return Whether the index field is set. + */ + @java.lang.Override + public boolean hasIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * [(nanopb).max_size = 1];   // External index, for example 1.
+             * 
+ * + * bytes index = 1 [features = { ... } + * @return The index. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndex() { + return index_; + } + /** + *
+             * [(nanopb).max_size = 1];   // External index, for example 1.
+             * 
+ * + * bytes index = 1 [features = { ... } + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + index_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 1];   // External index, for example 1.
+             * 
+ * + * bytes index = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + index_ = getDefaultInstance().getIndex(); + onChanged(); + return this; + } - @Override - public int getActualConsumedPower() { - return this.actualConsumedPower_; - } + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_size = 1]; // Internal address, for example 2.
+             * 
+ * + * bytes address = 2 [features = { ... } + * @return Whether the address field is set. + */ + @java.lang.Override + public boolean hasAddress() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * [(nanopb).max_size = 1]; // Internal address, for example 2.
+             * 
+ * + * bytes address = 2 [features = { ... } + * @return The address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** + *
+             * [(nanopb).max_size = 1]; // Internal address, for example 2.
+             * 
+ * + * bytes address = 2 [features = { ... } + * @param value The address to set. + * @return This builder for chaining. + */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + address_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 1]; // Internal address, for example 2.
+             * 
+ * + * bytes address = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearAddress() { + bitField0_ = (bitField0_ & ~0x00000002); + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } - // optional .oslp.PsldData psldData = 5; - public static final int PSLDDATA_FIELD_NUMBER = 5; - private org.opensmartgridplatform.oslp.Oslp.PsldData psldData_; + private int relayType_ = 0; + /** + * .oslp.RelayType relayType = 3 [features = { ... } + * @return Whether the relayType field is set. + */ + @java.lang.Override public boolean hasRelayType() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .oslp.RelayType relayType = 3 [features = { ... } + * @return The enum numeric value on the wire for relayType. + */ + @java.lang.Override public int getRelayTypeValue() { + return relayType_; + } + /** + * .oslp.RelayType relayType = 3 [features = { ... } + * @param value The enum numeric value on the wire for relayType to set. + * @return This builder for chaining. + */ + public Builder setRelayTypeValue(int value) { + relayType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .oslp.RelayType relayType = 3 [features = { ... } + * @return The relayType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayType getRelayType() { + org.opensmartgridplatform.oslp.Oslp.RelayType result = org.opensmartgridplatform.oslp.Oslp.RelayType.forNumber(relayType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.RelayType.UNRECOGNIZED : result; + } + /** + * .oslp.RelayType relayType = 3 [features = { ... } + * @param value The relayType to set. + * @return This builder for chaining. + */ + public Builder setRelayType(org.opensmartgridplatform.oslp.Oslp.RelayType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000004; + relayType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .oslp.RelayType relayType = 3 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearRelayType() { + bitField0_ = (bitField0_ & ~0x00000004); + relayType_ = 0; + onChanged(); + return this; + } - @Override - public boolean hasPsldData() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } + // @@protoc_insertion_point(builder_scope:oslp.IndexAddressMap) + } - @Override - public org.opensmartgridplatform.oslp.Oslp.PsldData getPsldData() { - return this.psldData_; - } + // @@protoc_insertion_point(class_scope:oslp.IndexAddressMap) + private static final org.opensmartgridplatform.oslp.Oslp.IndexAddressMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.IndexAddressMap(); + } - @Override - public org.opensmartgridplatform.oslp.Oslp.PsldDataOrBuilder getPsldDataOrBuilder() { - return this.psldData_; - } + public static org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // optional .oslp.SsldData ssldData = 6; - public static final int SSLDDATA_FIELD_NUMBER = 6; - private org.opensmartgridplatform.oslp.Oslp.SsldData ssldData_; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexAddressMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public boolean hasSsldData() { - return ((this.bitField0_ & 0x00000020) == 0x00000020); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.IndexAddressMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PageInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.PageInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Pages start from 1.
+         * 
+ * + * uint32 currentPage = 1 [features = { ... } + * @return Whether the currentPage field is set. + */ + boolean hasCurrentPage(); + /** + *
+         * Pages start from 1.
+         * 
+ * + * uint32 currentPage = 1 [features = { ... } + * @return The currentPage. + */ + int getCurrentPage(); + + /** + * uint32 pageSize = 2 [features = { ... } + * @return Whether the pageSize field is set. + */ + boolean hasPageSize(); + /** + * uint32 pageSize = 2 [features = { ... } + * @return The pageSize. + */ + int getPageSize(); + + /** + * uint32 totalPages = 3 [features = { ... } + * @return Whether the totalPages field is set. + */ + boolean hasTotalPages(); + /** + * uint32 totalPages = 3 [features = { ... } + * @return The totalPages. + */ + int getTotalPages(); + } + /** + * Protobuf type {@code oslp.PageInfo} + */ + public static final class PageInfo extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.PageInfo) + PageInfoOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + PageInfo.class.getName()); + } + // Use PageInfo.newBuilder() to construct. + private PageInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PageInfo() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PageInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PageInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.PageInfo.class, org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder.class); + } + + private int bitField0_; + public static final int CURRENTPAGE_FIELD_NUMBER = 1; + private int currentPage_ = 0; + /** + *
+         * Pages start from 1.
+         * 
+ * + * uint32 currentPage = 1 [features = { ... } + * @return Whether the currentPage field is set. + */ + @java.lang.Override + public boolean hasCurrentPage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Pages start from 1.
+         * 
+ * + * uint32 currentPage = 1 [features = { ... } + * @return The currentPage. + */ + @java.lang.Override + public int getCurrentPage() { + return currentPage_; + } + + public static final int PAGESIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * uint32 pageSize = 2 [features = { ... } + * @return Whether the pageSize field is set. + */ + @java.lang.Override + public boolean hasPageSize() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * uint32 pageSize = 2 [features = { ... } + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int TOTALPAGES_FIELD_NUMBER = 3; + private int totalPages_ = 0; + /** + * uint32 totalPages = 3 [features = { ... } + * @return Whether the totalPages field is set. + */ + @java.lang.Override + public boolean hasTotalPages() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * uint32 totalPages = 3 [features = { ... } + * @return The totalPages. + */ + @java.lang.Override + public int getTotalPages() { + return totalPages_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasCurrentPage()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPageSize()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTotalPages()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - @Override - public org.opensmartgridplatform.oslp.Oslp.SsldData getSsldData() { - return this.ssldData_; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeUInt32(1, currentPage_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(2, pageSize_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeUInt32(3, totalPages_); + } + getUnknownFields().writeTo(output); + } - @Override - public org.opensmartgridplatform.oslp.Oslp.SsldDataOrBuilder getSsldDataOrBuilder() { - return this.ssldData_; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private void initFields() { - this.recordTime_ = ""; - this.meterType_ = org.opensmartgridplatform.oslp.Oslp.MeterType.MT_NOT_SET; - this.totalConsumedEnergy_ = 0L; - this.actualConsumedPower_ = 0; - this.psldData_ = org.opensmartgridplatform.oslp.Oslp.PsldData.getDefaultInstance(); - this.ssldData_ = org.opensmartgridplatform.oslp.Oslp.SsldData.getDefaultInstance(); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, currentPage_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, pageSize_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, totalPages_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasRecordTime()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasMeterType()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasTotalConsumedEnergy()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasActualConsumedPower()) { - this.memoizedIsInitialized = 0; - return false; - } - if (this.hasPsldData()) { - if (!this.getPsldData().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - if (this.hasSsldData()) { - if (!this.getSsldData().isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - this.memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.PageInfo)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.PageInfo other = (org.opensmartgridplatform.oslp.Oslp.PageInfo) obj; - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, this.getRecordTimeBytes()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, this.meterType_.getNumber()); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeUInt64(3, this.totalConsumedEnergy_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - output.writeUInt32(4, this.actualConsumedPower_); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, this.psldData_); - } - if (((this.bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, this.ssldData_); - } - this.getUnknownFields().writeTo(output); - } + if (hasCurrentPage() != other.hasCurrentPage()) return false; + if (hasCurrentPage()) { + if (getCurrentPage() + != other.getCurrentPage()) return false; + } + if (hasPageSize() != other.hasPageSize()) return false; + if (hasPageSize()) { + if (getPageSize() + != other.getPageSize()) return false; + } + if (hasTotalPages() != other.hasTotalPages()) return false; + if (hasTotalPages()) { + if (getTotalPages() + != other.getTotalPages()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize(1, this.getRecordTimeBytes()); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(2, this.meterType_.getNumber()); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt64Size(3, this.totalConsumedEnergy_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size(4, this.actualConsumedPower_); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, this.psldData_); - } - if (((this.bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, this.ssldData_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCurrentPage()) { + hash = (37 * hash) + CURRENTPAGE_FIELD_NUMBER; + hash = (53 * hash) + getCurrentPage(); + } + if (hasPageSize()) { + hash = (37 * hash) + PAGESIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + } + if (hasTotalPages()) { + hash = (37 * hash) + TOTALPAGES_FIELD_NUMBER; + hash = (53 * hash) + getTotalPages(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.PageInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.PageInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.PageInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.PageInfo) + org.opensmartgridplatform.oslp.Oslp.PageInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PageInfo_descriptor; + } - private static final long serialVersionUID = 0L; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PageInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.PageInfo.class, org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder.class); + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.PageInfo.newBuilder() + private Builder() { - public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + } - public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + currentPage_ = 0; + pageSize_ = 0; + totalPages_ = 0; + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PageInfo_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PageInfo getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance(); + } - public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PageInfo build() { + org.opensmartgridplatform.oslp.Oslp.PageInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PageInfo buildPartial() { + org.opensmartgridplatform.oslp.Oslp.PageInfo result = new org.opensmartgridplatform.oslp.Oslp.PageInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.PageInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.currentPage_ = currentPage_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalPages_ = totalPages_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } - public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.PageInfo) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.PageInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.PageInfo other) { + if (other == org.opensmartgridplatform.oslp.Oslp.PageInfo.getDefaultInstance()) return this; + if (other.hasCurrentPage()) { + setCurrentPage(other.getCurrentPage()); + } + if (other.hasPageSize()) { + setPageSize(other.getPageSize()); + } + if (other.hasTotalPages()) { + setTotalPages(other.getTotalPages()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static Builder newBuilder() { - return Builder.create(); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasCurrentPage()) { + return false; + } + if (!hasPageSize()) { + return false; + } + if (!hasTotalPages()) { + return false; + } + return true; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + currentPage_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + pageSize_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + totalPages_ = input.readUInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int currentPage_ ; + /** + *
+             * Pages start from 1.
+             * 
+ * + * uint32 currentPage = 1 [features = { ... } + * @return Whether the currentPage field is set. + */ + @java.lang.Override + public boolean hasCurrentPage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Pages start from 1.
+             * 
+ * + * uint32 currentPage = 1 [features = { ... } + * @return The currentPage. + */ + @java.lang.Override + public int getCurrentPage() { + return currentPage_; + } + /** + *
+             * Pages start from 1.
+             * 
+ * + * uint32 currentPage = 1 [features = { ... } + * @param value The currentPage to set. + * @return This builder for chaining. + */ + public Builder setCurrentPage(int value) { + + currentPage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Pages start from 1.
+             * 
+ * + * uint32 currentPage = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearCurrentPage() { + bitField0_ = (bitField0_ & ~0x00000001); + currentPage_ = 0; + onChanged(); + return this; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.PowerUsageData prototype) { - return newBuilder().mergeFrom(prototype); - } + private int pageSize_ ; + /** + * uint32 pageSize = 2 [features = { ... } + * @return Whether the pageSize field is set. + */ + @java.lang.Override + public boolean hasPageSize() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * uint32 pageSize = 2 [features = { ... } + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * uint32 pageSize = 2 [features = { ... } + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * uint32 pageSize = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + private int totalPages_ ; + /** + * uint32 totalPages = 3 [features = { ... } + * @return Whether the totalPages field is set. + */ + @java.lang.Override + public boolean hasTotalPages() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * uint32 totalPages = 3 [features = { ... } + * @return The totalPages. + */ + @java.lang.Override + public int getTotalPages() { + return totalPages_; + } + /** + * uint32 totalPages = 3 [features = { ... } + * @param value The totalPages to set. + * @return This builder for chaining. + */ + public Builder setTotalPages(int value) { + + totalPages_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * uint32 totalPages = 3 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearTotalPages() { + bitField0_ = (bitField0_ & ~0x00000004); + totalPages_ = 0; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + // @@protoc_insertion_point(builder_scope:oslp.PageInfo) + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PowerUsageData_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_PowerUsageData_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.PowerUsageData.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getPsldDataFieldBuilder(); - this.getSsldDataFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.recordTime_ = ""; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.meterType_ = org.opensmartgridplatform.oslp.Oslp.MeterType.MT_NOT_SET; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.totalConsumedEnergy_ = 0L; - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.actualConsumedPower_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000008); - if (this.psldDataBuilder_ == null) { - this.psldData_ = org.opensmartgridplatform.oslp.Oslp.PsldData.getDefaultInstance(); - } else { - this.psldDataBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000010); - if (this.ssldDataBuilder_ == null) { - this.ssldData_ = org.opensmartgridplatform.oslp.Oslp.SsldData.getDefaultInstance(); - } else { - this.ssldDataBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000020); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PowerUsageData getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PowerUsageData build() { - final org.opensmartgridplatform.oslp.Oslp.PowerUsageData result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.PowerUsageData buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.PowerUsageData result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PowerUsageData buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.PowerUsageData result = - new org.opensmartgridplatform.oslp.Oslp.PowerUsageData(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.recordTime_ = this.recordTime_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.meterType_ = this.meterType_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.totalConsumedEnergy_ = this.totalConsumedEnergy_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.actualConsumedPower_ = this.actualConsumedPower_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - if (this.psldDataBuilder_ == null) { - result.psldData_ = this.psldData_; - } else { - result.psldData_ = this.psldDataBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - if (this.ssldDataBuilder_ == null) { - result.ssldData_ = this.ssldData_; - } else { - result.ssldData_ = this.ssldDataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.PowerUsageData) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.PowerUsageData) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.PowerUsageData other) { - if (other == org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance()) { - return this; - } - if (other.hasRecordTime()) { - this.setRecordTime(other.getRecordTime()); - } - if (other.hasMeterType()) { - this.setMeterType(other.getMeterType()); - } - if (other.hasTotalConsumedEnergy()) { - this.setTotalConsumedEnergy(other.getTotalConsumedEnergy()); - } - if (other.hasActualConsumedPower()) { - this.setActualConsumedPower(other.getActualConsumedPower()); - } - if (other.hasPsldData()) { - this.mergePsldData(other.getPsldData()); - } - if (other.hasSsldData()) { - this.mergeSsldData(other.getSsldData()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasRecordTime()) { - - return false; - } - if (!this.hasMeterType()) { - - return false; - } - if (!this.hasTotalConsumedEnergy()) { - - return false; - } - if (!this.hasActualConsumedPower()) { - - return false; - } - if (this.hasPsldData()) { - if (!this.getPsldData().isInitialized()) { - - return false; - } - } - if (this.hasSsldData()) { - if (!this.getSsldData().isInitialized()) { - - return false; - } - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - this.bitField0_ |= 0x00000001; - this.recordTime_ = input.readBytes(); - break; - } - case 16: - { - final int rawValue = input.readEnum(); - final org.opensmartgridplatform.oslp.Oslp.MeterType value = - org.opensmartgridplatform.oslp.Oslp.MeterType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - this.bitField0_ |= 0x00000002; - this.meterType_ = value; - } - break; - } - case 24: - { - this.bitField0_ |= 0x00000004; - this.totalConsumedEnergy_ = input.readUInt64(); - break; - } - case 32: - { - this.bitField0_ |= 0x00000008; - this.actualConsumedPower_ = input.readUInt32(); - break; - } - case 42: - { - final org.opensmartgridplatform.oslp.Oslp.PsldData.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.PsldData.newBuilder(); - if (this.hasPsldData()) { - subBuilder.mergeFrom(this.getPsldData()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setPsldData(subBuilder.buildPartial()); - break; - } - case 50: - { - final org.opensmartgridplatform.oslp.Oslp.SsldData.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.SsldData.newBuilder(); - if (this.hasSsldData()) { - subBuilder.mergeFrom(this.getSsldData()); - } - input.readMessage(subBuilder, extensionRegistry); - this.setSsldData(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required string recordTime = 1; - private java.lang.Object recordTime_ = ""; - - @Override - public boolean hasRecordTime() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public String getRecordTime() { - final java.lang.Object ref = this.recordTime_; - if (!(ref instanceof String)) { - final String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - this.recordTime_ = s; - return s; - } else { - return (String) ref; - } - } - - public Builder setRecordTime(final String value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.recordTime_ = value; - this.onChanged(); - return this; - } - - public Builder clearRecordTime() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.recordTime_ = getDefaultInstance().getRecordTime(); - this.onChanged(); - return this; - } - - void setRecordTime(final com.google.protobuf.ByteString value) { - this.bitField0_ |= 0x00000001; - this.recordTime_ = value; - this.onChanged(); - } - - // required .oslp.MeterType meterType = 2; - private org.opensmartgridplatform.oslp.Oslp.MeterType meterType_ = - org.opensmartgridplatform.oslp.Oslp.MeterType.MT_NOT_SET; - - @Override - public boolean hasMeterType() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType() { - return this.meterType_; - } - - public Builder setMeterType(final org.opensmartgridplatform.oslp.Oslp.MeterType value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000002; - this.meterType_ = value; - this.onChanged(); - return this; - } - - public Builder clearMeterType() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.meterType_ = org.opensmartgridplatform.oslp.Oslp.MeterType.MT_NOT_SET; - this.onChanged(); - return this; - } - - // required uint64 totalConsumedEnergy = 3; - private long totalConsumedEnergy_; - - @Override - public boolean hasTotalConsumedEnergy() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public long getTotalConsumedEnergy() { - return this.totalConsumedEnergy_; - } - - public Builder setTotalConsumedEnergy(final long value) { - this.bitField0_ |= 0x00000004; - this.totalConsumedEnergy_ = value; - this.onChanged(); - return this; - } - - public Builder clearTotalConsumedEnergy() { - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.totalConsumedEnergy_ = 0L; - this.onChanged(); - return this; - } - - // required uint32 actualConsumedPower = 4; - private int actualConsumedPower_; - - @Override - public boolean hasActualConsumedPower() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public int getActualConsumedPower() { - return this.actualConsumedPower_; - } - - public Builder setActualConsumedPower(final int value) { - this.bitField0_ |= 0x00000008; - this.actualConsumedPower_ = value; - this.onChanged(); - return this; - } - - public Builder clearActualConsumedPower() { - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.actualConsumedPower_ = 0; - this.onChanged(); - return this; - } - - // optional .oslp.PsldData psldData = 5; - private org.opensmartgridplatform.oslp.Oslp.PsldData psldData_ = - org.opensmartgridplatform.oslp.Oslp.PsldData.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.PsldData, - org.opensmartgridplatform.oslp.Oslp.PsldData.Builder, - org.opensmartgridplatform.oslp.Oslp.PsldDataOrBuilder> - psldDataBuilder_; - - @Override - public boolean hasPsldData() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PsldData getPsldData() { - if (this.psldDataBuilder_ == null) { - return this.psldData_; - } else { - return this.psldDataBuilder_.getMessage(); - } - } - - public Builder setPsldData(final org.opensmartgridplatform.oslp.Oslp.PsldData value) { - if (this.psldDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.psldData_ = value; - this.onChanged(); - } else { - this.psldDataBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000010; - return this; - } - - public Builder setPsldData( - final org.opensmartgridplatform.oslp.Oslp.PsldData.Builder builderForValue) { - if (this.psldDataBuilder_ == null) { - this.psldData_ = builderForValue.build(); - this.onChanged(); - } else { - this.psldDataBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000010; - return this; - } - - public Builder mergePsldData(final org.opensmartgridplatform.oslp.Oslp.PsldData value) { - if (this.psldDataBuilder_ == null) { - if (((this.bitField0_ & 0x00000010) == 0x00000010) - && this.psldData_ - != org.opensmartgridplatform.oslp.Oslp.PsldData.getDefaultInstance()) { - this.psldData_ = - org.opensmartgridplatform.oslp.Oslp.PsldData.newBuilder(this.psldData_) - .mergeFrom(value) - .buildPartial(); - } else { - this.psldData_ = value; - } - this.onChanged(); - } else { - this.psldDataBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000010; - return this; - } - - public Builder clearPsldData() { - if (this.psldDataBuilder_ == null) { - this.psldData_ = org.opensmartgridplatform.oslp.Oslp.PsldData.getDefaultInstance(); - this.onChanged(); - } else { - this.psldDataBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000010); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.PsldData.Builder getPsldDataBuilder() { - this.bitField0_ |= 0x00000010; - this.onChanged(); - return this.getPsldDataFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PsldDataOrBuilder getPsldDataOrBuilder() { - if (this.psldDataBuilder_ != null) { - return this.psldDataBuilder_.getMessageOrBuilder(); - } else { - return this.psldData_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.PsldData, - org.opensmartgridplatform.oslp.Oslp.PsldData.Builder, - org.opensmartgridplatform.oslp.Oslp.PsldDataOrBuilder> - getPsldDataFieldBuilder() { - if (this.psldDataBuilder_ == null) { - this.psldDataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.PsldData, - org.opensmartgridplatform.oslp.Oslp.PsldData.Builder, - org.opensmartgridplatform.oslp.Oslp.PsldDataOrBuilder>( - this.psldData_, this.getParentForChildren(), this.isClean()); - this.psldData_ = null; - } - return this.psldDataBuilder_; - } - - // optional .oslp.SsldData ssldData = 6; - private org.opensmartgridplatform.oslp.Oslp.SsldData ssldData_ = - org.opensmartgridplatform.oslp.Oslp.SsldData.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SsldData, - org.opensmartgridplatform.oslp.Oslp.SsldData.Builder, - org.opensmartgridplatform.oslp.Oslp.SsldDataOrBuilder> - ssldDataBuilder_; - - @Override - public boolean hasSsldData() { - return ((this.bitField0_ & 0x00000020) == 0x00000020); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SsldData getSsldData() { - if (this.ssldDataBuilder_ == null) { - return this.ssldData_; - } else { - return this.ssldDataBuilder_.getMessage(); - } - } - - public Builder setSsldData(final org.opensmartgridplatform.oslp.Oslp.SsldData value) { - if (this.ssldDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ssldData_ = value; - this.onChanged(); - } else { - this.ssldDataBuilder_.setMessage(value); - } - this.bitField0_ |= 0x00000020; - return this; - } - - public Builder setSsldData( - final org.opensmartgridplatform.oslp.Oslp.SsldData.Builder builderForValue) { - if (this.ssldDataBuilder_ == null) { - this.ssldData_ = builderForValue.build(); - this.onChanged(); - } else { - this.ssldDataBuilder_.setMessage(builderForValue.build()); - } - this.bitField0_ |= 0x00000020; - return this; - } - - public Builder mergeSsldData(final org.opensmartgridplatform.oslp.Oslp.SsldData value) { - if (this.ssldDataBuilder_ == null) { - if (((this.bitField0_ & 0x00000020) == 0x00000020) - && this.ssldData_ - != org.opensmartgridplatform.oslp.Oslp.SsldData.getDefaultInstance()) { - this.ssldData_ = - org.opensmartgridplatform.oslp.Oslp.SsldData.newBuilder(this.ssldData_) - .mergeFrom(value) - .buildPartial(); - } else { - this.ssldData_ = value; - } - this.onChanged(); - } else { - this.ssldDataBuilder_.mergeFrom(value); - } - this.bitField0_ |= 0x00000020; - return this; - } - - public Builder clearSsldData() { - if (this.ssldDataBuilder_ == null) { - this.ssldData_ = org.opensmartgridplatform.oslp.Oslp.SsldData.getDefaultInstance(); - this.onChanged(); - } else { - this.ssldDataBuilder_.clear(); - } - this.bitField0_ = (this.bitField0_ & ~0x00000020); - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.SsldData.Builder getSsldDataBuilder() { - this.bitField0_ |= 0x00000020; - this.onChanged(); - return this.getSsldDataFieldBuilder().getBuilder(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SsldDataOrBuilder getSsldDataOrBuilder() { - if (this.ssldDataBuilder_ != null) { - return this.ssldDataBuilder_.getMessageOrBuilder(); - } else { - return this.ssldData_; - } - } - - private com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SsldData, - org.opensmartgridplatform.oslp.Oslp.SsldData.Builder, - org.opensmartgridplatform.oslp.Oslp.SsldDataOrBuilder> - getSsldDataFieldBuilder() { - if (this.ssldDataBuilder_ == null) { - this.ssldDataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.SsldData, - org.opensmartgridplatform.oslp.Oslp.SsldData.Builder, - org.opensmartgridplatform.oslp.Oslp.SsldDataOrBuilder>( - this.ssldData_, this.getParentForChildren(), this.isClean()); - this.ssldData_ = null; - } - return this.ssldDataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:oslp.PowerUsageData) - } + // @@protoc_insertion_point(class_scope:oslp.PageInfo) + private static final org.opensmartgridplatform.oslp.Oslp.PageInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.PageInfo(); + } - static { - defaultInstance = new PowerUsageData(true); - defaultInstance.initFields(); - } + public static org.opensmartgridplatform.oslp.Oslp.PageInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // @@protoc_insertion_point(class_scope:oslp.PowerUsageData) - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PageInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public interface PsldDataOrBuilder extends com.google.protobuf.MessageOrBuilder { + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PageInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TimePeriodOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.TimePeriod) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string startTime = 1 [features = { ... } + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + *
+         * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string startTime = 1 [features = { ... } + * @return The startTime. + */ + java.lang.String getStartTime(); + /** + *
+         * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string startTime = 1 [features = { ... } + * @return The bytes for startTime. + */ + com.google.protobuf.ByteString + getStartTimeBytes(); + + /** + *
+         * [(nanopb).max_size = 15];   // - format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string endTime = 2 [features = { ... } + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + *
+         * [(nanopb).max_size = 15];   // - format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string endTime = 2 [features = { ... } + * @return The endTime. + */ + java.lang.String getEndTime(); + /** + *
+         * [(nanopb).max_size = 15];   // - format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string endTime = 2 [features = { ... } + * @return The bytes for endTime. + */ + com.google.protobuf.ByteString + getEndTimeBytes(); + } + /** + *
+     * Deprecated, no longer supported by the platform.
+     * 
+ * + * Protobuf type {@code oslp.TimePeriod} + */ + public static final class TimePeriod extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.TimePeriod) + TimePeriodOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + TimePeriod.class.getName()); + } + // Use TimePeriod.newBuilder() to construct. + private TimePeriod(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TimePeriod() { + startTime_ = ""; + endTime_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_TimePeriod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_TimePeriod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.TimePeriod.class, org.opensmartgridplatform.oslp.Oslp.TimePeriod.Builder.class); + } + + private int bitField0_; + public static final int STARTTIME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object startTime_ = ""; + /** + *
+         * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string startTime = 1 [features = { ... } + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string startTime = 1 [features = { ... } + * @return The startTime. + */ + @java.lang.Override + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string startTime = 1 [features = { ... } + * @return The bytes for startTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // required uint32 totalLightingHours = 1; - boolean hasTotalLightingHours(); + public static final int ENDTIME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object endTime_ = ""; + /** + *
+         * [(nanopb).max_size = 15];   // - format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string endTime = 2 [features = { ... } + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * [(nanopb).max_size = 15];   // - format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string endTime = 2 [features = { ... } + * @return The endTime. + */ + @java.lang.Override + public java.lang.String getEndTime() { + java.lang.Object ref = endTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endTime_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 15];   // - format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string endTime = 2 [features = { ... } + * @return The bytes for endTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEndTimeBytes() { + java.lang.Object ref = endTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - int getTotalLightingHours(); - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final class PsldData extends com.google.protobuf.GeneratedMessage - implements PsldDataOrBuilder { - // Use PsldData.newBuilder() to construct. - private PsldData(final Builder builder) { - super(builder); - } + if (!hasStartTime()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasEndTime()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - private PsldData(final boolean noInit) {} + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, startTime_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, endTime_); + } + getUnknownFields().writeTo(output); + } - private static final PsldData defaultInstance; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static PsldData getDefaultInstance() { - return defaultInstance; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, startTime_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, endTime_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @Override - public PsldData getDefaultInstanceForType() { - return defaultInstance; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.TimePeriod)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.TimePeriod other = (org.opensmartgridplatform.oslp.Oslp.TimePeriod) obj; - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PsldData_descriptor; - } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime() + .equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PsldData_fieldAccessorTable; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + STARTTIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + ENDTIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.TimePeriod parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.TimePeriod prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * Protobuf type {@code oslp.TimePeriod} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.TimePeriod) + org.opensmartgridplatform.oslp.Oslp.TimePeriodOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_TimePeriod_descriptor; + } - private int bitField0_; - // required uint32 totalLightingHours = 1; - public static final int TOTALLIGHTINGHOURS_FIELD_NUMBER = 1; - private int totalLightingHours_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_TimePeriod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.TimePeriod.class, org.opensmartgridplatform.oslp.Oslp.TimePeriod.Builder.class); + } - @Override - public boolean hasTotalLightingHours() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.TimePeriod.newBuilder() + private Builder() { - @Override - public int getTotalLightingHours() { - return this.totalLightingHours_; - } + } - private void initFields() { - this.totalLightingHours_ = 0; - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasTotalLightingHours()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = ""; + endTime_ = ""; + return this; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeUInt32(1, this.totalLightingHours_); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_TimePeriod_descriptor; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size(1, this.totalLightingHours_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.TimePeriod getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.TimePeriod.getDefaultInstance(); + } - private static final long serialVersionUID = 0L; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.TimePeriod build() { + org.opensmartgridplatform.oslp.Oslp.TimePeriod result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.TimePeriod buildPartial() { + org.opensmartgridplatform.oslp.Oslp.TimePeriod result = new org.opensmartgridplatform.oslp.Oslp.TimePeriod(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.TimePeriod result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTime_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTime_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } - public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.TimePeriod) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.TimePeriod)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.TimePeriod other) { + if (other == org.opensmartgridplatform.oslp.Oslp.TimePeriod.getDefaultInstance()) return this; + if (other.hasStartTime()) { + startTime_ = other.startTime_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasEndTime()) { + endTime_ = other.endTime_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStartTime()) { + return false; + } + if (!hasEndTime()) { + return false; + } + return true; + } - public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + startTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + endTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object startTime_ = ""; + /** + *
+             * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string startTime = 1 [features = { ... } + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string startTime = 1 [features = { ... } + * @return The startTime. + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string startTime = 1 [features = { ... } + * @return The bytes for startTime. + */ + public com.google.protobuf.ByteString + getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string startTime = 1 [features = { ... } + * @param value The startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTime( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + startTime_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string startTime = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearStartTime() { + startTime_ = getDefaultInstance().getStartTime(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 15]; // - Format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string startTime = 1 [features = { ... } + * @param value The bytes for startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + startTime_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + private java.lang.Object endTime_ = ""; + /** + *
+             * [(nanopb).max_size = 15];   // - format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string endTime = 2 [features = { ... } + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * [(nanopb).max_size = 15];   // - format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string endTime = 2 [features = { ... } + * @return The endTime. + */ + public java.lang.String getEndTime() { + java.lang.Object ref = endTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 15];   // - format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string endTime = 2 [features = { ... } + * @return The bytes for endTime. + */ + public com.google.protobuf.ByteString + getEndTimeBytes() { + java.lang.Object ref = endTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 15];   // - format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string endTime = 2 [features = { ... } + * @param value The endTime to set. + * @return This builder for chaining. + */ + public Builder setEndTime( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + endTime_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 15];   // - format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string endTime = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearEndTime() { + endTime_ = getDefaultInstance().getEndTime(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 15];   // - format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string endTime = 2 [features = { ... } + * @param value The bytes for endTime to set. + * @return This builder for chaining. + */ + public Builder setEndTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + endTime_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.PsldData parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + // @@protoc_insertion_point(builder_scope:oslp.TimePeriod) + } - public static org.opensmartgridplatform.oslp.Oslp.PsldData parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + // @@protoc_insertion_point(class_scope:oslp.TimePeriod) + private static final org.opensmartgridplatform.oslp.Oslp.TimePeriod DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.TimePeriod(); + } - public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + public static org.opensmartgridplatform.oslp.Oslp.TimePeriod getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimePeriod parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static Builder newBuilder() { - return Builder.create(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.TimePeriod getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PowerUsageDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.PowerUsageData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_size = 15];    // Record time - format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string recordTime = 1 [features = { ... } + * @return Whether the recordTime field is set. + */ + boolean hasRecordTime(); + /** + *
+         * [(nanopb).max_size = 15];    // Record time - format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string recordTime = 1 [features = { ... } + * @return The recordTime. + */ + java.lang.String getRecordTime(); + /** + *
+         * [(nanopb).max_size = 15];    // Record time - format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string recordTime = 1 [features = { ... } + * @return The bytes for recordTime. + */ + com.google.protobuf.ByteString + getRecordTimeBytes(); + + /** + *
+         * Meter type (P1, Pulse, Aux).
+         * 
+ * + * .oslp.MeterType meterType = 2 [features = { ... } + * @return Whether the meterType field is set. + */ + boolean hasMeterType(); + /** + *
+         * Meter type (P1, Pulse, Aux).
+         * 
+ * + * .oslp.MeterType meterType = 2 [features = { ... } + * @return The enum numeric value on the wire for meterType. + */ + int getMeterTypeValue(); + /** + *
+         * Meter type (P1, Pulse, Aux).
+         * 
+ * + * .oslp.MeterType meterType = 2 [features = { ... } + * @return The meterType. + */ + org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType(); + + /** + *
+         * Electricity delivered to client (Tariff I + Tarrif II) in 0,001 kWh.
+         * 
+ * + * uint64 totalConsumedEnergy = 3 [features = { ... } + * @return Whether the totalConsumedEnergy field is set. + */ + boolean hasTotalConsumedEnergy(); + /** + *
+         * Electricity delivered to client (Tariff I + Tarrif II) in 0,001 kWh.
+         * 
+ * + * uint64 totalConsumedEnergy = 3 [features = { ... } + * @return The totalConsumedEnergy. + */ + long getTotalConsumedEnergy(); + + /** + *
+         * Actual Electricity power delivered in W.
+         * 
+ * + * uint32 actualConsumedPower = 4 [features = { ... } + * @return Whether the actualConsumedPower field is set. + */ + boolean hasActualConsumedPower(); + /** + *
+         * Actual Electricity power delivered in W.
+         * 
+ * + * uint32 actualConsumedPower = 4 [features = { ... } + * @return The actualConsumedPower. + */ + int getActualConsumedPower(); + + /** + * .oslp.PsldData psldData = 5; + * @return Whether the psldData field is set. + */ + boolean hasPsldData(); + /** + * .oslp.PsldData psldData = 5; + * @return The psldData. + */ + org.opensmartgridplatform.oslp.Oslp.PsldData getPsldData(); + /** + * .oslp.PsldData psldData = 5; + */ + org.opensmartgridplatform.oslp.Oslp.PsldDataOrBuilder getPsldDataOrBuilder(); + + /** + * .oslp.SsldData ssldData = 6; + * @return Whether the ssldData field is set. + */ + boolean hasSsldData(); + /** + * .oslp.SsldData ssldData = 6; + * @return The ssldData. + */ + org.opensmartgridplatform.oslp.Oslp.SsldData getSsldData(); + /** + * .oslp.SsldData ssldData = 6; + */ + org.opensmartgridplatform.oslp.Oslp.SsldDataOrBuilder getSsldDataOrBuilder(); + } + /** + *
+     * Deprecated, no longer supported by the platform.
+     * 
+ * + * Protobuf type {@code oslp.PowerUsageData} + */ + public static final class PowerUsageData extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.PowerUsageData) + PowerUsageDataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + PowerUsageData.class.getName()); + } + // Use PowerUsageData.newBuilder() to construct. + private PowerUsageData(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PowerUsageData() { + recordTime_ = ""; + meterType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PowerUsageData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PowerUsageData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.PowerUsageData.class, org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder.class); + } + + private int bitField0_; + public static final int RECORDTIME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object recordTime_ = ""; + /** + *
+         * [(nanopb).max_size = 15];    // Record time - format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string recordTime = 1 [features = { ... } + * @return Whether the recordTime field is set. + */ + @java.lang.Override + public boolean hasRecordTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * [(nanopb).max_size = 15];    // Record time - format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string recordTime = 1 [features = { ... } + * @return The recordTime. + */ + @java.lang.Override + public java.lang.String getRecordTime() { + java.lang.Object ref = recordTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recordTime_ = s; + return s; + } + } + /** + *
+         * [(nanopb).max_size = 15];    // Record time - format YYYYMMDDhhmmss UTC.
+         * 
+ * + * string recordTime = 1 [features = { ... } + * @return The bytes for recordTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRecordTimeBytes() { + java.lang.Object ref = recordTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + recordTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static final int METERTYPE_FIELD_NUMBER = 2; + private int meterType_ = 0; + /** + *
+         * Meter type (P1, Pulse, Aux).
+         * 
+ * + * .oslp.MeterType meterType = 2 [features = { ... } + * @return Whether the meterType field is set. + */ + @java.lang.Override public boolean hasMeterType() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * Meter type (P1, Pulse, Aux).
+         * 
+ * + * .oslp.MeterType meterType = 2 [features = { ... } + * @return The enum numeric value on the wire for meterType. + */ + @java.lang.Override public int getMeterTypeValue() { + return meterType_; + } + /** + *
+         * Meter type (P1, Pulse, Aux).
+         * 
+ * + * .oslp.MeterType meterType = 2 [features = { ... } + * @return The meterType. + */ + @java.lang.Override public org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType() { + org.opensmartgridplatform.oslp.Oslp.MeterType result = org.opensmartgridplatform.oslp.Oslp.MeterType.forNumber(meterType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.MeterType.UNRECOGNIZED : result; + } + + public static final int TOTALCONSUMEDENERGY_FIELD_NUMBER = 3; + private long totalConsumedEnergy_ = 0L; + /** + *
+         * Electricity delivered to client (Tariff I + Tarrif II) in 0,001 kWh.
+         * 
+ * + * uint64 totalConsumedEnergy = 3 [features = { ... } + * @return Whether the totalConsumedEnergy field is set. + */ + @java.lang.Override + public boolean hasTotalConsumedEnergy() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * Electricity delivered to client (Tariff I + Tarrif II) in 0,001 kWh.
+         * 
+ * + * uint64 totalConsumedEnergy = 3 [features = { ... } + * @return The totalConsumedEnergy. + */ + @java.lang.Override + public long getTotalConsumedEnergy() { + return totalConsumedEnergy_; + } + + public static final int ACTUALCONSUMEDPOWER_FIELD_NUMBER = 4; + private int actualConsumedPower_ = 0; + /** + *
+         * Actual Electricity power delivered in W.
+         * 
+ * + * uint32 actualConsumedPower = 4 [features = { ... } + * @return Whether the actualConsumedPower field is set. + */ + @java.lang.Override + public boolean hasActualConsumedPower() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+         * Actual Electricity power delivered in W.
+         * 
+ * + * uint32 actualConsumedPower = 4 [features = { ... } + * @return The actualConsumedPower. + */ + @java.lang.Override + public int getActualConsumedPower() { + return actualConsumedPower_; + } + + public static final int PSLDDATA_FIELD_NUMBER = 5; + private org.opensmartgridplatform.oslp.Oslp.PsldData psldData_; + /** + * .oslp.PsldData psldData = 5; + * @return Whether the psldData field is set. + */ + @java.lang.Override + public boolean hasPsldData() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .oslp.PsldData psldData = 5; + * @return The psldData. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PsldData getPsldData() { + return psldData_ == null ? org.opensmartgridplatform.oslp.Oslp.PsldData.getDefaultInstance() : psldData_; + } + /** + * .oslp.PsldData psldData = 5; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PsldDataOrBuilder getPsldDataOrBuilder() { + return psldData_ == null ? org.opensmartgridplatform.oslp.Oslp.PsldData.getDefaultInstance() : psldData_; + } + + public static final int SSLDDATA_FIELD_NUMBER = 6; + private org.opensmartgridplatform.oslp.Oslp.SsldData ssldData_; + /** + * .oslp.SsldData ssldData = 6; + * @return Whether the ssldData field is set. + */ + @java.lang.Override + public boolean hasSsldData() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .oslp.SsldData ssldData = 6; + * @return The ssldData. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SsldData getSsldData() { + return ssldData_ == null ? org.opensmartgridplatform.oslp.Oslp.SsldData.getDefaultInstance() : ssldData_; + } + /** + * .oslp.SsldData ssldData = 6; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SsldDataOrBuilder getSsldDataOrBuilder() { + return ssldData_ == null ? org.opensmartgridplatform.oslp.Oslp.SsldData.getDefaultInstance() : ssldData_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasRecordTime()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMeterType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTotalConsumedEnergy()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasActualConsumedPower()) { + memoizedIsInitialized = 0; + return false; + } + if (hasPsldData()) { + if (!getPsldData().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSsldData()) { + if (!getSsldData().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - public static Builder newBuilder(final org.opensmartgridplatform.oslp.Oslp.PsldData prototype) { - return newBuilder().mergeFrom(prototype); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, recordTime_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, meterType_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeUInt64(3, totalConsumedEnergy_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeUInt32(4, actualConsumedPower_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getPsldData()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getSsldData()); + } + getUnknownFields().writeTo(output); + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, recordTime_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, meterType_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, totalConsumedEnergy_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, actualConsumedPower_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getPsldData()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getSsldData()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.PsldDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PsldData_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PsldData_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.PsldData.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.totalLightingHours_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.PsldData.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PsldData getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.PsldData.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PsldData build() { - final org.opensmartgridplatform.oslp.Oslp.PsldData result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.PsldData buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.PsldData result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.PsldData buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.PsldData result = - new org.opensmartgridplatform.oslp.Oslp.PsldData(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.totalLightingHours_ = this.totalLightingHours_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.PsldData) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.PsldData) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.PsldData other) { - if (other == org.opensmartgridplatform.oslp.Oslp.PsldData.getDefaultInstance()) { - return this; - } - if (other.hasTotalLightingHours()) { - this.setTotalLightingHours(other.getTotalLightingHours()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasTotalLightingHours()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - this.bitField0_ |= 0x00000001; - this.totalLightingHours_ = input.readUInt32(); - break; - } - } - } - } - - private int bitField0_; - - // required uint32 totalLightingHours = 1; - private int totalLightingHours_; - - @Override - public boolean hasTotalLightingHours() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public int getTotalLightingHours() { - return this.totalLightingHours_; - } - - public Builder setTotalLightingHours(final int value) { - this.bitField0_ |= 0x00000001; - this.totalLightingHours_ = value; - this.onChanged(); - return this; - } - - public Builder clearTotalLightingHours() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.totalLightingHours_ = 0; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.PsldData) - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.PowerUsageData)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.PowerUsageData other = (org.opensmartgridplatform.oslp.Oslp.PowerUsageData) obj; - static { - defaultInstance = new PsldData(true); - defaultInstance.initFields(); - } + if (hasRecordTime() != other.hasRecordTime()) return false; + if (hasRecordTime()) { + if (!getRecordTime() + .equals(other.getRecordTime())) return false; + } + if (hasMeterType() != other.hasMeterType()) return false; + if (hasMeterType()) { + if (meterType_ != other.meterType_) return false; + } + if (hasTotalConsumedEnergy() != other.hasTotalConsumedEnergy()) return false; + if (hasTotalConsumedEnergy()) { + if (getTotalConsumedEnergy() + != other.getTotalConsumedEnergy()) return false; + } + if (hasActualConsumedPower() != other.hasActualConsumedPower()) return false; + if (hasActualConsumedPower()) { + if (getActualConsumedPower() + != other.getActualConsumedPower()) return false; + } + if (hasPsldData() != other.hasPsldData()) return false; + if (hasPsldData()) { + if (!getPsldData() + .equals(other.getPsldData())) return false; + } + if (hasSsldData() != other.hasSsldData()) return false; + if (hasSsldData()) { + if (!getSsldData() + .equals(other.getSsldData())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - // @@protoc_insertion_point(class_scope:oslp.PsldData) - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRecordTime()) { + hash = (37 * hash) + RECORDTIME_FIELD_NUMBER; + hash = (53 * hash) + getRecordTime().hashCode(); + } + if (hasMeterType()) { + hash = (37 * hash) + METERTYPE_FIELD_NUMBER; + hash = (53 * hash) + meterType_; + } + if (hasTotalConsumedEnergy()) { + hash = (37 * hash) + TOTALCONSUMEDENERGY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalConsumedEnergy()); + } + if (hasActualConsumedPower()) { + hash = (37 * hash) + ACTUALCONSUMEDPOWER_FIELD_NUMBER; + hash = (53 * hash) + getActualConsumedPower(); + } + if (hasPsldData()) { + hash = (37 * hash) + PSLDDATA_FIELD_NUMBER; + hash = (53 * hash) + getPsldData().hashCode(); + } + if (hasSsldData()) { + hash = (37 * hash) + SSLDDATA_FIELD_NUMBER; + hash = (53 * hash) + getSsldData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.PowerUsageData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * Protobuf type {@code oslp.PowerUsageData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.PowerUsageData) + org.opensmartgridplatform.oslp.Oslp.PowerUsageDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PowerUsageData_descriptor; + } - public interface SsldDataOrBuilder extends com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PowerUsageData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.PowerUsageData.class, org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder.class); + } - // required uint32 actualCurrent1 = 1; - boolean hasActualCurrent1(); + // Construct using org.opensmartgridplatform.oslp.Oslp.PowerUsageData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - int getActualCurrent1(); + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + internalGetPsldDataFieldBuilder(); + internalGetSsldDataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + recordTime_ = ""; + meterType_ = 0; + totalConsumedEnergy_ = 0L; + actualConsumedPower_ = 0; + psldData_ = null; + if (psldDataBuilder_ != null) { + psldDataBuilder_.dispose(); + psldDataBuilder_ = null; + } + ssldData_ = null; + if (ssldDataBuilder_ != null) { + ssldDataBuilder_.dispose(); + ssldDataBuilder_ = null; + } + return this; + } - // required uint32 actualCurrent2 = 2; - boolean hasActualCurrent2(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PowerUsageData_descriptor; + } - int getActualCurrent2(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PowerUsageData getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance(); + } - // required uint32 actualCurrent3 = 3; - boolean hasActualCurrent3(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PowerUsageData build() { + org.opensmartgridplatform.oslp.Oslp.PowerUsageData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - int getActualCurrent3(); + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PowerUsageData buildPartial() { + org.opensmartgridplatform.oslp.Oslp.PowerUsageData result = new org.opensmartgridplatform.oslp.Oslp.PowerUsageData(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - // required uint32 actualPower1 = 4; - boolean hasActualPower1(); + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.PowerUsageData result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.recordTime_ = recordTime_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.meterType_ = meterType_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalConsumedEnergy_ = totalConsumedEnergy_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.actualConsumedPower_ = actualConsumedPower_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.psldData_ = psldDataBuilder_ == null + ? psldData_ + : psldDataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.ssldData_ = ssldDataBuilder_ == null + ? ssldData_ + : ssldDataBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } - int getActualPower1(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.PowerUsageData) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.PowerUsageData)other); + } else { + super.mergeFrom(other); + return this; + } + } - // required uint32 actualPower2 = 5; - boolean hasActualPower2(); + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.PowerUsageData other) { + if (other == org.opensmartgridplatform.oslp.Oslp.PowerUsageData.getDefaultInstance()) return this; + if (other.hasRecordTime()) { + recordTime_ = other.recordTime_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMeterType()) { + setMeterTypeValue(other.getMeterTypeValue()); + } + if (other.hasTotalConsumedEnergy()) { + setTotalConsumedEnergy(other.getTotalConsumedEnergy()); + } + if (other.hasActualConsumedPower()) { + setActualConsumedPower(other.getActualConsumedPower()); + } + if (other.hasPsldData()) { + mergePsldData(other.getPsldData()); + } + if (other.hasSsldData()) { + mergeSsldData(other.getSsldData()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - int getActualPower2(); + @java.lang.Override + public final boolean isInitialized() { + if (!hasRecordTime()) { + return false; + } + if (!hasMeterType()) { + return false; + } + if (!hasTotalConsumedEnergy()) { + return false; + } + if (!hasActualConsumedPower()) { + return false; + } + if (hasPsldData()) { + if (!getPsldData().isInitialized()) { + return false; + } + } + if (hasSsldData()) { + if (!getSsldData().isInitialized()) { + return false; + } + } + return true; + } - // required uint32 actualPower3 = 6; - boolean hasActualPower3(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + recordTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + meterType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + totalConsumedEnergy_ = input.readUInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + actualConsumedPower_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + internalGetPsldDataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + internalGetSsldDataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object recordTime_ = ""; + /** + *
+             * [(nanopb).max_size = 15];    // Record time - format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string recordTime = 1 [features = { ... } + * @return Whether the recordTime field is set. + */ + public boolean hasRecordTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * [(nanopb).max_size = 15];    // Record time - format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string recordTime = 1 [features = { ... } + * @return The recordTime. + */ + public java.lang.String getRecordTime() { + java.lang.Object ref = recordTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recordTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * [(nanopb).max_size = 15];    // Record time - format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string recordTime = 1 [features = { ... } + * @return The bytes for recordTime. + */ + public com.google.protobuf.ByteString + getRecordTimeBytes() { + java.lang.Object ref = recordTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + recordTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * [(nanopb).max_size = 15];    // Record time - format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string recordTime = 1 [features = { ... } + * @param value The recordTime to set. + * @return This builder for chaining. + */ + public Builder setRecordTime( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + recordTime_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 15];    // Record time - format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string recordTime = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearRecordTime() { + recordTime_ = getDefaultInstance().getRecordTime(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 15];    // Record time - format YYYYMMDDhhmmss UTC.
+             * 
+ * + * string recordTime = 1 [features = { ... } + * @param value The bytes for recordTime to set. + * @return This builder for chaining. + */ + public Builder setRecordTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + recordTime_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - int getActualPower3(); + private int meterType_ = 0; + /** + *
+             * Meter type (P1, Pulse, Aux).
+             * 
+ * + * .oslp.MeterType meterType = 2 [features = { ... } + * @return Whether the meterType field is set. + */ + @java.lang.Override public boolean hasMeterType() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * Meter type (P1, Pulse, Aux).
+             * 
+ * + * .oslp.MeterType meterType = 2 [features = { ... } + * @return The enum numeric value on the wire for meterType. + */ + @java.lang.Override public int getMeterTypeValue() { + return meterType_; + } + /** + *
+             * Meter type (P1, Pulse, Aux).
+             * 
+ * + * .oslp.MeterType meterType = 2 [features = { ... } + * @param value The enum numeric value on the wire for meterType to set. + * @return This builder for chaining. + */ + public Builder setMeterTypeValue(int value) { + meterType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Meter type (P1, Pulse, Aux).
+             * 
+ * + * .oslp.MeterType meterType = 2 [features = { ... } + * @return The meterType. + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.MeterType getMeterType() { + org.opensmartgridplatform.oslp.Oslp.MeterType result = org.opensmartgridplatform.oslp.Oslp.MeterType.forNumber(meterType_); + return result == null ? org.opensmartgridplatform.oslp.Oslp.MeterType.UNRECOGNIZED : result; + } + /** + *
+             * Meter type (P1, Pulse, Aux).
+             * 
+ * + * .oslp.MeterType meterType = 2 [features = { ... } + * @param value The meterType to set. + * @return This builder for chaining. + */ + public Builder setMeterType(org.opensmartgridplatform.oslp.Oslp.MeterType value) { + if (value == null) { throw new NullPointerException(); } + bitField0_ |= 0x00000002; + meterType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * Meter type (P1, Pulse, Aux).
+             * 
+ * + * .oslp.MeterType meterType = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearMeterType() { + bitField0_ = (bitField0_ & ~0x00000002); + meterType_ = 0; + onChanged(); + return this; + } - // required uint32 averagePowerFactor1 = 7; - boolean hasAveragePowerFactor1(); + private long totalConsumedEnergy_ ; + /** + *
+             * Electricity delivered to client (Tariff I + Tarrif II) in 0,001 kWh.
+             * 
+ * + * uint64 totalConsumedEnergy = 3 [features = { ... } + * @return Whether the totalConsumedEnergy field is set. + */ + @java.lang.Override + public boolean hasTotalConsumedEnergy() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * Electricity delivered to client (Tariff I + Tarrif II) in 0,001 kWh.
+             * 
+ * + * uint64 totalConsumedEnergy = 3 [features = { ... } + * @return The totalConsumedEnergy. + */ + @java.lang.Override + public long getTotalConsumedEnergy() { + return totalConsumedEnergy_; + } + /** + *
+             * Electricity delivered to client (Tariff I + Tarrif II) in 0,001 kWh.
+             * 
+ * + * uint64 totalConsumedEnergy = 3 [features = { ... } + * @param value The totalConsumedEnergy to set. + * @return This builder for chaining. + */ + public Builder setTotalConsumedEnergy(long value) { + + totalConsumedEnergy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * Electricity delivered to client (Tariff I + Tarrif II) in 0,001 kWh.
+             * 
+ * + * uint64 totalConsumedEnergy = 3 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearTotalConsumedEnergy() { + bitField0_ = (bitField0_ & ~0x00000004); + totalConsumedEnergy_ = 0L; + onChanged(); + return this; + } - int getAveragePowerFactor1(); + private int actualConsumedPower_ ; + /** + *
+             * Actual Electricity power delivered in W.
+             * 
+ * + * uint32 actualConsumedPower = 4 [features = { ... } + * @return Whether the actualConsumedPower field is set. + */ + @java.lang.Override + public boolean hasActualConsumedPower() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+             * Actual Electricity power delivered in W.
+             * 
+ * + * uint32 actualConsumedPower = 4 [features = { ... } + * @return The actualConsumedPower. + */ + @java.lang.Override + public int getActualConsumedPower() { + return actualConsumedPower_; + } + /** + *
+             * Actual Electricity power delivered in W.
+             * 
+ * + * uint32 actualConsumedPower = 4 [features = { ... } + * @param value The actualConsumedPower to set. + * @return This builder for chaining. + */ + public Builder setActualConsumedPower(int value) { + + actualConsumedPower_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+             * Actual Electricity power delivered in W.
+             * 
+ * + * uint32 actualConsumedPower = 4 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearActualConsumedPower() { + bitField0_ = (bitField0_ & ~0x00000008); + actualConsumedPower_ = 0; + onChanged(); + return this; + } - // required uint32 averagePowerFactor2 = 8; - boolean hasAveragePowerFactor2(); + private org.opensmartgridplatform.oslp.Oslp.PsldData psldData_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.PsldData, org.opensmartgridplatform.oslp.Oslp.PsldData.Builder, org.opensmartgridplatform.oslp.Oslp.PsldDataOrBuilder> psldDataBuilder_; + /** + * .oslp.PsldData psldData = 5; + * @return Whether the psldData field is set. + */ + public boolean hasPsldData() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .oslp.PsldData psldData = 5; + * @return The psldData. + */ + public org.opensmartgridplatform.oslp.Oslp.PsldData getPsldData() { + if (psldDataBuilder_ == null) { + return psldData_ == null ? org.opensmartgridplatform.oslp.Oslp.PsldData.getDefaultInstance() : psldData_; + } else { + return psldDataBuilder_.getMessage(); + } + } + /** + * .oslp.PsldData psldData = 5; + */ + public Builder setPsldData(org.opensmartgridplatform.oslp.Oslp.PsldData value) { + if (psldDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + psldData_ = value; + } else { + psldDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .oslp.PsldData psldData = 5; + */ + public Builder setPsldData( + org.opensmartgridplatform.oslp.Oslp.PsldData.Builder builderForValue) { + if (psldDataBuilder_ == null) { + psldData_ = builderForValue.build(); + } else { + psldDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .oslp.PsldData psldData = 5; + */ + public Builder mergePsldData(org.opensmartgridplatform.oslp.Oslp.PsldData value) { + if (psldDataBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + psldData_ != null && + psldData_ != org.opensmartgridplatform.oslp.Oslp.PsldData.getDefaultInstance()) { + getPsldDataBuilder().mergeFrom(value); + } else { + psldData_ = value; + } + } else { + psldDataBuilder_.mergeFrom(value); + } + if (psldData_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * .oslp.PsldData psldData = 5; + */ + public Builder clearPsldData() { + bitField0_ = (bitField0_ & ~0x00000010); + psldData_ = null; + if (psldDataBuilder_ != null) { + psldDataBuilder_.dispose(); + psldDataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.PsldData psldData = 5; + */ + public org.opensmartgridplatform.oslp.Oslp.PsldData.Builder getPsldDataBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetPsldDataFieldBuilder().getBuilder(); + } + /** + * .oslp.PsldData psldData = 5; + */ + public org.opensmartgridplatform.oslp.Oslp.PsldDataOrBuilder getPsldDataOrBuilder() { + if (psldDataBuilder_ != null) { + return psldDataBuilder_.getMessageOrBuilder(); + } else { + return psldData_ == null ? + org.opensmartgridplatform.oslp.Oslp.PsldData.getDefaultInstance() : psldData_; + } + } + /** + * .oslp.PsldData psldData = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.PsldData, org.opensmartgridplatform.oslp.Oslp.PsldData.Builder, org.opensmartgridplatform.oslp.Oslp.PsldDataOrBuilder> + internalGetPsldDataFieldBuilder() { + if (psldDataBuilder_ == null) { + psldDataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.PsldData, org.opensmartgridplatform.oslp.Oslp.PsldData.Builder, org.opensmartgridplatform.oslp.Oslp.PsldDataOrBuilder>( + getPsldData(), + getParentForChildren(), + isClean()); + psldData_ = null; + } + return psldDataBuilder_; + } - int getAveragePowerFactor2(); + private org.opensmartgridplatform.oslp.Oslp.SsldData ssldData_; + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SsldData, org.opensmartgridplatform.oslp.Oslp.SsldData.Builder, org.opensmartgridplatform.oslp.Oslp.SsldDataOrBuilder> ssldDataBuilder_; + /** + * .oslp.SsldData ssldData = 6; + * @return Whether the ssldData field is set. + */ + public boolean hasSsldData() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .oslp.SsldData ssldData = 6; + * @return The ssldData. + */ + public org.opensmartgridplatform.oslp.Oslp.SsldData getSsldData() { + if (ssldDataBuilder_ == null) { + return ssldData_ == null ? org.opensmartgridplatform.oslp.Oslp.SsldData.getDefaultInstance() : ssldData_; + } else { + return ssldDataBuilder_.getMessage(); + } + } + /** + * .oslp.SsldData ssldData = 6; + */ + public Builder setSsldData(org.opensmartgridplatform.oslp.Oslp.SsldData value) { + if (ssldDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ssldData_ = value; + } else { + ssldDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .oslp.SsldData ssldData = 6; + */ + public Builder setSsldData( + org.opensmartgridplatform.oslp.Oslp.SsldData.Builder builderForValue) { + if (ssldDataBuilder_ == null) { + ssldData_ = builderForValue.build(); + } else { + ssldDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .oslp.SsldData ssldData = 6; + */ + public Builder mergeSsldData(org.opensmartgridplatform.oslp.Oslp.SsldData value) { + if (ssldDataBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + ssldData_ != null && + ssldData_ != org.opensmartgridplatform.oslp.Oslp.SsldData.getDefaultInstance()) { + getSsldDataBuilder().mergeFrom(value); + } else { + ssldData_ = value; + } + } else { + ssldDataBuilder_.mergeFrom(value); + } + if (ssldData_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * .oslp.SsldData ssldData = 6; + */ + public Builder clearSsldData() { + bitField0_ = (bitField0_ & ~0x00000020); + ssldData_ = null; + if (ssldDataBuilder_ != null) { + ssldDataBuilder_.dispose(); + ssldDataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .oslp.SsldData ssldData = 6; + */ + public org.opensmartgridplatform.oslp.Oslp.SsldData.Builder getSsldDataBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetSsldDataFieldBuilder().getBuilder(); + } + /** + * .oslp.SsldData ssldData = 6; + */ + public org.opensmartgridplatform.oslp.Oslp.SsldDataOrBuilder getSsldDataOrBuilder() { + if (ssldDataBuilder_ != null) { + return ssldDataBuilder_.getMessageOrBuilder(); + } else { + return ssldData_ == null ? + org.opensmartgridplatform.oslp.Oslp.SsldData.getDefaultInstance() : ssldData_; + } + } + /** + * .oslp.SsldData ssldData = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SsldData, org.opensmartgridplatform.oslp.Oslp.SsldData.Builder, org.opensmartgridplatform.oslp.Oslp.SsldDataOrBuilder> + internalGetSsldDataFieldBuilder() { + if (ssldDataBuilder_ == null) { + ssldDataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.SsldData, org.opensmartgridplatform.oslp.Oslp.SsldData.Builder, org.opensmartgridplatform.oslp.Oslp.SsldDataOrBuilder>( + getSsldData(), + getParentForChildren(), + isClean()); + ssldData_ = null; + } + return ssldDataBuilder_; + } - // required uint32 averagePowerFactor3 = 9; - boolean hasAveragePowerFactor3(); + // @@protoc_insertion_point(builder_scope:oslp.PowerUsageData) + } - int getAveragePowerFactor3(); + // @@protoc_insertion_point(class_scope:oslp.PowerUsageData) + private static final org.opensmartgridplatform.oslp.Oslp.PowerUsageData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.PowerUsageData(); + } - // repeated .oslp.RelayData relayData = 10; - java.util.List getRelayDataList(); + public static org.opensmartgridplatform.oslp.Oslp.PowerUsageData getDefaultInstance() { + return DEFAULT_INSTANCE; + } - org.opensmartgridplatform.oslp.Oslp.RelayData getRelayData(int index); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PowerUsageData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - int getRelayDataCount(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } - java.util.List - getRelayDataOrBuilderList(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - org.opensmartgridplatform.oslp.Oslp.RelayDataOrBuilder getRelayDataOrBuilder(int index); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PowerUsageData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final class SsldData extends com.google.protobuf.GeneratedMessage - implements SsldDataOrBuilder { - // Use SsldData.newBuilder() to construct. - private SsldData(final Builder builder) { - super(builder); } - private SsldData(final boolean noInit) {} - - private static final SsldData defaultInstance; - - public static SsldData getDefaultInstance() { - return defaultInstance; - } + public interface PsldDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.PsldData) + com.google.protobuf.MessageOrBuilder { - @Override - public SsldData getDefaultInstanceForType() { - return defaultInstance; + /** + *
+         * Total lighting hours
+         * 
+ * + * uint32 totalLightingHours = 1 [features = { ... } + * @return Whether the totalLightingHours field is set. + */ + boolean hasTotalLightingHours(); + /** + *
+         * Total lighting hours
+         * 
+ * + * uint32 totalLightingHours = 1 [features = { ... } + * @return The totalLightingHours. + */ + int getTotalLightingHours(); } + /** + * Protobuf type {@code oslp.PsldData} + */ + public static final class PsldData extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.PsldData) + PsldDataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + PsldData.class.getName()); + } + // Use PsldData.newBuilder() to construct. + private PsldData(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PsldData() { + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SsldData_descriptor; - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PsldData_descriptor; + } - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SsldData_fieldAccessorTable; - } - - private int bitField0_; - // required uint32 actualCurrent1 = 1; - public static final int ACTUALCURRENT1_FIELD_NUMBER = 1; - private int actualCurrent1_; - - @Override - public boolean hasActualCurrent1() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public int getActualCurrent1() { - return this.actualCurrent1_; - } - - // required uint32 actualCurrent2 = 2; - public static final int ACTUALCURRENT2_FIELD_NUMBER = 2; - private int actualCurrent2_; - - @Override - public boolean hasActualCurrent2() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PsldData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.PsldData.class, org.opensmartgridplatform.oslp.Oslp.PsldData.Builder.class); + } + + private int bitField0_; + public static final int TOTALLIGHTINGHOURS_FIELD_NUMBER = 1; + private int totalLightingHours_ = 0; + /** + *
+         * Total lighting hours
+         * 
+ * + * uint32 totalLightingHours = 1 [features = { ... } + * @return Whether the totalLightingHours field is set. + */ + @java.lang.Override + public boolean hasTotalLightingHours() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Total lighting hours
+         * 
+ * + * uint32 totalLightingHours = 1 [features = { ... } + * @return The totalLightingHours. + */ + @java.lang.Override + public int getTotalLightingHours() { + return totalLightingHours_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasTotalLightingHours()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - @Override - public int getActualCurrent2() { - return this.actualCurrent2_; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeUInt32(1, totalLightingHours_); + } + getUnknownFields().writeTo(output); + } - // required uint32 actualCurrent3 = 3; - public static final int ACTUALCURRENT3_FIELD_NUMBER = 3; - private int actualCurrent3_; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public boolean hasActualCurrent3() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, totalLightingHours_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @Override - public int getActualCurrent3() { - return this.actualCurrent3_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.PsldData)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.PsldData other = (org.opensmartgridplatform.oslp.Oslp.PsldData) obj; - // required uint32 actualPower1 = 4; - public static final int ACTUALPOWER1_FIELD_NUMBER = 4; - private int actualPower1_; + if (hasTotalLightingHours() != other.hasTotalLightingHours()) return false; + if (hasTotalLightingHours()) { + if (getTotalLightingHours() + != other.getTotalLightingHours()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public boolean hasActualPower1() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTotalLightingHours()) { + hash = (37 * hash) + TOTALLIGHTINGHOURS_FIELD_NUMBER; + hash = (53 * hash) + getTotalLightingHours(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.PsldData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.PsldData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.PsldData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.PsldData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code oslp.PsldData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.PsldData) + org.opensmartgridplatform.oslp.Oslp.PsldDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PsldData_descriptor; + } - @Override - public int getActualPower1() { - return this.actualPower1_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PsldData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.PsldData.class, org.opensmartgridplatform.oslp.Oslp.PsldData.Builder.class); + } - // required uint32 actualPower2 = 5; - public static final int ACTUALPOWER2_FIELD_NUMBER = 5; - private int actualPower2_; + // Construct using org.opensmartgridplatform.oslp.Oslp.PsldData.newBuilder() + private Builder() { - @Override - public boolean hasActualPower2() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } + } - @Override - public int getActualPower2() { - return this.actualPower2_; - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - // required uint32 actualPower3 = 6; - public static final int ACTUALPOWER3_FIELD_NUMBER = 6; - private int actualPower3_; + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + totalLightingHours_ = 0; + return this; + } - @Override - public boolean hasActualPower3() { - return ((this.bitField0_ & 0x00000020) == 0x00000020); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_PsldData_descriptor; + } - @Override - public int getActualPower3() { - return this.actualPower3_; - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PsldData getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.PsldData.getDefaultInstance(); + } - // required uint32 averagePowerFactor1 = 7; - public static final int AVERAGEPOWERFACTOR1_FIELD_NUMBER = 7; - private int averagePowerFactor1_; + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PsldData build() { + org.opensmartgridplatform.oslp.Oslp.PsldData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @Override - public boolean hasAveragePowerFactor1() { - return ((this.bitField0_ & 0x00000040) == 0x00000040); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PsldData buildPartial() { + org.opensmartgridplatform.oslp.Oslp.PsldData result = new org.opensmartgridplatform.oslp.Oslp.PsldData(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - @Override - public int getAveragePowerFactor1() { - return this.averagePowerFactor1_; - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.PsldData result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalLightingHours_ = totalLightingHours_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - // required uint32 averagePowerFactor2 = 8; - public static final int AVERAGEPOWERFACTOR2_FIELD_NUMBER = 8; - private int averagePowerFactor2_; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.PsldData) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.PsldData)other); + } else { + super.mergeFrom(other); + return this; + } + } - @Override - public boolean hasAveragePowerFactor2() { - return ((this.bitField0_ & 0x00000080) == 0x00000080); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.PsldData other) { + if (other == org.opensmartgridplatform.oslp.Oslp.PsldData.getDefaultInstance()) return this; + if (other.hasTotalLightingHours()) { + setTotalLightingHours(other.getTotalLightingHours()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public int getAveragePowerFactor2() { - return this.averagePowerFactor2_; - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasTotalLightingHours()) { + return false; + } + return true; + } - // required uint32 averagePowerFactor3 = 9; - public static final int AVERAGEPOWERFACTOR3_FIELD_NUMBER = 9; - private int averagePowerFactor3_; + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + totalLightingHours_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int totalLightingHours_ ; + /** + *
+             * Total lighting hours
+             * 
+ * + * uint32 totalLightingHours = 1 [features = { ... } + * @return Whether the totalLightingHours field is set. + */ + @java.lang.Override + public boolean hasTotalLightingHours() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Total lighting hours
+             * 
+ * + * uint32 totalLightingHours = 1 [features = { ... } + * @return The totalLightingHours. + */ + @java.lang.Override + public int getTotalLightingHours() { + return totalLightingHours_; + } + /** + *
+             * Total lighting hours
+             * 
+ * + * uint32 totalLightingHours = 1 [features = { ... } + * @param value The totalLightingHours to set. + * @return This builder for chaining. + */ + public Builder setTotalLightingHours(int value) { + + totalLightingHours_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Total lighting hours
+             * 
+ * + * uint32 totalLightingHours = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearTotalLightingHours() { + bitField0_ = (bitField0_ & ~0x00000001); + totalLightingHours_ = 0; + onChanged(); + return this; + } - @Override - public boolean hasAveragePowerFactor3() { - return ((this.bitField0_ & 0x00000100) == 0x00000100); - } + // @@protoc_insertion_point(builder_scope:oslp.PsldData) + } - @Override - public int getAveragePowerFactor3() { - return this.averagePowerFactor3_; - } + // @@protoc_insertion_point(class_scope:oslp.PsldData) + private static final org.opensmartgridplatform.oslp.Oslp.PsldData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.PsldData(); + } - // repeated .oslp.RelayData relayData = 10; - public static final int RELAYDATA_FIELD_NUMBER = 10; - private java.util.List relayData_; + public static org.opensmartgridplatform.oslp.Oslp.PsldData getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @Override - public java.util.List getRelayDataList() { - return this.relayData_; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PsldData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - public java.util.List + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.PsldData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SsldDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.SsldData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Instantaneous current L1 in mA.
+         * 
+ * + * uint32 actualCurrent1 = 1 [features = { ... } + * @return Whether the actualCurrent1 field is set. + */ + boolean hasActualCurrent1(); + /** + *
+         * Instantaneous current L1 in mA.
+         * 
+ * + * uint32 actualCurrent1 = 1 [features = { ... } + * @return The actualCurrent1. + */ + int getActualCurrent1(); + + /** + *
+         * Instantaneous current L2 in mA.
+         * 
+ * + * uint32 actualCurrent2 = 2 [features = { ... } + * @return Whether the actualCurrent2 field is set. + */ + boolean hasActualCurrent2(); + /** + *
+         * Instantaneous current L2 in mA.
+         * 
+ * + * uint32 actualCurrent2 = 2 [features = { ... } + * @return The actualCurrent2. + */ + int getActualCurrent2(); + + /** + *
+         * Instantaneous current L3 in mA.
+         * 
+ * + * uint32 actualCurrent3 = 3 [features = { ... } + * @return Whether the actualCurrent3 field is set. + */ + boolean hasActualCurrent3(); + /** + *
+         * Instantaneous current L3 in mA.
+         * 
+ * + * uint32 actualCurrent3 = 3 [features = { ... } + * @return The actualCurrent3. + */ + int getActualCurrent3(); + + /** + *
+         * Instantaneous active power L1 in W.
+         * 
+ * + * uint32 actualPower1 = 4 [features = { ... } + * @return Whether the actualPower1 field is set. + */ + boolean hasActualPower1(); + /** + *
+         * Instantaneous active power L1 in W.
+         * 
+ * + * uint32 actualPower1 = 4 [features = { ... } + * @return The actualPower1. + */ + int getActualPower1(); + + /** + *
+         * Instantaneous active power L2 in W.
+         * 
+ * + * uint32 actualPower2 = 5 [features = { ... } + * @return Whether the actualPower2 field is set. + */ + boolean hasActualPower2(); + /** + *
+         * Instantaneous active power L2 in W.
+         * 
+ * + * uint32 actualPower2 = 5 [features = { ... } + * @return The actualPower2. + */ + int getActualPower2(); + + /** + *
+         * Instantaneous active power L3 in W.
+         * 
+ * + * uint32 actualPower3 = 6 [features = { ... } + * @return Whether the actualPower3 field is set. + */ + boolean hasActualPower3(); + /** + *
+         * Instantaneous active power L3 in W.
+         * 
+ * + * uint32 actualPower3 = 6 [features = { ... } + * @return The actualPower3. + */ + int getActualPower3(); + + /** + *
+         * Power factor L1 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+         * 
+ * + * uint32 averagePowerFactor1 = 7 [features = { ... } + * @return Whether the averagePowerFactor1 field is set. + */ + boolean hasAveragePowerFactor1(); + /** + *
+         * Power factor L1 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+         * 
+ * + * uint32 averagePowerFactor1 = 7 [features = { ... } + * @return The averagePowerFactor1. + */ + int getAveragePowerFactor1(); + + /** + *
+         * Power factor L2 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+         * 
+ * + * uint32 averagePowerFactor2 = 8 [features = { ... } + * @return Whether the averagePowerFactor2 field is set. + */ + boolean hasAveragePowerFactor2(); + /** + *
+         * Power factor L2 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+         * 
+ * + * uint32 averagePowerFactor2 = 8 [features = { ... } + * @return The averagePowerFactor2. + */ + int getAveragePowerFactor2(); + + /** + *
+         * Power factor L3 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+         * 
+ * + * uint32 averagePowerFactor3 = 9 [features = { ... } + * @return Whether the averagePowerFactor3 field is set. + */ + boolean hasAveragePowerFactor3(); + /** + *
+         * Power factor L3 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+         * 
+ * + * uint32 averagePowerFactor3 = 9 [features = { ... } + * @return The averagePowerFactor3. + */ + int getAveragePowerFactor3(); + + /** + *
+         * [(nanopb).max_count = 4]; // Measurement data per relay.
+         * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + java.util.List + getRelayDataList(); + /** + *
+         * [(nanopb).max_count = 4]; // Measurement data per relay.
+         * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + org.opensmartgridplatform.oslp.Oslp.RelayData getRelayData(int index); + /** + *
+         * [(nanopb).max_count = 4]; // Measurement data per relay.
+         * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + int getRelayDataCount(); + /** + *
+         * [(nanopb).max_count = 4]; // Measurement data per relay.
+         * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + java.util.List + getRelayDataOrBuilderList(); + /** + *
+         * [(nanopb).max_count = 4]; // Measurement data per relay.
+         * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + org.opensmartgridplatform.oslp.Oslp.RelayDataOrBuilder getRelayDataOrBuilder( + int index); + } + /** + *
+     * Deprecated, no longer supported by the platform.
+     * 
+ * + * Protobuf type {@code oslp.SsldData} + */ + public static final class SsldData extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.SsldData) + SsldDataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + SsldData.class.getName()); + } + // Use SsldData.newBuilder() to construct. + private SsldData(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SsldData() { + relayData_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SsldData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SsldData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SsldData.class, org.opensmartgridplatform.oslp.Oslp.SsldData.Builder.class); + } + + private int bitField0_; + public static final int ACTUALCURRENT1_FIELD_NUMBER = 1; + private int actualCurrent1_ = 0; + /** + *
+         * Instantaneous current L1 in mA.
+         * 
+ * + * uint32 actualCurrent1 = 1 [features = { ... } + * @return Whether the actualCurrent1 field is set. + */ + @java.lang.Override + public boolean hasActualCurrent1() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Instantaneous current L1 in mA.
+         * 
+ * + * uint32 actualCurrent1 = 1 [features = { ... } + * @return The actualCurrent1. + */ + @java.lang.Override + public int getActualCurrent1() { + return actualCurrent1_; + } + + public static final int ACTUALCURRENT2_FIELD_NUMBER = 2; + private int actualCurrent2_ = 0; + /** + *
+         * Instantaneous current L2 in mA.
+         * 
+ * + * uint32 actualCurrent2 = 2 [features = { ... } + * @return Whether the actualCurrent2 field is set. + */ + @java.lang.Override + public boolean hasActualCurrent2() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * Instantaneous current L2 in mA.
+         * 
+ * + * uint32 actualCurrent2 = 2 [features = { ... } + * @return The actualCurrent2. + */ + @java.lang.Override + public int getActualCurrent2() { + return actualCurrent2_; + } + + public static final int ACTUALCURRENT3_FIELD_NUMBER = 3; + private int actualCurrent3_ = 0; + /** + *
+         * Instantaneous current L3 in mA.
+         * 
+ * + * uint32 actualCurrent3 = 3 [features = { ... } + * @return Whether the actualCurrent3 field is set. + */ + @java.lang.Override + public boolean hasActualCurrent3() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * Instantaneous current L3 in mA.
+         * 
+ * + * uint32 actualCurrent3 = 3 [features = { ... } + * @return The actualCurrent3. + */ + @java.lang.Override + public int getActualCurrent3() { + return actualCurrent3_; + } + + public static final int ACTUALPOWER1_FIELD_NUMBER = 4; + private int actualPower1_ = 0; + /** + *
+         * Instantaneous active power L1 in W.
+         * 
+ * + * uint32 actualPower1 = 4 [features = { ... } + * @return Whether the actualPower1 field is set. + */ + @java.lang.Override + public boolean hasActualPower1() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+         * Instantaneous active power L1 in W.
+         * 
+ * + * uint32 actualPower1 = 4 [features = { ... } + * @return The actualPower1. + */ + @java.lang.Override + public int getActualPower1() { + return actualPower1_; + } + + public static final int ACTUALPOWER2_FIELD_NUMBER = 5; + private int actualPower2_ = 0; + /** + *
+         * Instantaneous active power L2 in W.
+         * 
+ * + * uint32 actualPower2 = 5 [features = { ... } + * @return Whether the actualPower2 field is set. + */ + @java.lang.Override + public boolean hasActualPower2() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+         * Instantaneous active power L2 in W.
+         * 
+ * + * uint32 actualPower2 = 5 [features = { ... } + * @return The actualPower2. + */ + @java.lang.Override + public int getActualPower2() { + return actualPower2_; + } + + public static final int ACTUALPOWER3_FIELD_NUMBER = 6; + private int actualPower3_ = 0; + /** + *
+         * Instantaneous active power L3 in W.
+         * 
+ * + * uint32 actualPower3 = 6 [features = { ... } + * @return Whether the actualPower3 field is set. + */ + @java.lang.Override + public boolean hasActualPower3() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+         * Instantaneous active power L3 in W.
+         * 
+ * + * uint32 actualPower3 = 6 [features = { ... } + * @return The actualPower3. + */ + @java.lang.Override + public int getActualPower3() { + return actualPower3_; + } + + public static final int AVERAGEPOWERFACTOR1_FIELD_NUMBER = 7; + private int averagePowerFactor1_ = 0; + /** + *
+         * Power factor L1 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+         * 
+ * + * uint32 averagePowerFactor1 = 7 [features = { ... } + * @return Whether the averagePowerFactor1 field is set. + */ + @java.lang.Override + public boolean hasAveragePowerFactor1() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+         * Power factor L1 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+         * 
+ * + * uint32 averagePowerFactor1 = 7 [features = { ... } + * @return The averagePowerFactor1. + */ + @java.lang.Override + public int getAveragePowerFactor1() { + return averagePowerFactor1_; + } + + public static final int AVERAGEPOWERFACTOR2_FIELD_NUMBER = 8; + private int averagePowerFactor2_ = 0; + /** + *
+         * Power factor L2 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+         * 
+ * + * uint32 averagePowerFactor2 = 8 [features = { ... } + * @return Whether the averagePowerFactor2 field is set. + */ + @java.lang.Override + public boolean hasAveragePowerFactor2() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+         * Power factor L2 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+         * 
+ * + * uint32 averagePowerFactor2 = 8 [features = { ... } + * @return The averagePowerFactor2. + */ + @java.lang.Override + public int getAveragePowerFactor2() { + return averagePowerFactor2_; + } + + public static final int AVERAGEPOWERFACTOR3_FIELD_NUMBER = 9; + private int averagePowerFactor3_ = 0; + /** + *
+         * Power factor L3 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+         * 
+ * + * uint32 averagePowerFactor3 = 9 [features = { ... } + * @return Whether the averagePowerFactor3 field is set. + */ + @java.lang.Override + public boolean hasAveragePowerFactor3() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+         * Power factor L3 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+         * 
+ * + * uint32 averagePowerFactor3 = 9 [features = { ... } + * @return The averagePowerFactor3. + */ + @java.lang.Override + public int getAveragePowerFactor3() { + return averagePowerFactor3_; + } + + public static final int RELAYDATA_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private java.util.List relayData_; + /** + *
+         * [(nanopb).max_count = 4]; // Measurement data per relay.
+         * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + @java.lang.Override + public java.util.List getRelayDataList() { + return relayData_; + } + /** + *
+         * [(nanopb).max_count = 4]; // Measurement data per relay.
+         * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + @java.lang.Override + public java.util.List getRelayDataOrBuilderList() { - return this.relayData_; - } - - @Override - public int getRelayDataCount() { - return this.relayData_.size(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayData getRelayData(final int index) { - return this.relayData_.get(index); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayDataOrBuilder getRelayDataOrBuilder( - final int index) { - return this.relayData_.get(index); - } + return relayData_; + } + /** + *
+         * [(nanopb).max_count = 4]; // Measurement data per relay.
+         * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + @java.lang.Override + public int getRelayDataCount() { + return relayData_.size(); + } + /** + *
+         * [(nanopb).max_count = 4]; // Measurement data per relay.
+         * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayData getRelayData(int index) { + return relayData_.get(index); + } + /** + *
+         * [(nanopb).max_count = 4]; // Measurement data per relay.
+         * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayDataOrBuilder getRelayDataOrBuilder( + int index) { + return relayData_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasActualCurrent1()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasActualCurrent2()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasActualCurrent3()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasActualPower1()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasActualPower2()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasActualPower3()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAveragePowerFactor1()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAveragePowerFactor2()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAveragePowerFactor3()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getRelayDataCount(); i++) { + if (!getRelayData(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - private void initFields() { - this.actualCurrent1_ = 0; - this.actualCurrent2_ = 0; - this.actualCurrent3_ = 0; - this.actualPower1_ = 0; - this.actualPower2_ = 0; - this.actualPower3_ = 0; - this.averagePowerFactor1_ = 0; - this.averagePowerFactor2_ = 0; - this.averagePowerFactor3_ = 0; - this.relayData_ = java.util.Collections.emptyList(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeUInt32(1, actualCurrent1_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(2, actualCurrent2_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeUInt32(3, actualCurrent3_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeUInt32(4, actualPower1_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeUInt32(5, actualPower2_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeUInt32(6, actualPower3_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeUInt32(7, averagePowerFactor1_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeUInt32(8, averagePowerFactor2_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeUInt32(9, averagePowerFactor3_); + } + for (int i = 0; i < relayData_.size(); i++) { + output.writeMessage(10, relayData_.get(i)); + } + getUnknownFields().writeTo(output); + } - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasActualCurrent1()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasActualCurrent2()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasActualCurrent3()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasActualPower1()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasActualPower2()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasActualPower3()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasAveragePowerFactor1()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasAveragePowerFactor2()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasAveragePowerFactor3()) { - this.memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < this.getRelayDataCount(); i++) { - if (!this.getRelayData(i).isInitialized()) { - this.memoizedIsInitialized = 0; - return false; - } - } - this.memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeUInt32(1, this.actualCurrent1_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeUInt32(2, this.actualCurrent2_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - output.writeUInt32(3, this.actualCurrent3_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - output.writeUInt32(4, this.actualPower1_); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - output.writeUInt32(5, this.actualPower2_); - } - if (((this.bitField0_ & 0x00000020) == 0x00000020)) { - output.writeUInt32(6, this.actualPower3_); - } - if (((this.bitField0_ & 0x00000040) == 0x00000040)) { - output.writeUInt32(7, this.averagePowerFactor1_); - } - if (((this.bitField0_ & 0x00000080) == 0x00000080)) { - output.writeUInt32(8, this.averagePowerFactor2_); - } - if (((this.bitField0_ & 0x00000100) == 0x00000100)) { - output.writeUInt32(9, this.averagePowerFactor3_); - } - for (int i = 0; i < this.relayData_.size(); i++) { - output.writeMessage(10, this.relayData_.get(i)); - } - this.getUnknownFields().writeTo(output); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, actualCurrent1_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, actualCurrent2_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, actualCurrent3_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, actualPower1_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, actualPower2_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, actualPower3_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(7, averagePowerFactor1_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, averagePowerFactor2_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, averagePowerFactor3_); + } + for (int i = 0; i < relayData_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, relayData_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, this.actualCurrent1_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, this.actualCurrent2_); - } - if (((this.bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, this.actualCurrent3_); - } - if (((this.bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, this.actualPower1_); - } - if (((this.bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, this.actualPower2_); - } - if (((this.bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(6, this.actualPower3_); - } - if (((this.bitField0_ & 0x00000040) == 0x00000040)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size(7, this.averagePowerFactor1_); - } - if (((this.bitField0_ & 0x00000080) == 0x00000080)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size(8, this.averagePowerFactor2_); - } - if (((this.bitField0_ & 0x00000100) == 0x00000100)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size(9, this.averagePowerFactor3_); - } - for (int i = 0; i < this.relayData_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(10, this.relayData_.get(i)); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.SsldData)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.SsldData other = (org.opensmartgridplatform.oslp.Oslp.SsldData) obj; - private static final long serialVersionUID = 0L; + if (hasActualCurrent1() != other.hasActualCurrent1()) return false; + if (hasActualCurrent1()) { + if (getActualCurrent1() + != other.getActualCurrent1()) return false; + } + if (hasActualCurrent2() != other.hasActualCurrent2()) return false; + if (hasActualCurrent2()) { + if (getActualCurrent2() + != other.getActualCurrent2()) return false; + } + if (hasActualCurrent3() != other.hasActualCurrent3()) return false; + if (hasActualCurrent3()) { + if (getActualCurrent3() + != other.getActualCurrent3()) return false; + } + if (hasActualPower1() != other.hasActualPower1()) return false; + if (hasActualPower1()) { + if (getActualPower1() + != other.getActualPower1()) return false; + } + if (hasActualPower2() != other.hasActualPower2()) return false; + if (hasActualPower2()) { + if (getActualPower2() + != other.getActualPower2()) return false; + } + if (hasActualPower3() != other.hasActualPower3()) return false; + if (hasActualPower3()) { + if (getActualPower3() + != other.getActualPower3()) return false; + } + if (hasAveragePowerFactor1() != other.hasAveragePowerFactor1()) return false; + if (hasAveragePowerFactor1()) { + if (getAveragePowerFactor1() + != other.getAveragePowerFactor1()) return false; + } + if (hasAveragePowerFactor2() != other.hasAveragePowerFactor2()) return false; + if (hasAveragePowerFactor2()) { + if (getAveragePowerFactor2() + != other.getAveragePowerFactor2()) return false; + } + if (hasAveragePowerFactor3() != other.hasAveragePowerFactor3()) return false; + if (hasAveragePowerFactor3()) { + if (getAveragePowerFactor3() + != other.getAveragePowerFactor3()) return false; + } + if (!getRelayDataList() + .equals(other.getRelayDataList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasActualCurrent1()) { + hash = (37 * hash) + ACTUALCURRENT1_FIELD_NUMBER; + hash = (53 * hash) + getActualCurrent1(); + } + if (hasActualCurrent2()) { + hash = (37 * hash) + ACTUALCURRENT2_FIELD_NUMBER; + hash = (53 * hash) + getActualCurrent2(); + } + if (hasActualCurrent3()) { + hash = (37 * hash) + ACTUALCURRENT3_FIELD_NUMBER; + hash = (53 * hash) + getActualCurrent3(); + } + if (hasActualPower1()) { + hash = (37 * hash) + ACTUALPOWER1_FIELD_NUMBER; + hash = (53 * hash) + getActualPower1(); + } + if (hasActualPower2()) { + hash = (37 * hash) + ACTUALPOWER2_FIELD_NUMBER; + hash = (53 * hash) + getActualPower2(); + } + if (hasActualPower3()) { + hash = (37 * hash) + ACTUALPOWER3_FIELD_NUMBER; + hash = (53 * hash) + getActualPower3(); + } + if (hasAveragePowerFactor1()) { + hash = (37 * hash) + AVERAGEPOWERFACTOR1_FIELD_NUMBER; + hash = (53 * hash) + getAveragePowerFactor1(); + } + if (hasAveragePowerFactor2()) { + hash = (37 * hash) + AVERAGEPOWERFACTOR2_FIELD_NUMBER; + hash = (53 * hash) + getAveragePowerFactor2(); + } + if (hasAveragePowerFactor3()) { + hash = (37 * hash) + AVERAGEPOWERFACTOR3_FIELD_NUMBER; + hash = (53 * hash) + getAveragePowerFactor3(); + } + if (getRelayDataCount() > 0) { + hash = (37 * hash) + RELAYDATA_FIELD_NUMBER; + hash = (53 * hash) + getRelayDataList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.SsldData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.SsldData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.SsldData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * Protobuf type {@code oslp.SsldData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.SsldData) + org.opensmartgridplatform.oslp.Oslp.SsldDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SsldData_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SsldData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.SsldData.class, org.opensmartgridplatform.oslp.Oslp.SsldData.Builder.class); + } - public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + // Construct using org.opensmartgridplatform.oslp.Oslp.SsldData.newBuilder() + private Builder() { - public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + } - public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + actualCurrent1_ = 0; + actualCurrent2_ = 0; + actualCurrent3_ = 0; + actualPower1_ = 0; + actualPower2_ = 0; + actualPower3_ = 0; + averagePowerFactor1_ = 0; + averagePowerFactor2_ = 0; + averagePowerFactor3_ = 0; + if (relayDataBuilder_ == null) { + relayData_ = java.util.Collections.emptyList(); + } else { + relayData_ = null; + relayDataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SsldData_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.SsldData parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SsldData getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.SsldData.getDefaultInstance(); + } - public static org.opensmartgridplatform.oslp.Oslp.SsldData parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SsldData build() { + org.opensmartgridplatform.oslp.Oslp.SsldData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SsldData buildPartial() { + org.opensmartgridplatform.oslp.Oslp.SsldData result = new org.opensmartgridplatform.oslp.Oslp.SsldData(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.SsldData parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + private void buildPartialRepeatedFields(org.opensmartgridplatform.oslp.Oslp.SsldData result) { + if (relayDataBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + relayData_ = java.util.Collections.unmodifiableList(relayData_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.relayData_ = relayData_; + } else { + result.relayData_ = relayDataBuilder_.build(); + } + } - public static Builder newBuilder() { - return Builder.create(); - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.SsldData result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.actualCurrent1_ = actualCurrent1_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.actualCurrent2_ = actualCurrent2_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.actualCurrent3_ = actualCurrent3_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.actualPower1_ = actualPower1_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.actualPower2_ = actualPower2_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.actualPower3_ = actualPower3_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.averagePowerFactor1_ = averagePowerFactor1_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.averagePowerFactor2_ = averagePowerFactor2_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.averagePowerFactor3_ = averagePowerFactor3_; + to_bitField0_ |= 0x00000100; + } + result.bitField0_ |= to_bitField0_; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.SsldData) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.SsldData)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static Builder newBuilder(final org.opensmartgridplatform.oslp.Oslp.SsldData prototype) { - return newBuilder().mergeFrom(prototype); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.SsldData other) { + if (other == org.opensmartgridplatform.oslp.Oslp.SsldData.getDefaultInstance()) return this; + if (other.hasActualCurrent1()) { + setActualCurrent1(other.getActualCurrent1()); + } + if (other.hasActualCurrent2()) { + setActualCurrent2(other.getActualCurrent2()); + } + if (other.hasActualCurrent3()) { + setActualCurrent3(other.getActualCurrent3()); + } + if (other.hasActualPower1()) { + setActualPower1(other.getActualPower1()); + } + if (other.hasActualPower2()) { + setActualPower2(other.getActualPower2()); + } + if (other.hasActualPower3()) { + setActualPower3(other.getActualPower3()); + } + if (other.hasAveragePowerFactor1()) { + setAveragePowerFactor1(other.getAveragePowerFactor1()); + } + if (other.hasAveragePowerFactor2()) { + setAveragePowerFactor2(other.getAveragePowerFactor2()); + } + if (other.hasAveragePowerFactor3()) { + setAveragePowerFactor3(other.getAveragePowerFactor3()); + } + if (relayDataBuilder_ == null) { + if (!other.relayData_.isEmpty()) { + if (relayData_.isEmpty()) { + relayData_ = other.relayData_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureRelayDataIsMutable(); + relayData_.addAll(other.relayData_); + } + onChanged(); + } + } else { + if (!other.relayData_.isEmpty()) { + if (relayDataBuilder_.isEmpty()) { + relayDataBuilder_.dispose(); + relayDataBuilder_ = null; + relayData_ = other.relayData_; + bitField0_ = (bitField0_ & ~0x00000200); + relayDataBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetRelayDataFieldBuilder() : null; + } else { + relayDataBuilder_.addAllMessages(other.relayData_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasActualCurrent1()) { + return false; + } + if (!hasActualCurrent2()) { + return false; + } + if (!hasActualCurrent3()) { + return false; + } + if (!hasActualPower1()) { + return false; + } + if (!hasActualPower2()) { + return false; + } + if (!hasActualPower3()) { + return false; + } + if (!hasAveragePowerFactor1()) { + return false; + } + if (!hasAveragePowerFactor2()) { + return false; + } + if (!hasAveragePowerFactor3()) { + return false; + } + for (int i = 0; i < getRelayDataCount(); i++) { + if (!getRelayData(i).isInitialized()) { + return false; + } + } + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + actualCurrent1_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + actualCurrent2_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + actualCurrent3_ = input.readUInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + actualPower1_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + actualPower2_ = input.readUInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + actualPower3_ = input.readUInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + averagePowerFactor1_ = input.readUInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + averagePowerFactor2_ = input.readUInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + averagePowerFactor3_ = input.readUInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + org.opensmartgridplatform.oslp.Oslp.RelayData m = + input.readMessage( + org.opensmartgridplatform.oslp.Oslp.RelayData.parser(), + extensionRegistry); + if (relayDataBuilder_ == null) { + ensureRelayDataIsMutable(); + relayData_.add(m); + } else { + relayDataBuilder_.addMessage(m); + } + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int actualCurrent1_ ; + /** + *
+             * Instantaneous current L1 in mA.
+             * 
+ * + * uint32 actualCurrent1 = 1 [features = { ... } + * @return Whether the actualCurrent1 field is set. + */ + @java.lang.Override + public boolean hasActualCurrent1() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Instantaneous current L1 in mA.
+             * 
+ * + * uint32 actualCurrent1 = 1 [features = { ... } + * @return The actualCurrent1. + */ + @java.lang.Override + public int getActualCurrent1() { + return actualCurrent1_; + } + /** + *
+             * Instantaneous current L1 in mA.
+             * 
+ * + * uint32 actualCurrent1 = 1 [features = { ... } + * @param value The actualCurrent1 to set. + * @return This builder for chaining. + */ + public Builder setActualCurrent1(int value) { + + actualCurrent1_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Instantaneous current L1 in mA.
+             * 
+ * + * uint32 actualCurrent1 = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearActualCurrent1() { + bitField0_ = (bitField0_ & ~0x00000001); + actualCurrent1_ = 0; + onChanged(); + return this; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.SsldDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SsldData_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_SsldData_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.SsldData.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - this.getRelayDataFieldBuilder(); - } - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.actualCurrent1_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.actualCurrent2_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.actualCurrent3_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.actualPower1_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.actualPower2_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000010); - this.actualPower3_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000020); - this.averagePowerFactor1_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000040); - this.averagePowerFactor2_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000080); - this.averagePowerFactor3_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000100); - if (this.relayDataBuilder_ == null) { - this.relayData_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000200); - } else { - this.relayDataBuilder_.clear(); - } - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.SsldData.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SsldData getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.SsldData.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SsldData build() { - final org.opensmartgridplatform.oslp.Oslp.SsldData result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.SsldData buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.SsldData result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.SsldData buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.SsldData result = - new org.opensmartgridplatform.oslp.Oslp.SsldData(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.actualCurrent1_ = this.actualCurrent1_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.actualCurrent2_ = this.actualCurrent2_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.actualCurrent3_ = this.actualCurrent3_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.actualPower1_ = this.actualPower1_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.actualPower2_ = this.actualPower2_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.actualPower3_ = this.actualPower3_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.averagePowerFactor1_ = this.averagePowerFactor1_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.averagePowerFactor2_ = this.averagePowerFactor2_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.averagePowerFactor3_ = this.averagePowerFactor3_; - if (this.relayDataBuilder_ == null) { - if (((this.bitField0_ & 0x00000200) == 0x00000200)) { - this.relayData_ = java.util.Collections.unmodifiableList(this.relayData_); - this.bitField0_ = (this.bitField0_ & ~0x00000200); - } - result.relayData_ = this.relayData_; - } else { - result.relayData_ = this.relayDataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.SsldData) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.SsldData) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.SsldData other) { - if (other == org.opensmartgridplatform.oslp.Oslp.SsldData.getDefaultInstance()) { - return this; - } - if (other.hasActualCurrent1()) { - this.setActualCurrent1(other.getActualCurrent1()); - } - if (other.hasActualCurrent2()) { - this.setActualCurrent2(other.getActualCurrent2()); - } - if (other.hasActualCurrent3()) { - this.setActualCurrent3(other.getActualCurrent3()); - } - if (other.hasActualPower1()) { - this.setActualPower1(other.getActualPower1()); - } - if (other.hasActualPower2()) { - this.setActualPower2(other.getActualPower2()); - } - if (other.hasActualPower3()) { - this.setActualPower3(other.getActualPower3()); - } - if (other.hasAveragePowerFactor1()) { - this.setAveragePowerFactor1(other.getAveragePowerFactor1()); - } - if (other.hasAveragePowerFactor2()) { - this.setAveragePowerFactor2(other.getAveragePowerFactor2()); - } - if (other.hasAveragePowerFactor3()) { - this.setAveragePowerFactor3(other.getAveragePowerFactor3()); - } - if (this.relayDataBuilder_ == null) { - if (!other.relayData_.isEmpty()) { - if (this.relayData_.isEmpty()) { - this.relayData_ = other.relayData_; - this.bitField0_ = (this.bitField0_ & ~0x00000200); - } else { - this.ensureRelayDataIsMutable(); - this.relayData_.addAll(other.relayData_); - } - this.onChanged(); - } - } else { - if (!other.relayData_.isEmpty()) { - if (this.relayDataBuilder_.isEmpty()) { - this.relayDataBuilder_.dispose(); - this.relayDataBuilder_ = null; - this.relayData_ = other.relayData_; - this.bitField0_ = (this.bitField0_ & ~0x00000200); - this.relayDataBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? this.getRelayDataFieldBuilder() - : null; - } else { - this.relayDataBuilder_.addAllMessages(other.relayData_); + private int actualCurrent2_ ; + /** + *
+             * Instantaneous current L2 in mA.
+             * 
+ * + * uint32 actualCurrent2 = 2 [features = { ... } + * @return Whether the actualCurrent2 field is set. + */ + @java.lang.Override + public boolean hasActualCurrent2() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * Instantaneous current L2 in mA.
+             * 
+ * + * uint32 actualCurrent2 = 2 [features = { ... } + * @return The actualCurrent2. + */ + @java.lang.Override + public int getActualCurrent2() { + return actualCurrent2_; + } + /** + *
+             * Instantaneous current L2 in mA.
+             * 
+ * + * uint32 actualCurrent2 = 2 [features = { ... } + * @param value The actualCurrent2 to set. + * @return This builder for chaining. + */ + public Builder setActualCurrent2(int value) { + + actualCurrent2_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Instantaneous current L2 in mA.
+             * 
+ * + * uint32 actualCurrent2 = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearActualCurrent2() { + bitField0_ = (bitField0_ & ~0x00000002); + actualCurrent2_ = 0; + onChanged(); + return this; } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasActualCurrent1()) { - - return false; - } - if (!this.hasActualCurrent2()) { - - return false; - } - if (!this.hasActualCurrent3()) { - - return false; - } - if (!this.hasActualPower1()) { - - return false; - } - if (!this.hasActualPower2()) { - - return false; - } - if (!this.hasActualPower3()) { - - return false; - } - if (!this.hasAveragePowerFactor1()) { - - return false; - } - if (!this.hasAveragePowerFactor2()) { - - return false; - } - if (!this.hasAveragePowerFactor3()) { - - return false; - } - for (int i = 0; i < this.getRelayDataCount(); i++) { - if (!this.getRelayData(i).isInitialized()) { - - return false; - } - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 8: - { - this.bitField0_ |= 0x00000001; - this.actualCurrent1_ = input.readUInt32(); - break; - } - case 16: - { - this.bitField0_ |= 0x00000002; - this.actualCurrent2_ = input.readUInt32(); - break; - } - case 24: - { - this.bitField0_ |= 0x00000004; - this.actualCurrent3_ = input.readUInt32(); - break; - } - case 32: - { - this.bitField0_ |= 0x00000008; - this.actualPower1_ = input.readUInt32(); - break; - } - case 40: - { - this.bitField0_ |= 0x00000010; - this.actualPower2_ = input.readUInt32(); - break; - } - case 48: - { - this.bitField0_ |= 0x00000020; - this.actualPower3_ = input.readUInt32(); - break; - } - case 56: - { - this.bitField0_ |= 0x00000040; - this.averagePowerFactor1_ = input.readUInt32(); - break; - } - case 64: - { - this.bitField0_ |= 0x00000080; - this.averagePowerFactor2_ = input.readUInt32(); - break; - } - case 72: - { - this.bitField0_ |= 0x00000100; - this.averagePowerFactor3_ = input.readUInt32(); - break; - } - case 82: - { - final org.opensmartgridplatform.oslp.Oslp.RelayData.Builder subBuilder = - org.opensmartgridplatform.oslp.Oslp.RelayData.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - this.addRelayData(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required uint32 actualCurrent1 = 1; - private int actualCurrent1_; - - @Override - public boolean hasActualCurrent1() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public int getActualCurrent1() { - return this.actualCurrent1_; - } - - public Builder setActualCurrent1(final int value) { - this.bitField0_ |= 0x00000001; - this.actualCurrent1_ = value; - this.onChanged(); - return this; - } - - public Builder clearActualCurrent1() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.actualCurrent1_ = 0; - this.onChanged(); - return this; - } - - // required uint32 actualCurrent2 = 2; - private int actualCurrent2_; - - @Override - public boolean hasActualCurrent2() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public int getActualCurrent2() { - return this.actualCurrent2_; - } - - public Builder setActualCurrent2(final int value) { - this.bitField0_ |= 0x00000002; - this.actualCurrent2_ = value; - this.onChanged(); - return this; - } - - public Builder clearActualCurrent2() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.actualCurrent2_ = 0; - this.onChanged(); - return this; - } - - // required uint32 actualCurrent3 = 3; - private int actualCurrent3_; - - @Override - public boolean hasActualCurrent3() { - return ((this.bitField0_ & 0x00000004) == 0x00000004); - } - - @Override - public int getActualCurrent3() { - return this.actualCurrent3_; - } - - public Builder setActualCurrent3(final int value) { - this.bitField0_ |= 0x00000004; - this.actualCurrent3_ = value; - this.onChanged(); - return this; - } - - public Builder clearActualCurrent3() { - this.bitField0_ = (this.bitField0_ & ~0x00000004); - this.actualCurrent3_ = 0; - this.onChanged(); - return this; - } - - // required uint32 actualPower1 = 4; - private int actualPower1_; - - @Override - public boolean hasActualPower1() { - return ((this.bitField0_ & 0x00000008) == 0x00000008); - } - - @Override - public int getActualPower1() { - return this.actualPower1_; - } - - public Builder setActualPower1(final int value) { - this.bitField0_ |= 0x00000008; - this.actualPower1_ = value; - this.onChanged(); - return this; - } - - public Builder clearActualPower1() { - this.bitField0_ = (this.bitField0_ & ~0x00000008); - this.actualPower1_ = 0; - this.onChanged(); - return this; - } - - // required uint32 actualPower2 = 5; - private int actualPower2_; - - @Override - public boolean hasActualPower2() { - return ((this.bitField0_ & 0x00000010) == 0x00000010); - } - - @Override - public int getActualPower2() { - return this.actualPower2_; - } - - public Builder setActualPower2(final int value) { - this.bitField0_ |= 0x00000010; - this.actualPower2_ = value; - this.onChanged(); - return this; - } - - public Builder clearActualPower2() { - this.bitField0_ = (this.bitField0_ & ~0x00000010); - this.actualPower2_ = 0; - this.onChanged(); - return this; - } - - // required uint32 actualPower3 = 6; - private int actualPower3_; - - @Override - public boolean hasActualPower3() { - return ((this.bitField0_ & 0x00000020) == 0x00000020); - } - - @Override - public int getActualPower3() { - return this.actualPower3_; - } - - public Builder setActualPower3(final int value) { - this.bitField0_ |= 0x00000020; - this.actualPower3_ = value; - this.onChanged(); - return this; - } - - public Builder clearActualPower3() { - this.bitField0_ = (this.bitField0_ & ~0x00000020); - this.actualPower3_ = 0; - this.onChanged(); - return this; - } - - // required uint32 averagePowerFactor1 = 7; - private int averagePowerFactor1_; - - @Override - public boolean hasAveragePowerFactor1() { - return ((this.bitField0_ & 0x00000040) == 0x00000040); - } - - @Override - public int getAveragePowerFactor1() { - return this.averagePowerFactor1_; - } - - public Builder setAveragePowerFactor1(final int value) { - this.bitField0_ |= 0x00000040; - this.averagePowerFactor1_ = value; - this.onChanged(); - return this; - } - - public Builder clearAveragePowerFactor1() { - this.bitField0_ = (this.bitField0_ & ~0x00000040); - this.averagePowerFactor1_ = 0; - this.onChanged(); - return this; - } - - // required uint32 averagePowerFactor2 = 8; - private int averagePowerFactor2_; - - @Override - public boolean hasAveragePowerFactor2() { - return ((this.bitField0_ & 0x00000080) == 0x00000080); - } - - @Override - public int getAveragePowerFactor2() { - return this.averagePowerFactor2_; - } - - public Builder setAveragePowerFactor2(final int value) { - this.bitField0_ |= 0x00000080; - this.averagePowerFactor2_ = value; - this.onChanged(); - return this; - } - - public Builder clearAveragePowerFactor2() { - this.bitField0_ = (this.bitField0_ & ~0x00000080); - this.averagePowerFactor2_ = 0; - this.onChanged(); - return this; - } - - // required uint32 averagePowerFactor3 = 9; - private int averagePowerFactor3_; - - @Override - public boolean hasAveragePowerFactor3() { - return ((this.bitField0_ & 0x00000100) == 0x00000100); - } - - @Override - public int getAveragePowerFactor3() { - return this.averagePowerFactor3_; - } - - public Builder setAveragePowerFactor3(final int value) { - this.bitField0_ |= 0x00000100; - this.averagePowerFactor3_ = value; - this.onChanged(); - return this; - } - - public Builder clearAveragePowerFactor3() { - this.bitField0_ = (this.bitField0_ & ~0x00000100); - this.averagePowerFactor3_ = 0; - this.onChanged(); - return this; - } - - // repeated .oslp.RelayData relayData = 10; - private java.util.List relayData_ = - java.util.Collections.emptyList(); - - private void ensureRelayDataIsMutable() { - if (!((this.bitField0_ & 0x00000200) == 0x00000200)) { - this.relayData_ = - new java.util.ArrayList( - this.relayData_); - this.bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RelayData, - org.opensmartgridplatform.oslp.Oslp.RelayData.Builder, - org.opensmartgridplatform.oslp.Oslp.RelayDataOrBuilder> - relayDataBuilder_; - - @Override - public java.util.List getRelayDataList() { - if (this.relayDataBuilder_ == null) { - return java.util.Collections.unmodifiableList(this.relayData_); - } else { - return this.relayDataBuilder_.getMessageList(); - } - } - - @Override - public int getRelayDataCount() { - if (this.relayDataBuilder_ == null) { - return this.relayData_.size(); - } else { - return this.relayDataBuilder_.getCount(); - } - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayData getRelayData(final int index) { - if (this.relayDataBuilder_ == null) { - return this.relayData_.get(index); - } else { - return this.relayDataBuilder_.getMessage(index); - } - } - - public Builder setRelayData( - final int index, final org.opensmartgridplatform.oslp.Oslp.RelayData value) { - if (this.relayDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureRelayDataIsMutable(); - this.relayData_.set(index, value); - this.onChanged(); - } else { - this.relayDataBuilder_.setMessage(index, value); - } - return this; - } - - public Builder setRelayData( - final int index, - final org.opensmartgridplatform.oslp.Oslp.RelayData.Builder builderForValue) { - if (this.relayDataBuilder_ == null) { - this.ensureRelayDataIsMutable(); - this.relayData_.set(index, builderForValue.build()); - this.onChanged(); - } else { - this.relayDataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addRelayData(final org.opensmartgridplatform.oslp.Oslp.RelayData value) { - if (this.relayDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureRelayDataIsMutable(); - this.relayData_.add(value); - this.onChanged(); - } else { - this.relayDataBuilder_.addMessage(value); - } - return this; - } - - public Builder addRelayData( - final int index, final org.opensmartgridplatform.oslp.Oslp.RelayData value) { - if (this.relayDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - this.ensureRelayDataIsMutable(); - this.relayData_.add(index, value); - this.onChanged(); - } else { - this.relayDataBuilder_.addMessage(index, value); - } - return this; - } - - public Builder addRelayData( - final org.opensmartgridplatform.oslp.Oslp.RelayData.Builder builderForValue) { - if (this.relayDataBuilder_ == null) { - this.ensureRelayDataIsMutable(); - this.relayData_.add(builderForValue.build()); - this.onChanged(); - } else { - this.relayDataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - public Builder addRelayData( - final int index, - final org.opensmartgridplatform.oslp.Oslp.RelayData.Builder builderForValue) { - if (this.relayDataBuilder_ == null) { - this.ensureRelayDataIsMutable(); - this.relayData_.add(index, builderForValue.build()); - this.onChanged(); - } else { - this.relayDataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - public Builder addAllRelayData( - final java.lang.Iterable - values) { - if (this.relayDataBuilder_ == null) { - this.ensureRelayDataIsMutable(); - super.addAll(values, this.relayData_); - this.onChanged(); - } else { - this.relayDataBuilder_.addAllMessages(values); - } - return this; - } - - public Builder clearRelayData() { - if (this.relayDataBuilder_ == null) { - this.relayData_ = java.util.Collections.emptyList(); - this.bitField0_ = (this.bitField0_ & ~0x00000200); - this.onChanged(); - } else { - this.relayDataBuilder_.clear(); - } - return this; - } - - public Builder removeRelayData(final int index) { - if (this.relayDataBuilder_ == null) { - this.ensureRelayDataIsMutable(); - this.relayData_.remove(index); - this.onChanged(); - } else { - this.relayDataBuilder_.remove(index); - } - return this; - } - - public org.opensmartgridplatform.oslp.Oslp.RelayData.Builder getRelayDataBuilder( - final int index) { - return this.getRelayDataFieldBuilder().getBuilder(index); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayDataOrBuilder getRelayDataOrBuilder( - final int index) { - if (this.relayDataBuilder_ == null) { - return this.relayData_.get(index); - } else { - return this.relayDataBuilder_.getMessageOrBuilder(index); - } - } - - @Override - public java.util.List - getRelayDataOrBuilderList() { - if (this.relayDataBuilder_ != null) { - return this.relayDataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(this.relayData_); - } - } - - public org.opensmartgridplatform.oslp.Oslp.RelayData.Builder addRelayDataBuilder() { - return this.getRelayDataFieldBuilder() - .addBuilder(org.opensmartgridplatform.oslp.Oslp.RelayData.getDefaultInstance()); - } - - public org.opensmartgridplatform.oslp.Oslp.RelayData.Builder addRelayDataBuilder( - final int index) { - return this.getRelayDataFieldBuilder() - .addBuilder(index, org.opensmartgridplatform.oslp.Oslp.RelayData.getDefaultInstance()); - } - - public java.util.List - getRelayDataBuilderList() { - return this.getRelayDataFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RelayData, - org.opensmartgridplatform.oslp.Oslp.RelayData.Builder, - org.opensmartgridplatform.oslp.Oslp.RelayDataOrBuilder> - getRelayDataFieldBuilder() { - if (this.relayDataBuilder_ == null) { - this.relayDataBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - org.opensmartgridplatform.oslp.Oslp.RelayData, - org.opensmartgridplatform.oslp.Oslp.RelayData.Builder, - org.opensmartgridplatform.oslp.Oslp.RelayDataOrBuilder>( - this.relayData_, - ((this.bitField0_ & 0x00000200) == 0x00000200), - this.getParentForChildren(), - this.isClean()); - this.relayData_ = null; - } - return this.relayDataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:oslp.SsldData) - } - static { - defaultInstance = new SsldData(true); - defaultInstance.initFields(); - } + private int actualCurrent3_ ; + /** + *
+             * Instantaneous current L3 in mA.
+             * 
+ * + * uint32 actualCurrent3 = 3 [features = { ... } + * @return Whether the actualCurrent3 field is set. + */ + @java.lang.Override + public boolean hasActualCurrent3() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * Instantaneous current L3 in mA.
+             * 
+ * + * uint32 actualCurrent3 = 3 [features = { ... } + * @return The actualCurrent3. + */ + @java.lang.Override + public int getActualCurrent3() { + return actualCurrent3_; + } + /** + *
+             * Instantaneous current L3 in mA.
+             * 
+ * + * uint32 actualCurrent3 = 3 [features = { ... } + * @param value The actualCurrent3 to set. + * @return This builder for chaining. + */ + public Builder setActualCurrent3(int value) { + + actualCurrent3_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * Instantaneous current L3 in mA.
+             * 
+ * + * uint32 actualCurrent3 = 3 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearActualCurrent3() { + bitField0_ = (bitField0_ & ~0x00000004); + actualCurrent3_ = 0; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:oslp.SsldData) - } + private int actualPower1_ ; + /** + *
+             * Instantaneous active power L1 in W.
+             * 
+ * + * uint32 actualPower1 = 4 [features = { ... } + * @return Whether the actualPower1 field is set. + */ + @java.lang.Override + public boolean hasActualPower1() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+             * Instantaneous active power L1 in W.
+             * 
+ * + * uint32 actualPower1 = 4 [features = { ... } + * @return The actualPower1. + */ + @java.lang.Override + public int getActualPower1() { + return actualPower1_; + } + /** + *
+             * Instantaneous active power L1 in W.
+             * 
+ * + * uint32 actualPower1 = 4 [features = { ... } + * @param value The actualPower1 to set. + * @return This builder for chaining. + */ + public Builder setActualPower1(int value) { + + actualPower1_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+             * Instantaneous active power L1 in W.
+             * 
+ * + * uint32 actualPower1 = 4 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearActualPower1() { + bitField0_ = (bitField0_ & ~0x00000008); + actualPower1_ = 0; + onChanged(); + return this; + } - public interface RelayDataOrBuilder extends com.google.protobuf.MessageOrBuilder { + private int actualPower2_ ; + /** + *
+             * Instantaneous active power L2 in W.
+             * 
+ * + * uint32 actualPower2 = 5 [features = { ... } + * @return Whether the actualPower2 field is set. + */ + @java.lang.Override + public boolean hasActualPower2() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+             * Instantaneous active power L2 in W.
+             * 
+ * + * uint32 actualPower2 = 5 [features = { ... } + * @return The actualPower2. + */ + @java.lang.Override + public int getActualPower2() { + return actualPower2_; + } + /** + *
+             * Instantaneous active power L2 in W.
+             * 
+ * + * uint32 actualPower2 = 5 [features = { ... } + * @param value The actualPower2 to set. + * @return This builder for chaining. + */ + public Builder setActualPower2(int value) { + + actualPower2_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+             * Instantaneous active power L2 in W.
+             * 
+ * + * uint32 actualPower2 = 5 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearActualPower2() { + bitField0_ = (bitField0_ & ~0x00000010); + actualPower2_ = 0; + onChanged(); + return this; + } - // required bytes index = 1; - boolean hasIndex(); + private int actualPower3_ ; + /** + *
+             * Instantaneous active power L3 in W.
+             * 
+ * + * uint32 actualPower3 = 6 [features = { ... } + * @return Whether the actualPower3 field is set. + */ + @java.lang.Override + public boolean hasActualPower3() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+             * Instantaneous active power L3 in W.
+             * 
+ * + * uint32 actualPower3 = 6 [features = { ... } + * @return The actualPower3. + */ + @java.lang.Override + public int getActualPower3() { + return actualPower3_; + } + /** + *
+             * Instantaneous active power L3 in W.
+             * 
+ * + * uint32 actualPower3 = 6 [features = { ... } + * @param value The actualPower3 to set. + * @return This builder for chaining. + */ + public Builder setActualPower3(int value) { + + actualPower3_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+             * Instantaneous active power L3 in W.
+             * 
+ * + * uint32 actualPower3 = 6 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearActualPower3() { + bitField0_ = (bitField0_ & ~0x00000020); + actualPower3_ = 0; + onChanged(); + return this; + } - com.google.protobuf.ByteString getIndex(); + private int averagePowerFactor1_ ; + /** + *
+             * Power factor L1 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+             * 
+ * + * uint32 averagePowerFactor1 = 7 [features = { ... } + * @return Whether the averagePowerFactor1 field is set. + */ + @java.lang.Override + public boolean hasAveragePowerFactor1() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+             * Power factor L1 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+             * 
+ * + * uint32 averagePowerFactor1 = 7 [features = { ... } + * @return The averagePowerFactor1. + */ + @java.lang.Override + public int getAveragePowerFactor1() { + return averagePowerFactor1_; + } + /** + *
+             * Power factor L1 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+             * 
+ * + * uint32 averagePowerFactor1 = 7 [features = { ... } + * @param value The averagePowerFactor1 to set. + * @return This builder for chaining. + */ + public Builder setAveragePowerFactor1(int value) { + + averagePowerFactor1_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+             * Power factor L1 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+             * 
+ * + * uint32 averagePowerFactor1 = 7 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearAveragePowerFactor1() { + bitField0_ = (bitField0_ & ~0x00000040); + averagePowerFactor1_ = 0; + onChanged(); + return this; + } - // required uint32 totalLightingMinutes = 2; - boolean hasTotalLightingMinutes(); + private int averagePowerFactor2_ ; + /** + *
+             * Power factor L2 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+             * 
+ * + * uint32 averagePowerFactor2 = 8 [features = { ... } + * @return Whether the averagePowerFactor2 field is set. + */ + @java.lang.Override + public boolean hasAveragePowerFactor2() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+             * Power factor L2 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+             * 
+ * + * uint32 averagePowerFactor2 = 8 [features = { ... } + * @return The averagePowerFactor2. + */ + @java.lang.Override + public int getAveragePowerFactor2() { + return averagePowerFactor2_; + } + /** + *
+             * Power factor L2 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+             * 
+ * + * uint32 averagePowerFactor2 = 8 [features = { ... } + * @param value The averagePowerFactor2 to set. + * @return This builder for chaining. + */ + public Builder setAveragePowerFactor2(int value) { + + averagePowerFactor2_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+             * Power factor L2 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+             * 
+ * + * uint32 averagePowerFactor2 = 8 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearAveragePowerFactor2() { + bitField0_ = (bitField0_ & ~0x00000080); + averagePowerFactor2_ = 0; + onChanged(); + return this; + } - int getTotalLightingMinutes(); - } + private int averagePowerFactor3_ ; + /** + *
+             * Power factor L3 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+             * 
+ * + * uint32 averagePowerFactor3 = 9 [features = { ... } + * @return Whether the averagePowerFactor3 field is set. + */ + @java.lang.Override + public boolean hasAveragePowerFactor3() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+             * Power factor L3 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+             * 
+ * + * uint32 averagePowerFactor3 = 9 [features = { ... } + * @return The averagePowerFactor3. + */ + @java.lang.Override + public int getAveragePowerFactor3() { + return averagePowerFactor3_; + } + /** + *
+             * Power factor L3 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+             * 
+ * + * uint32 averagePowerFactor3 = 9 [features = { ... } + * @param value The averagePowerFactor3 to set. + * @return This builder for chaining. + */ + public Builder setAveragePowerFactor3(int value) { + + averagePowerFactor3_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+             * Power factor L3 (in 1/2^32) in steps of 0.1, 10 equals a power factor of 1.
+             * 
+ * + * uint32 averagePowerFactor3 = 9 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearAveragePowerFactor3() { + bitField0_ = (bitField0_ & ~0x00000100); + averagePowerFactor3_ = 0; + onChanged(); + return this; + } - public static final class RelayData extends com.google.protobuf.GeneratedMessage - implements RelayDataOrBuilder { - // Use RelayData.newBuilder() to construct. - private RelayData(final Builder builder) { - super(builder); - } + private java.util.List relayData_ = + java.util.Collections.emptyList(); + private void ensureRelayDataIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + relayData_ = new java.util.ArrayList(relayData_); + bitField0_ |= 0x00000200; + } + } - private RelayData(final boolean noInit) {} + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RelayData, org.opensmartgridplatform.oslp.Oslp.RelayData.Builder, org.opensmartgridplatform.oslp.Oslp.RelayDataOrBuilder> relayDataBuilder_; + + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public java.util.List getRelayDataList() { + if (relayDataBuilder_ == null) { + return java.util.Collections.unmodifiableList(relayData_); + } else { + return relayDataBuilder_.getMessageList(); + } + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public int getRelayDataCount() { + if (relayDataBuilder_ == null) { + return relayData_.size(); + } else { + return relayDataBuilder_.getCount(); + } + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayData getRelayData(int index) { + if (relayDataBuilder_ == null) { + return relayData_.get(index); + } else { + return relayDataBuilder_.getMessage(index); + } + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public Builder setRelayData( + int index, org.opensmartgridplatform.oslp.Oslp.RelayData value) { + if (relayDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelayDataIsMutable(); + relayData_.set(index, value); + onChanged(); + } else { + relayDataBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public Builder setRelayData( + int index, org.opensmartgridplatform.oslp.Oslp.RelayData.Builder builderForValue) { + if (relayDataBuilder_ == null) { + ensureRelayDataIsMutable(); + relayData_.set(index, builderForValue.build()); + onChanged(); + } else { + relayDataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public Builder addRelayData(org.opensmartgridplatform.oslp.Oslp.RelayData value) { + if (relayDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelayDataIsMutable(); + relayData_.add(value); + onChanged(); + } else { + relayDataBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public Builder addRelayData( + int index, org.opensmartgridplatform.oslp.Oslp.RelayData value) { + if (relayDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelayDataIsMutable(); + relayData_.add(index, value); + onChanged(); + } else { + relayDataBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public Builder addRelayData( + org.opensmartgridplatform.oslp.Oslp.RelayData.Builder builderForValue) { + if (relayDataBuilder_ == null) { + ensureRelayDataIsMutable(); + relayData_.add(builderForValue.build()); + onChanged(); + } else { + relayDataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public Builder addRelayData( + int index, org.opensmartgridplatform.oslp.Oslp.RelayData.Builder builderForValue) { + if (relayDataBuilder_ == null) { + ensureRelayDataIsMutable(); + relayData_.add(index, builderForValue.build()); + onChanged(); + } else { + relayDataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public Builder addAllRelayData( + java.lang.Iterable values) { + if (relayDataBuilder_ == null) { + ensureRelayDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relayData_); + onChanged(); + } else { + relayDataBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public Builder clearRelayData() { + if (relayDataBuilder_ == null) { + relayData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + relayDataBuilder_.clear(); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public Builder removeRelayData(int index) { + if (relayDataBuilder_ == null) { + ensureRelayDataIsMutable(); + relayData_.remove(index); + onChanged(); + } else { + relayDataBuilder_.remove(index); + } + return this; + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayData.Builder getRelayDataBuilder( + int index) { + return internalGetRelayDataFieldBuilder().getBuilder(index); + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayDataOrBuilder getRelayDataOrBuilder( + int index) { + if (relayDataBuilder_ == null) { + return relayData_.get(index); } else { + return relayDataBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public java.util.List + getRelayDataOrBuilderList() { + if (relayDataBuilder_ != null) { + return relayDataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(relayData_); + } + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayData.Builder addRelayDataBuilder() { + return internalGetRelayDataFieldBuilder().addBuilder( + org.opensmartgridplatform.oslp.Oslp.RelayData.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public org.opensmartgridplatform.oslp.Oslp.RelayData.Builder addRelayDataBuilder( + int index) { + return internalGetRelayDataFieldBuilder().addBuilder( + index, org.opensmartgridplatform.oslp.Oslp.RelayData.getDefaultInstance()); + } + /** + *
+             * [(nanopb).max_count = 4]; // Measurement data per relay.
+             * 
+ * + * repeated .oslp.RelayData relayData = 10; + */ + public java.util.List + getRelayDataBuilderList() { + return internalGetRelayDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RelayData, org.opensmartgridplatform.oslp.Oslp.RelayData.Builder, org.opensmartgridplatform.oslp.Oslp.RelayDataOrBuilder> + internalGetRelayDataFieldBuilder() { + if (relayDataBuilder_ == null) { + relayDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.opensmartgridplatform.oslp.Oslp.RelayData, org.opensmartgridplatform.oslp.Oslp.RelayData.Builder, org.opensmartgridplatform.oslp.Oslp.RelayDataOrBuilder>( + relayData_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + relayData_ = null; + } + return relayDataBuilder_; + } - private static final RelayData defaultInstance; + // @@protoc_insertion_point(builder_scope:oslp.SsldData) + } - public static RelayData getDefaultInstance() { - return defaultInstance; - } + // @@protoc_insertion_point(class_scope:oslp.SsldData) + private static final org.opensmartgridplatform.oslp.Oslp.SsldData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.SsldData(); + } - @Override - public RelayData getDefaultInstanceForType() { - return defaultInstance; - } + public static org.opensmartgridplatform.oslp.Oslp.SsldData getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayData_descriptor; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SsldData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.SsldData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RelayDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:oslp.RelayData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * [(nanopb).max_size = 1]; // external index, for example 1
+         * 
+ * + * bytes index = 1 [features = { ... } + * @return Whether the index field is set. + */ + boolean hasIndex(); + /** + *
+         * [(nanopb).max_size = 1]; // external index, for example 1
+         * 
+ * + * bytes index = 1 [features = { ... } + * @return The index. + */ + com.google.protobuf.ByteString getIndex(); + + /** + *
+         * Total lighting minutes for lighting relay
+         * 
+ * + * uint32 totalLightingMinutes = 2 [features = { ... } + * @return Whether the totalLightingMinutes field is set. + */ + boolean hasTotalLightingMinutes(); + /** + *
+         * Total lighting minutes for lighting relay
+         * 
+ * + * uint32 totalLightingMinutes = 2 [features = { ... } + * @return The totalLightingMinutes. + */ + int getTotalLightingMinutes(); + } + /** + *
+     * Deprecated, no longer supported by the platform.
+     * 
+ * + * Protobuf type {@code oslp.RelayData} + */ + public static final class RelayData extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:oslp.RelayData) + RelayDataOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 31, + /* patch= */ 0, + /* suffix= */ "", + RelayData.class.getName()); + } + // Use RelayData.newBuilder() to construct. + private RelayData(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private RelayData() { + index_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayData_fieldAccessorTable; - } - - private int bitField0_; - // required bytes index = 1; - public static final int INDEX_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString index_; - - @Override - public boolean hasIndex() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public com.google.protobuf.ByteString getIndex() { - return this.index_; - } + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.RelayData.class, org.opensmartgridplatform.oslp.Oslp.RelayData.Builder.class); + } + + private int bitField0_; + public static final int INDEX_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+         * [(nanopb).max_size = 1]; // external index, for example 1
+         * 
+ * + * bytes index = 1 [features = { ... } + * @return Whether the index field is set. + */ + @java.lang.Override + public boolean hasIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * [(nanopb).max_size = 1]; // external index, for example 1
+         * 
+ * + * bytes index = 1 [features = { ... } + * @return The index. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndex() { + return index_; + } + + public static final int TOTALLIGHTINGMINUTES_FIELD_NUMBER = 2; + private int totalLightingMinutes_ = 0; + /** + *
+         * Total lighting minutes for lighting relay
+         * 
+ * + * uint32 totalLightingMinutes = 2 [features = { ... } + * @return Whether the totalLightingMinutes field is set. + */ + @java.lang.Override + public boolean hasTotalLightingMinutes() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * Total lighting minutes for lighting relay
+         * 
+ * + * uint32 totalLightingMinutes = 2 [features = { ... } + * @return The totalLightingMinutes. + */ + @java.lang.Override + public int getTotalLightingMinutes() { + return totalLightingMinutes_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasIndex()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTotalLightingMinutes()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - // required uint32 totalLightingMinutes = 2; - public static final int TOTALLIGHTINGMINUTES_FIELD_NUMBER = 2; - private int totalLightingMinutes_; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBytes(1, index_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(2, totalLightingMinutes_); + } + getUnknownFields().writeTo(output); + } - @Override - public boolean hasTotalLightingMinutes() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @Override - public int getTotalLightingMinutes() { - return this.totalLightingMinutes_; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, index_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, totalLightingMinutes_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private void initFields() { - this.index_ = com.google.protobuf.ByteString.EMPTY; - this.totalLightingMinutes_ = 0; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.opensmartgridplatform.oslp.Oslp.RelayData)) { + return super.equals(obj); + } + org.opensmartgridplatform.oslp.Oslp.RelayData other = (org.opensmartgridplatform.oslp.Oslp.RelayData) obj; - private byte memoizedIsInitialized = -1; - - @Override - public final boolean isInitialized() { - final byte isInitialized = this.memoizedIsInitialized; - if (isInitialized != -1) { - return isInitialized == 1; - } - - if (!this.hasIndex()) { - this.memoizedIsInitialized = 0; - return false; - } - if (!this.hasTotalLightingMinutes()) { - this.memoizedIsInitialized = 0; - return false; - } - this.memoizedIsInitialized = 1; - return true; - } + if (hasIndex() != other.hasIndex()) return false; + if (hasIndex()) { + if (!getIndex() + .equals(other.getIndex())) return false; + } + if (hasTotalLightingMinutes() != other.hasTotalLightingMinutes()) return false; + if (hasTotalLightingMinutes()) { + if (getTotalLightingMinutes() + != other.getTotalLightingMinutes()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @Override - public void writeTo(final com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - this.getSerializedSize(); - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, this.index_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - output.writeUInt32(2, this.totalLightingMinutes_); - } - this.getUnknownFields().writeTo(output); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIndex()) { + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex().hashCode(); + } + if (hasTotalLightingMinutes()) { + hash = (37 * hash) + TOTALLIGHTINGMINUTES_FIELD_NUMBER; + hash = (53 * hash) + getTotalLightingMinutes(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.opensmartgridplatform.oslp.Oslp.RelayData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.opensmartgridplatform.oslp.Oslp.RelayData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.opensmartgridplatform.oslp.Oslp.RelayData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * Deprecated, no longer supported by the platform.
+         * 
+ * + * Protobuf type {@code oslp.RelayData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:oslp.RelayData) + org.opensmartgridplatform.oslp.Oslp.RelayDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayData_descriptor; + } - private int memoizedSerializedSize = -1; - - @Override - public int getSerializedSize() { - int size = this.memoizedSerializedSize; - if (size != -1) { - return size; - } - - size = 0; - if (((this.bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, this.index_); - } - if (((this.bitField0_ & 0x00000002) == 0x00000002)) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size(2, this.totalLightingMinutes_); - } - size += this.getUnknownFields().getSerializedSize(); - this.memoizedSerializedSize = size; - return size; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.opensmartgridplatform.oslp.Oslp.RelayData.class, org.opensmartgridplatform.oslp.Oslp.RelayData.Builder.class); + } - private static final long serialVersionUID = 0L; + // Construct using org.opensmartgridplatform.oslp.Oslp.RelayData.newBuilder() + private Builder() { - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); - } + } - public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom( - final com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom( - final com.google.protobuf.ByteString data, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + index_ = com.google.protobuf.ByteString.EMPTY; + totalLightingMinutes_ = 0; + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom(final byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayData_descriptor; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom( - final byte[] data, final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayData getDefaultInstanceForType() { + return org.opensmartgridplatform.oslp.Oslp.RelayData.getDefaultInstance(); + } - public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom( - final java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayData build() { + org.opensmartgridplatform.oslp.Oslp.RelayData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayData buildPartial() { + org.opensmartgridplatform.oslp.Oslp.RelayData result = new org.opensmartgridplatform.oslp.Oslp.RelayData(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayData parseDelimitedFrom( - final java.io.InputStream input) throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } + private void buildPartial0(org.opensmartgridplatform.oslp.Oslp.RelayData result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.index_ = index_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalLightingMinutes_ = totalLightingMinutes_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayData parseDelimitedFrom( - final java.io.InputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.opensmartgridplatform.oslp.Oslp.RelayData) { + return mergeFrom((org.opensmartgridplatform.oslp.Oslp.RelayData)other); + } else { + super.mergeFrom(other); + return this; + } + } - public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom( - final com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } + public Builder mergeFrom(org.opensmartgridplatform.oslp.Oslp.RelayData other) { + if (other == org.opensmartgridplatform.oslp.Oslp.RelayData.getDefaultInstance()) return this; + if (other.hasIndex()) { + setIndex(other.getIndex()); + } + if (other.hasTotalLightingMinutes()) { + setTotalLightingMinutes(other.getTotalLightingMinutes()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static org.opensmartgridplatform.oslp.Oslp.RelayData parseFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry).buildParsed(); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasIndex()) { + return false; + } + if (!hasTotalLightingMinutes()) { + return false; + } + return true; + } - public static Builder newBuilder() { - return Builder.create(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + index_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + totalLightingMinutes_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+             * [(nanopb).max_size = 1]; // external index, for example 1
+             * 
+ * + * bytes index = 1 [features = { ... } + * @return Whether the index field is set. + */ + @java.lang.Override + public boolean hasIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * [(nanopb).max_size = 1]; // external index, for example 1
+             * 
+ * + * bytes index = 1 [features = { ... } + * @return The index. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndex() { + return index_; + } + /** + *
+             * [(nanopb).max_size = 1]; // external index, for example 1
+             * 
+ * + * bytes index = 1 [features = { ... } + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + index_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * [(nanopb).max_size = 1]; // external index, for example 1
+             * 
+ * + * bytes index = 1 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + index_ = getDefaultInstance().getIndex(); + onChanged(); + return this; + } - @Override - public Builder newBuilderForType() { - return newBuilder(); - } + private int totalLightingMinutes_ ; + /** + *
+             * Total lighting minutes for lighting relay
+             * 
+ * + * uint32 totalLightingMinutes = 2 [features = { ... } + * @return Whether the totalLightingMinutes field is set. + */ + @java.lang.Override + public boolean hasTotalLightingMinutes() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * Total lighting minutes for lighting relay
+             * 
+ * + * uint32 totalLightingMinutes = 2 [features = { ... } + * @return The totalLightingMinutes. + */ + @java.lang.Override + public int getTotalLightingMinutes() { + return totalLightingMinutes_; + } + /** + *
+             * Total lighting minutes for lighting relay
+             * 
+ * + * uint32 totalLightingMinutes = 2 [features = { ... } + * @param value The totalLightingMinutes to set. + * @return This builder for chaining. + */ + public Builder setTotalLightingMinutes(int value) { + + totalLightingMinutes_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Total lighting minutes for lighting relay
+             * 
+ * + * uint32 totalLightingMinutes = 2 [features = { ... } + * @return This builder for chaining. + */ + public Builder clearTotalLightingMinutes() { + bitField0_ = (bitField0_ & ~0x00000002); + totalLightingMinutes_ = 0; + onChanged(); + return this; + } - public static Builder newBuilder( - final org.opensmartgridplatform.oslp.Oslp.RelayData prototype) { - return newBuilder().mergeFrom(prototype); - } + // @@protoc_insertion_point(builder_scope:oslp.RelayData) + } - @Override - public Builder toBuilder() { - return newBuilder(this); - } + // @@protoc_insertion_point(class_scope:oslp.RelayData) + private static final org.opensmartgridplatform.oslp.Oslp.RelayData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.opensmartgridplatform.oslp.Oslp.RelayData(); + } - @java.lang.Override - protected Builder newBuilderForType( - final com.google.protobuf.GeneratedMessage.BuilderParent parent) { - final Builder builder = new Builder(parent); - return builder; - } + public static org.opensmartgridplatform.oslp.Oslp.RelayData getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.opensmartgridplatform.oslp.Oslp.RelayDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.opensmartgridplatform.oslp.Oslp.internal_static_oslp_RelayData_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.opensmartgridplatform.oslp.Oslp - .internal_static_oslp_RelayData_fieldAccessorTable; - } - - // Construct using org.opensmartgridplatform.oslp.Oslp.RelayData.newBuilder() - private Builder() { - this.maybeForceBuilderInitialization(); - } - - private Builder(final BuilderParent parent) { - super(parent); - this.maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } - - private static Builder create() { - return new Builder(); - } - - @Override - public Builder clear() { - super.clear(); - this.index_ = com.google.protobuf.ByteString.EMPTY; - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.totalLightingMinutes_ = 0; - this.bitField0_ = (this.bitField0_ & ~0x00000002); - return this; - } - - @Override - public Builder clone() { - return create().mergeFrom(this.buildPartial()); - } - - @Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.opensmartgridplatform.oslp.Oslp.RelayData.getDescriptor(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayData getDefaultInstanceForType() { - return org.opensmartgridplatform.oslp.Oslp.RelayData.getDefaultInstance(); - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayData build() { - final org.opensmartgridplatform.oslp.Oslp.RelayData result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private org.opensmartgridplatform.oslp.Oslp.RelayData buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - final org.opensmartgridplatform.oslp.Oslp.RelayData result = this.buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result).asInvalidProtocolBufferException(); - } - return result; - } - - @Override - public org.opensmartgridplatform.oslp.Oslp.RelayData buildPartial() { - final org.opensmartgridplatform.oslp.Oslp.RelayData result = - new org.opensmartgridplatform.oslp.Oslp.RelayData(this); - final int from_bitField0_ = this.bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.index_ = this.index_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.totalLightingMinutes_ = this.totalLightingMinutes_; - result.bitField0_ = to_bitField0_; - this.onBuilt(); - return result; - } - - @Override - public Builder mergeFrom(final com.google.protobuf.Message other) { - if (other instanceof org.opensmartgridplatform.oslp.Oslp.RelayData) { - return this.mergeFrom((org.opensmartgridplatform.oslp.Oslp.RelayData) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(final org.opensmartgridplatform.oslp.Oslp.RelayData other) { - if (other == org.opensmartgridplatform.oslp.Oslp.RelayData.getDefaultInstance()) { - return this; - } - if (other.hasIndex()) { - this.setIndex(other.getIndex()); - } - if (other.hasTotalLightingMinutes()) { - this.setTotalLightingMinutes(other.getTotalLightingMinutes()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - @Override - public final boolean isInitialized() { - if (!this.hasIndex()) { - - return false; - } - if (!this.hasTotalLightingMinutes()) { - - return false; - } - return true; - } - - @Override - public Builder mergeFrom( - final com.google.protobuf.CodedInputStream input, - final com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - final com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields()); - while (true) { - final int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - default: - { - if (!this.parseUnknownField( - input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - this.onChanged(); - return this; - } - break; - } - case 10: - { - this.bitField0_ |= 0x00000001; - this.index_ = input.readBytes(); - break; - } - case 16: - { - this.bitField0_ |= 0x00000002; - this.totalLightingMinutes_ = input.readUInt32(); - break; - } - } - } - } - - private int bitField0_; - - // required bytes index = 1; - private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; - - @Override - public boolean hasIndex() { - return ((this.bitField0_ & 0x00000001) == 0x00000001); - } - - @Override - public com.google.protobuf.ByteString getIndex() { - return this.index_; - } - - public Builder setIndex(final com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - this.bitField0_ |= 0x00000001; - this.index_ = value; - this.onChanged(); - return this; - } - - public Builder clearIndex() { - this.bitField0_ = (this.bitField0_ & ~0x00000001); - this.index_ = getDefaultInstance().getIndex(); - this.onChanged(); - return this; - } - - // required uint32 totalLightingMinutes = 2; - private int totalLightingMinutes_; - - @Override - public boolean hasTotalLightingMinutes() { - return ((this.bitField0_ & 0x00000002) == 0x00000002); - } - - @Override - public int getTotalLightingMinutes() { - return this.totalLightingMinutes_; - } - - public Builder setTotalLightingMinutes(final int value) { - this.bitField0_ |= 0x00000002; - this.totalLightingMinutes_ = value; - this.onChanged(); - return this; - } - - public Builder clearTotalLightingMinutes() { - this.bitField0_ = (this.bitField0_ & ~0x00000002); - this.totalLightingMinutes_ = 0; - this.onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:oslp.RelayData) - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelayData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.opensmartgridplatform.oslp.Oslp.RelayData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_Message_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_Message_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_RegisterDeviceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_RegisterDeviceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_RegisterDeviceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_RegisterDeviceResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_StartSelfTestRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_StartSelfTestRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_StartSelfTestResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_StartSelfTestResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_StopSelfTestRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_StopSelfTestRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_StopSelfTestResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_StopSelfTestResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_GetFirmwareVersionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_GetFirmwareVersionRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_GetFirmwareVersionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_GetFirmwareVersionResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_UpdateFirmwareRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_UpdateFirmwareRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_UpdateFirmwareResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_UpdateFirmwareResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SwitchFirmwareRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SwitchFirmwareRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SwitchFirmwareResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SwitchFirmwareResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SetLightRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SetLightRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SetLightResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SetLightResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_GetStatusRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_GetStatusRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_GetStatusResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_GetStatusResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_ResumeScheduleRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_ResumeScheduleRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_ResumeScheduleResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_ResumeScheduleResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SetRebootRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SetRebootRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SetRebootResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SetRebootResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SetTransitionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SetTransitionRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SetTransitionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SetTransitionResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SetEventNotificationsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SetEventNotificationsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SetEventNotificationsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SetEventNotificationsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_EventNotificationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_EventNotificationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_EventNotificationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_EventNotificationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SetScheduleRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SetScheduleRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SetScheduleResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SetScheduleResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SetConfigurationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SetConfigurationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SetConfigurationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SetConfigurationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_GetConfigurationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_GetConfigurationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_GetConfigurationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_GetConfigurationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SwitchConfigurationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SwitchConfigurationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SwitchConfigurationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SwitchConfigurationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_ConfirmRegisterDeviceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_ConfirmRegisterDeviceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_ConfirmRegisterDeviceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_ConfirmRegisterDeviceResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_GetPowerUsageHistoryRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_GetPowerUsageHistoryRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_GetPowerUsageHistoryResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_GetPowerUsageHistoryResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_GetActualPowerUsageRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_GetActualPowerUsageRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_GetActualPowerUsageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_GetActualPowerUsageResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_UpdateDeviceSslCertificationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_UpdateDeviceSslCertificationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_UpdateDeviceSslCertificationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_UpdateDeviceSslCertificationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SetDeviceVerificationKeyRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SetDeviceVerificationKeyRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SetDeviceVerificationKeyResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SetDeviceVerificationKeyResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_LocationInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_LocationInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_LightValue_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_LightValue_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_EventNotification_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_EventNotification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_Schedule_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_Schedule_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_Window_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_Window_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_DaliConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_DaliConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_RelayConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_RelayConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_RelayMatrix_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_RelayMatrix_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_IndexAddressMap_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_IndexAddressMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_PageInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_PageInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_TimePeriod_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_TimePeriod_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_PowerUsageData_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_PowerUsageData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_PsldData_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_PsldData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_SsldData_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_SsldData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_oslp_RelayData_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_oslp_RelayData_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { - defaultInstance = new RelayData(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:oslp.RelayData) - } - - private static com.google.protobuf.Descriptors.Descriptor internal_static_oslp_Message_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_Message_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_RegisterDeviceRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_RegisterDeviceRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_RegisterDeviceResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_RegisterDeviceResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_StartSelfTestRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_StartSelfTestRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_StartSelfTestResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_StartSelfTestResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_StopSelfTestRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_StopSelfTestRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_StopSelfTestResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_StopSelfTestResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_GetFirmwareVersionRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_GetFirmwareVersionRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_GetFirmwareVersionResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_GetFirmwareVersionResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_UpdateFirmwareRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_UpdateFirmwareRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_UpdateFirmwareResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_UpdateFirmwareResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SwitchFirmwareRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SwitchFirmwareRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SwitchFirmwareResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SwitchFirmwareResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SetLightRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SetLightRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SetLightResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SetLightResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_GetStatusRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_GetStatusRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_GetStatusResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_GetStatusResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_ResumeScheduleRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_ResumeScheduleRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_ResumeScheduleResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_ResumeScheduleResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SetRebootRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SetRebootRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SetRebootResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SetRebootResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SetTransitionRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SetTransitionRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SetTransitionResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SetTransitionResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SetEventNotificationsRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SetEventNotificationsRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SetEventNotificationsResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SetEventNotificationsResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_EventNotificationRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_EventNotificationRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_EventNotificationResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_EventNotificationResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SetScheduleRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SetScheduleRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SetScheduleResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SetScheduleResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SetConfigurationRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SetConfigurationRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SetConfigurationResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SetConfigurationResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_GetConfigurationRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_GetConfigurationRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_GetConfigurationResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_GetConfigurationResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SwitchConfigurationRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SwitchConfigurationRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SwitchConfigurationResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SwitchConfigurationResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_ConfirmRegisterDeviceRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_ConfirmRegisterDeviceRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_ConfirmRegisterDeviceResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_ConfirmRegisterDeviceResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_GetPowerUsageHistoryRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_GetPowerUsageHistoryRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_GetPowerUsageHistoryResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_GetPowerUsageHistoryResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_GetActualPowerUsageRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_GetActualPowerUsageRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_GetActualPowerUsageResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_GetActualPowerUsageResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_UpdateDeviceSslCertificationRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_UpdateDeviceSslCertificationRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_UpdateDeviceSslCertificationResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_UpdateDeviceSslCertificationResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SetDeviceVerificationKeyRequest_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SetDeviceVerificationKeyRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SetDeviceVerificationKeyResponse_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SetDeviceVerificationKeyResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_LocationInfo_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_LocationInfo_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_LightValue_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_LightValue_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_EventNotification_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_EventNotification_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_Schedule_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_Schedule_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor internal_static_oslp_Window_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_Window_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_DaliConfiguration_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_DaliConfiguration_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_RelayConfiguration_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_RelayConfiguration_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_RelayMatrix_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_RelayMatrix_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_IndexAddressMap_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_IndexAddressMap_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_PageInfo_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_PageInfo_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_TimePeriod_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_TimePeriod_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_PowerUsageData_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_PowerUsageData_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_PsldData_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_PsldData_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_SsldData_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_SsldData_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_oslp_RelayData_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_oslp_RelayData_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - final java.lang.String[] descriptorData = { - "\n\noslp.proto\022\004oslp\"\255\026\n\007Message\022:\n\025regist" - + "erDeviceRequest\030\001 \001(\0132\033.oslp.RegisterDev" - + "iceRequest\022<\n\026registerDeviceResponse\030\002 \001" - + "(\0132\034.oslp.RegisterDeviceResponse\0228\n\024star" - + "tSelfTestRequest\030\003 \001(\0132\032.oslp.StartSelfT" - + "estRequest\022:\n\025startSelfTestResponse\030\004 \001(" - + "\0132\033.oslp.StartSelfTestResponse\0226\n\023stopSe" - + "lfTestRequest\030\005 \001(\0132\031.oslp.StopSelfTestR" - + "equest\0228\n\024stopSelfTestResponse\030\006 \001(\0132\032.o" - + "slp.StopSelfTestResponse\022:\n\025updateFirmwa", - "reRequest\030\007 \001(\0132\033.oslp.UpdateFirmwareReq" - + "uest\022<\n\026updateFirmwareResponse\030\010 \001(\0132\034.o" - + "slp.UpdateFirmwareResponse\022.\n\017setLightRe" - + "quest\030\t \001(\0132\025.oslp.SetLightRequest\0220\n\020se" - + "tLightResponse\030\n \001(\0132\026.oslp.SetLightResp" - + "onse\0220\n\020getStatusRequest\030\013 \001(\0132\026.oslp.Ge" - + "tStatusRequest\0222\n\021getStatusResponse\030\014 \001(" - + "\0132\027.oslp.GetStatusResponse\022:\n\025resumeSche" - + "duleRequest\030\r \001(\0132\033.oslp.ResumeScheduleR" - + "equest\022<\n\026resumeScheduleResponse\030\016 \001(\0132\034", - ".oslp.ResumeScheduleResponse\022H\n\034setEvent" - + "NotificationsRequest\030\017 \001(\0132\".oslp.SetEve" - + "ntNotificationsRequest\022J\n\035setEventNotifi" - + "cationsResponse\030\020 \001(\0132#.oslp.SetEventNot" - + "ificationsResponse\022@\n\030eventNotificationR" - + "equest\030\021 \001(\0132\036.oslp.EventNotificationReq" - + "uest\022B\n\031eventNotificationResponse\030\022 \001(\0132" - + "\037.oslp.EventNotificationResponse\022B\n\031getF" - + "irmwareVersionRequest\030\023 \001(\0132\037.oslp.GetFi" - + "rmwareVersionRequest\022D\n\032getFirmwareVersi", - "onResponse\030\024 \001(\0132 .oslp.GetFirmwareVersi" - + "onResponse\0224\n\022setScheduleRequest\030\025 \001(\0132\030" - + ".oslp.SetScheduleRequest\0226\n\023setScheduleR" - + "esponse\030\026 \001(\0132\031.oslp.SetScheduleResponse" - + "\022>\n\027setConfigurationRequest\030\031 \001(\0132\035.oslp" - + ".SetConfigurationRequest\022@\n\030setConfigura" - + "tionResponse\030\032 \001(\0132\036.oslp.SetConfigurati" - + "onResponse\022F\n\033getPowerUsageHistoryReques" - + "t\030\033 \001(\0132!.oslp.GetPowerUsageHistoryReque" - + "st\022H\n\034getPowerUsageHistoryResponse\030\034 \001(\013", - "2\".oslp.GetPowerUsageHistoryResponse\022D\n\032" - + "getActualPowerUsageRequest\030\035 \001(\0132 .oslp." - + "GetActualPowerUsageRequest\022F\n\033getActualP" - + "owerUsageResponse\030\036 \001(\0132!.oslp.GetActual" - + "PowerUsageResponse\0220\n\020setRebootRequest\030\037" - + " \001(\0132\026.oslp.SetRebootRequest\0222\n\021setReboo" - + "tResponse\030 \001(\0132\027.oslp.SetRebootResponse" - + "\0228\n\024setTransitionRequest\030! \001(\0132\032.oslp.Se" - + "tTransitionRequest\022:\n\025setTransitionRespo" - + "nse\030\" \001(\0132\033.oslp.SetTransitionResponse\022>", - "\n\027getConfigurationRequest\030# \001(\0132\035.oslp.G" - + "etConfigurationRequest\022@\n\030getConfigurati" - + "onResponse\030$ \001(\0132\036.oslp.GetConfiguration" - + "Response\022H\n\034confirmRegisterDeviceRequest" - + "\030% \001(\0132\".oslp.ConfirmRegisterDeviceReque" - + "st\022J\n\035confirmRegisterDeviceResponse\030& \001(" - + "\0132#.oslp.ConfirmRegisterDeviceResponse\022V" - + "\n#updateDeviceSslCertificationRequest\030\' " - + "\001(\0132).oslp.UpdateDeviceSslCertificationR" - + "equest\022X\n$updateDeviceSslCertificationRe", - "sponse\030( \001(\0132*.oslp.UpdateDeviceSslCerti" - + "ficationResponse\022N\n\037setDeviceVerificatio" - + "nKeyRequest\030) \001(\0132%.oslp.SetDeviceVerifi" - + "cationKeyRequest\022P\n setDeviceVerificatio" - + "nKeyResponse\030* \001(\0132&.oslp.SetDeviceVerif" - + "icationKeyResponse\022:\n\025switchFirmwareRequ" - + "est\030+ \001(\0132\033.oslp.SwitchFirmwareRequest\022<" - + "\n\026switchFirmwareResponse\030, \001(\0132\034.oslp.Sw" - + "itchFirmwareResponse\022D\n\032switchConfigurat" - + "ionRequest\030- \001(\0132 .oslp.SwitchConfigurat", - "ionRequest\022F\n\033switchConfigurationRespons" - + "e\030. \001(\0132!.oslp.SwitchConfigurationRespon" - + "se\"\231\001\n\025RegisterDeviceRequest\022\034\n\024deviceId" - + "entification\030\001 \002(\t\022\021\n\tipAddress\030\002 \002(\014\022$\n" - + "\ndeviceType\030\003 \002(\0162\020.oslp.DeviceType\022\023\n\013h" - + "asSchedule\030\004 \002(\010\022\024\n\014randomDevice\030\005 \002(\r\"\243" - + "\001\n\026RegisterDeviceResponse\022\034\n\006status\030\001 \002(" - + "\0162\014.oslp.Status\022\023\n\013currentTime\030\002 \002(\t\022\024\n\014" - + "randomDevice\030\003 \002(\r\022\026\n\016randomPlatform\030\004 \002" - + "(\r\022(\n\014locationInfo\030\005 \001(\0132\022.oslp.Location", - "Info\"-\n\024StartSelfTestRequest\022\025\n\007present\030" - + "\001 \001(\010:\004true\"5\n\025StartSelfTestResponse\022\034\n\006" - + "status\030\001 \002(\0162\014.oslp.Status\",\n\023StopSelfTe" - + "stRequest\022\025\n\007present\030\001 \001(\010:\004true\"L\n\024Stop" - + "SelfTestResponse\022\034\n\006status\030\001 \002(\0162\014.oslp." - + "Status\022\026\n\016selfTestResult\030\002 \002(\014\"2\n\031GetFir" - + "mwareVersionRequest\022\025\n\007present\030\001 \001(\010:\004tr" - + "ue\"5\n\032GetFirmwareVersionResponse\022\027\n\017firm" - + "wareVersion\030\001 \002(\t\"D\n\025UpdateFirmwareReque" - + "st\022\026\n\016firmwareDomain\030\001 \002(\t\022\023\n\013firmwareUr", - "l\030\002 \002(\t\"6\n\026UpdateFirmwareResponse\022\034\n\006sta" - + "tus\030\001 \002(\0162\014.oslp.Status\"3\n\025SwitchFirmwar" - + "eRequest\022\032\n\022newFirmwareVersion\030\001 \002(\t\"6\n\026" - + "SwitchFirmwareResponse\022\034\n\006status\030\001 \002(\0162\014" - + ".oslp.Status\"3\n\017SetLightRequest\022 \n\006value" - + "s\030\001 \003(\0132\020.oslp.LightValue\"0\n\020SetLightRes" - + "ponse\022\034\n\006status\030\001 \002(\0162\014.oslp.Status\")\n\020G" - + "etStatusRequest\022\025\n\007present\030\001 \001(\010:\004true\"\255" - + "\005\n\021GetStatusResponse\022\034\n\006status\030\001 \002(\0162\014.o" - + "slp.Status\022\037\n\005value\030\002 \003(\0132\020.oslp.LightVa", - "lue\022)\n\021preferredLinktype\030\003 \002(\0162\016.oslp.Li" - + "nkType\022&\n\016actualLinktype\030\004 \002(\0162\016.oslp.Li" - + "nkType\022\"\n\tlightType\030\005 \002(\0162\017.oslp.LightTy" - + "pe\022\035\n\025eventNotificationMask\030\006 \002(\r\022\027\n\017num" - + "berOfOutputs\030\007 \001(\r\022\036\n\026dcOutputVoltageMax" - + "imum\030\010 \001(\r\022\036\n\026dcOutputVoltageCurrent\030\t \001" - + "(\r\022$\n\034maximumOutputPowerOnDcOutput\030\n \001(\r" - + "\022\024\n\014serialNumber\030\013 \001(\014\022\022\n\nmacAddress\030\014 \001" - + "(\014\022\022\n\nhardwareId\030\r \001(\t\022\034\n\024internalFlashM" - + "emSize\030\016 \001(\r\022\034\n\024externalFlashMemSize\030\017 \001", - "(\r\022\"\n\032lastInternalTestResultCode\030\020 \001(\r\022\026" - + "\n\016startupCounter\030\021 \001(\r\022\031\n\021bootLoaderVers" - + "ion\030\022 \001(\t\022\027\n\017firmwareVersion\030\023 \001(\t\022$\n\034cu" - + "rrentConfigurationBackUsed\030\024 \001(\014\022\014\n\004name" - + "\030\025 \001(\t\022\023\n\013currentTime\030\026 \001(\t\022\021\n\tcurrentIp" - + "\030\027 \001(\t\"9\n\025ResumeScheduleRequest\022\r\n\005index" - + "\030\001 \001(\014\022\021\n\timmediate\030\002 \002(\010\"6\n\026ResumeSched" - + "uleResponse\022\034\n\006status\030\001 \002(\0162\014.oslp.Statu" - + "s\")\n\020SetRebootRequest\022\025\n\007present\030\001 \001(\010:\004" - + "true\"1\n\021SetRebootResponse\022\034\n\006status\030\001 \002(", - "\0162\014.oslp.Status\"R\n\024SetTransitionRequest\022" - + ",\n\016transitionType\030\001 \002(\0162\024.oslp.Transitio" - + "nType\022\014\n\004time\030\002 \001(\t\"5\n\025SetTransitionResp" - + "onse\022\034\n\006status\030\001 \002(\0162\014.oslp.Status\"8\n\034Se" - + "tEventNotificationsRequest\022\030\n\020Notificati" - + "onMask\030\001 \002(\r\"=\n\035SetEventNotificationsRes" - + "ponse\022\034\n\006status\030\001 \002(\0162\014.oslp.Status\"J\n\030E" - + "ventNotificationRequest\022.\n\rnotifications" - + "\030\001 \003(\0132\027.oslp.EventNotification\"9\n\031Event" - + "NotificationResponse\022\034\n\006status\030\001 \002(\0162\014.o", - "slp.Status\"\200\001\n\022SetScheduleRequest\022!\n\tsch" - + "edules\030\001 \003(\0132\016.oslp.Schedule\022 \n\010pageInfo" - + "\030\002 \001(\0132\016.oslp.PageInfo\022%\n\014scheduleType\030\003" - + " \002(\0162\017.oslp.RelayType\"3\n\023SetScheduleResp" - + "onse\022\034\n\006status\030\001 \002(\0162\014.oslp.Status\"\357\007\n\027S" - + "etConfigurationRequest\022\"\n\tlightType\030\001 \001(" - + "\0162\017.oslp.LightType\0222\n\021daliConfiguration\030" - + "\002 \001(\0132\027.oslp.DaliConfiguration\0224\n\022relayC" - + "onfiguration\030\003 \001(\0132\030.oslp.RelayConfigura" - + "tion\022\'\n\037shortTermHistoryIntervalMinutes\030", - "\004 \001(\r\022)\n\021preferredLinkType\030\005 \001(\0162\016.oslp." - + "LinkType\022\"\n\tmeterType\030\006 \001(\0162\017.oslp.Meter" - + "Type\022\037\n\027longTermHistoryInterval\030\007 \001(\r\022?\n" - + "\033longTermHistoryIntervalType\030\010 \001(\0162\032.osl" - + "p.LongTermIntervalType\022 \n\021timeSyncFreque" - + "ncy\030\t \001(\r:\00586400\022\030\n\020deviceFixIpValue\030\n \001" - + "(\014\022\017\n\007netMask\030\013 \001(\014\022\017\n\007gateWay\030\014 \001(\014\022\033\n\r" - + "isDhcpEnabled\030\r \001(\010:\004true\022 \n\024communicati" - + "onTimeout\030\016 \001(\r:\00220\022\'\n\034communicationNumb" - + "erOfRetries\030\017 \001(\r:\0013\0229\n-communicationPau", - "seTimeBetweenConnectionTrials\030\020 \001(\r:\00260\022" - + "\025\n\rospgIpAddress\030\021 \001(\014\022\026\n\016osgpPortNumber" - + "\030\022 \001(\r\022!\n\023isTestButtonEnabled\030\023 \001(\010:\004tru" - + "e\022,\n\036isAutomaticSummerTimingEnabled\030\024 \001(" - + "\010:\004true\022!\n\026astroGateSunRiseOffset\030\025 \001(\021:" - + "\0010\022 \n\025astroGateSunSetOffset\030\026 \001(\021:\0010\022\026\n\016" - + "switchingDelay\030\027 \003(\r\022\'\n\014relayLinking\030\030 \003" - + "(\0132\021.oslp.RelayMatrix\022\035\n\017relayRefreshing" - + "\030\031 \001(\010:\004true\022\"\n\021summerTimeDetails\030\032 \001(\t:" - + "\0070360100\022\"\n\021winterTimeDetails\030\033 \001(\t:\007106", - "0200\"8\n\030SetConfigurationResponse\022\034\n\006stat" - + "us\030\001 \002(\0162\014.oslp.Status\"0\n\027GetConfigurati" - + "onRequest\022\025\n\007present\030\001 \001(\010:\004true\"\216\010\n\030Get" - + "ConfigurationResponse\022\034\n\006status\030\001 \002(\0162\014." - + "oslp.Status\022\"\n\tlightType\030\002 \001(\0162\017.oslp.Li" - + "ghtType\0222\n\021daliConfiguration\030\003 \001(\0132\027.osl" - + "p.DaliConfiguration\0224\n\022relayConfiguratio" - + "n\030\004 \001(\0132\030.oslp.RelayConfiguration\022\'\n\037sho" - + "rtTermHistoryIntervalMinutes\030\005 \001(\r\022)\n\021pr" - + "eferredLinkType\030\006 \001(\0162\016.oslp.LinkType\022\"\n", - "\tmeterType\030\007 \001(\0162\017.oslp.MeterType\022\037\n\027lon" - + "gTermHistoryInterval\030\010 \001(\r\022?\n\033longTermHi" - + "storyIntervalType\030\t \001(\0162\032.oslp.LongTermI" - + "ntervalType\022 \n\021timeSyncFrequency\030\n \001(\r:\005" - + "86400\022\030\n\020deviceFixIpValue\030\013 \001(\014\022\017\n\007netMa" - + "sk\030\014 \001(\014\022\017\n\007gateWay\030\r \001(\014\022\033\n\risDhcpEnabl" - + "ed\030\016 \001(\010:\004true\022 \n\024communicationTimeout\030\017" - + " \001(\r:\00220\022\'\n\034communicationNumberOfRetries" - + "\030\020 \001(\r:\0013\0229\n-communicationPauseTimeBetwe" - + "enConnectionTrials\030\021 \001(\r:\00260\022\025\n\rospgIpAd", - "dress\030\022 \001(\014\022\026\n\016osgpPortNumber\030\023 \001(\r\022!\n\023i" - + "sTestButtonEnabled\030\024 \001(\010:\004true\022,\n\036isAuto" - + "maticSummerTimingEnabled\030\025 \001(\010:\004true\022!\n\026" - + "astroGateSunRiseOffset\030\026 \001(\021:\0010\022 \n\025astro" - + "GateSunSetOffset\030\027 \001(\021:\0010\022\026\n\016switchingDe" - + "lay\030\030 \003(\r\022\'\n\014relayLinking\030\031 \003(\0132\021.oslp.R" - + "elayMatrix\022\035\n\017relayRefreshing\030\032 \001(\010:\004tru" - + "e\022\"\n\021summerTimeDetails\030\033 \001(\t:\0070360100\022\"\n" - + "\021winterTimeDetails\030\034 \001(\t:\0071060200\"9\n\032Swi" - + "tchConfigurationRequest\022\033\n\023newConfigurat", - "ionSet\030\001 \002(\014\";\n\033SwitchConfigurationRespo" - + "nse\022\034\n\006status\030\001 \002(\0162\014.oslp.Status\"L\n\034Con" - + "firmRegisterDeviceRequest\022\024\n\014randomDevic" - + "e\030\001 \002(\r\022\026\n\016randomPlatform\030\002 \002(\r\"\203\001\n\035Conf" - + "irmRegisterDeviceResponse\022\034\n\006status\030\001 \002(" - + "\0162\014.oslp.Status\022\024\n\014randomDevice\030\002 \002(\r\022\026\n" - + "\016randomPlatform\030\003 \002(\r\022\026\n\016sequenceWindow\030" - + "\004 \002(\r\"z\n\033GetPowerUsageHistoryRequest\022$\n\n" - + "timePeriod\030\001 \002(\0132\020.oslp.TimePeriod\022\014\n\004pa" - + "ge\030\002 \001(\r\022\'\n\010termType\030\003 \002(\0162\025.oslp.Histor", - "yTermType\"\214\001\n\034GetPowerUsageHistoryRespon" - + "se\022\034\n\006status\030\001 \002(\0162\014.oslp.Status\022,\n\016powe" - + "rUsageData\030\002 \003(\0132\024.oslp.PowerUsageData\022 " - + "\n\010pageInfo\030\003 \001(\0132\016.oslp.PageInfo\"3\n\032GetA" - + "ctualPowerUsageRequest\022\025\n\007present\030\001 \001(\010:" - + "\004true\"i\n\033GetActualPowerUsageResponse\022\034\n\006" - + "status\030\001 \002(\0162\014.oslp.Status\022,\n\016powerUsage" - + "Data\030\002 \002(\0132\024.oslp.PowerUsageData\"X\n#Upda" - + "teDeviceSslCertificationRequest\022\031\n\021certi" - + "ficateDomain\030\001 \002(\t\022\026\n\016certificateUrl\030\002 \002", - "(\t\"D\n$UpdateDeviceSslCertificationRespon" - + "se\022\034\n\006status\030\001 \002(\0162\014.oslp.Status\";\n\037SetD" - + "eviceVerificationKeyRequest\022\030\n\020certifica" - + "teChunk\030\001 \002(\014\"@\n SetDeviceVerificationKe" - + "yResponse\022\034\n\006status\030\001 \002(\0162\014.oslp.Status\"" - + "G\n\014LocationInfo\022\022\n\ntimeOffset\030\001 \001(\021\022\020\n\010l" - + "atitude\030\002 \001(\021\022\021\n\tlongitude\030\003 \001(\021\"9\n\nLigh" - + "tValue\022\r\n\005index\030\001 \001(\014\022\n\n\002on\030\002 \002(\010\022\020\n\010dim" - + "Value\030\003 \001(\014\"f\n\021EventNotification\022\032\n\005even" - + "t\030\001 \002(\0162\013.oslp.Event\022\r\n\005index\030\002 \001(\014\022\023\n\013d", - "escription\030\003 \001(\t\022\021\n\ttimestamp\030\004 \001(\t\"\242\002\n\010" - + "Schedule\022\036\n\007weekday\030\001 \002(\0162\r.oslp.Weekday" - + "\022\020\n\010startDay\030\002 \001(\t\022\016\n\006endDay\030\003 \001(\t\022$\n\nac" - + "tionTime\030\004 \002(\0162\020.oslp.ActionTime\022\014\n\004time" - + "\030\005 \001(\t\022\034\n\006window\030\006 \001(\0132\014.oslp.Window\022\037\n\005" - + "value\030\007 \003(\0132\020.oslp.LightValue\022&\n\013trigger" - + "Type\030\010 \001(\0162\021.oslp.TriggerType\022\027\n\017minimum" - + "LightsOn\030\t \001(\r\022\r\n\005index\030\n \001(\r\022\021\n\tisEnabl" - + "ed\030\013 \001(\010\"5\n\006Window\022\025\n\rminutesBefore\030\001 \002(" - + "\r\022\024\n\014minutesAfter\030\002 \002(\r\"V\n\021DaliConfigura", - "tion\022\026\n\016numberOfLights\030\001 \001(\014\022)\n\naddressM" - + "ap\030\002 \003(\0132\025.oslp.IndexAddressMap\"?\n\022Relay" - + "Configuration\022)\n\naddressMap\030\001 \003(\0132\025.oslp" - + ".IndexAddressMap\"\211\001\n\013RelayMatrix\022\030\n\020mast" - + "erRelayIndex\030\001 \002(\014\022\025\n\rmasterRelayOn\030\002 \002(" - + "\010\022#\n\033indicesOfControlledRelaysOn\030\003 \001(\014\022$" - + "\n\034indicesOfControlledRelaysOff\030\004 \001(\014\"U\n\017" - + "IndexAddressMap\022\r\n\005index\030\001 \002(\014\022\017\n\007addres" - + "s\030\002 \002(\014\022\"\n\trelayType\030\003 \002(\0162\017.oslp.RelayT" - + "ype\"E\n\010PageInfo\022\023\n\013currentPage\030\001 \002(\r\022\020\n\010", - "pageSize\030\002 \002(\r\022\022\n\ntotalPages\030\003 \002(\r\"0\n\nTi" - + "mePeriod\022\021\n\tstartTime\030\001 \002(\t\022\017\n\007endTime\030\002" - + " \002(\t\"\306\001\n\016PowerUsageData\022\022\n\nrecordTime\030\001 " - + "\002(\t\022\"\n\tmeterType\030\002 \002(\0162\017.oslp.MeterType\022" - + "\033\n\023totalConsumedEnergy\030\003 \002(\004\022\033\n\023actualCo" - + "nsumedPower\030\004 \002(\r\022 \n\010psldData\030\005 \001(\0132\016.os" - + "lp.PsldData\022 \n\010ssldData\030\006 \001(\0132\016.oslp.Ssl" - + "dData\"&\n\010PsldData\022\032\n\022totalLightingHours\030" - + "\001 \002(\r\"\217\002\n\010SsldData\022\026\n\016actualCurrent1\030\001 \002" - + "(\r\022\026\n\016actualCurrent2\030\002 \002(\r\022\026\n\016actualCurr", - "ent3\030\003 \002(\r\022\024\n\014actualPower1\030\004 \002(\r\022\024\n\014actu" - + "alPower2\030\005 \002(\r\022\024\n\014actualPower3\030\006 \002(\r\022\033\n\023" - + "averagePowerFactor1\030\007 \002(\r\022\033\n\023averagePowe" - + "rFactor2\030\010 \002(\r\022\033\n\023averagePowerFactor3\030\t " - + "\002(\r\022\"\n\trelayData\030\n \003(\0132\017.oslp.RelayData\"" - + "8\n\tRelayData\022\r\n\005index\030\001 \002(\014\022\034\n\024totalLigh" - + "tingMinutes\030\002 \002(\r*\255\001\n\017NotificationBit\022\017\n" - + "\013DIAG_EVENTS\020\001\022\024\n\020HARDWARE_FAILURE\020\002\022\020\n\014" - + "LIGHT_EVENTS\020\004\022\021\n\rTARIFF_EVENTS\020\010\022\022\n\016MON" - + "ITOR_EVENTS\020\020\022\023\n\017FIRMWARE_EVENTS\020 \022\017\n\013CO", - "MM_EVENTS\020@\022\024\n\017SECURITY_EVENTS\020\200\001*\210\t\n\005Ev" - + "ent\022\027\n\023DIAG_EVENTS_GENERAL\020\000\022$\n DIAG_EVE" - + "NTS_UNKNOWN_MESSAGE_TYPE\020\001\022\033\n\026HARDWARE_F" - + "AILURE_RELAY\020\350\007\022\'\n\"HARDWARE_FAILURE_FLAS" - + "H_WRITE_ERROR\020\351\007\022*\n%HARDWARE_FAILURE_FLA" - + "SH_MEMORY_CORRUPT\020\352\007\022!\n\034HARDWARE_FAILURE" - + "_RTC_NOT_SET\020\353\007\022\032\n\025LIGHT_EVENTS_LIGHT_ON" - + "\020\320\017\022\033\n\026LIGHT_EVENTS_LIGHT_OFF\020\321\017\022%\n LIGH" - + "T_FAILURE_DALI_COMMUNICATION\020\304\023\022\032\n\025LIGHT" - + "_FAILURE_BALLAST\020\305\023\022(\n#LIGHT_FAILURE_TAR", - "IFF_SWITCH_ATTEMPT\020\306\023\022\034\n\027TARIFF_EVENTS_T" - + "ARIFF_ON\020\270\027\022\035\n\030TARIFF_EVENTS_TARIFF_OFF\020" - + "\271\027\022$\n\037MONITOR_EVENTS_LONG_BUFFER_FULL\020\240\037" - + "\022%\n MONITOR_FAILURE_P1_COMMUNICATION\020\224#\022" - + "\033\n\026MONITOR_SHORT_DETECTED\020\370#\022\033\n\026MONITOR_" - + "SHORT_RESOLVED\020\371#\022\030\n\023MONITOR_DOOR_OPENED" - + "\020\334$\022\030\n\023MONITOR_DOOR_CLOSED\020\335$\022!\n\034MONITOR" - + "_EVENTS_TEST_RELAY_ON\020\336$\022\"\n\035MONITOR_EVEN" - + "TS_TEST_RELAY_OFF\020\337$\022!\n\034MONITOR_EVENTS_L" - + "OSS_OF_POWER\020\300%\022\036\n\031MONITOR_EVENTS_LOCAL_", - "MODE\020\244&\022\037\n\032MONITOR_EVENTS_REMOTE_MODE\020\245&" - + "\022\037\n\032FIRMWARE_EVENTS_ACTIVATING\020\210\'\022&\n!FIR" - + "MWARE_EVENTS_DOWNLOAD_NOTFOUND\020\375*\022$\n\037FIR" - + "MWARE_EVENTS_DOWNLOAD_FAILED\020\376*\022*\n%FIRMW" - + "ARE_EVENTS_CONFIGURATION_CHANGED\020\377*\022$\n\037C" - + "OMM_EVENTS_ALTERNATIVE_CHANNEL\020\360.\022\"\n\035COM" - + "M_EVENTS_RECOVERED_CHANNEL\020\361.\022$\n\037SECURIT" - + "Y_EVENTS_OUT_OF_SEQUENCE\020\3306\022-\n(SECURITY_" - + "EVENTS_OSLP_VERIFICATION_FAILED\020\3316\022(\n#SE" - + "CURITY_EVENTS_INVALID_CERTIFICATE\020\3326*B\n\013", - "TriggerType\022\016\n\nTT_NOT_SET\020\000\022\021\n\rLIGHT_TRI" - + "GGER\020\001\022\020\n\014ASTRONOMICAL\020\002*.\n\016TransitionTy" - + "pe\022\r\n\tNIGHT_DAY\020\000\022\r\n\tDAY_NIGHT\020\001*\231\001\n\007Wee" - + "kday\022\n\n\006MONDAY\020\001\022\013\n\007TUESDAY\020\002\022\r\n\tWEDNESD" - + "AY\020\003\022\014\n\010THURSDAY\020\004\022\n\n\006FRIDAY\020\005\022\014\n\010SATURD" - + "AY\020\006\022\n\n\006SUNDAY\020\007\022\013\n\007WEEKDAY\020\010\022\013\n\007WEEKEND" - + "\020\t\022\017\n\013ABSOLUTEDAY\020\n\022\007\n\003ALL\020\013*7\n\nActionTi" - + "me\022\020\n\014ABSOLUTETIME\020\001\022\013\n\007SUNRISE\020\002\022\n\n\006SUN" - + "SET\020\003* \n\nDeviceType\022\010\n\004PSLD\020\000\022\010\n\004SSLD\020\001*" - + "+\n\006Status\022\006\n\002OK\020\000\022\013\n\007FAILURE\020\001\022\014\n\010REJECT", - "ED\020\002*b\n\tLightType\022\016\n\nLT_NOT_SET\020\000\022\t\n\005REL" - + "AY\020\001\022\023\n\017ONE_TO_TEN_VOLT\020\002\022\033\n\027ONE_TO_TEN_" - + "VOLT_REVERSE\020\003\022\010\n\004DALI\020\004*2\n\tRelayType\022\016\n" - + "\nRT_NOT_SET\020\000\022\t\n\005LIGHT\020\001\022\n\n\006TARIFF\020\002*7\n\t" - + "MeterType\022\016\n\nMT_NOT_SET\020\000\022\006\n\002P1\020\001\022\t\n\005PUL" - + "SE\020\002\022\007\n\003AUX\020\003*>\n\010LinkType\022\020\n\014LINK_NOT_SE" - + "T\020\000\022\010\n\004GPRS\020\001\022\010\n\004CDMA\020\002\022\014\n\010ETHERNET\020\003*@\n" - + "\024LongTermIntervalType\022\022\n\016LT_INT_NOT_SET\020" - + "\000\022\010\n\004DAYS\020\001\022\n\n\006MONTHS\020\002*&\n\017HistoryTermTy" - + "pe\022\t\n\005Short\020\000\022\010\n\004Long\020\001B \n\036org.opensmart", - "gridplatform.oslp" - }; - final com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - @Override - public com.google.protobuf.ExtensionRegistry assignDescriptors( - final com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - internal_static_oslp_Message_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_oslp_Message_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_Message_descriptor, - new java.lang.String[] { - "RegisterDeviceRequest", - "RegisterDeviceResponse", - "StartSelfTestRequest", - "StartSelfTestResponse", - "StopSelfTestRequest", - "StopSelfTestResponse", - "UpdateFirmwareRequest", - "UpdateFirmwareResponse", - "SetLightRequest", - "SetLightResponse", - "GetStatusRequest", - "GetStatusResponse", - "ResumeScheduleRequest", - "ResumeScheduleResponse", - "SetEventNotificationsRequest", - "SetEventNotificationsResponse", - "EventNotificationRequest", - "EventNotificationResponse", - "GetFirmwareVersionRequest", - "GetFirmwareVersionResponse", - "SetScheduleRequest", - "SetScheduleResponse", - "SetConfigurationRequest", - "SetConfigurationResponse", - "GetPowerUsageHistoryRequest", - "GetPowerUsageHistoryResponse", - "GetActualPowerUsageRequest", - "GetActualPowerUsageResponse", - "SetRebootRequest", - "SetRebootResponse", - "SetTransitionRequest", - "SetTransitionResponse", - "GetConfigurationRequest", - "GetConfigurationResponse", - "ConfirmRegisterDeviceRequest", - "ConfirmRegisterDeviceResponse", - "UpdateDeviceSslCertificationRequest", - "UpdateDeviceSslCertificationResponse", - "SetDeviceVerificationKeyRequest", - "SetDeviceVerificationKeyResponse", - "SwitchFirmwareRequest", - "SwitchFirmwareResponse", - "SwitchConfigurationRequest", - "SwitchConfigurationResponse", - }, - org.opensmartgridplatform.oslp.Oslp.Message.class, - org.opensmartgridplatform.oslp.Oslp.Message.Builder.class); - internal_static_oslp_RegisterDeviceRequest_descriptor = + java.lang.String[] descriptorData = { + "\n\noslp.proto\022\004oslp\"\255\026\n\007Message\022:\n\025regist" + + "erDeviceRequest\030\001 \001(\0132\033.oslp.RegisterDev" + + "iceRequest\022<\n\026registerDeviceResponse\030\002 \001" + + "(\0132\034.oslp.RegisterDeviceResponse\0228\n\024star" + + "tSelfTestRequest\030\003 \001(\0132\032.oslp.StartSelfT" + + "estRequest\022:\n\025startSelfTestResponse\030\004 \001(" + + "\0132\033.oslp.StartSelfTestResponse\0226\n\023stopSe" + + "lfTestRequest\030\005 \001(\0132\031.oslp.StopSelfTestR" + + "equest\0228\n\024stopSelfTestResponse\030\006 \001(\0132\032.o" + + "slp.StopSelfTestResponse\022:\n\025updateFirmwa" + + "reRequest\030\007 \001(\0132\033.oslp.UpdateFirmwareReq" + + "uest\022<\n\026updateFirmwareResponse\030\010 \001(\0132\034.o" + + "slp.UpdateFirmwareResponse\022.\n\017setLightRe" + + "quest\030\t \001(\0132\025.oslp.SetLightRequest\0220\n\020se" + + "tLightResponse\030\n \001(\0132\026.oslp.SetLightResp" + + "onse\0220\n\020getStatusRequest\030\013 \001(\0132\026.oslp.Ge" + + "tStatusRequest\0222\n\021getStatusResponse\030\014 \001(" + + "\0132\027.oslp.GetStatusResponse\022:\n\025resumeSche" + + "duleRequest\030\r \001(\0132\033.oslp.ResumeScheduleR" + + "equest\022<\n\026resumeScheduleResponse\030\016 \001(\0132\034" + + ".oslp.ResumeScheduleResponse\022H\n\034setEvent" + + "NotificationsRequest\030\017 \001(\0132\".oslp.SetEve" + + "ntNotificationsRequest\022J\n\035setEventNotifi" + + "cationsResponse\030\020 \001(\0132#.oslp.SetEventNot" + + "ificationsResponse\022@\n\030eventNotificationR" + + "equest\030\021 \001(\0132\036.oslp.EventNotificationReq" + + "uest\022B\n\031eventNotificationResponse\030\022 \001(\0132" + + "\037.oslp.EventNotificationResponse\022B\n\031getF" + + "irmwareVersionRequest\030\023 \001(\0132\037.oslp.GetFi" + + "rmwareVersionRequest\022D\n\032getFirmwareVersi" + + "onResponse\030\024 \001(\0132 .oslp.GetFirmwareVersi" + + "onResponse\0224\n\022setScheduleRequest\030\025 \001(\0132\030" + + ".oslp.SetScheduleRequest\0226\n\023setScheduleR" + + "esponse\030\026 \001(\0132\031.oslp.SetScheduleResponse" + + "\022>\n\027setConfigurationRequest\030\031 \001(\0132\035.oslp" + + ".SetConfigurationRequest\022@\n\030setConfigura" + + "tionResponse\030\032 \001(\0132\036.oslp.SetConfigurati" + + "onResponse\022F\n\033getPowerUsageHistoryReques" + + "t\030\033 \001(\0132!.oslp.GetPowerUsageHistoryReque" + + "st\022H\n\034getPowerUsageHistoryResponse\030\034 \001(\013" + + "2\".oslp.GetPowerUsageHistoryResponse\022D\n\032" + + "getActualPowerUsageRequest\030\035 \001(\0132 .oslp." + + "GetActualPowerUsageRequest\022F\n\033getActualP" + + "owerUsageResponse\030\036 \001(\0132!.oslp.GetActual" + + "PowerUsageResponse\0220\n\020setRebootRequest\030\037" + + " \001(\0132\026.oslp.SetRebootRequest\0222\n\021setReboo" + + "tResponse\030 \001(\0132\027.oslp.SetRebootResponse" + + "\0228\n\024setTransitionRequest\030! \001(\0132\032.oslp.Se" + + "tTransitionRequest\022:\n\025setTransitionRespo" + + "nse\030\" \001(\0132\033.oslp.SetTransitionResponse\022>" + + "\n\027getConfigurationRequest\030# \001(\0132\035.oslp.G" + + "etConfigurationRequest\022@\n\030getConfigurati" + + "onResponse\030$ \001(\0132\036.oslp.GetConfiguration" + + "Response\022H\n\034confirmRegisterDeviceRequest" + + "\030% \001(\0132\".oslp.ConfirmRegisterDeviceReque" + + "st\022J\n\035confirmRegisterDeviceResponse\030& \001(" + + "\0132#.oslp.ConfirmRegisterDeviceResponse\022V" + + "\n#updateDeviceSslCertificationRequest\030\' " + + "\001(\0132).oslp.UpdateDeviceSslCertificationR" + + "equest\022X\n$updateDeviceSslCertificationRe" + + "sponse\030( \001(\0132*.oslp.UpdateDeviceSslCerti" + + "ficationResponse\022N\n\037setDeviceVerificatio" + + "nKeyRequest\030) \001(\0132%.oslp.SetDeviceVerifi" + + "cationKeyRequest\022P\n setDeviceVerificatio" + + "nKeyResponse\030* \001(\0132&.oslp.SetDeviceVerif" + + "icationKeyResponse\022:\n\025switchFirmwareRequ" + + "est\030+ \001(\0132\033.oslp.SwitchFirmwareRequest\022<" + + "\n\026switchFirmwareResponse\030, \001(\0132\034.oslp.Sw" + + "itchFirmwareResponse\022D\n\032switchConfigurat" + + "ionRequest\030- \001(\0132 .oslp.SwitchConfigurat" + + "ionRequest\022F\n\033switchConfigurationRespons" + + "e\030. \001(\0132!.oslp.SwitchConfigurationRespon" + + "se\"\274\001\n\025RegisterDeviceRequest\022#\n\024deviceId" + + "entification\030\001 \001(\tB\005\252\001\002\010\003\022\030\n\tipAddress\030\002" + + " \001(\014B\005\252\001\002\010\003\022+\n\ndeviceType\030\003 \001(\0162\020.oslp.D" + + "eviceTypeB\005\252\001\002\010\003\022\032\n\013hasSchedule\030\004 \001(\010B\005\252" + + "\001\002\010\003\022\033\n\014randomDevice\030\005 \001(\rB\005\252\001\002\010\003\"\277\001\n\026Re" + + "gisterDeviceResponse\022#\n\006status\030\001 \001(\0162\014.o" + + "slp.StatusB\005\252\001\002\010\003\022\032\n\013currentTime\030\002 \001(\tB\005" + + "\252\001\002\010\003\022\033\n\014randomDevice\030\003 \001(\rB\005\252\001\002\010\003\022\035\n\016ra" + + "ndomPlatform\030\004 \001(\rB\005\252\001\002\010\003\022(\n\014locationInf" + + "o\030\005 \001(\0132\022.oslp.LocationInfo\"-\n\024StartSelf" + + "TestRequest\022\025\n\007present\030\001 \001(\010:\004true\"<\n\025St" + + "artSelfTestResponse\022#\n\006status\030\001 \001(\0162\014.os" + + "lp.StatusB\005\252\001\002\010\003\",\n\023StopSelfTestRequest\022" + + "\025\n\007present\030\001 \001(\010:\004true\"Z\n\024StopSelfTestRe" + + "sponse\022#\n\006status\030\001 \001(\0162\014.oslp.StatusB\005\252\001" + + "\002\010\003\022\035\n\016selfTestResult\030\002 \001(\014B\005\252\001\002\010\003\"2\n\031Ge" + + "tFirmwareVersionRequest\022\025\n\007present\030\001 \001(\010" + + ":\004true\"<\n\032GetFirmwareVersionResponse\022\036\n\017" + + "firmwareVersion\030\001 \001(\tB\005\252\001\002\010\003\"R\n\025UpdateFi" + + "rmwareRequest\022\035\n\016firmwareDomain\030\001 \001(\tB\005\252" + + "\001\002\010\003\022\032\n\013firmwareUrl\030\002 \001(\tB\005\252\001\002\010\003\"=\n\026Upda" + + "teFirmwareResponse\022#\n\006status\030\001 \001(\0162\014.osl" + + "p.StatusB\005\252\001\002\010\003\":\n\025SwitchFirmwareRequest" + + "\022!\n\022newFirmwareVersion\030\001 \001(\tB\005\252\001\002\010\003\"=\n\026S" + + "witchFirmwareResponse\022#\n\006status\030\001 \001(\0162\014." + + "oslp.StatusB\005\252\001\002\010\003\"3\n\017SetLightRequest\022 \n" + + "\006values\030\001 \003(\0132\020.oslp.LightValue\"7\n\020SetLi" + + "ghtResponse\022#\n\006status\030\001 \001(\0162\014.oslp.Statu" + + "sB\005\252\001\002\010\003\")\n\020GetStatusRequest\022\025\n\007present\030" + + "\001 \001(\010:\004true\"\320\005\n\021GetStatusResponse\022#\n\006sta" + + "tus\030\001 \001(\0162\014.oslp.StatusB\005\252\001\002\010\003\022\037\n\005value\030" + + "\002 \003(\0132\020.oslp.LightValue\0220\n\021preferredLink" + + "type\030\003 \001(\0162\016.oslp.LinkTypeB\005\252\001\002\010\003\022-\n\016act" + + "ualLinktype\030\004 \001(\0162\016.oslp.LinkTypeB\005\252\001\002\010\003" + + "\022)\n\tlightType\030\005 \001(\0162\017.oslp.LightTypeB\005\252\001" + + "\002\010\003\022$\n\025eventNotificationMask\030\006 \001(\rB\005\252\001\002\010" + + "\003\022\027\n\017numberOfOutputs\030\007 \001(\r\022\036\n\026dcOutputVo" + + "ltageMaximum\030\010 \001(\r\022\036\n\026dcOutputVoltageCur" + + "rent\030\t \001(\r\022$\n\034maximumOutputPowerOnDcOutp" + + "ut\030\n \001(\r\022\024\n\014serialNumber\030\013 \001(\014\022\022\n\nmacAdd" + + "ress\030\014 \001(\014\022\022\n\nhardwareId\030\r \001(\t\022\034\n\024intern" + + "alFlashMemSize\030\016 \001(\r\022\034\n\024externalFlashMem" + + "Size\030\017 \001(\r\022\"\n\032lastInternalTestResultCode" + + "\030\020 \001(\r\022\026\n\016startupCounter\030\021 \001(\r\022\031\n\021bootLo" + + "aderVersion\030\022 \001(\t\022\027\n\017firmwareVersion\030\023 \001" + + "(\t\022$\n\034currentConfigurationBackUsed\030\024 \001(\014" + + "\022\014\n\004name\030\025 \001(\t\022\023\n\013currentTime\030\026 \001(\t\022\021\n\tc" + + "urrentIp\030\027 \001(\t\"@\n\025ResumeScheduleRequest\022" + + "\r\n\005index\030\001 \001(\014\022\030\n\timmediate\030\002 \001(\010B\005\252\001\002\010\003" + + "\"=\n\026ResumeScheduleResponse\022#\n\006status\030\001 \001" + + "(\0162\014.oslp.StatusB\005\252\001\002\010\003\")\n\020SetRebootRequ" + + "est\022\025\n\007present\030\001 \001(\010:\004true\"8\n\021SetRebootR" + + "esponse\022#\n\006status\030\001 \001(\0162\014.oslp.StatusB\005\252" + + "\001\002\010\003\"Y\n\024SetTransitionRequest\0223\n\016transiti" + + "onType\030\001 \001(\0162\024.oslp.TransitionTypeB\005\252\001\002\010" + + "\003\022\014\n\004time\030\002 \001(\t\"<\n\025SetTransitionResponse" + + "\022#\n\006status\030\001 \001(\0162\014.oslp.StatusB\005\252\001\002\010\003\"?\n" + + "\034SetEventNotificationsRequest\022\037\n\020Notific" + + "ationMask\030\001 \001(\rB\005\252\001\002\010\003\"D\n\035SetEventNotifi" + + "cationsResponse\022#\n\006status\030\001 \001(\0162\014.oslp.S" + + "tatusB\005\252\001\002\010\003\"J\n\030EventNotificationRequest" + + "\022.\n\rnotifications\030\001 \003(\0132\027.oslp.EventNoti" + + "fication\"@\n\031EventNotificationResponse\022#\n" + + "\006status\030\001 \001(\0162\014.oslp.StatusB\005\252\001\002\010\003\"\207\001\n\022S" + + "etScheduleRequest\022!\n\tschedules\030\001 \003(\0132\016.o" + + "slp.Schedule\022 \n\010pageInfo\030\002 \001(\0132\016.oslp.Pa" + + "geInfo\022,\n\014scheduleType\030\003 \001(\0162\017.oslp.Rela" + + "yTypeB\005\252\001\002\010\003\":\n\023SetScheduleResponse\022#\n\006s" + + "tatus\030\001 \001(\0162\014.oslp.StatusB\005\252\001\002\010\003\"\357\007\n\027Set" + + "ConfigurationRequest\022\"\n\tlightType\030\001 \001(\0162" + + "\017.oslp.LightType\0222\n\021daliConfiguration\030\002 " + + "\001(\0132\027.oslp.DaliConfiguration\0224\n\022relayCon" + + "figuration\030\003 \001(\0132\030.oslp.RelayConfigurati" + + "on\022\'\n\037shortTermHistoryIntervalMinutes\030\004 " + + "\001(\r\022)\n\021preferredLinkType\030\005 \001(\0162\016.oslp.Li" + + "nkType\022\"\n\tmeterType\030\006 \001(\0162\017.oslp.MeterTy" + + "pe\022\037\n\027longTermHistoryInterval\030\007 \001(\r\022?\n\033l" + + "ongTermHistoryIntervalType\030\010 \001(\0162\032.oslp." + + "LongTermIntervalType\022 \n\021timeSyncFrequenc" + + "y\030\t \001(\r:\00586400\022\030\n\020deviceFixIpValue\030\n \001(\014" + + "\022\017\n\007netMask\030\013 \001(\014\022\017\n\007gateWay\030\014 \001(\014\022\033\n\ris" + + "DhcpEnabled\030\r \001(\010:\004true\022 \n\024communication" + + "Timeout\030\016 \001(\r:\00220\022\'\n\034communicationNumber" + + "OfRetries\030\017 \001(\r:\0013\0229\n-communicationPause" + + "TimeBetweenConnectionTrials\030\020 \001(\r:\00260\022\025\n" + + "\rospgIpAddress\030\021 \001(\014\022\026\n\016osgpPortNumber\030\022" + + " \001(\r\022!\n\023isTestButtonEnabled\030\023 \001(\010:\004true\022" + + ",\n\036isAutomaticSummerTimingEnabled\030\024 \001(\010:" + + "\004true\022!\n\026astroGateSunRiseOffset\030\025 \001(\021:\0010" + + "\022 \n\025astroGateSunSetOffset\030\026 \001(\021:\0010\022\026\n\016sw" + + "itchingDelay\030\027 \003(\r\022\'\n\014relayLinking\030\030 \003(\013" + + "2\021.oslp.RelayMatrix\022\035\n\017relayRefreshing\030\031" + + " \001(\010:\004true\022\"\n\021summerTimeDetails\030\032 \001(\t:\0070" + + "360100\022\"\n\021winterTimeDetails\030\033 \001(\t:\00710602" + + "00\"?\n\030SetConfigurationResponse\022#\n\006status" + + "\030\001 \001(\0162\014.oslp.StatusB\005\252\001\002\010\003\"0\n\027GetConfig" + + "urationRequest\022\025\n\007present\030\001 \001(\010:\004true\"\225\010" + + "\n\030GetConfigurationResponse\022#\n\006status\030\001 \001" + + "(\0162\014.oslp.StatusB\005\252\001\002\010\003\022\"\n\tlightType\030\002 \001" + + "(\0162\017.oslp.LightType\0222\n\021daliConfiguration" + + "\030\003 \001(\0132\027.oslp.DaliConfiguration\0224\n\022relay" + + "Configuration\030\004 \001(\0132\030.oslp.RelayConfigur" + + "ation\022\'\n\037shortTermHistoryIntervalMinutes" + + "\030\005 \001(\r\022)\n\021preferredLinkType\030\006 \001(\0162\016.oslp" + + ".LinkType\022\"\n\tmeterType\030\007 \001(\0162\017.oslp.Mete" + + "rType\022\037\n\027longTermHistoryInterval\030\010 \001(\r\022?" + + "\n\033longTermHistoryIntervalType\030\t \001(\0162\032.os" + + "lp.LongTermIntervalType\022 \n\021timeSyncFrequ" + + "ency\030\n \001(\r:\00586400\022\030\n\020deviceFixIpValue\030\013 " + + "\001(\014\022\017\n\007netMask\030\014 \001(\014\022\017\n\007gateWay\030\r \001(\014\022\033\n" + + "\risDhcpEnabled\030\016 \001(\010:\004true\022 \n\024communicat" + + "ionTimeout\030\017 \001(\r:\00220\022\'\n\034communicationNum" + + "berOfRetries\030\020 \001(\r:\0013\0229\n-communicationPa" + + "useTimeBetweenConnectionTrials\030\021 \001(\r:\00260" + + "\022\025\n\rospgIpAddress\030\022 \001(\014\022\026\n\016osgpPortNumbe" + + "r\030\023 \001(\r\022!\n\023isTestButtonEnabled\030\024 \001(\010:\004tr" + + "ue\022,\n\036isAutomaticSummerTimingEnabled\030\025 \001" + + "(\010:\004true\022!\n\026astroGateSunRiseOffset\030\026 \001(\021" + + ":\0010\022 \n\025astroGateSunSetOffset\030\027 \001(\021:\0010\022\026\n" + + "\016switchingDelay\030\030 \003(\r\022\'\n\014relayLinking\030\031 " + + "\003(\0132\021.oslp.RelayMatrix\022\035\n\017relayRefreshin" + + "g\030\032 \001(\010:\004true\022\"\n\021summerTimeDetails\030\033 \001(\t" + + ":\0070360100\022\"\n\021winterTimeDetails\030\034 \001(\t:\00710" + + "60200\"@\n\032SwitchConfigurationRequest\022\"\n\023n" + + "ewConfigurationSet\030\001 \001(\014B\005\252\001\002\010\003\"B\n\033Switc" + + "hConfigurationResponse\022#\n\006status\030\001 \001(\0162\014" + + ".oslp.StatusB\005\252\001\002\010\003\"Z\n\034ConfirmRegisterDe" + + "viceRequest\022\033\n\014randomDevice\030\001 \001(\rB\005\252\001\002\010\003" + + "\022\035\n\016randomPlatform\030\002 \001(\rB\005\252\001\002\010\003\"\237\001\n\035Conf" + + "irmRegisterDeviceResponse\022#\n\006status\030\001 \001(" + + "\0162\014.oslp.StatusB\005\252\001\002\010\003\022\033\n\014randomDevice\030\002" + + " \001(\rB\005\252\001\002\010\003\022\035\n\016randomPlatform\030\003 \001(\rB\005\252\001\002" + + "\010\003\022\035\n\016sequenceWindow\030\004 \001(\rB\005\252\001\002\010\003\"\210\001\n\033Ge" + + "tPowerUsageHistoryRequest\022+\n\ntimePeriod\030" + + "\001 \001(\0132\020.oslp.TimePeriodB\005\252\001\002\010\003\022\014\n\004page\030\002" + + " \001(\r\022.\n\010termType\030\003 \001(\0162\025.oslp.HistoryTer" + + "mTypeB\005\252\001\002\010\003\"\223\001\n\034GetPowerUsageHistoryRes" + + "ponse\022#\n\006status\030\001 \001(\0162\014.oslp.StatusB\005\252\001\002" + + "\010\003\022,\n\016powerUsageData\030\002 \003(\0132\024.oslp.PowerU" + + "sageData\022 \n\010pageInfo\030\003 \001(\0132\016.oslp.PageIn" + + "fo\"3\n\032GetActualPowerUsageRequest\022\025\n\007pres" + + "ent\030\001 \001(\010:\004true\"w\n\033GetActualPowerUsageRe" + + "sponse\022#\n\006status\030\001 \001(\0162\014.oslp.StatusB\005\252\001" + + "\002\010\003\0223\n\016powerUsageData\030\002 \001(\0132\024.oslp.Power" + + "UsageDataB\005\252\001\002\010\003\"f\n#UpdateDeviceSslCerti" + + "ficationRequest\022 \n\021certificateDomain\030\001 \001" + + "(\tB\005\252\001\002\010\003\022\035\n\016certificateUrl\030\002 \001(\tB\005\252\001\002\010\003" + + "\"K\n$UpdateDeviceSslCertificationResponse" + + "\022#\n\006status\030\001 \001(\0162\014.oslp.StatusB\005\252\001\002\010\003\"B\n" + + "\037SetDeviceVerificationKeyRequest\022\037\n\020cert" + + "ificateChunk\030\001 \001(\014B\005\252\001\002\010\003\"G\n SetDeviceVe" + + "rificationKeyResponse\022#\n\006status\030\001 \001(\0162\014." + + "oslp.StatusB\005\252\001\002\010\003\"G\n\014LocationInfo\022\022\n\nti" + + "meOffset\030\001 \001(\021\022\020\n\010latitude\030\002 \001(\021\022\021\n\tlong" + + "itude\030\003 \001(\021\"@\n\nLightValue\022\r\n\005index\030\001 \001(\014" + + "\022\021\n\002on\030\002 \001(\010B\005\252\001\002\010\003\022\020\n\010dimValue\030\003 \001(\014\"m\n" + + "\021EventNotification\022!\n\005event\030\001 \001(\0162\013.oslp" + + ".EventB\005\252\001\002\010\003\022\r\n\005index\030\002 \001(\014\022\023\n\013descript" + + "ion\030\003 \001(\t\022\021\n\ttimestamp\030\004 \001(\t\"\260\002\n\010Schedul" + + "e\022%\n\007weekday\030\001 \001(\0162\r.oslp.WeekdayB\005\252\001\002\010\003" + + "\022\020\n\010startDay\030\002 \001(\t\022\016\n\006endDay\030\003 \001(\t\022+\n\nac" + + "tionTime\030\004 \001(\0162\020.oslp.ActionTimeB\005\252\001\002\010\003\022" + + "\014\n\004time\030\005 \001(\t\022\034\n\006window\030\006 \001(\0132\014.oslp.Win" + + "dow\022\037\n\005value\030\007 \003(\0132\020.oslp.LightValue\022&\n\013" + + "triggerType\030\010 \001(\0162\021.oslp.TriggerType\022\027\n\017" + + "minimumLightsOn\030\t \001(\r\022\r\n\005index\030\n \001(\r\022\021\n\t" + + "isEnabled\030\013 \001(\010\"C\n\006Window\022\034\n\rminutesBefo" + + "re\030\001 \001(\rB\005\252\001\002\010\003\022\033\n\014minutesAfter\030\002 \001(\rB\005\252" + + "\001\002\010\003\"V\n\021DaliConfiguration\022\026\n\016numberOfLig" + + "hts\030\001 \001(\014\022)\n\naddressMap\030\002 \003(\0132\025.oslp.Ind" + + "exAddressMap\"?\n\022RelayConfiguration\022)\n\nad" + + "dressMap\030\001 \003(\0132\025.oslp.IndexAddressMap\"\227\001" + + "\n\013RelayMatrix\022\037\n\020masterRelayIndex\030\001 \001(\014B" + + "\005\252\001\002\010\003\022\034\n\rmasterRelayOn\030\002 \001(\010B\005\252\001\002\010\003\022#\n\033" + + "indicesOfControlledRelaysOn\030\003 \001(\014\022$\n\034ind" + + "icesOfControlledRelaysOff\030\004 \001(\014\"j\n\017Index" + + "AddressMap\022\024\n\005index\030\001 \001(\014B\005\252\001\002\010\003\022\026\n\007addr" + + "ess\030\002 \001(\014B\005\252\001\002\010\003\022)\n\trelayType\030\003 \001(\0162\017.os" + + "lp.RelayTypeB\005\252\001\002\010\003\"Z\n\010PageInfo\022\032\n\013curre" + + "ntPage\030\001 \001(\rB\005\252\001\002\010\003\022\027\n\010pageSize\030\002 \001(\rB\005\252" + + "\001\002\010\003\022\031\n\ntotalPages\030\003 \001(\rB\005\252\001\002\010\003\">\n\nTimeP" + + "eriod\022\030\n\tstartTime\030\001 \001(\tB\005\252\001\002\010\003\022\026\n\007endTi" + + "me\030\002 \001(\tB\005\252\001\002\010\003\"\342\001\n\016PowerUsageData\022\031\n\nre" + + "cordTime\030\001 \001(\tB\005\252\001\002\010\003\022)\n\tmeterType\030\002 \001(\016" + + "2\017.oslp.MeterTypeB\005\252\001\002\010\003\022\"\n\023totalConsume" + + "dEnergy\030\003 \001(\004B\005\252\001\002\010\003\022\"\n\023actualConsumedPo" + + "wer\030\004 \001(\rB\005\252\001\002\010\003\022 \n\010psldData\030\005 \001(\0132\016.osl" + + "p.PsldData\022 \n\010ssldData\030\006 \001(\0132\016.oslp.Ssld" + + "Data\"-\n\010PsldData\022!\n\022totalLightingHours\030\001" + + " \001(\rB\005\252\001\002\010\003\"\316\002\n\010SsldData\022\035\n\016actualCurren" + + "t1\030\001 \001(\rB\005\252\001\002\010\003\022\035\n\016actualCurrent2\030\002 \001(\rB" + + "\005\252\001\002\010\003\022\035\n\016actualCurrent3\030\003 \001(\rB\005\252\001\002\010\003\022\033\n" + + "\014actualPower1\030\004 \001(\rB\005\252\001\002\010\003\022\033\n\014actualPowe" + + "r2\030\005 \001(\rB\005\252\001\002\010\003\022\033\n\014actualPower3\030\006 \001(\rB\005\252" + + "\001\002\010\003\022\"\n\023averagePowerFactor1\030\007 \001(\rB\005\252\001\002\010\003" + + "\022\"\n\023averagePowerFactor2\030\010 \001(\rB\005\252\001\002\010\003\022\"\n\023" + + "averagePowerFactor3\030\t \001(\rB\005\252\001\002\010\003\022\"\n\trela" + + "yData\030\n \003(\0132\017.oslp.RelayData\"F\n\tRelayDat" + + "a\022\024\n\005index\030\001 \001(\014B\005\252\001\002\010\003\022#\n\024totalLighting" + + "Minutes\030\002 \001(\rB\005\252\001\002\010\003*\313\001\n\017NotificationBit" + + "\022\034\n\030NOTIFICATION_UNSPECIFIED\020\000\022\017\n\013DIAG_E" + + "VENTS\020\001\022\024\n\020HARDWARE_FAILURE\020\002\022\020\n\014LIGHT_E" + + "VENTS\020\004\022\021\n\rTARIFF_EVENTS\020\010\022\022\n\016MONITOR_EV" + + "ENTS\020\020\022\023\n\017FIRMWARE_EVENTS\020 \022\017\n\013COMM_EVEN" + + "TS\020@\022\024\n\017SECURITY_EVENTS\020\200\001*\210\t\n\005Event\022\027\n\023" + + "DIAG_EVENTS_GENERAL\020\000\022$\n DIAG_EVENTS_UNK" + + "NOWN_MESSAGE_TYPE\020\001\022\033\n\026HARDWARE_FAILURE_" + + "RELAY\020\350\007\022\'\n\"HARDWARE_FAILURE_FLASH_WRITE" + + "_ERROR\020\351\007\022*\n%HARDWARE_FAILURE_FLASH_MEMO" + + "RY_CORRUPT\020\352\007\022!\n\034HARDWARE_FAILURE_RTC_NO" + + "T_SET\020\353\007\022\032\n\025LIGHT_EVENTS_LIGHT_ON\020\320\017\022\033\n\026" + + "LIGHT_EVENTS_LIGHT_OFF\020\321\017\022%\n LIGHT_FAILU" + + "RE_DALI_COMMUNICATION\020\304\023\022\032\n\025LIGHT_FAILUR" + + "E_BALLAST\020\305\023\022(\n#LIGHT_FAILURE_TARIFF_SWI" + + "TCH_ATTEMPT\020\306\023\022\034\n\027TARIFF_EVENTS_TARIFF_O" + + "N\020\270\027\022\035\n\030TARIFF_EVENTS_TARIFF_OFF\020\271\027\022$\n\037M" + + "ONITOR_EVENTS_LONG_BUFFER_FULL\020\240\037\022%\n MON" + + "ITOR_FAILURE_P1_COMMUNICATION\020\224#\022\033\n\026MONI" + + "TOR_SHORT_DETECTED\020\370#\022\033\n\026MONITOR_SHORT_R" + + "ESOLVED\020\371#\022\030\n\023MONITOR_DOOR_OPENED\020\334$\022\030\n\023" + + "MONITOR_DOOR_CLOSED\020\335$\022!\n\034MONITOR_EVENTS" + + "_TEST_RELAY_ON\020\336$\022\"\n\035MONITOR_EVENTS_TEST" + + "_RELAY_OFF\020\337$\022!\n\034MONITOR_EVENTS_LOSS_OF_" + + "POWER\020\300%\022\036\n\031MONITOR_EVENTS_LOCAL_MODE\020\244&" + + "\022\037\n\032MONITOR_EVENTS_REMOTE_MODE\020\245&\022\037\n\032FIR" + + "MWARE_EVENTS_ACTIVATING\020\210\'\022&\n!FIRMWARE_E" + + "VENTS_DOWNLOAD_NOTFOUND\020\375*\022$\n\037FIRMWARE_E" + + "VENTS_DOWNLOAD_FAILED\020\376*\022*\n%FIRMWARE_EVE" + + "NTS_CONFIGURATION_CHANGED\020\377*\022$\n\037COMM_EVE" + + "NTS_ALTERNATIVE_CHANNEL\020\360.\022\"\n\035COMM_EVENT" + + "S_RECOVERED_CHANNEL\020\361.\022$\n\037SECURITY_EVENT" + + "S_OUT_OF_SEQUENCE\020\3306\022-\n(SECURITY_EVENTS_" + + "OSLP_VERIFICATION_FAILED\020\3316\022(\n#SECURITY_" + + "EVENTS_INVALID_CERTIFICATE\020\3326*B\n\013Trigger" + + "Type\022\016\n\nTT_NOT_SET\020\000\022\021\n\rLIGHT_TRIGGER\020\001\022" + + "\020\n\014ASTRONOMICAL\020\002*.\n\016TransitionType\022\r\n\tN" + + "IGHT_DAY\020\000\022\r\n\tDAY_NIGHT\020\001*\262\001\n\007Weekday\022\027\n" + + "\023WEEKDAY_UNSPECIFIED\020\000\022\n\n\006MONDAY\020\001\022\013\n\007TU" + + "ESDAY\020\002\022\r\n\tWEDNESDAY\020\003\022\014\n\010THURSDAY\020\004\022\n\n\006" + + "FRIDAY\020\005\022\014\n\010SATURDAY\020\006\022\n\n\006SUNDAY\020\007\022\013\n\007WE" + + "EKDAY\020\010\022\013\n\007WEEKEND\020\t\022\017\n\013ABSOLUTEDAY\020\n\022\007\n" + + "\003ALL\020\013*K\n\nActionTime\022\022\n\016AT_UNSPECIFIED\020\000" + + "\022\020\n\014ABSOLUTETIME\020\001\022\013\n\007SUNRISE\020\002\022\n\n\006SUNSE" + + "T\020\003* \n\nDeviceType\022\010\n\004PSLD\020\000\022\010\n\004SSLD\020\001*+\n" + + "\006Status\022\006\n\002OK\020\000\022\013\n\007FAILURE\020\001\022\014\n\010REJECTED" + + "\020\002*b\n\tLightType\022\016\n\nLT_NOT_SET\020\000\022\t\n\005RELAY" + + "\020\001\022\023\n\017ONE_TO_TEN_VOLT\020\002\022\033\n\027ONE_TO_TEN_VO" + + "LT_REVERSE\020\003\022\010\n\004DALI\020\004*2\n\tRelayType\022\016\n\nR" + + "T_NOT_SET\020\000\022\t\n\005LIGHT\020\001\022\n\n\006TARIFF\020\002*7\n\tMe" + + "terType\022\016\n\nMT_NOT_SET\020\000\022\006\n\002P1\020\001\022\t\n\005PULSE" + + "\020\002\022\007\n\003AUX\020\003*>\n\010LinkType\022\020\n\014LINK_NOT_SET\020" + + "\000\022\010\n\004GPRS\020\001\022\010\n\004CDMA\020\002\022\014\n\010ETHERNET\020\003*@\n\024L" + + "ongTermIntervalType\022\022\n\016LT_INT_NOT_SET\020\000\022" + + "\010\n\004DAYS\020\001\022\n\n\006MONTHS\020\002*&\n\017HistoryTermType" + + "\022\t\n\005Short\020\000\022\010\n\004Long\020\001B \n\036org.opensmartgr" + + "idplatform.oslpb\010editionsp\350\007" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_oslp_Message_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_oslp_Message_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_Message_descriptor, + new java.lang.String[] { "RegisterDeviceRequest", "RegisterDeviceResponse", "StartSelfTestRequest", "StartSelfTestResponse", "StopSelfTestRequest", "StopSelfTestResponse", "UpdateFirmwareRequest", "UpdateFirmwareResponse", "SetLightRequest", "SetLightResponse", "GetStatusRequest", "GetStatusResponse", "ResumeScheduleRequest", "ResumeScheduleResponse", "SetEventNotificationsRequest", "SetEventNotificationsResponse", "EventNotificationRequest", "EventNotificationResponse", "GetFirmwareVersionRequest", "GetFirmwareVersionResponse", "SetScheduleRequest", "SetScheduleResponse", "SetConfigurationRequest", "SetConfigurationResponse", "GetPowerUsageHistoryRequest", "GetPowerUsageHistoryResponse", "GetActualPowerUsageRequest", "GetActualPowerUsageResponse", "SetRebootRequest", "SetRebootResponse", "SetTransitionRequest", "SetTransitionResponse", "GetConfigurationRequest", "GetConfigurationResponse", "ConfirmRegisterDeviceRequest", "ConfirmRegisterDeviceResponse", "UpdateDeviceSslCertificationRequest", "UpdateDeviceSslCertificationResponse", "SetDeviceVerificationKeyRequest", "SetDeviceVerificationKeyResponse", "SwitchFirmwareRequest", "SwitchFirmwareResponse", "SwitchConfigurationRequest", "SwitchConfigurationResponse", }); + internal_static_oslp_RegisterDeviceRequest_descriptor = getDescriptor().getMessageTypes().get(1); - internal_static_oslp_RegisterDeviceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_RegisterDeviceRequest_descriptor, - new java.lang.String[] { - "DeviceIdentification", - "IpAddress", - "DeviceType", - "HasSchedule", - "RandomDevice", - }, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.class, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceRequest.Builder.class); - internal_static_oslp_RegisterDeviceResponse_descriptor = + internal_static_oslp_RegisterDeviceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_RegisterDeviceRequest_descriptor, + new java.lang.String[] { "DeviceIdentification", "IpAddress", "DeviceType", "HasSchedule", "RandomDevice", }); + internal_static_oslp_RegisterDeviceResponse_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_oslp_RegisterDeviceResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_RegisterDeviceResponse_descriptor, - new java.lang.String[] { - "Status", "CurrentTime", "RandomDevice", "RandomPlatform", "LocationInfo", - }, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.class, - org.opensmartgridplatform.oslp.Oslp.RegisterDeviceResponse.Builder.class); - internal_static_oslp_StartSelfTestRequest_descriptor = + internal_static_oslp_RegisterDeviceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_RegisterDeviceResponse_descriptor, + new java.lang.String[] { "Status", "CurrentTime", "RandomDevice", "RandomPlatform", "LocationInfo", }); + internal_static_oslp_StartSelfTestRequest_descriptor = getDescriptor().getMessageTypes().get(3); - internal_static_oslp_StartSelfTestRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_StartSelfTestRequest_descriptor, - new java.lang.String[] { - "Present", - }, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.class, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestRequest.Builder.class); - internal_static_oslp_StartSelfTestResponse_descriptor = + internal_static_oslp_StartSelfTestRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_StartSelfTestRequest_descriptor, + new java.lang.String[] { "Present", }); + internal_static_oslp_StartSelfTestResponse_descriptor = getDescriptor().getMessageTypes().get(4); - internal_static_oslp_StartSelfTestResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_StartSelfTestResponse_descriptor, - new java.lang.String[] { - "Status", - }, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.class, - org.opensmartgridplatform.oslp.Oslp.StartSelfTestResponse.Builder.class); - internal_static_oslp_StopSelfTestRequest_descriptor = + internal_static_oslp_StartSelfTestResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_StartSelfTestResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_oslp_StopSelfTestRequest_descriptor = getDescriptor().getMessageTypes().get(5); - internal_static_oslp_StopSelfTestRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_StopSelfTestRequest_descriptor, - new java.lang.String[] { - "Present", - }, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.class, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestRequest.Builder.class); - internal_static_oslp_StopSelfTestResponse_descriptor = + internal_static_oslp_StopSelfTestRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_StopSelfTestRequest_descriptor, + new java.lang.String[] { "Present", }); + internal_static_oslp_StopSelfTestResponse_descriptor = getDescriptor().getMessageTypes().get(6); - internal_static_oslp_StopSelfTestResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_StopSelfTestResponse_descriptor, - new java.lang.String[] { - "Status", "SelfTestResult", - }, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.class, - org.opensmartgridplatform.oslp.Oslp.StopSelfTestResponse.Builder.class); - internal_static_oslp_GetFirmwareVersionRequest_descriptor = + internal_static_oslp_StopSelfTestResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_StopSelfTestResponse_descriptor, + new java.lang.String[] { "Status", "SelfTestResult", }); + internal_static_oslp_GetFirmwareVersionRequest_descriptor = getDescriptor().getMessageTypes().get(7); - internal_static_oslp_GetFirmwareVersionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_GetFirmwareVersionRequest_descriptor, - new java.lang.String[] { - "Present", - }, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.class, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionRequest.Builder.class); - internal_static_oslp_GetFirmwareVersionResponse_descriptor = + internal_static_oslp_GetFirmwareVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_GetFirmwareVersionRequest_descriptor, + new java.lang.String[] { "Present", }); + internal_static_oslp_GetFirmwareVersionResponse_descriptor = getDescriptor().getMessageTypes().get(8); - internal_static_oslp_GetFirmwareVersionResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_GetFirmwareVersionResponse_descriptor, - new java.lang.String[] { - "FirmwareVersion", - }, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.class, - org.opensmartgridplatform.oslp.Oslp.GetFirmwareVersionResponse.Builder.class); - internal_static_oslp_UpdateFirmwareRequest_descriptor = + internal_static_oslp_GetFirmwareVersionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_GetFirmwareVersionResponse_descriptor, + new java.lang.String[] { "FirmwareVersion", }); + internal_static_oslp_UpdateFirmwareRequest_descriptor = getDescriptor().getMessageTypes().get(9); - internal_static_oslp_UpdateFirmwareRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_UpdateFirmwareRequest_descriptor, - new java.lang.String[] { - "FirmwareDomain", "FirmwareUrl", - }, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.class, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareRequest.Builder.class); - internal_static_oslp_UpdateFirmwareResponse_descriptor = + internal_static_oslp_UpdateFirmwareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_UpdateFirmwareRequest_descriptor, + new java.lang.String[] { "FirmwareDomain", "FirmwareUrl", }); + internal_static_oslp_UpdateFirmwareResponse_descriptor = getDescriptor().getMessageTypes().get(10); - internal_static_oslp_UpdateFirmwareResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_UpdateFirmwareResponse_descriptor, - new java.lang.String[] { - "Status", - }, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.class, - org.opensmartgridplatform.oslp.Oslp.UpdateFirmwareResponse.Builder.class); - internal_static_oslp_SwitchFirmwareRequest_descriptor = + internal_static_oslp_UpdateFirmwareResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_UpdateFirmwareResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_oslp_SwitchFirmwareRequest_descriptor = getDescriptor().getMessageTypes().get(11); - internal_static_oslp_SwitchFirmwareRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SwitchFirmwareRequest_descriptor, - new java.lang.String[] { - "NewFirmwareVersion", - }, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.class, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareRequest.Builder.class); - internal_static_oslp_SwitchFirmwareResponse_descriptor = + internal_static_oslp_SwitchFirmwareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SwitchFirmwareRequest_descriptor, + new java.lang.String[] { "NewFirmwareVersion", }); + internal_static_oslp_SwitchFirmwareResponse_descriptor = getDescriptor().getMessageTypes().get(12); - internal_static_oslp_SwitchFirmwareResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SwitchFirmwareResponse_descriptor, - new java.lang.String[] { - "Status", - }, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.class, - org.opensmartgridplatform.oslp.Oslp.SwitchFirmwareResponse.Builder.class); - internal_static_oslp_SetLightRequest_descriptor = + internal_static_oslp_SwitchFirmwareResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SwitchFirmwareResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_oslp_SetLightRequest_descriptor = getDescriptor().getMessageTypes().get(13); - internal_static_oslp_SetLightRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SetLightRequest_descriptor, - new java.lang.String[] { - "Values", - }, - org.opensmartgridplatform.oslp.Oslp.SetLightRequest.class, - org.opensmartgridplatform.oslp.Oslp.SetLightRequest.Builder.class); - internal_static_oslp_SetLightResponse_descriptor = + internal_static_oslp_SetLightRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SetLightRequest_descriptor, + new java.lang.String[] { "Values", }); + internal_static_oslp_SetLightResponse_descriptor = getDescriptor().getMessageTypes().get(14); - internal_static_oslp_SetLightResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SetLightResponse_descriptor, - new java.lang.String[] { - "Status", - }, - org.opensmartgridplatform.oslp.Oslp.SetLightResponse.class, - org.opensmartgridplatform.oslp.Oslp.SetLightResponse.Builder.class); - internal_static_oslp_GetStatusRequest_descriptor = + internal_static_oslp_SetLightResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SetLightResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_oslp_GetStatusRequest_descriptor = getDescriptor().getMessageTypes().get(15); - internal_static_oslp_GetStatusRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_GetStatusRequest_descriptor, - new java.lang.String[] { - "Present", - }, - org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.class, - org.opensmartgridplatform.oslp.Oslp.GetStatusRequest.Builder.class); - internal_static_oslp_GetStatusResponse_descriptor = + internal_static_oslp_GetStatusRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_GetStatusRequest_descriptor, + new java.lang.String[] { "Present", }); + internal_static_oslp_GetStatusResponse_descriptor = getDescriptor().getMessageTypes().get(16); - internal_static_oslp_GetStatusResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_GetStatusResponse_descriptor, - new java.lang.String[] { - "Status", - "Value", - "PreferredLinktype", - "ActualLinktype", - "LightType", - "EventNotificationMask", - "NumberOfOutputs", - "DcOutputVoltageMaximum", - "DcOutputVoltageCurrent", - "MaximumOutputPowerOnDcOutput", - "SerialNumber", - "MacAddress", - "HardwareId", - "InternalFlashMemSize", - "ExternalFlashMemSize", - "LastInternalTestResultCode", - "StartupCounter", - "BootLoaderVersion", - "FirmwareVersion", - "CurrentConfigurationBackUsed", - "Name", - "CurrentTime", - "CurrentIp", - }, - org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.class, - org.opensmartgridplatform.oslp.Oslp.GetStatusResponse.Builder.class); - internal_static_oslp_ResumeScheduleRequest_descriptor = + internal_static_oslp_GetStatusResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_GetStatusResponse_descriptor, + new java.lang.String[] { "Status", "Value", "PreferredLinktype", "ActualLinktype", "LightType", "EventNotificationMask", "NumberOfOutputs", "DcOutputVoltageMaximum", "DcOutputVoltageCurrent", "MaximumOutputPowerOnDcOutput", "SerialNumber", "MacAddress", "HardwareId", "InternalFlashMemSize", "ExternalFlashMemSize", "LastInternalTestResultCode", "StartupCounter", "BootLoaderVersion", "FirmwareVersion", "CurrentConfigurationBackUsed", "Name", "CurrentTime", "CurrentIp", }); + internal_static_oslp_ResumeScheduleRequest_descriptor = getDescriptor().getMessageTypes().get(17); - internal_static_oslp_ResumeScheduleRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_ResumeScheduleRequest_descriptor, - new java.lang.String[] { - "Index", "Immediate", - }, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.class, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleRequest.Builder.class); - internal_static_oslp_ResumeScheduleResponse_descriptor = + internal_static_oslp_ResumeScheduleRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_ResumeScheduleRequest_descriptor, + new java.lang.String[] { "Index", "Immediate", }); + internal_static_oslp_ResumeScheduleResponse_descriptor = getDescriptor().getMessageTypes().get(18); - internal_static_oslp_ResumeScheduleResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_ResumeScheduleResponse_descriptor, - new java.lang.String[] { - "Status", - }, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.class, - org.opensmartgridplatform.oslp.Oslp.ResumeScheduleResponse.Builder.class); - internal_static_oslp_SetRebootRequest_descriptor = + internal_static_oslp_ResumeScheduleResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_ResumeScheduleResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_oslp_SetRebootRequest_descriptor = getDescriptor().getMessageTypes().get(19); - internal_static_oslp_SetRebootRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SetRebootRequest_descriptor, - new java.lang.String[] { - "Present", - }, - org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.class, - org.opensmartgridplatform.oslp.Oslp.SetRebootRequest.Builder.class); - internal_static_oslp_SetRebootResponse_descriptor = + internal_static_oslp_SetRebootRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SetRebootRequest_descriptor, + new java.lang.String[] { "Present", }); + internal_static_oslp_SetRebootResponse_descriptor = getDescriptor().getMessageTypes().get(20); - internal_static_oslp_SetRebootResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SetRebootResponse_descriptor, - new java.lang.String[] { - "Status", - }, - org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.class, - org.opensmartgridplatform.oslp.Oslp.SetRebootResponse.Builder.class); - internal_static_oslp_SetTransitionRequest_descriptor = + internal_static_oslp_SetRebootResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SetRebootResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_oslp_SetTransitionRequest_descriptor = getDescriptor().getMessageTypes().get(21); - internal_static_oslp_SetTransitionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SetTransitionRequest_descriptor, - new java.lang.String[] { - "TransitionType", "Time", - }, - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.class, - org.opensmartgridplatform.oslp.Oslp.SetTransitionRequest.Builder.class); - internal_static_oslp_SetTransitionResponse_descriptor = + internal_static_oslp_SetTransitionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SetTransitionRequest_descriptor, + new java.lang.String[] { "TransitionType", "Time", }); + internal_static_oslp_SetTransitionResponse_descriptor = getDescriptor().getMessageTypes().get(22); - internal_static_oslp_SetTransitionResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SetTransitionResponse_descriptor, - new java.lang.String[] { - "Status", - }, - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.class, - org.opensmartgridplatform.oslp.Oslp.SetTransitionResponse.Builder.class); - internal_static_oslp_SetEventNotificationsRequest_descriptor = + internal_static_oslp_SetTransitionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SetTransitionResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_oslp_SetEventNotificationsRequest_descriptor = getDescriptor().getMessageTypes().get(23); - internal_static_oslp_SetEventNotificationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SetEventNotificationsRequest_descriptor, - new java.lang.String[] { - "NotificationMask", - }, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.class, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsRequest.Builder.class); - internal_static_oslp_SetEventNotificationsResponse_descriptor = + internal_static_oslp_SetEventNotificationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SetEventNotificationsRequest_descriptor, + new java.lang.String[] { "NotificationMask", }); + internal_static_oslp_SetEventNotificationsResponse_descriptor = getDescriptor().getMessageTypes().get(24); - internal_static_oslp_SetEventNotificationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SetEventNotificationsResponse_descriptor, - new java.lang.String[] { - "Status", - }, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.class, - org.opensmartgridplatform.oslp.Oslp.SetEventNotificationsResponse.Builder - .class); - internal_static_oslp_EventNotificationRequest_descriptor = + internal_static_oslp_SetEventNotificationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SetEventNotificationsResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_oslp_EventNotificationRequest_descriptor = getDescriptor().getMessageTypes().get(25); - internal_static_oslp_EventNotificationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_EventNotificationRequest_descriptor, - new java.lang.String[] { - "Notifications", - }, - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.class, - org.opensmartgridplatform.oslp.Oslp.EventNotificationRequest.Builder.class); - internal_static_oslp_EventNotificationResponse_descriptor = + internal_static_oslp_EventNotificationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_EventNotificationRequest_descriptor, + new java.lang.String[] { "Notifications", }); + internal_static_oslp_EventNotificationResponse_descriptor = getDescriptor().getMessageTypes().get(26); - internal_static_oslp_EventNotificationResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_EventNotificationResponse_descriptor, - new java.lang.String[] { - "Status", - }, - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.class, - org.opensmartgridplatform.oslp.Oslp.EventNotificationResponse.Builder.class); - internal_static_oslp_SetScheduleRequest_descriptor = + internal_static_oslp_EventNotificationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_EventNotificationResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_oslp_SetScheduleRequest_descriptor = getDescriptor().getMessageTypes().get(27); - internal_static_oslp_SetScheduleRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SetScheduleRequest_descriptor, - new java.lang.String[] { - "Schedules", "PageInfo", "ScheduleType", - }, - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.class, - org.opensmartgridplatform.oslp.Oslp.SetScheduleRequest.Builder.class); - internal_static_oslp_SetScheduleResponse_descriptor = + internal_static_oslp_SetScheduleRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SetScheduleRequest_descriptor, + new java.lang.String[] { "Schedules", "PageInfo", "ScheduleType", }); + internal_static_oslp_SetScheduleResponse_descriptor = getDescriptor().getMessageTypes().get(28); - internal_static_oslp_SetScheduleResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SetScheduleResponse_descriptor, - new java.lang.String[] { - "Status", - }, - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.class, - org.opensmartgridplatform.oslp.Oslp.SetScheduleResponse.Builder.class); - internal_static_oslp_SetConfigurationRequest_descriptor = + internal_static_oslp_SetScheduleResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SetScheduleResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_oslp_SetConfigurationRequest_descriptor = getDescriptor().getMessageTypes().get(29); - internal_static_oslp_SetConfigurationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SetConfigurationRequest_descriptor, - new java.lang.String[] { - "LightType", - "DaliConfiguration", - "RelayConfiguration", - "ShortTermHistoryIntervalMinutes", - "PreferredLinkType", - "MeterType", - "LongTermHistoryInterval", - "LongTermHistoryIntervalType", - "TimeSyncFrequency", - "DeviceFixIpValue", - "NetMask", - "GateWay", - "IsDhcpEnabled", - "CommunicationTimeout", - "CommunicationNumberOfRetries", - "CommunicationPauseTimeBetweenConnectionTrials", - "OspgIpAddress", - "OsgpPortNumber", - "IsTestButtonEnabled", - "IsAutomaticSummerTimingEnabled", - "AstroGateSunRiseOffset", - "AstroGateSunSetOffset", - "SwitchingDelay", - "RelayLinking", - "RelayRefreshing", - "SummerTimeDetails", - "WinterTimeDetails", - }, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.class, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationRequest.Builder.class); - internal_static_oslp_SetConfigurationResponse_descriptor = + internal_static_oslp_SetConfigurationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SetConfigurationRequest_descriptor, + new java.lang.String[] { "LightType", "DaliConfiguration", "RelayConfiguration", "ShortTermHistoryIntervalMinutes", "PreferredLinkType", "MeterType", "LongTermHistoryInterval", "LongTermHistoryIntervalType", "TimeSyncFrequency", "DeviceFixIpValue", "NetMask", "GateWay", "IsDhcpEnabled", "CommunicationTimeout", "CommunicationNumberOfRetries", "CommunicationPauseTimeBetweenConnectionTrials", "OspgIpAddress", "OsgpPortNumber", "IsTestButtonEnabled", "IsAutomaticSummerTimingEnabled", "AstroGateSunRiseOffset", "AstroGateSunSetOffset", "SwitchingDelay", "RelayLinking", "RelayRefreshing", "SummerTimeDetails", "WinterTimeDetails", }); + internal_static_oslp_SetConfigurationResponse_descriptor = getDescriptor().getMessageTypes().get(30); - internal_static_oslp_SetConfigurationResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SetConfigurationResponse_descriptor, - new java.lang.String[] { - "Status", - }, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.class, - org.opensmartgridplatform.oslp.Oslp.SetConfigurationResponse.Builder.class); - internal_static_oslp_GetConfigurationRequest_descriptor = + internal_static_oslp_SetConfigurationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SetConfigurationResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_oslp_GetConfigurationRequest_descriptor = getDescriptor().getMessageTypes().get(31); - internal_static_oslp_GetConfigurationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_GetConfigurationRequest_descriptor, - new java.lang.String[] { - "Present", - }, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.class, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationRequest.Builder.class); - internal_static_oslp_GetConfigurationResponse_descriptor = + internal_static_oslp_GetConfigurationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_GetConfigurationRequest_descriptor, + new java.lang.String[] { "Present", }); + internal_static_oslp_GetConfigurationResponse_descriptor = getDescriptor().getMessageTypes().get(32); - internal_static_oslp_GetConfigurationResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_GetConfigurationResponse_descriptor, - new java.lang.String[] { - "Status", - "LightType", - "DaliConfiguration", - "RelayConfiguration", - "ShortTermHistoryIntervalMinutes", - "PreferredLinkType", - "MeterType", - "LongTermHistoryInterval", - "LongTermHistoryIntervalType", - "TimeSyncFrequency", - "DeviceFixIpValue", - "NetMask", - "GateWay", - "IsDhcpEnabled", - "CommunicationTimeout", - "CommunicationNumberOfRetries", - "CommunicationPauseTimeBetweenConnectionTrials", - "OspgIpAddress", - "OsgpPortNumber", - "IsTestButtonEnabled", - "IsAutomaticSummerTimingEnabled", - "AstroGateSunRiseOffset", - "AstroGateSunSetOffset", - "SwitchingDelay", - "RelayLinking", - "RelayRefreshing", - "SummerTimeDetails", - "WinterTimeDetails", - }, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.class, - org.opensmartgridplatform.oslp.Oslp.GetConfigurationResponse.Builder.class); - internal_static_oslp_SwitchConfigurationRequest_descriptor = + internal_static_oslp_GetConfigurationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_GetConfigurationResponse_descriptor, + new java.lang.String[] { "Status", "LightType", "DaliConfiguration", "RelayConfiguration", "ShortTermHistoryIntervalMinutes", "PreferredLinkType", "MeterType", "LongTermHistoryInterval", "LongTermHistoryIntervalType", "TimeSyncFrequency", "DeviceFixIpValue", "NetMask", "GateWay", "IsDhcpEnabled", "CommunicationTimeout", "CommunicationNumberOfRetries", "CommunicationPauseTimeBetweenConnectionTrials", "OspgIpAddress", "OsgpPortNumber", "IsTestButtonEnabled", "IsAutomaticSummerTimingEnabled", "AstroGateSunRiseOffset", "AstroGateSunSetOffset", "SwitchingDelay", "RelayLinking", "RelayRefreshing", "SummerTimeDetails", "WinterTimeDetails", }); + internal_static_oslp_SwitchConfigurationRequest_descriptor = getDescriptor().getMessageTypes().get(33); - internal_static_oslp_SwitchConfigurationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SwitchConfigurationRequest_descriptor, - new java.lang.String[] { - "NewConfigurationSet", - }, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.class, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationRequest.Builder.class); - internal_static_oslp_SwitchConfigurationResponse_descriptor = + internal_static_oslp_SwitchConfigurationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SwitchConfigurationRequest_descriptor, + new java.lang.String[] { "NewConfigurationSet", }); + internal_static_oslp_SwitchConfigurationResponse_descriptor = getDescriptor().getMessageTypes().get(34); - internal_static_oslp_SwitchConfigurationResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SwitchConfigurationResponse_descriptor, - new java.lang.String[] { - "Status", - }, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.class, - org.opensmartgridplatform.oslp.Oslp.SwitchConfigurationResponse.Builder.class); - internal_static_oslp_ConfirmRegisterDeviceRequest_descriptor = + internal_static_oslp_SwitchConfigurationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SwitchConfigurationResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_oslp_ConfirmRegisterDeviceRequest_descriptor = getDescriptor().getMessageTypes().get(35); - internal_static_oslp_ConfirmRegisterDeviceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_ConfirmRegisterDeviceRequest_descriptor, - new java.lang.String[] { - "RandomDevice", "RandomPlatform", - }, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.class, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceRequest.Builder.class); - internal_static_oslp_ConfirmRegisterDeviceResponse_descriptor = + internal_static_oslp_ConfirmRegisterDeviceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_ConfirmRegisterDeviceRequest_descriptor, + new java.lang.String[] { "RandomDevice", "RandomPlatform", }); + internal_static_oslp_ConfirmRegisterDeviceResponse_descriptor = getDescriptor().getMessageTypes().get(36); - internal_static_oslp_ConfirmRegisterDeviceResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_ConfirmRegisterDeviceResponse_descriptor, - new java.lang.String[] { - "Status", "RandomDevice", "RandomPlatform", "SequenceWindow", - }, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.class, - org.opensmartgridplatform.oslp.Oslp.ConfirmRegisterDeviceResponse.Builder - .class); - internal_static_oslp_GetPowerUsageHistoryRequest_descriptor = + internal_static_oslp_ConfirmRegisterDeviceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_ConfirmRegisterDeviceResponse_descriptor, + new java.lang.String[] { "Status", "RandomDevice", "RandomPlatform", "SequenceWindow", }); + internal_static_oslp_GetPowerUsageHistoryRequest_descriptor = getDescriptor().getMessageTypes().get(37); - internal_static_oslp_GetPowerUsageHistoryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_GetPowerUsageHistoryRequest_descriptor, - new java.lang.String[] { - "TimePeriod", "Page", "TermType", - }, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.class, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryRequest.Builder.class); - internal_static_oslp_GetPowerUsageHistoryResponse_descriptor = + internal_static_oslp_GetPowerUsageHistoryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_GetPowerUsageHistoryRequest_descriptor, + new java.lang.String[] { "TimePeriod", "Page", "TermType", }); + internal_static_oslp_GetPowerUsageHistoryResponse_descriptor = getDescriptor().getMessageTypes().get(38); - internal_static_oslp_GetPowerUsageHistoryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_GetPowerUsageHistoryResponse_descriptor, - new java.lang.String[] { - "Status", "PowerUsageData", "PageInfo", - }, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.class, - org.opensmartgridplatform.oslp.Oslp.GetPowerUsageHistoryResponse.Builder.class); - internal_static_oslp_GetActualPowerUsageRequest_descriptor = + internal_static_oslp_GetPowerUsageHistoryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_GetPowerUsageHistoryResponse_descriptor, + new java.lang.String[] { "Status", "PowerUsageData", "PageInfo", }); + internal_static_oslp_GetActualPowerUsageRequest_descriptor = getDescriptor().getMessageTypes().get(39); - internal_static_oslp_GetActualPowerUsageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_GetActualPowerUsageRequest_descriptor, - new java.lang.String[] { - "Present", - }, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.class, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageRequest.Builder.class); - internal_static_oslp_GetActualPowerUsageResponse_descriptor = + internal_static_oslp_GetActualPowerUsageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_GetActualPowerUsageRequest_descriptor, + new java.lang.String[] { "Present", }); + internal_static_oslp_GetActualPowerUsageResponse_descriptor = getDescriptor().getMessageTypes().get(40); - internal_static_oslp_GetActualPowerUsageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_GetActualPowerUsageResponse_descriptor, - new java.lang.String[] { - "Status", "PowerUsageData", - }, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.class, - org.opensmartgridplatform.oslp.Oslp.GetActualPowerUsageResponse.Builder.class); - internal_static_oslp_UpdateDeviceSslCertificationRequest_descriptor = + internal_static_oslp_GetActualPowerUsageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_GetActualPowerUsageResponse_descriptor, + new java.lang.String[] { "Status", "PowerUsageData", }); + internal_static_oslp_UpdateDeviceSslCertificationRequest_descriptor = getDescriptor().getMessageTypes().get(41); - internal_static_oslp_UpdateDeviceSslCertificationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_UpdateDeviceSslCertificationRequest_descriptor, - new java.lang.String[] { - "CertificateDomain", "CertificateUrl", - }, - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.class, - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationRequest.Builder - .class); - internal_static_oslp_UpdateDeviceSslCertificationResponse_descriptor = + internal_static_oslp_UpdateDeviceSslCertificationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_UpdateDeviceSslCertificationRequest_descriptor, + new java.lang.String[] { "CertificateDomain", "CertificateUrl", }); + internal_static_oslp_UpdateDeviceSslCertificationResponse_descriptor = getDescriptor().getMessageTypes().get(42); - internal_static_oslp_UpdateDeviceSslCertificationResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_UpdateDeviceSslCertificationResponse_descriptor, - new java.lang.String[] { - "Status", - }, - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.class, - org.opensmartgridplatform.oslp.Oslp.UpdateDeviceSslCertificationResponse.Builder - .class); - internal_static_oslp_SetDeviceVerificationKeyRequest_descriptor = + internal_static_oslp_UpdateDeviceSslCertificationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_UpdateDeviceSslCertificationResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_oslp_SetDeviceVerificationKeyRequest_descriptor = getDescriptor().getMessageTypes().get(43); - internal_static_oslp_SetDeviceVerificationKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SetDeviceVerificationKeyRequest_descriptor, - new java.lang.String[] { - "CertificateChunk", - }, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.class, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyRequest.Builder - .class); - internal_static_oslp_SetDeviceVerificationKeyResponse_descriptor = + internal_static_oslp_SetDeviceVerificationKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SetDeviceVerificationKeyRequest_descriptor, + new java.lang.String[] { "CertificateChunk", }); + internal_static_oslp_SetDeviceVerificationKeyResponse_descriptor = getDescriptor().getMessageTypes().get(44); - internal_static_oslp_SetDeviceVerificationKeyResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SetDeviceVerificationKeyResponse_descriptor, - new java.lang.String[] { - "Status", - }, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.class, - org.opensmartgridplatform.oslp.Oslp.SetDeviceVerificationKeyResponse.Builder - .class); - internal_static_oslp_LocationInfo_descriptor = + internal_static_oslp_SetDeviceVerificationKeyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SetDeviceVerificationKeyResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_oslp_LocationInfo_descriptor = getDescriptor().getMessageTypes().get(45); - internal_static_oslp_LocationInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_LocationInfo_descriptor, - new java.lang.String[] { - "TimeOffset", "Latitude", "Longitude", - }, - org.opensmartgridplatform.oslp.Oslp.LocationInfo.class, - org.opensmartgridplatform.oslp.Oslp.LocationInfo.Builder.class); - internal_static_oslp_LightValue_descriptor = getDescriptor().getMessageTypes().get(46); - internal_static_oslp_LightValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_LightValue_descriptor, - new java.lang.String[] { - "Index", "On", "DimValue", - }, - org.opensmartgridplatform.oslp.Oslp.LightValue.class, - org.opensmartgridplatform.oslp.Oslp.LightValue.Builder.class); - internal_static_oslp_EventNotification_descriptor = + internal_static_oslp_LocationInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_LocationInfo_descriptor, + new java.lang.String[] { "TimeOffset", "Latitude", "Longitude", }); + internal_static_oslp_LightValue_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_oslp_LightValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_LightValue_descriptor, + new java.lang.String[] { "Index", "On", "DimValue", }); + internal_static_oslp_EventNotification_descriptor = getDescriptor().getMessageTypes().get(47); - internal_static_oslp_EventNotification_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_EventNotification_descriptor, - new java.lang.String[] { - "Event", "Index", "Description", "Timestamp", - }, - org.opensmartgridplatform.oslp.Oslp.EventNotification.class, - org.opensmartgridplatform.oslp.Oslp.EventNotification.Builder.class); - internal_static_oslp_Schedule_descriptor = getDescriptor().getMessageTypes().get(48); - internal_static_oslp_Schedule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_Schedule_descriptor, - new java.lang.String[] { - "Weekday", - "StartDay", - "EndDay", - "ActionTime", - "Time", - "Window", - "Value", - "TriggerType", - "MinimumLightsOn", - "Index", - "IsEnabled", - }, - org.opensmartgridplatform.oslp.Oslp.Schedule.class, - org.opensmartgridplatform.oslp.Oslp.Schedule.Builder.class); - internal_static_oslp_Window_descriptor = getDescriptor().getMessageTypes().get(49); - internal_static_oslp_Window_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_Window_descriptor, - new java.lang.String[] { - "MinutesBefore", "MinutesAfter", - }, - org.opensmartgridplatform.oslp.Oslp.Window.class, - org.opensmartgridplatform.oslp.Oslp.Window.Builder.class); - internal_static_oslp_DaliConfiguration_descriptor = + internal_static_oslp_EventNotification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_EventNotification_descriptor, + new java.lang.String[] { "Event", "Index", "Description", "Timestamp", }); + internal_static_oslp_Schedule_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_oslp_Schedule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_Schedule_descriptor, + new java.lang.String[] { "Weekday", "StartDay", "EndDay", "ActionTime", "Time", "Window", "Value", "TriggerType", "MinimumLightsOn", "Index", "IsEnabled", }); + internal_static_oslp_Window_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_oslp_Window_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_Window_descriptor, + new java.lang.String[] { "MinutesBefore", "MinutesAfter", }); + internal_static_oslp_DaliConfiguration_descriptor = getDescriptor().getMessageTypes().get(50); - internal_static_oslp_DaliConfiguration_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_DaliConfiguration_descriptor, - new java.lang.String[] { - "NumberOfLights", "AddressMap", - }, - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.class, - org.opensmartgridplatform.oslp.Oslp.DaliConfiguration.Builder.class); - internal_static_oslp_RelayConfiguration_descriptor = + internal_static_oslp_DaliConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_DaliConfiguration_descriptor, + new java.lang.String[] { "NumberOfLights", "AddressMap", }); + internal_static_oslp_RelayConfiguration_descriptor = getDescriptor().getMessageTypes().get(51); - internal_static_oslp_RelayConfiguration_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_RelayConfiguration_descriptor, - new java.lang.String[] { - "AddressMap", - }, - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.class, - org.opensmartgridplatform.oslp.Oslp.RelayConfiguration.Builder.class); - internal_static_oslp_RelayMatrix_descriptor = getDescriptor().getMessageTypes().get(52); - internal_static_oslp_RelayMatrix_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_RelayMatrix_descriptor, - new java.lang.String[] { - "MasterRelayIndex", - "MasterRelayOn", - "IndicesOfControlledRelaysOn", - "IndicesOfControlledRelaysOff", - }, - org.opensmartgridplatform.oslp.Oslp.RelayMatrix.class, - org.opensmartgridplatform.oslp.Oslp.RelayMatrix.Builder.class); - internal_static_oslp_IndexAddressMap_descriptor = + internal_static_oslp_RelayConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_RelayConfiguration_descriptor, + new java.lang.String[] { "AddressMap", }); + internal_static_oslp_RelayMatrix_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_oslp_RelayMatrix_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_RelayMatrix_descriptor, + new java.lang.String[] { "MasterRelayIndex", "MasterRelayOn", "IndicesOfControlledRelaysOn", "IndicesOfControlledRelaysOff", }); + internal_static_oslp_IndexAddressMap_descriptor = getDescriptor().getMessageTypes().get(53); - internal_static_oslp_IndexAddressMap_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_IndexAddressMap_descriptor, - new java.lang.String[] { - "Index", "Address", "RelayType", - }, - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.class, - org.opensmartgridplatform.oslp.Oslp.IndexAddressMap.Builder.class); - internal_static_oslp_PageInfo_descriptor = getDescriptor().getMessageTypes().get(54); - internal_static_oslp_PageInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_PageInfo_descriptor, - new java.lang.String[] { - "CurrentPage", "PageSize", "TotalPages", - }, - org.opensmartgridplatform.oslp.Oslp.PageInfo.class, - org.opensmartgridplatform.oslp.Oslp.PageInfo.Builder.class); - internal_static_oslp_TimePeriod_descriptor = getDescriptor().getMessageTypes().get(55); - internal_static_oslp_TimePeriod_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_TimePeriod_descriptor, - new java.lang.String[] { - "StartTime", "EndTime", - }, - org.opensmartgridplatform.oslp.Oslp.TimePeriod.class, - org.opensmartgridplatform.oslp.Oslp.TimePeriod.Builder.class); - internal_static_oslp_PowerUsageData_descriptor = + internal_static_oslp_IndexAddressMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_IndexAddressMap_descriptor, + new java.lang.String[] { "Index", "Address", "RelayType", }); + internal_static_oslp_PageInfo_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_oslp_PageInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_PageInfo_descriptor, + new java.lang.String[] { "CurrentPage", "PageSize", "TotalPages", }); + internal_static_oslp_TimePeriod_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_oslp_TimePeriod_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_TimePeriod_descriptor, + new java.lang.String[] { "StartTime", "EndTime", }); + internal_static_oslp_PowerUsageData_descriptor = getDescriptor().getMessageTypes().get(56); - internal_static_oslp_PowerUsageData_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_PowerUsageData_descriptor, - new java.lang.String[] { - "RecordTime", - "MeterType", - "TotalConsumedEnergy", - "ActualConsumedPower", - "PsldData", - "SsldData", - }, - org.opensmartgridplatform.oslp.Oslp.PowerUsageData.class, - org.opensmartgridplatform.oslp.Oslp.PowerUsageData.Builder.class); - internal_static_oslp_PsldData_descriptor = getDescriptor().getMessageTypes().get(57); - internal_static_oslp_PsldData_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_PsldData_descriptor, - new java.lang.String[] { - "TotalLightingHours", - }, - org.opensmartgridplatform.oslp.Oslp.PsldData.class, - org.opensmartgridplatform.oslp.Oslp.PsldData.Builder.class); - internal_static_oslp_SsldData_descriptor = getDescriptor().getMessageTypes().get(58); - internal_static_oslp_SsldData_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_SsldData_descriptor, - new java.lang.String[] { - "ActualCurrent1", - "ActualCurrent2", - "ActualCurrent3", - "ActualPower1", - "ActualPower2", - "ActualPower3", - "AveragePowerFactor1", - "AveragePowerFactor2", - "AveragePowerFactor3", - "RelayData", - }, - org.opensmartgridplatform.oslp.Oslp.SsldData.class, - org.opensmartgridplatform.oslp.Oslp.SsldData.Builder.class); - internal_static_oslp_RelayData_descriptor = getDescriptor().getMessageTypes().get(59); - internal_static_oslp_RelayData_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_oslp_RelayData_descriptor, - new java.lang.String[] { - "Index", "TotalLightingMinutes", - }, - org.opensmartgridplatform.oslp.Oslp.RelayData.class, - org.opensmartgridplatform.oslp.Oslp.RelayData.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) + internal_static_oslp_PowerUsageData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_PowerUsageData_descriptor, + new java.lang.String[] { "RecordTime", "MeterType", "TotalConsumedEnergy", "ActualConsumedPower", "PsldData", "SsldData", }); + internal_static_oslp_PsldData_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_oslp_PsldData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_PsldData_descriptor, + new java.lang.String[] { "TotalLightingHours", }); + internal_static_oslp_SsldData_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_oslp_SsldData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_SsldData_descriptor, + new java.lang.String[] { "ActualCurrent1", "ActualCurrent2", "ActualCurrent3", "ActualPower1", "ActualPower2", "ActualPower3", "AveragePowerFactor1", "AveragePowerFactor2", "AveragePowerFactor3", "RelayData", }); + internal_static_oslp_RelayData_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_oslp_RelayData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_oslp_RelayData_descriptor, + new java.lang.String[] { "Index", "TotalLightingMinutes", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/super/pom.xml b/super/pom.xml index 87813346ccf..46337bd6d5e 100644 --- a/super/pom.xml +++ b/super/pom.xml @@ -125,7 +125,7 @@ SPDX-License-Identifier: Apache-2.0 2.3.2 3.4.5 1.13.1 - 2.4.1 + 4.31.1 32.1.2-jre 4.6.0 0.8.12 @@ -1526,17 +1526,17 @@ SPDX-License-Identifier: Apache-2.0 - - com.spotify.fmt - fmt-maven-plugin - - - - check - - - - + + + + + + + + + + +