// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ztp.proto
package ztp;

public final class Ztp {

    private Ztp() {
    }

    public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
    }

    public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
        registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
    }

    /**
     * Protobuf enum {@code ztp.DeviceRoleType}
     */
    public enum DeviceRoleType implements com.google.protobuf.ProtocolMessageEnum {

        /**
         * <code>NONE = 0;</code>
         */
        NONE(0),
        /**
         * <code>DEV_OPS = 1;</code>
         */
        DEV_OPS(1),
        /**
         * <code>DEV_CONF = 2;</code>
         */
        DEV_CONF(2),
        /**
         * <code>PIPELINE_CONF = 3;</code>
         */
        PIPELINE_CONF(3),
        UNRECOGNIZED(-1);

        /**
         * <code>NONE = 0;</code>
         */
        public static final int NONE_VALUE = 0;

        /**
         * <code>DEV_OPS = 1;</code>
         */
        public static final int DEV_OPS_VALUE = 1;

        /**
         * <code>DEV_CONF = 2;</code>
         */
        public static final int DEV_CONF_VALUE = 2;

        /**
         * <code>PIPELINE_CONF = 3;</code>
         */
        public static final int PIPELINE_CONF_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 DeviceRoleType 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 DeviceRoleType forNumber(int value) {
            switch(value) {
                case 0:
                    return NONE;
                case 1:
                    return DEV_OPS;
                case 2:
                    return DEV_CONF;
                case 3:
                    return PIPELINE_CONF;
                default:
                    return null;
            }
        }

        public static com.google.protobuf.Internal.EnumLiteMap<DeviceRoleType> internalGetValueMap() {
            return internalValueMap;
        }

        private static final com.google.protobuf.Internal.EnumLiteMap<DeviceRoleType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<DeviceRoleType>() {

            public DeviceRoleType findValueByNumber(int number) {
                return DeviceRoleType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
            return ztp.Ztp.getDescriptor().getEnumTypes().get(0);
        }

        private static final DeviceRoleType[] VALUES = values();

        public static DeviceRoleType 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 DeviceRoleType(int value) {
            this.value = value;
        }
    }

    /**
     * Protobuf enum {@code ztp.ZtpDeviceState}
     */
    public enum ZtpDeviceState implements com.google.protobuf.ProtocolMessageEnum {

        /**
         * <code>ZTP_DEV_STATE_UNDEFINED = 0;</code>
         */
        ZTP_DEV_STATE_UNDEFINED(0),
        /**
         * <code>ZTP_DEV_STATE_CREATED = 1;</code>
         */
        ZTP_DEV_STATE_CREATED(1),
        /**
         * <code>ZTP_DEV_STATE_UPDATED = 2;</code>
         */
        ZTP_DEV_STATE_UPDATED(2),
        /**
         * <code>ZTP_DEV_STATE_DELETED = 3;</code>
         */
        ZTP_DEV_STATE_DELETED(3),
        UNRECOGNIZED(-1);

        /**
         * <code>ZTP_DEV_STATE_UNDEFINED = 0;</code>
         */
        public static final int ZTP_DEV_STATE_UNDEFINED_VALUE = 0;

        /**
         * <code>ZTP_DEV_STATE_CREATED = 1;</code>
         */
        public static final int ZTP_DEV_STATE_CREATED_VALUE = 1;

        /**
         * <code>ZTP_DEV_STATE_UPDATED = 2;</code>
         */
        public static final int ZTP_DEV_STATE_UPDATED_VALUE = 2;

        /**
         * <code>ZTP_DEV_STATE_DELETED = 3;</code>
         */
        public static final int ZTP_DEV_STATE_DELETED_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 ZtpDeviceState 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 ZtpDeviceState forNumber(int value) {
            switch(value) {
                case 0:
                    return ZTP_DEV_STATE_UNDEFINED;
                case 1:
                    return ZTP_DEV_STATE_CREATED;
                case 2:
                    return ZTP_DEV_STATE_UPDATED;
                case 3:
                    return ZTP_DEV_STATE_DELETED;
                default:
                    return null;
            }
        }

        public static com.google.protobuf.Internal.EnumLiteMap<ZtpDeviceState> internalGetValueMap() {
            return internalValueMap;
        }

        private static final com.google.protobuf.Internal.EnumLiteMap<ZtpDeviceState> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<ZtpDeviceState>() {

            public ZtpDeviceState findValueByNumber(int number) {
                return ZtpDeviceState.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
            return ztp.Ztp.getDescriptor().getEnumTypes().get(1);
        }

        private static final ZtpDeviceState[] VALUES = values();

        public static ZtpDeviceState 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 ZtpDeviceState(int value) {
            this.value = value;
        }
    }

    public interface DeviceRoleIdOrBuilder extends // @@protoc_insertion_point(interface_extends:ztp.DeviceRoleId)
    com.google.protobuf.MessageOrBuilder {

        /**
         * <code>.context.Uuid devRoleId = 1;</code>
         * @return Whether the devRoleId field is set.
         */
        boolean hasDevRoleId();

        /**
         * <code>.context.Uuid devRoleId = 1;</code>
         * @return The devRoleId.
         */
        context.ContextOuterClass.Uuid getDevRoleId();

        /**
         * <code>.context.Uuid devRoleId = 1;</code>
         */
        context.ContextOuterClass.UuidOrBuilder getDevRoleIdOrBuilder();

        /**
         * <code>.context.DeviceId devId = 2;</code>
         * @return Whether the devId field is set.
         */
        boolean hasDevId();

        /**
         * <code>.context.DeviceId devId = 2;</code>
         * @return The devId.
         */
        context.ContextOuterClass.DeviceId getDevId();

        /**
         * <code>.context.DeviceId devId = 2;</code>
         */
        context.ContextOuterClass.DeviceIdOrBuilder getDevIdOrBuilder();
    }

    /**
     * Protobuf type {@code ztp.DeviceRoleId}
     */
    public static final class DeviceRoleId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ztp.DeviceRoleId)
    DeviceRoleIdOrBuilder {

        private static final long serialVersionUID = 0L;

        // Use DeviceRoleId.newBuilder() to construct.
        private DeviceRoleId(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
            super(builder);
        }

        private DeviceRoleId() {
        }

        @java.lang.Override
        @SuppressWarnings({ "unused" })
        protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            return new DeviceRoleId();
        }

        @java.lang.Override
        public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
            return this.unknownFields;
        }

        private DeviceRoleId(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            this();
            if (extensionRegistry == null) {
                throw new java.lang.NullPointerException();
            }
            com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder();
            try {
                boolean done = false;
                while (!done) {
                    int tag = input.readTag();
                    switch(tag) {
                        case 0:
                            done = true;
                            break;
                        case 10:
                            {
                                context.ContextOuterClass.Uuid.Builder subBuilder = null;
                                if (devRoleId_ != null) {
                                    subBuilder = devRoleId_.toBuilder();
                                }
                                devRoleId_ = input.readMessage(context.ContextOuterClass.Uuid.parser(), extensionRegistry);
                                if (subBuilder != null) {
                                    subBuilder.mergeFrom(devRoleId_);
                                    devRoleId_ = subBuilder.buildPartial();
                                }
                                break;
                            }
                        case 18:
                            {
                                context.ContextOuterClass.DeviceId.Builder subBuilder = null;
                                if (devId_ != null) {
                                    subBuilder = devId_.toBuilder();
                                }
                                devId_ = input.readMessage(context.ContextOuterClass.DeviceId.parser(), extensionRegistry);
                                if (subBuilder != null) {
                                    subBuilder.mergeFrom(devId_);
                                    devId_ = subBuilder.buildPartial();
                                }
                                break;
                            }
                        default:
                            {
                                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                                    done = true;
                                }
                                break;
                            }
                    }
                }
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                throw e.setUnfinishedMessage(this);
            } catch (java.io.IOException e) {
                throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
            } finally {
                this.unknownFields = unknownFields.build();
                makeExtensionsImmutable();
            }
        }

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return ztp.Ztp.internal_static_ztp_DeviceRoleId_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
            return ztp.Ztp.internal_static_ztp_DeviceRoleId_fieldAccessorTable.ensureFieldAccessorsInitialized(ztp.Ztp.DeviceRoleId.class, ztp.Ztp.DeviceRoleId.Builder.class);
        }

        public static final int DEVROLEID_FIELD_NUMBER = 1;

        private context.ContextOuterClass.Uuid devRoleId_;

        /**
         * <code>.context.Uuid devRoleId = 1;</code>
         * @return Whether the devRoleId field is set.
         */
        @java.lang.Override
        public boolean hasDevRoleId() {
            return devRoleId_ != null;
        }

        /**
         * <code>.context.Uuid devRoleId = 1;</code>
         * @return The devRoleId.
         */
        @java.lang.Override
        public context.ContextOuterClass.Uuid getDevRoleId() {
            return devRoleId_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : devRoleId_;
        }

        /**
         * <code>.context.Uuid devRoleId = 1;</code>
         */
        @java.lang.Override
        public context.ContextOuterClass.UuidOrBuilder getDevRoleIdOrBuilder() {
            return getDevRoleId();
        }

        public static final int DEVID_FIELD_NUMBER = 2;

        private context.ContextOuterClass.DeviceId devId_;

        /**
         * <code>.context.DeviceId devId = 2;</code>
         * @return Whether the devId field is set.
         */
        @java.lang.Override
        public boolean hasDevId() {
            return devId_ != null;
        }

        /**
         * <code>.context.DeviceId devId = 2;</code>
         * @return The devId.
         */
        @java.lang.Override
        public context.ContextOuterClass.DeviceId getDevId() {
            return devId_ == null ? context.ContextOuterClass.DeviceId.getDefaultInstance() : devId_;
        }

        /**
         * <code>.context.DeviceId devId = 2;</code>
         */
        @java.lang.Override
        public context.ContextOuterClass.DeviceIdOrBuilder getDevIdOrBuilder() {
            return getDevId();
        }

        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 (devRoleId_ != null) {
                output.writeMessage(1, getDevRoleId());
            }
            if (devId_ != null) {
                output.writeMessage(2, getDevId());
            }
            unknownFields.writeTo(output);
        }

        @java.lang.Override
        public int getSerializedSize() {
            int size = memoizedSize;
            if (size != -1)
                return size;
            size = 0;
            if (devRoleId_ != null) {
                size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDevRoleId());
            }
            if (devId_ != null) {
                size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDevId());
            }
            size += unknownFields.getSerializedSize();
            memoizedSize = size;
            return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
            if (obj == this) {
                return true;
            }
            if (!(obj instanceof ztp.Ztp.DeviceRoleId)) {
                return super.equals(obj);
            }
            ztp.Ztp.DeviceRoleId other = (ztp.Ztp.DeviceRoleId) obj;
            if (hasDevRoleId() != other.hasDevRoleId())
                return false;
            if (hasDevRoleId()) {
                if (!getDevRoleId().equals(other.getDevRoleId()))
                    return false;
            }
            if (hasDevId() != other.hasDevId())
                return false;
            if (hasDevId()) {
                if (!getDevId().equals(other.getDevId()))
                    return false;
            }
            if (!unknownFields.equals(other.unknownFields))
                return false;
            return true;
        }

        @java.lang.Override
        public int hashCode() {
            if (memoizedHashCode != 0) {
                return memoizedHashCode;
            }
            int hash = 41;
            hash = (19 * hash) + getDescriptor().hashCode();
            if (hasDevRoleId()) {
                hash = (37 * hash) + DEVROLEID_FIELD_NUMBER;
                hash = (53 * hash) + getDevRoleId().hashCode();
            }
            if (hasDevId()) {
                hash = (37 * hash) + DEVID_FIELD_NUMBER;
                hash = (53 * hash) + getDevId().hashCode();
            }
            hash = (29 * hash) + unknownFields.hashCode();
            memoizedHashCode = hash;
            return hash;
        }

        public static ztp.Ztp.DeviceRoleId parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceRoleId parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleId parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceRoleId parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceRoleId parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleId parseFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceRoleId parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceRoleId parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleId parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceRoleId parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        @java.lang.Override
        public Builder newBuilderForType() {
            return newBuilder();
        }

        public static Builder newBuilder() {
            return DEFAULT_INSTANCE.toBuilder();
        }

        public static Builder newBuilder(ztp.Ztp.DeviceRoleId 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.GeneratedMessageV3.BuilderParent parent) {
            Builder builder = new Builder(parent);
            return builder;
        }

        /**
         * Protobuf type {@code ztp.DeviceRoleId}
         */
        public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ztp.DeviceRoleId)
        ztp.Ztp.DeviceRoleIdOrBuilder {

            public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                return ztp.Ztp.internal_static_ztp_DeviceRoleId_descriptor;
            }

            @java.lang.Override
            protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
                return ztp.Ztp.internal_static_ztp_DeviceRoleId_fieldAccessorTable.ensureFieldAccessorsInitialized(ztp.Ztp.DeviceRoleId.class, ztp.Ztp.DeviceRoleId.Builder.class);
            }

            // Construct using ztp.Ztp.DeviceRoleId.newBuilder()
            private Builder() {
                maybeForceBuilderInitialization();
            }

            private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                super(parent);
                maybeForceBuilderInitialization();
            }

            private void maybeForceBuilderInitialization() {
                if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                }
            }

            @java.lang.Override
            public Builder clear() {
                super.clear();
                if (devRoleIdBuilder_ == null) {
                    devRoleId_ = null;
                } else {
                    devRoleId_ = null;
                    devRoleIdBuilder_ = null;
                }
                if (devIdBuilder_ == null) {
                    devId_ = null;
                } else {
                    devId_ = null;
                    devIdBuilder_ = null;
                }
                return this;
            }

            @java.lang.Override
            public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                return ztp.Ztp.internal_static_ztp_DeviceRoleId_descriptor;
            }

            @java.lang.Override
            public ztp.Ztp.DeviceRoleId getDefaultInstanceForType() {
                return ztp.Ztp.DeviceRoleId.getDefaultInstance();
            }

            @java.lang.Override
            public ztp.Ztp.DeviceRoleId build() {
                ztp.Ztp.DeviceRoleId result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(result);
                }
                return result;
            }

            @java.lang.Override
            public ztp.Ztp.DeviceRoleId buildPartial() {
                ztp.Ztp.DeviceRoleId result = new ztp.Ztp.DeviceRoleId(this);
                if (devRoleIdBuilder_ == null) {
                    result.devRoleId_ = devRoleId_;
                } else {
                    result.devRoleId_ = devRoleIdBuilder_.build();
                }
                if (devIdBuilder_ == null) {
                    result.devId_ = devId_;
                } else {
                    result.devId_ = devIdBuilder_.build();
                }
                onBuilt();
                return result;
            }

            @java.lang.Override
            public Builder clone() {
                return super.clone();
            }

            @java.lang.Override
            public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                return super.setField(field, value);
            }

            @java.lang.Override
            public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                return super.clearField(field);
            }

            @java.lang.Override
            public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                return super.clearOneof(oneof);
            }

            @java.lang.Override
            public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                return super.setRepeatedField(field, index, value);
            }

            @java.lang.Override
            public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                return super.addRepeatedField(field, value);
            }

            @java.lang.Override
            public Builder mergeFrom(com.google.protobuf.Message other) {
                if (other instanceof ztp.Ztp.DeviceRoleId) {
                    return mergeFrom((ztp.Ztp.DeviceRoleId) other);
                } else {
                    super.mergeFrom(other);
                    return this;
                }
            }

            public Builder mergeFrom(ztp.Ztp.DeviceRoleId other) {
                if (other == ztp.Ztp.DeviceRoleId.getDefaultInstance())
                    return this;
                if (other.hasDevRoleId()) {
                    mergeDevRoleId(other.getDevRoleId());
                }
                if (other.hasDevId()) {
                    mergeDevId(other.getDevId());
                }
                this.mergeUnknownFields(other.unknownFields);
                onChanged();
                return this;
            }

            @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 {
                ztp.Ztp.DeviceRoleId parsedMessage = null;
                try {
                    parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                    parsedMessage = (ztp.Ztp.DeviceRoleId) e.getUnfinishedMessage();
                    throw e.unwrapIOException();
                } finally {
                    if (parsedMessage != null) {
                        mergeFrom(parsedMessage);
                    }
                }
                return this;
            }

            private context.ContextOuterClass.Uuid devRoleId_;

            private com.google.protobuf.SingleFieldBuilderV3<context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder> devRoleIdBuilder_;

            /**
             * <code>.context.Uuid devRoleId = 1;</code>
             * @return Whether the devRoleId field is set.
             */
            public boolean hasDevRoleId() {
                return devRoleIdBuilder_ != null || devRoleId_ != null;
            }

            /**
             * <code>.context.Uuid devRoleId = 1;</code>
             * @return The devRoleId.
             */
            public context.ContextOuterClass.Uuid getDevRoleId() {
                if (devRoleIdBuilder_ == null) {
                    return devRoleId_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : devRoleId_;
                } else {
                    return devRoleIdBuilder_.getMessage();
                }
            }

            /**
             * <code>.context.Uuid devRoleId = 1;</code>
             */
            public Builder setDevRoleId(context.ContextOuterClass.Uuid value) {
                if (devRoleIdBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    devRoleId_ = value;
                    onChanged();
                } else {
                    devRoleIdBuilder_.setMessage(value);
                }
                return this;
            }

            /**
             * <code>.context.Uuid devRoleId = 1;</code>
             */
            public Builder setDevRoleId(context.ContextOuterClass.Uuid.Builder builderForValue) {
                if (devRoleIdBuilder_ == null) {
                    devRoleId_ = builderForValue.build();
                    onChanged();
                } else {
                    devRoleIdBuilder_.setMessage(builderForValue.build());
                }
                return this;
            }

            /**
             * <code>.context.Uuid devRoleId = 1;</code>
             */
            public Builder mergeDevRoleId(context.ContextOuterClass.Uuid value) {
                if (devRoleIdBuilder_ == null) {
                    if (devRoleId_ != null) {
                        devRoleId_ = context.ContextOuterClass.Uuid.newBuilder(devRoleId_).mergeFrom(value).buildPartial();
                    } else {
                        devRoleId_ = value;
                    }
                    onChanged();
                } else {
                    devRoleIdBuilder_.mergeFrom(value);
                }
                return this;
            }

            /**
             * <code>.context.Uuid devRoleId = 1;</code>
             */
            public Builder clearDevRoleId() {
                if (devRoleIdBuilder_ == null) {
                    devRoleId_ = null;
                    onChanged();
                } else {
                    devRoleId_ = null;
                    devRoleIdBuilder_ = null;
                }
                return this;
            }

            /**
             * <code>.context.Uuid devRoleId = 1;</code>
             */
            public context.ContextOuterClass.Uuid.Builder getDevRoleIdBuilder() {
                onChanged();
                return getDevRoleIdFieldBuilder().getBuilder();
            }

            /**
             * <code>.context.Uuid devRoleId = 1;</code>
             */
            public context.ContextOuterClass.UuidOrBuilder getDevRoleIdOrBuilder() {
                if (devRoleIdBuilder_ != null) {
                    return devRoleIdBuilder_.getMessageOrBuilder();
                } else {
                    return devRoleId_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : devRoleId_;
                }
            }

            /**
             * <code>.context.Uuid devRoleId = 1;</code>
             */
            private com.google.protobuf.SingleFieldBuilderV3<context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder> getDevRoleIdFieldBuilder() {
                if (devRoleIdBuilder_ == null) {
                    devRoleIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder>(getDevRoleId(), getParentForChildren(), isClean());
                    devRoleId_ = null;
                }
                return devRoleIdBuilder_;
            }

            private context.ContextOuterClass.DeviceId devId_;

            private com.google.protobuf.SingleFieldBuilderV3<context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder> devIdBuilder_;

            /**
             * <code>.context.DeviceId devId = 2;</code>
             * @return Whether the devId field is set.
             */
            public boolean hasDevId() {
                return devIdBuilder_ != null || devId_ != null;
            }

            /**
             * <code>.context.DeviceId devId = 2;</code>
             * @return The devId.
             */
            public context.ContextOuterClass.DeviceId getDevId() {
                if (devIdBuilder_ == null) {
                    return devId_ == null ? context.ContextOuterClass.DeviceId.getDefaultInstance() : devId_;
                } else {
                    return devIdBuilder_.getMessage();
                }
            }

            /**
             * <code>.context.DeviceId devId = 2;</code>
             */
            public Builder setDevId(context.ContextOuterClass.DeviceId value) {
                if (devIdBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    devId_ = value;
                    onChanged();
                } else {
                    devIdBuilder_.setMessage(value);
                }
                return this;
            }

            /**
             * <code>.context.DeviceId devId = 2;</code>
             */
            public Builder setDevId(context.ContextOuterClass.DeviceId.Builder builderForValue) {
                if (devIdBuilder_ == null) {
                    devId_ = builderForValue.build();
                    onChanged();
                } else {
                    devIdBuilder_.setMessage(builderForValue.build());
                }
                return this;
            }

            /**
             * <code>.context.DeviceId devId = 2;</code>
             */
            public Builder mergeDevId(context.ContextOuterClass.DeviceId value) {
                if (devIdBuilder_ == null) {
                    if (devId_ != null) {
                        devId_ = context.ContextOuterClass.DeviceId.newBuilder(devId_).mergeFrom(value).buildPartial();
                    } else {
                        devId_ = value;
                    }
                    onChanged();
                } else {
                    devIdBuilder_.mergeFrom(value);
                }
                return this;
            }

            /**
             * <code>.context.DeviceId devId = 2;</code>
             */
            public Builder clearDevId() {
                if (devIdBuilder_ == null) {
                    devId_ = null;
                    onChanged();
                } else {
                    devId_ = null;
                    devIdBuilder_ = null;
                }
                return this;
            }

            /**
             * <code>.context.DeviceId devId = 2;</code>
             */
            public context.ContextOuterClass.DeviceId.Builder getDevIdBuilder() {
                onChanged();
                return getDevIdFieldBuilder().getBuilder();
            }

            /**
             * <code>.context.DeviceId devId = 2;</code>
             */
            public context.ContextOuterClass.DeviceIdOrBuilder getDevIdOrBuilder() {
                if (devIdBuilder_ != null) {
                    return devIdBuilder_.getMessageOrBuilder();
                } else {
                    return devId_ == null ? context.ContextOuterClass.DeviceId.getDefaultInstance() : devId_;
                }
            }

            /**
             * <code>.context.DeviceId devId = 2;</code>
             */
            private com.google.protobuf.SingleFieldBuilderV3<context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder> getDevIdFieldBuilder() {
                if (devIdBuilder_ == null) {
                    devIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder>(getDevId(), getParentForChildren(), isClean());
                    devId_ = null;
                }
                return devIdBuilder_;
            }

            @java.lang.Override
            public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.setUnknownFields(unknownFields);
            }

            @java.lang.Override
            public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.mergeUnknownFields(unknownFields);
            }
            // @@protoc_insertion_point(builder_scope:ztp.DeviceRoleId)
        }

        // @@protoc_insertion_point(class_scope:ztp.DeviceRoleId)
        private static final ztp.Ztp.DeviceRoleId DEFAULT_INSTANCE;

        static {
            DEFAULT_INSTANCE = new ztp.Ztp.DeviceRoleId();
        }

        public static ztp.Ztp.DeviceRoleId getDefaultInstance() {
            return DEFAULT_INSTANCE;
        }

        private static final com.google.protobuf.Parser<DeviceRoleId> PARSER = new com.google.protobuf.AbstractParser<DeviceRoleId>() {

            @java.lang.Override
            public DeviceRoleId parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
                return new DeviceRoleId(input, extensionRegistry);
            }
        };

        public static com.google.protobuf.Parser<DeviceRoleId> parser() {
            return PARSER;
        }

        @java.lang.Override
        public com.google.protobuf.Parser<DeviceRoleId> getParserForType() {
            return PARSER;
        }

        @java.lang.Override
        public ztp.Ztp.DeviceRoleId getDefaultInstanceForType() {
            return DEFAULT_INSTANCE;
        }
    }

    public interface DeviceRoleOrBuilder extends // @@protoc_insertion_point(interface_extends:ztp.DeviceRole)
    com.google.protobuf.MessageOrBuilder {

        /**
         * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
         * @return Whether the devRoleId field is set.
         */
        boolean hasDevRoleId();

        /**
         * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
         * @return The devRoleId.
         */
        ztp.Ztp.DeviceRoleId getDevRoleId();

        /**
         * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
         */
        ztp.Ztp.DeviceRoleIdOrBuilder getDevRoleIdOrBuilder();

        /**
         * <code>.ztp.DeviceRoleType devRoleType = 2;</code>
         * @return The enum numeric value on the wire for devRoleType.
         */
        int getDevRoleTypeValue();

        /**
         * <code>.ztp.DeviceRoleType devRoleType = 2;</code>
         * @return The devRoleType.
         */
        ztp.Ztp.DeviceRoleType getDevRoleType();
    }

    /**
     * Protobuf type {@code ztp.DeviceRole}
     */
    public static final class DeviceRole extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ztp.DeviceRole)
    DeviceRoleOrBuilder {

        private static final long serialVersionUID = 0L;

        // Use DeviceRole.newBuilder() to construct.
        private DeviceRole(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
            super(builder);
        }

        private DeviceRole() {
            devRoleType_ = 0;
        }

        @java.lang.Override
        @SuppressWarnings({ "unused" })
        protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            return new DeviceRole();
        }

        @java.lang.Override
        public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
            return this.unknownFields;
        }

        private DeviceRole(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            this();
            if (extensionRegistry == null) {
                throw new java.lang.NullPointerException();
            }
            com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder();
            try {
                boolean done = false;
                while (!done) {
                    int tag = input.readTag();
                    switch(tag) {
                        case 0:
                            done = true;
                            break;
                        case 10:
                            {
                                ztp.Ztp.DeviceRoleId.Builder subBuilder = null;
                                if (devRoleId_ != null) {
                                    subBuilder = devRoleId_.toBuilder();
                                }
                                devRoleId_ = input.readMessage(ztp.Ztp.DeviceRoleId.parser(), extensionRegistry);
                                if (subBuilder != null) {
                                    subBuilder.mergeFrom(devRoleId_);
                                    devRoleId_ = subBuilder.buildPartial();
                                }
                                break;
                            }
                        case 16:
                            {
                                int rawValue = input.readEnum();
                                devRoleType_ = rawValue;
                                break;
                            }
                        default:
                            {
                                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                                    done = true;
                                }
                                break;
                            }
                    }
                }
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                throw e.setUnfinishedMessage(this);
            } catch (java.io.IOException e) {
                throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
            } finally {
                this.unknownFields = unknownFields.build();
                makeExtensionsImmutable();
            }
        }

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return ztp.Ztp.internal_static_ztp_DeviceRole_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
            return ztp.Ztp.internal_static_ztp_DeviceRole_fieldAccessorTable.ensureFieldAccessorsInitialized(ztp.Ztp.DeviceRole.class, ztp.Ztp.DeviceRole.Builder.class);
        }

        public static final int DEVROLEID_FIELD_NUMBER = 1;

        private ztp.Ztp.DeviceRoleId devRoleId_;

        /**
         * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
         * @return Whether the devRoleId field is set.
         */
        @java.lang.Override
        public boolean hasDevRoleId() {
            return devRoleId_ != null;
        }

        /**
         * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
         * @return The devRoleId.
         */
        @java.lang.Override
        public ztp.Ztp.DeviceRoleId getDevRoleId() {
            return devRoleId_ == null ? ztp.Ztp.DeviceRoleId.getDefaultInstance() : devRoleId_;
        }

        /**
         * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
         */
        @java.lang.Override
        public ztp.Ztp.DeviceRoleIdOrBuilder getDevRoleIdOrBuilder() {
            return getDevRoleId();
        }

        public static final int DEVROLETYPE_FIELD_NUMBER = 2;

        private int devRoleType_;

        /**
         * <code>.ztp.DeviceRoleType devRoleType = 2;</code>
         * @return The enum numeric value on the wire for devRoleType.
         */
        @java.lang.Override
        public int getDevRoleTypeValue() {
            return devRoleType_;
        }

        /**
         * <code>.ztp.DeviceRoleType devRoleType = 2;</code>
         * @return The devRoleType.
         */
        @java.lang.Override
        public ztp.Ztp.DeviceRoleType getDevRoleType() {
            @SuppressWarnings("deprecation")
            ztp.Ztp.DeviceRoleType result = ztp.Ztp.DeviceRoleType.valueOf(devRoleType_);
            return result == null ? ztp.Ztp.DeviceRoleType.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;
            memoizedIsInitialized = 1;
            return true;
        }

        @java.lang.Override
        public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            if (devRoleId_ != null) {
                output.writeMessage(1, getDevRoleId());
            }
            if (devRoleType_ != ztp.Ztp.DeviceRoleType.NONE.getNumber()) {
                output.writeEnum(2, devRoleType_);
            }
            unknownFields.writeTo(output);
        }

        @java.lang.Override
        public int getSerializedSize() {
            int size = memoizedSize;
            if (size != -1)
                return size;
            size = 0;
            if (devRoleId_ != null) {
                size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDevRoleId());
            }
            if (devRoleType_ != ztp.Ztp.DeviceRoleType.NONE.getNumber()) {
                size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, devRoleType_);
            }
            size += unknownFields.getSerializedSize();
            memoizedSize = size;
            return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
            if (obj == this) {
                return true;
            }
            if (!(obj instanceof ztp.Ztp.DeviceRole)) {
                return super.equals(obj);
            }
            ztp.Ztp.DeviceRole other = (ztp.Ztp.DeviceRole) obj;
            if (hasDevRoleId() != other.hasDevRoleId())
                return false;
            if (hasDevRoleId()) {
                if (!getDevRoleId().equals(other.getDevRoleId()))
                    return false;
            }
            if (devRoleType_ != other.devRoleType_)
                return false;
            if (!unknownFields.equals(other.unknownFields))
                return false;
            return true;
        }

        @java.lang.Override
        public int hashCode() {
            if (memoizedHashCode != 0) {
                return memoizedHashCode;
            }
            int hash = 41;
            hash = (19 * hash) + getDescriptor().hashCode();
            if (hasDevRoleId()) {
                hash = (37 * hash) + DEVROLEID_FIELD_NUMBER;
                hash = (53 * hash) + getDevRoleId().hashCode();
            }
            hash = (37 * hash) + DEVROLETYPE_FIELD_NUMBER;
            hash = (53 * hash) + devRoleType_;
            hash = (29 * hash) + unknownFields.hashCode();
            memoizedHashCode = hash;
            return hash;
        }

        public static ztp.Ztp.DeviceRole parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceRole parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRole parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceRole parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRole parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceRole parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRole parseFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceRole parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRole parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceRole parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRole parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceRole parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        @java.lang.Override
        public Builder newBuilderForType() {
            return newBuilder();
        }

        public static Builder newBuilder() {
            return DEFAULT_INSTANCE.toBuilder();
        }

        public static Builder newBuilder(ztp.Ztp.DeviceRole 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.GeneratedMessageV3.BuilderParent parent) {
            Builder builder = new Builder(parent);
            return builder;
        }

        /**
         * Protobuf type {@code ztp.DeviceRole}
         */
        public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ztp.DeviceRole)
        ztp.Ztp.DeviceRoleOrBuilder {

            public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                return ztp.Ztp.internal_static_ztp_DeviceRole_descriptor;
            }

            @java.lang.Override
            protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
                return ztp.Ztp.internal_static_ztp_DeviceRole_fieldAccessorTable.ensureFieldAccessorsInitialized(ztp.Ztp.DeviceRole.class, ztp.Ztp.DeviceRole.Builder.class);
            }

            // Construct using ztp.Ztp.DeviceRole.newBuilder()
            private Builder() {
                maybeForceBuilderInitialization();
            }

            private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                super(parent);
                maybeForceBuilderInitialization();
            }

            private void maybeForceBuilderInitialization() {
                if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                }
            }

            @java.lang.Override
            public Builder clear() {
                super.clear();
                if (devRoleIdBuilder_ == null) {
                    devRoleId_ = null;
                } else {
                    devRoleId_ = null;
                    devRoleIdBuilder_ = null;
                }
                devRoleType_ = 0;
                return this;
            }

            @java.lang.Override
            public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                return ztp.Ztp.internal_static_ztp_DeviceRole_descriptor;
            }

            @java.lang.Override
            public ztp.Ztp.DeviceRole getDefaultInstanceForType() {
                return ztp.Ztp.DeviceRole.getDefaultInstance();
            }

            @java.lang.Override
            public ztp.Ztp.DeviceRole build() {
                ztp.Ztp.DeviceRole result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(result);
                }
                return result;
            }

            @java.lang.Override
            public ztp.Ztp.DeviceRole buildPartial() {
                ztp.Ztp.DeviceRole result = new ztp.Ztp.DeviceRole(this);
                if (devRoleIdBuilder_ == null) {
                    result.devRoleId_ = devRoleId_;
                } else {
                    result.devRoleId_ = devRoleIdBuilder_.build();
                }
                result.devRoleType_ = devRoleType_;
                onBuilt();
                return result;
            }

            @java.lang.Override
            public Builder clone() {
                return super.clone();
            }

            @java.lang.Override
            public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                return super.setField(field, value);
            }

            @java.lang.Override
            public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                return super.clearField(field);
            }

            @java.lang.Override
            public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                return super.clearOneof(oneof);
            }

            @java.lang.Override
            public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                return super.setRepeatedField(field, index, value);
            }

            @java.lang.Override
            public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                return super.addRepeatedField(field, value);
            }

            @java.lang.Override
            public Builder mergeFrom(com.google.protobuf.Message other) {
                if (other instanceof ztp.Ztp.DeviceRole) {
                    return mergeFrom((ztp.Ztp.DeviceRole) other);
                } else {
                    super.mergeFrom(other);
                    return this;
                }
            }

            public Builder mergeFrom(ztp.Ztp.DeviceRole other) {
                if (other == ztp.Ztp.DeviceRole.getDefaultInstance())
                    return this;
                if (other.hasDevRoleId()) {
                    mergeDevRoleId(other.getDevRoleId());
                }
                if (other.devRoleType_ != 0) {
                    setDevRoleTypeValue(other.getDevRoleTypeValue());
                }
                this.mergeUnknownFields(other.unknownFields);
                onChanged();
                return this;
            }

            @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 {
                ztp.Ztp.DeviceRole parsedMessage = null;
                try {
                    parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                    parsedMessage = (ztp.Ztp.DeviceRole) e.getUnfinishedMessage();
                    throw e.unwrapIOException();
                } finally {
                    if (parsedMessage != null) {
                        mergeFrom(parsedMessage);
                    }
                }
                return this;
            }

            private ztp.Ztp.DeviceRoleId devRoleId_;

            private com.google.protobuf.SingleFieldBuilderV3<ztp.Ztp.DeviceRoleId, ztp.Ztp.DeviceRoleId.Builder, ztp.Ztp.DeviceRoleIdOrBuilder> devRoleIdBuilder_;

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             * @return Whether the devRoleId field is set.
             */
            public boolean hasDevRoleId() {
                return devRoleIdBuilder_ != null || devRoleId_ != null;
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             * @return The devRoleId.
             */
            public ztp.Ztp.DeviceRoleId getDevRoleId() {
                if (devRoleIdBuilder_ == null) {
                    return devRoleId_ == null ? ztp.Ztp.DeviceRoleId.getDefaultInstance() : devRoleId_;
                } else {
                    return devRoleIdBuilder_.getMessage();
                }
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             */
            public Builder setDevRoleId(ztp.Ztp.DeviceRoleId value) {
                if (devRoleIdBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    devRoleId_ = value;
                    onChanged();
                } else {
                    devRoleIdBuilder_.setMessage(value);
                }
                return this;
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             */
            public Builder setDevRoleId(ztp.Ztp.DeviceRoleId.Builder builderForValue) {
                if (devRoleIdBuilder_ == null) {
                    devRoleId_ = builderForValue.build();
                    onChanged();
                } else {
                    devRoleIdBuilder_.setMessage(builderForValue.build());
                }
                return this;
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             */
            public Builder mergeDevRoleId(ztp.Ztp.DeviceRoleId value) {
                if (devRoleIdBuilder_ == null) {
                    if (devRoleId_ != null) {
                        devRoleId_ = ztp.Ztp.DeviceRoleId.newBuilder(devRoleId_).mergeFrom(value).buildPartial();
                    } else {
                        devRoleId_ = value;
                    }
                    onChanged();
                } else {
                    devRoleIdBuilder_.mergeFrom(value);
                }
                return this;
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             */
            public Builder clearDevRoleId() {
                if (devRoleIdBuilder_ == null) {
                    devRoleId_ = null;
                    onChanged();
                } else {
                    devRoleId_ = null;
                    devRoleIdBuilder_ = null;
                }
                return this;
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             */
            public ztp.Ztp.DeviceRoleId.Builder getDevRoleIdBuilder() {
                onChanged();
                return getDevRoleIdFieldBuilder().getBuilder();
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             */
            public ztp.Ztp.DeviceRoleIdOrBuilder getDevRoleIdOrBuilder() {
                if (devRoleIdBuilder_ != null) {
                    return devRoleIdBuilder_.getMessageOrBuilder();
                } else {
                    return devRoleId_ == null ? ztp.Ztp.DeviceRoleId.getDefaultInstance() : devRoleId_;
                }
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             */
            private com.google.protobuf.SingleFieldBuilderV3<ztp.Ztp.DeviceRoleId, ztp.Ztp.DeviceRoleId.Builder, ztp.Ztp.DeviceRoleIdOrBuilder> getDevRoleIdFieldBuilder() {
                if (devRoleIdBuilder_ == null) {
                    devRoleIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<ztp.Ztp.DeviceRoleId, ztp.Ztp.DeviceRoleId.Builder, ztp.Ztp.DeviceRoleIdOrBuilder>(getDevRoleId(), getParentForChildren(), isClean());
                    devRoleId_ = null;
                }
                return devRoleIdBuilder_;
            }

            private int devRoleType_ = 0;

            /**
             * <code>.ztp.DeviceRoleType devRoleType = 2;</code>
             * @return The enum numeric value on the wire for devRoleType.
             */
            @java.lang.Override
            public int getDevRoleTypeValue() {
                return devRoleType_;
            }

            /**
             * <code>.ztp.DeviceRoleType devRoleType = 2;</code>
             * @param value The enum numeric value on the wire for devRoleType to set.
             * @return This builder for chaining.
             */
            public Builder setDevRoleTypeValue(int value) {
                devRoleType_ = value;
                onChanged();
                return this;
            }

            /**
             * <code>.ztp.DeviceRoleType devRoleType = 2;</code>
             * @return The devRoleType.
             */
            @java.lang.Override
            public ztp.Ztp.DeviceRoleType getDevRoleType() {
                @SuppressWarnings("deprecation")
                ztp.Ztp.DeviceRoleType result = ztp.Ztp.DeviceRoleType.valueOf(devRoleType_);
                return result == null ? ztp.Ztp.DeviceRoleType.UNRECOGNIZED : result;
            }

            /**
             * <code>.ztp.DeviceRoleType devRoleType = 2;</code>
             * @param value The devRoleType to set.
             * @return This builder for chaining.
             */
            public Builder setDevRoleType(ztp.Ztp.DeviceRoleType value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                devRoleType_ = value.getNumber();
                onChanged();
                return this;
            }

            /**
             * <code>.ztp.DeviceRoleType devRoleType = 2;</code>
             * @return This builder for chaining.
             */
            public Builder clearDevRoleType() {
                devRoleType_ = 0;
                onChanged();
                return this;
            }

            @java.lang.Override
            public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.setUnknownFields(unknownFields);
            }

            @java.lang.Override
            public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.mergeUnknownFields(unknownFields);
            }
            // @@protoc_insertion_point(builder_scope:ztp.DeviceRole)
        }

        // @@protoc_insertion_point(class_scope:ztp.DeviceRole)
        private static final ztp.Ztp.DeviceRole DEFAULT_INSTANCE;

        static {
            DEFAULT_INSTANCE = new ztp.Ztp.DeviceRole();
        }

        public static ztp.Ztp.DeviceRole getDefaultInstance() {
            return DEFAULT_INSTANCE;
        }

        private static final com.google.protobuf.Parser<DeviceRole> PARSER = new com.google.protobuf.AbstractParser<DeviceRole>() {

            @java.lang.Override
            public DeviceRole parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
                return new DeviceRole(input, extensionRegistry);
            }
        };

        public static com.google.protobuf.Parser<DeviceRole> parser() {
            return PARSER;
        }

        @java.lang.Override
        public com.google.protobuf.Parser<DeviceRole> getParserForType() {
            return PARSER;
        }

        @java.lang.Override
        public ztp.Ztp.DeviceRole getDefaultInstanceForType() {
            return DEFAULT_INSTANCE;
        }
    }

    public interface DeviceRoleConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:ztp.DeviceRoleConfig)
    com.google.protobuf.MessageOrBuilder {

        /**
         * <code>.ztp.DeviceRole devRole = 1;</code>
         * @return Whether the devRole field is set.
         */
        boolean hasDevRole();

        /**
         * <code>.ztp.DeviceRole devRole = 1;</code>
         * @return The devRole.
         */
        ztp.Ztp.DeviceRole getDevRole();

        /**
         * <code>.ztp.DeviceRole devRole = 1;</code>
         */
        ztp.Ztp.DeviceRoleOrBuilder getDevRoleOrBuilder();

        /**
         * <code>.context.DeviceConfig devConfig = 2;</code>
         * @return Whether the devConfig field is set.
         */
        boolean hasDevConfig();

        /**
         * <code>.context.DeviceConfig devConfig = 2;</code>
         * @return The devConfig.
         */
        context.ContextOuterClass.DeviceConfig getDevConfig();

        /**
         * <code>.context.DeviceConfig devConfig = 2;</code>
         */
        context.ContextOuterClass.DeviceConfigOrBuilder getDevConfigOrBuilder();
    }

    /**
     * Protobuf type {@code ztp.DeviceRoleConfig}
     */
    public static final class DeviceRoleConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ztp.DeviceRoleConfig)
    DeviceRoleConfigOrBuilder {

        private static final long serialVersionUID = 0L;

        // Use DeviceRoleConfig.newBuilder() to construct.
        private DeviceRoleConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
            super(builder);
        }

        private DeviceRoleConfig() {
        }

        @java.lang.Override
        @SuppressWarnings({ "unused" })
        protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            return new DeviceRoleConfig();
        }

        @java.lang.Override
        public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
            return this.unknownFields;
        }

        private DeviceRoleConfig(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            this();
            if (extensionRegistry == null) {
                throw new java.lang.NullPointerException();
            }
            com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder();
            try {
                boolean done = false;
                while (!done) {
                    int tag = input.readTag();
                    switch(tag) {
                        case 0:
                            done = true;
                            break;
                        case 10:
                            {
                                ztp.Ztp.DeviceRole.Builder subBuilder = null;
                                if (devRole_ != null) {
                                    subBuilder = devRole_.toBuilder();
                                }
                                devRole_ = input.readMessage(ztp.Ztp.DeviceRole.parser(), extensionRegistry);
                                if (subBuilder != null) {
                                    subBuilder.mergeFrom(devRole_);
                                    devRole_ = subBuilder.buildPartial();
                                }
                                break;
                            }
                        case 18:
                            {
                                context.ContextOuterClass.DeviceConfig.Builder subBuilder = null;
                                if (devConfig_ != null) {
                                    subBuilder = devConfig_.toBuilder();
                                }
                                devConfig_ = input.readMessage(context.ContextOuterClass.DeviceConfig.parser(), extensionRegistry);
                                if (subBuilder != null) {
                                    subBuilder.mergeFrom(devConfig_);
                                    devConfig_ = subBuilder.buildPartial();
                                }
                                break;
                            }
                        default:
                            {
                                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                                    done = true;
                                }
                                break;
                            }
                    }
                }
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                throw e.setUnfinishedMessage(this);
            } catch (java.io.IOException e) {
                throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
            } finally {
                this.unknownFields = unknownFields.build();
                makeExtensionsImmutable();
            }
        }

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return ztp.Ztp.internal_static_ztp_DeviceRoleConfig_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
            return ztp.Ztp.internal_static_ztp_DeviceRoleConfig_fieldAccessorTable.ensureFieldAccessorsInitialized(ztp.Ztp.DeviceRoleConfig.class, ztp.Ztp.DeviceRoleConfig.Builder.class);
        }

        public static final int DEVROLE_FIELD_NUMBER = 1;

        private ztp.Ztp.DeviceRole devRole_;

        /**
         * <code>.ztp.DeviceRole devRole = 1;</code>
         * @return Whether the devRole field is set.
         */
        @java.lang.Override
        public boolean hasDevRole() {
            return devRole_ != null;
        }

        /**
         * <code>.ztp.DeviceRole devRole = 1;</code>
         * @return The devRole.
         */
        @java.lang.Override
        public ztp.Ztp.DeviceRole getDevRole() {
            return devRole_ == null ? ztp.Ztp.DeviceRole.getDefaultInstance() : devRole_;
        }

        /**
         * <code>.ztp.DeviceRole devRole = 1;</code>
         */
        @java.lang.Override
        public ztp.Ztp.DeviceRoleOrBuilder getDevRoleOrBuilder() {
            return getDevRole();
        }

        public static final int DEVCONFIG_FIELD_NUMBER = 2;

        private context.ContextOuterClass.DeviceConfig devConfig_;

        /**
         * <code>.context.DeviceConfig devConfig = 2;</code>
         * @return Whether the devConfig field is set.
         */
        @java.lang.Override
        public boolean hasDevConfig() {
            return devConfig_ != null;
        }

        /**
         * <code>.context.DeviceConfig devConfig = 2;</code>
         * @return The devConfig.
         */
        @java.lang.Override
        public context.ContextOuterClass.DeviceConfig getDevConfig() {
            return devConfig_ == null ? context.ContextOuterClass.DeviceConfig.getDefaultInstance() : devConfig_;
        }

        /**
         * <code>.context.DeviceConfig devConfig = 2;</code>
         */
        @java.lang.Override
        public context.ContextOuterClass.DeviceConfigOrBuilder getDevConfigOrBuilder() {
            return getDevConfig();
        }

        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 (devRole_ != null) {
                output.writeMessage(1, getDevRole());
            }
            if (devConfig_ != null) {
                output.writeMessage(2, getDevConfig());
            }
            unknownFields.writeTo(output);
        }

        @java.lang.Override
        public int getSerializedSize() {
            int size = memoizedSize;
            if (size != -1)
                return size;
            size = 0;
            if (devRole_ != null) {
                size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDevRole());
            }
            if (devConfig_ != null) {
                size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDevConfig());
            }
            size += unknownFields.getSerializedSize();
            memoizedSize = size;
            return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
            if (obj == this) {
                return true;
            }
            if (!(obj instanceof ztp.Ztp.DeviceRoleConfig)) {
                return super.equals(obj);
            }
            ztp.Ztp.DeviceRoleConfig other = (ztp.Ztp.DeviceRoleConfig) obj;
            if (hasDevRole() != other.hasDevRole())
                return false;
            if (hasDevRole()) {
                if (!getDevRole().equals(other.getDevRole()))
                    return false;
            }
            if (hasDevConfig() != other.hasDevConfig())
                return false;
            if (hasDevConfig()) {
                if (!getDevConfig().equals(other.getDevConfig()))
                    return false;
            }
            if (!unknownFields.equals(other.unknownFields))
                return false;
            return true;
        }

        @java.lang.Override
        public int hashCode() {
            if (memoizedHashCode != 0) {
                return memoizedHashCode;
            }
            int hash = 41;
            hash = (19 * hash) + getDescriptor().hashCode();
            if (hasDevRole()) {
                hash = (37 * hash) + DEVROLE_FIELD_NUMBER;
                hash = (53 * hash) + getDevRole().hashCode();
            }
            if (hasDevConfig()) {
                hash = (37 * hash) + DEVCONFIG_FIELD_NUMBER;
                hash = (53 * hash) + getDevConfig().hashCode();
            }
            hash = (29 * hash) + unknownFields.hashCode();
            memoizedHashCode = hash;
            return hash;
        }

        public static ztp.Ztp.DeviceRoleConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceRoleConfig parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceRoleConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceRoleConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleConfig parseFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceRoleConfig parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceRoleConfig parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleConfig parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceRoleConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        @java.lang.Override
        public Builder newBuilderForType() {
            return newBuilder();
        }

        public static Builder newBuilder() {
            return DEFAULT_INSTANCE.toBuilder();
        }

        public static Builder newBuilder(ztp.Ztp.DeviceRoleConfig 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.GeneratedMessageV3.BuilderParent parent) {
            Builder builder = new Builder(parent);
            return builder;
        }

        /**
         * Protobuf type {@code ztp.DeviceRoleConfig}
         */
        public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ztp.DeviceRoleConfig)
        ztp.Ztp.DeviceRoleConfigOrBuilder {

            public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                return ztp.Ztp.internal_static_ztp_DeviceRoleConfig_descriptor;
            }

            @java.lang.Override
            protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
                return ztp.Ztp.internal_static_ztp_DeviceRoleConfig_fieldAccessorTable.ensureFieldAccessorsInitialized(ztp.Ztp.DeviceRoleConfig.class, ztp.Ztp.DeviceRoleConfig.Builder.class);
            }

            // Construct using ztp.Ztp.DeviceRoleConfig.newBuilder()
            private Builder() {
                maybeForceBuilderInitialization();
            }

            private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                super(parent);
                maybeForceBuilderInitialization();
            }

            private void maybeForceBuilderInitialization() {
                if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                }
            }

            @java.lang.Override
            public Builder clear() {
                super.clear();
                if (devRoleBuilder_ == null) {
                    devRole_ = null;
                } else {
                    devRole_ = null;
                    devRoleBuilder_ = null;
                }
                if (devConfigBuilder_ == null) {
                    devConfig_ = null;
                } else {
                    devConfig_ = null;
                    devConfigBuilder_ = null;
                }
                return this;
            }

            @java.lang.Override
            public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                return ztp.Ztp.internal_static_ztp_DeviceRoleConfig_descriptor;
            }

            @java.lang.Override
            public ztp.Ztp.DeviceRoleConfig getDefaultInstanceForType() {
                return ztp.Ztp.DeviceRoleConfig.getDefaultInstance();
            }

            @java.lang.Override
            public ztp.Ztp.DeviceRoleConfig build() {
                ztp.Ztp.DeviceRoleConfig result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(result);
                }
                return result;
            }

            @java.lang.Override
            public ztp.Ztp.DeviceRoleConfig buildPartial() {
                ztp.Ztp.DeviceRoleConfig result = new ztp.Ztp.DeviceRoleConfig(this);
                if (devRoleBuilder_ == null) {
                    result.devRole_ = devRole_;
                } else {
                    result.devRole_ = devRoleBuilder_.build();
                }
                if (devConfigBuilder_ == null) {
                    result.devConfig_ = devConfig_;
                } else {
                    result.devConfig_ = devConfigBuilder_.build();
                }
                onBuilt();
                return result;
            }

            @java.lang.Override
            public Builder clone() {
                return super.clone();
            }

            @java.lang.Override
            public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                return super.setField(field, value);
            }

            @java.lang.Override
            public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                return super.clearField(field);
            }

            @java.lang.Override
            public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                return super.clearOneof(oneof);
            }

            @java.lang.Override
            public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                return super.setRepeatedField(field, index, value);
            }

            @java.lang.Override
            public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                return super.addRepeatedField(field, value);
            }

            @java.lang.Override
            public Builder mergeFrom(com.google.protobuf.Message other) {
                if (other instanceof ztp.Ztp.DeviceRoleConfig) {
                    return mergeFrom((ztp.Ztp.DeviceRoleConfig) other);
                } else {
                    super.mergeFrom(other);
                    return this;
                }
            }

            public Builder mergeFrom(ztp.Ztp.DeviceRoleConfig other) {
                if (other == ztp.Ztp.DeviceRoleConfig.getDefaultInstance())
                    return this;
                if (other.hasDevRole()) {
                    mergeDevRole(other.getDevRole());
                }
                if (other.hasDevConfig()) {
                    mergeDevConfig(other.getDevConfig());
                }
                this.mergeUnknownFields(other.unknownFields);
                onChanged();
                return this;
            }

            @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 {
                ztp.Ztp.DeviceRoleConfig parsedMessage = null;
                try {
                    parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                    parsedMessage = (ztp.Ztp.DeviceRoleConfig) e.getUnfinishedMessage();
                    throw e.unwrapIOException();
                } finally {
                    if (parsedMessage != null) {
                        mergeFrom(parsedMessage);
                    }
                }
                return this;
            }

            private ztp.Ztp.DeviceRole devRole_;

            private com.google.protobuf.SingleFieldBuilderV3<ztp.Ztp.DeviceRole, ztp.Ztp.DeviceRole.Builder, ztp.Ztp.DeviceRoleOrBuilder> devRoleBuilder_;

            /**
             * <code>.ztp.DeviceRole devRole = 1;</code>
             * @return Whether the devRole field is set.
             */
            public boolean hasDevRole() {
                return devRoleBuilder_ != null || devRole_ != null;
            }

            /**
             * <code>.ztp.DeviceRole devRole = 1;</code>
             * @return The devRole.
             */
            public ztp.Ztp.DeviceRole getDevRole() {
                if (devRoleBuilder_ == null) {
                    return devRole_ == null ? ztp.Ztp.DeviceRole.getDefaultInstance() : devRole_;
                } else {
                    return devRoleBuilder_.getMessage();
                }
            }

            /**
             * <code>.ztp.DeviceRole devRole = 1;</code>
             */
            public Builder setDevRole(ztp.Ztp.DeviceRole value) {
                if (devRoleBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    devRole_ = value;
                    onChanged();
                } else {
                    devRoleBuilder_.setMessage(value);
                }
                return this;
            }

            /**
             * <code>.ztp.DeviceRole devRole = 1;</code>
             */
            public Builder setDevRole(ztp.Ztp.DeviceRole.Builder builderForValue) {
                if (devRoleBuilder_ == null) {
                    devRole_ = builderForValue.build();
                    onChanged();
                } else {
                    devRoleBuilder_.setMessage(builderForValue.build());
                }
                return this;
            }

            /**
             * <code>.ztp.DeviceRole devRole = 1;</code>
             */
            public Builder mergeDevRole(ztp.Ztp.DeviceRole value) {
                if (devRoleBuilder_ == null) {
                    if (devRole_ != null) {
                        devRole_ = ztp.Ztp.DeviceRole.newBuilder(devRole_).mergeFrom(value).buildPartial();
                    } else {
                        devRole_ = value;
                    }
                    onChanged();
                } else {
                    devRoleBuilder_.mergeFrom(value);
                }
                return this;
            }

            /**
             * <code>.ztp.DeviceRole devRole = 1;</code>
             */
            public Builder clearDevRole() {
                if (devRoleBuilder_ == null) {
                    devRole_ = null;
                    onChanged();
                } else {
                    devRole_ = null;
                    devRoleBuilder_ = null;
                }
                return this;
            }

            /**
             * <code>.ztp.DeviceRole devRole = 1;</code>
             */
            public ztp.Ztp.DeviceRole.Builder getDevRoleBuilder() {
                onChanged();
                return getDevRoleFieldBuilder().getBuilder();
            }

            /**
             * <code>.ztp.DeviceRole devRole = 1;</code>
             */
            public ztp.Ztp.DeviceRoleOrBuilder getDevRoleOrBuilder() {
                if (devRoleBuilder_ != null) {
                    return devRoleBuilder_.getMessageOrBuilder();
                } else {
                    return devRole_ == null ? ztp.Ztp.DeviceRole.getDefaultInstance() : devRole_;
                }
            }

            /**
             * <code>.ztp.DeviceRole devRole = 1;</code>
             */
            private com.google.protobuf.SingleFieldBuilderV3<ztp.Ztp.DeviceRole, ztp.Ztp.DeviceRole.Builder, ztp.Ztp.DeviceRoleOrBuilder> getDevRoleFieldBuilder() {
                if (devRoleBuilder_ == null) {
                    devRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<ztp.Ztp.DeviceRole, ztp.Ztp.DeviceRole.Builder, ztp.Ztp.DeviceRoleOrBuilder>(getDevRole(), getParentForChildren(), isClean());
                    devRole_ = null;
                }
                return devRoleBuilder_;
            }

            private context.ContextOuterClass.DeviceConfig devConfig_;

            private com.google.protobuf.SingleFieldBuilderV3<context.ContextOuterClass.DeviceConfig, context.ContextOuterClass.DeviceConfig.Builder, context.ContextOuterClass.DeviceConfigOrBuilder> devConfigBuilder_;

            /**
             * <code>.context.DeviceConfig devConfig = 2;</code>
             * @return Whether the devConfig field is set.
             */
            public boolean hasDevConfig() {
                return devConfigBuilder_ != null || devConfig_ != null;
            }

            /**
             * <code>.context.DeviceConfig devConfig = 2;</code>
             * @return The devConfig.
             */
            public context.ContextOuterClass.DeviceConfig getDevConfig() {
                if (devConfigBuilder_ == null) {
                    return devConfig_ == null ? context.ContextOuterClass.DeviceConfig.getDefaultInstance() : devConfig_;
                } else {
                    return devConfigBuilder_.getMessage();
                }
            }

            /**
             * <code>.context.DeviceConfig devConfig = 2;</code>
             */
            public Builder setDevConfig(context.ContextOuterClass.DeviceConfig value) {
                if (devConfigBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    devConfig_ = value;
                    onChanged();
                } else {
                    devConfigBuilder_.setMessage(value);
                }
                return this;
            }

            /**
             * <code>.context.DeviceConfig devConfig = 2;</code>
             */
            public Builder setDevConfig(context.ContextOuterClass.DeviceConfig.Builder builderForValue) {
                if (devConfigBuilder_ == null) {
                    devConfig_ = builderForValue.build();
                    onChanged();
                } else {
                    devConfigBuilder_.setMessage(builderForValue.build());
                }
                return this;
            }

            /**
             * <code>.context.DeviceConfig devConfig = 2;</code>
             */
            public Builder mergeDevConfig(context.ContextOuterClass.DeviceConfig value) {
                if (devConfigBuilder_ == null) {
                    if (devConfig_ != null) {
                        devConfig_ = context.ContextOuterClass.DeviceConfig.newBuilder(devConfig_).mergeFrom(value).buildPartial();
                    } else {
                        devConfig_ = value;
                    }
                    onChanged();
                } else {
                    devConfigBuilder_.mergeFrom(value);
                }
                return this;
            }

            /**
             * <code>.context.DeviceConfig devConfig = 2;</code>
             */
            public Builder clearDevConfig() {
                if (devConfigBuilder_ == null) {
                    devConfig_ = null;
                    onChanged();
                } else {
                    devConfig_ = null;
                    devConfigBuilder_ = null;
                }
                return this;
            }

            /**
             * <code>.context.DeviceConfig devConfig = 2;</code>
             */
            public context.ContextOuterClass.DeviceConfig.Builder getDevConfigBuilder() {
                onChanged();
                return getDevConfigFieldBuilder().getBuilder();
            }

            /**
             * <code>.context.DeviceConfig devConfig = 2;</code>
             */
            public context.ContextOuterClass.DeviceConfigOrBuilder getDevConfigOrBuilder() {
                if (devConfigBuilder_ != null) {
                    return devConfigBuilder_.getMessageOrBuilder();
                } else {
                    return devConfig_ == null ? context.ContextOuterClass.DeviceConfig.getDefaultInstance() : devConfig_;
                }
            }

            /**
             * <code>.context.DeviceConfig devConfig = 2;</code>
             */
            private com.google.protobuf.SingleFieldBuilderV3<context.ContextOuterClass.DeviceConfig, context.ContextOuterClass.DeviceConfig.Builder, context.ContextOuterClass.DeviceConfigOrBuilder> getDevConfigFieldBuilder() {
                if (devConfigBuilder_ == null) {
                    devConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<context.ContextOuterClass.DeviceConfig, context.ContextOuterClass.DeviceConfig.Builder, context.ContextOuterClass.DeviceConfigOrBuilder>(getDevConfig(), getParentForChildren(), isClean());
                    devConfig_ = null;
                }
                return devConfigBuilder_;
            }

            @java.lang.Override
            public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.setUnknownFields(unknownFields);
            }

            @java.lang.Override
            public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.mergeUnknownFields(unknownFields);
            }
            // @@protoc_insertion_point(builder_scope:ztp.DeviceRoleConfig)
        }

        // @@protoc_insertion_point(class_scope:ztp.DeviceRoleConfig)
        private static final ztp.Ztp.DeviceRoleConfig DEFAULT_INSTANCE;

        static {
            DEFAULT_INSTANCE = new ztp.Ztp.DeviceRoleConfig();
        }

        public static ztp.Ztp.DeviceRoleConfig getDefaultInstance() {
            return DEFAULT_INSTANCE;
        }

        private static final com.google.protobuf.Parser<DeviceRoleConfig> PARSER = new com.google.protobuf.AbstractParser<DeviceRoleConfig>() {

            @java.lang.Override
            public DeviceRoleConfig parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
                return new DeviceRoleConfig(input, extensionRegistry);
            }
        };

        public static com.google.protobuf.Parser<DeviceRoleConfig> parser() {
            return PARSER;
        }

        @java.lang.Override
        public com.google.protobuf.Parser<DeviceRoleConfig> getParserForType() {
            return PARSER;
        }

        @java.lang.Override
        public ztp.Ztp.DeviceRoleConfig getDefaultInstanceForType() {
            return DEFAULT_INSTANCE;
        }
    }

    public interface DeviceRoleListOrBuilder extends // @@protoc_insertion_point(interface_extends:ztp.DeviceRoleList)
    com.google.protobuf.MessageOrBuilder {

        /**
         * <code>repeated .ztp.DeviceRole devRole = 1;</code>
         */
        java.util.List<ztp.Ztp.DeviceRole> getDevRoleList();

        /**
         * <code>repeated .ztp.DeviceRole devRole = 1;</code>
         */
        ztp.Ztp.DeviceRole getDevRole(int index);

        /**
         * <code>repeated .ztp.DeviceRole devRole = 1;</code>
         */
        int getDevRoleCount();

        /**
         * <code>repeated .ztp.DeviceRole devRole = 1;</code>
         */
        java.util.List<? extends ztp.Ztp.DeviceRoleOrBuilder> getDevRoleOrBuilderList();

        /**
         * <code>repeated .ztp.DeviceRole devRole = 1;</code>
         */
        ztp.Ztp.DeviceRoleOrBuilder getDevRoleOrBuilder(int index);
    }

    /**
     * Protobuf type {@code ztp.DeviceRoleList}
     */
    public static final class DeviceRoleList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ztp.DeviceRoleList)
    DeviceRoleListOrBuilder {

        private static final long serialVersionUID = 0L;

        // Use DeviceRoleList.newBuilder() to construct.
        private DeviceRoleList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
            super(builder);
        }

        private DeviceRoleList() {
            devRole_ = java.util.Collections.emptyList();
        }

        @java.lang.Override
        @SuppressWarnings({ "unused" })
        protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            return new DeviceRoleList();
        }

        @java.lang.Override
        public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
            return this.unknownFields;
        }

        private DeviceRoleList(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            this();
            if (extensionRegistry == null) {
                throw new java.lang.NullPointerException();
            }
            int mutable_bitField0_ = 0;
            com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder();
            try {
                boolean done = false;
                while (!done) {
                    int tag = input.readTag();
                    switch(tag) {
                        case 0:
                            done = true;
                            break;
                        case 10:
                            {
                                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                                    devRole_ = new java.util.ArrayList<ztp.Ztp.DeviceRole>();
                                    mutable_bitField0_ |= 0x00000001;
                                }
                                devRole_.add(input.readMessage(ztp.Ztp.DeviceRole.parser(), extensionRegistry));
                                break;
                            }
                        default:
                            {
                                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                                    done = true;
                                }
                                break;
                            }
                    }
                }
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                throw e.setUnfinishedMessage(this);
            } catch (java.io.IOException e) {
                throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
            } finally {
                if (((mutable_bitField0_ & 0x00000001) != 0)) {
                    devRole_ = java.util.Collections.unmodifiableList(devRole_);
                }
                this.unknownFields = unknownFields.build();
                makeExtensionsImmutable();
            }
        }

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return ztp.Ztp.internal_static_ztp_DeviceRoleList_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
            return ztp.Ztp.internal_static_ztp_DeviceRoleList_fieldAccessorTable.ensureFieldAccessorsInitialized(ztp.Ztp.DeviceRoleList.class, ztp.Ztp.DeviceRoleList.Builder.class);
        }

        public static final int DEVROLE_FIELD_NUMBER = 1;

        private java.util.List<ztp.Ztp.DeviceRole> devRole_;

        /**
         * <code>repeated .ztp.DeviceRole devRole = 1;</code>
         */
        @java.lang.Override
        public java.util.List<ztp.Ztp.DeviceRole> getDevRoleList() {
            return devRole_;
        }

        /**
         * <code>repeated .ztp.DeviceRole devRole = 1;</code>
         */
        @java.lang.Override
        public java.util.List<? extends ztp.Ztp.DeviceRoleOrBuilder> getDevRoleOrBuilderList() {
            return devRole_;
        }

        /**
         * <code>repeated .ztp.DeviceRole devRole = 1;</code>
         */
        @java.lang.Override
        public int getDevRoleCount() {
            return devRole_.size();
        }

        /**
         * <code>repeated .ztp.DeviceRole devRole = 1;</code>
         */
        @java.lang.Override
        public ztp.Ztp.DeviceRole getDevRole(int index) {
            return devRole_.get(index);
        }

        /**
         * <code>repeated .ztp.DeviceRole devRole = 1;</code>
         */
        @java.lang.Override
        public ztp.Ztp.DeviceRoleOrBuilder getDevRoleOrBuilder(int index) {
            return devRole_.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;
            memoizedIsInitialized = 1;
            return true;
        }

        @java.lang.Override
        public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            for (int i = 0; i < devRole_.size(); i++) {
                output.writeMessage(1, devRole_.get(i));
            }
            unknownFields.writeTo(output);
        }

        @java.lang.Override
        public int getSerializedSize() {
            int size = memoizedSize;
            if (size != -1)
                return size;
            size = 0;
            for (int i = 0; i < devRole_.size(); i++) {
                size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, devRole_.get(i));
            }
            size += unknownFields.getSerializedSize();
            memoizedSize = size;
            return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
            if (obj == this) {
                return true;
            }
            if (!(obj instanceof ztp.Ztp.DeviceRoleList)) {
                return super.equals(obj);
            }
            ztp.Ztp.DeviceRoleList other = (ztp.Ztp.DeviceRoleList) obj;
            if (!getDevRoleList().equals(other.getDevRoleList()))
                return false;
            if (!unknownFields.equals(other.unknownFields))
                return false;
            return true;
        }

        @java.lang.Override
        public int hashCode() {
            if (memoizedHashCode != 0) {
                return memoizedHashCode;
            }
            int hash = 41;
            hash = (19 * hash) + getDescriptor().hashCode();
            if (getDevRoleCount() > 0) {
                hash = (37 * hash) + DEVROLE_FIELD_NUMBER;
                hash = (53 * hash) + getDevRoleList().hashCode();
            }
            hash = (29 * hash) + unknownFields.hashCode();
            memoizedHashCode = hash;
            return hash;
        }

        public static ztp.Ztp.DeviceRoleList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceRoleList parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleList parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceRoleList parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceRoleList parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleList parseFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceRoleList parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceRoleList parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleList parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceRoleList parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        @java.lang.Override
        public Builder newBuilderForType() {
            return newBuilder();
        }

        public static Builder newBuilder() {
            return DEFAULT_INSTANCE.toBuilder();
        }

        public static Builder newBuilder(ztp.Ztp.DeviceRoleList 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.GeneratedMessageV3.BuilderParent parent) {
            Builder builder = new Builder(parent);
            return builder;
        }

        /**
         * Protobuf type {@code ztp.DeviceRoleList}
         */
        public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ztp.DeviceRoleList)
        ztp.Ztp.DeviceRoleListOrBuilder {

            public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                return ztp.Ztp.internal_static_ztp_DeviceRoleList_descriptor;
            }

            @java.lang.Override
            protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
                return ztp.Ztp.internal_static_ztp_DeviceRoleList_fieldAccessorTable.ensureFieldAccessorsInitialized(ztp.Ztp.DeviceRoleList.class, ztp.Ztp.DeviceRoleList.Builder.class);
            }

            // Construct using ztp.Ztp.DeviceRoleList.newBuilder()
            private Builder() {
                maybeForceBuilderInitialization();
            }

            private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                super(parent);
                maybeForceBuilderInitialization();
            }

            private void maybeForceBuilderInitialization() {
                if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                    getDevRoleFieldBuilder();
                }
            }

            @java.lang.Override
            public Builder clear() {
                super.clear();
                if (devRoleBuilder_ == null) {
                    devRole_ = java.util.Collections.emptyList();
                    bitField0_ = (bitField0_ & ~0x00000001);
                } else {
                    devRoleBuilder_.clear();
                }
                return this;
            }

            @java.lang.Override
            public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                return ztp.Ztp.internal_static_ztp_DeviceRoleList_descriptor;
            }

            @java.lang.Override
            public ztp.Ztp.DeviceRoleList getDefaultInstanceForType() {
                return ztp.Ztp.DeviceRoleList.getDefaultInstance();
            }

            @java.lang.Override
            public ztp.Ztp.DeviceRoleList build() {
                ztp.Ztp.DeviceRoleList result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(result);
                }
                return result;
            }

            @java.lang.Override
            public ztp.Ztp.DeviceRoleList buildPartial() {
                ztp.Ztp.DeviceRoleList result = new ztp.Ztp.DeviceRoleList(this);
                int from_bitField0_ = bitField0_;
                if (devRoleBuilder_ == null) {
                    if (((bitField0_ & 0x00000001) != 0)) {
                        devRole_ = java.util.Collections.unmodifiableList(devRole_);
                        bitField0_ = (bitField0_ & ~0x00000001);
                    }
                    result.devRole_ = devRole_;
                } else {
                    result.devRole_ = devRoleBuilder_.build();
                }
                onBuilt();
                return result;
            }

            @java.lang.Override
            public Builder clone() {
                return super.clone();
            }

            @java.lang.Override
            public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                return super.setField(field, value);
            }

            @java.lang.Override
            public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                return super.clearField(field);
            }

            @java.lang.Override
            public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                return super.clearOneof(oneof);
            }

            @java.lang.Override
            public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                return super.setRepeatedField(field, index, value);
            }

            @java.lang.Override
            public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                return super.addRepeatedField(field, value);
            }

            @java.lang.Override
            public Builder mergeFrom(com.google.protobuf.Message other) {
                if (other instanceof ztp.Ztp.DeviceRoleList) {
                    return mergeFrom((ztp.Ztp.DeviceRoleList) other);
                } else {
                    super.mergeFrom(other);
                    return this;
                }
            }

            public Builder mergeFrom(ztp.Ztp.DeviceRoleList other) {
                if (other == ztp.Ztp.DeviceRoleList.getDefaultInstance())
                    return this;
                if (devRoleBuilder_ == null) {
                    if (!other.devRole_.isEmpty()) {
                        if (devRole_.isEmpty()) {
                            devRole_ = other.devRole_;
                            bitField0_ = (bitField0_ & ~0x00000001);
                        } else {
                            ensureDevRoleIsMutable();
                            devRole_.addAll(other.devRole_);
                        }
                        onChanged();
                    }
                } else {
                    if (!other.devRole_.isEmpty()) {
                        if (devRoleBuilder_.isEmpty()) {
                            devRoleBuilder_.dispose();
                            devRoleBuilder_ = null;
                            devRole_ = other.devRole_;
                            bitField0_ = (bitField0_ & ~0x00000001);
                            devRoleBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDevRoleFieldBuilder() : null;
                        } else {
                            devRoleBuilder_.addAllMessages(other.devRole_);
                        }
                    }
                }
                this.mergeUnknownFields(other.unknownFields);
                onChanged();
                return this;
            }

            @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 {
                ztp.Ztp.DeviceRoleList parsedMessage = null;
                try {
                    parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                    parsedMessage = (ztp.Ztp.DeviceRoleList) e.getUnfinishedMessage();
                    throw e.unwrapIOException();
                } finally {
                    if (parsedMessage != null) {
                        mergeFrom(parsedMessage);
                    }
                }
                return this;
            }

            private int bitField0_;

            private java.util.List<ztp.Ztp.DeviceRole> devRole_ = java.util.Collections.emptyList();

            private void ensureDevRoleIsMutable() {
                if (!((bitField0_ & 0x00000001) != 0)) {
                    devRole_ = new java.util.ArrayList<ztp.Ztp.DeviceRole>(devRole_);
                    bitField0_ |= 0x00000001;
                }
            }

            private com.google.protobuf.RepeatedFieldBuilderV3<ztp.Ztp.DeviceRole, ztp.Ztp.DeviceRole.Builder, ztp.Ztp.DeviceRoleOrBuilder> devRoleBuilder_;

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public java.util.List<ztp.Ztp.DeviceRole> getDevRoleList() {
                if (devRoleBuilder_ == null) {
                    return java.util.Collections.unmodifiableList(devRole_);
                } else {
                    return devRoleBuilder_.getMessageList();
                }
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public int getDevRoleCount() {
                if (devRoleBuilder_ == null) {
                    return devRole_.size();
                } else {
                    return devRoleBuilder_.getCount();
                }
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public ztp.Ztp.DeviceRole getDevRole(int index) {
                if (devRoleBuilder_ == null) {
                    return devRole_.get(index);
                } else {
                    return devRoleBuilder_.getMessage(index);
                }
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public Builder setDevRole(int index, ztp.Ztp.DeviceRole value) {
                if (devRoleBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    ensureDevRoleIsMutable();
                    devRole_.set(index, value);
                    onChanged();
                } else {
                    devRoleBuilder_.setMessage(index, value);
                }
                return this;
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public Builder setDevRole(int index, ztp.Ztp.DeviceRole.Builder builderForValue) {
                if (devRoleBuilder_ == null) {
                    ensureDevRoleIsMutable();
                    devRole_.set(index, builderForValue.build());
                    onChanged();
                } else {
                    devRoleBuilder_.setMessage(index, builderForValue.build());
                }
                return this;
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public Builder addDevRole(ztp.Ztp.DeviceRole value) {
                if (devRoleBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    ensureDevRoleIsMutable();
                    devRole_.add(value);
                    onChanged();
                } else {
                    devRoleBuilder_.addMessage(value);
                }
                return this;
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public Builder addDevRole(int index, ztp.Ztp.DeviceRole value) {
                if (devRoleBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    ensureDevRoleIsMutable();
                    devRole_.add(index, value);
                    onChanged();
                } else {
                    devRoleBuilder_.addMessage(index, value);
                }
                return this;
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public Builder addDevRole(ztp.Ztp.DeviceRole.Builder builderForValue) {
                if (devRoleBuilder_ == null) {
                    ensureDevRoleIsMutable();
                    devRole_.add(builderForValue.build());
                    onChanged();
                } else {
                    devRoleBuilder_.addMessage(builderForValue.build());
                }
                return this;
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public Builder addDevRole(int index, ztp.Ztp.DeviceRole.Builder builderForValue) {
                if (devRoleBuilder_ == null) {
                    ensureDevRoleIsMutable();
                    devRole_.add(index, builderForValue.build());
                    onChanged();
                } else {
                    devRoleBuilder_.addMessage(index, builderForValue.build());
                }
                return this;
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public Builder addAllDevRole(java.lang.Iterable<? extends ztp.Ztp.DeviceRole> values) {
                if (devRoleBuilder_ == null) {
                    ensureDevRoleIsMutable();
                    com.google.protobuf.AbstractMessageLite.Builder.addAll(values, devRole_);
                    onChanged();
                } else {
                    devRoleBuilder_.addAllMessages(values);
                }
                return this;
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public Builder clearDevRole() {
                if (devRoleBuilder_ == null) {
                    devRole_ = java.util.Collections.emptyList();
                    bitField0_ = (bitField0_ & ~0x00000001);
                    onChanged();
                } else {
                    devRoleBuilder_.clear();
                }
                return this;
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public Builder removeDevRole(int index) {
                if (devRoleBuilder_ == null) {
                    ensureDevRoleIsMutable();
                    devRole_.remove(index);
                    onChanged();
                } else {
                    devRoleBuilder_.remove(index);
                }
                return this;
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public ztp.Ztp.DeviceRole.Builder getDevRoleBuilder(int index) {
                return getDevRoleFieldBuilder().getBuilder(index);
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public ztp.Ztp.DeviceRoleOrBuilder getDevRoleOrBuilder(int index) {
                if (devRoleBuilder_ == null) {
                    return devRole_.get(index);
                } else {
                    return devRoleBuilder_.getMessageOrBuilder(index);
                }
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public java.util.List<? extends ztp.Ztp.DeviceRoleOrBuilder> getDevRoleOrBuilderList() {
                if (devRoleBuilder_ != null) {
                    return devRoleBuilder_.getMessageOrBuilderList();
                } else {
                    return java.util.Collections.unmodifiableList(devRole_);
                }
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public ztp.Ztp.DeviceRole.Builder addDevRoleBuilder() {
                return getDevRoleFieldBuilder().addBuilder(ztp.Ztp.DeviceRole.getDefaultInstance());
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public ztp.Ztp.DeviceRole.Builder addDevRoleBuilder(int index) {
                return getDevRoleFieldBuilder().addBuilder(index, ztp.Ztp.DeviceRole.getDefaultInstance());
            }

            /**
             * <code>repeated .ztp.DeviceRole devRole = 1;</code>
             */
            public java.util.List<ztp.Ztp.DeviceRole.Builder> getDevRoleBuilderList() {
                return getDevRoleFieldBuilder().getBuilderList();
            }

            private com.google.protobuf.RepeatedFieldBuilderV3<ztp.Ztp.DeviceRole, ztp.Ztp.DeviceRole.Builder, ztp.Ztp.DeviceRoleOrBuilder> getDevRoleFieldBuilder() {
                if (devRoleBuilder_ == null) {
                    devRoleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<ztp.Ztp.DeviceRole, ztp.Ztp.DeviceRole.Builder, ztp.Ztp.DeviceRoleOrBuilder>(devRole_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
                    devRole_ = null;
                }
                return devRoleBuilder_;
            }

            @java.lang.Override
            public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.setUnknownFields(unknownFields);
            }

            @java.lang.Override
            public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.mergeUnknownFields(unknownFields);
            }
            // @@protoc_insertion_point(builder_scope:ztp.DeviceRoleList)
        }

        // @@protoc_insertion_point(class_scope:ztp.DeviceRoleList)
        private static final ztp.Ztp.DeviceRoleList DEFAULT_INSTANCE;

        static {
            DEFAULT_INSTANCE = new ztp.Ztp.DeviceRoleList();
        }

        public static ztp.Ztp.DeviceRoleList getDefaultInstance() {
            return DEFAULT_INSTANCE;
        }

        private static final com.google.protobuf.Parser<DeviceRoleList> PARSER = new com.google.protobuf.AbstractParser<DeviceRoleList>() {

            @java.lang.Override
            public DeviceRoleList parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
                return new DeviceRoleList(input, extensionRegistry);
            }
        };

        public static com.google.protobuf.Parser<DeviceRoleList> parser() {
            return PARSER;
        }

        @java.lang.Override
        public com.google.protobuf.Parser<DeviceRoleList> getParserForType() {
            return PARSER;
        }

        @java.lang.Override
        public ztp.Ztp.DeviceRoleList getDefaultInstanceForType() {
            return DEFAULT_INSTANCE;
        }
    }

    public interface DeviceRoleStateOrBuilder extends // @@protoc_insertion_point(interface_extends:ztp.DeviceRoleState)
    com.google.protobuf.MessageOrBuilder {

        /**
         * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
         * @return Whether the devRoleId field is set.
         */
        boolean hasDevRoleId();

        /**
         * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
         * @return The devRoleId.
         */
        ztp.Ztp.DeviceRoleId getDevRoleId();

        /**
         * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
         */
        ztp.Ztp.DeviceRoleIdOrBuilder getDevRoleIdOrBuilder();

        /**
         * <code>.ztp.ZtpDeviceState devRoleState = 2;</code>
         * @return The enum numeric value on the wire for devRoleState.
         */
        int getDevRoleStateValue();

        /**
         * <code>.ztp.ZtpDeviceState devRoleState = 2;</code>
         * @return The devRoleState.
         */
        ztp.Ztp.ZtpDeviceState getDevRoleState();
    }

    /**
     * Protobuf type {@code ztp.DeviceRoleState}
     */
    public static final class DeviceRoleState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ztp.DeviceRoleState)
    DeviceRoleStateOrBuilder {

        private static final long serialVersionUID = 0L;

        // Use DeviceRoleState.newBuilder() to construct.
        private DeviceRoleState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
            super(builder);
        }

        private DeviceRoleState() {
            devRoleState_ = 0;
        }

        @java.lang.Override
        @SuppressWarnings({ "unused" })
        protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            return new DeviceRoleState();
        }

        @java.lang.Override
        public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
            return this.unknownFields;
        }

        private DeviceRoleState(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            this();
            if (extensionRegistry == null) {
                throw new java.lang.NullPointerException();
            }
            com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder();
            try {
                boolean done = false;
                while (!done) {
                    int tag = input.readTag();
                    switch(tag) {
                        case 0:
                            done = true;
                            break;
                        case 10:
                            {
                                ztp.Ztp.DeviceRoleId.Builder subBuilder = null;
                                if (devRoleId_ != null) {
                                    subBuilder = devRoleId_.toBuilder();
                                }
                                devRoleId_ = input.readMessage(ztp.Ztp.DeviceRoleId.parser(), extensionRegistry);
                                if (subBuilder != null) {
                                    subBuilder.mergeFrom(devRoleId_);
                                    devRoleId_ = subBuilder.buildPartial();
                                }
                                break;
                            }
                        case 16:
                            {
                                int rawValue = input.readEnum();
                                devRoleState_ = rawValue;
                                break;
                            }
                        default:
                            {
                                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                                    done = true;
                                }
                                break;
                            }
                    }
                }
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                throw e.setUnfinishedMessage(this);
            } catch (java.io.IOException e) {
                throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
            } finally {
                this.unknownFields = unknownFields.build();
                makeExtensionsImmutable();
            }
        }

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return ztp.Ztp.internal_static_ztp_DeviceRoleState_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
            return ztp.Ztp.internal_static_ztp_DeviceRoleState_fieldAccessorTable.ensureFieldAccessorsInitialized(ztp.Ztp.DeviceRoleState.class, ztp.Ztp.DeviceRoleState.Builder.class);
        }

        public static final int DEVROLEID_FIELD_NUMBER = 1;

        private ztp.Ztp.DeviceRoleId devRoleId_;

        /**
         * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
         * @return Whether the devRoleId field is set.
         */
        @java.lang.Override
        public boolean hasDevRoleId() {
            return devRoleId_ != null;
        }

        /**
         * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
         * @return The devRoleId.
         */
        @java.lang.Override
        public ztp.Ztp.DeviceRoleId getDevRoleId() {
            return devRoleId_ == null ? ztp.Ztp.DeviceRoleId.getDefaultInstance() : devRoleId_;
        }

        /**
         * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
         */
        @java.lang.Override
        public ztp.Ztp.DeviceRoleIdOrBuilder getDevRoleIdOrBuilder() {
            return getDevRoleId();
        }

        public static final int DEVROLESTATE_FIELD_NUMBER = 2;

        private int devRoleState_;

        /**
         * <code>.ztp.ZtpDeviceState devRoleState = 2;</code>
         * @return The enum numeric value on the wire for devRoleState.
         */
        @java.lang.Override
        public int getDevRoleStateValue() {
            return devRoleState_;
        }

        /**
         * <code>.ztp.ZtpDeviceState devRoleState = 2;</code>
         * @return The devRoleState.
         */
        @java.lang.Override
        public ztp.Ztp.ZtpDeviceState getDevRoleState() {
            @SuppressWarnings("deprecation")
            ztp.Ztp.ZtpDeviceState result = ztp.Ztp.ZtpDeviceState.valueOf(devRoleState_);
            return result == null ? ztp.Ztp.ZtpDeviceState.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;
            memoizedIsInitialized = 1;
            return true;
        }

        @java.lang.Override
        public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            if (devRoleId_ != null) {
                output.writeMessage(1, getDevRoleId());
            }
            if (devRoleState_ != ztp.Ztp.ZtpDeviceState.ZTP_DEV_STATE_UNDEFINED.getNumber()) {
                output.writeEnum(2, devRoleState_);
            }
            unknownFields.writeTo(output);
        }

        @java.lang.Override
        public int getSerializedSize() {
            int size = memoizedSize;
            if (size != -1)
                return size;
            size = 0;
            if (devRoleId_ != null) {
                size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDevRoleId());
            }
            if (devRoleState_ != ztp.Ztp.ZtpDeviceState.ZTP_DEV_STATE_UNDEFINED.getNumber()) {
                size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, devRoleState_);
            }
            size += unknownFields.getSerializedSize();
            memoizedSize = size;
            return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
            if (obj == this) {
                return true;
            }
            if (!(obj instanceof ztp.Ztp.DeviceRoleState)) {
                return super.equals(obj);
            }
            ztp.Ztp.DeviceRoleState other = (ztp.Ztp.DeviceRoleState) obj;
            if (hasDevRoleId() != other.hasDevRoleId())
                return false;
            if (hasDevRoleId()) {
                if (!getDevRoleId().equals(other.getDevRoleId()))
                    return false;
            }
            if (devRoleState_ != other.devRoleState_)
                return false;
            if (!unknownFields.equals(other.unknownFields))
                return false;
            return true;
        }

        @java.lang.Override
        public int hashCode() {
            if (memoizedHashCode != 0) {
                return memoizedHashCode;
            }
            int hash = 41;
            hash = (19 * hash) + getDescriptor().hashCode();
            if (hasDevRoleId()) {
                hash = (37 * hash) + DEVROLEID_FIELD_NUMBER;
                hash = (53 * hash) + getDevRoleId().hashCode();
            }
            hash = (37 * hash) + DEVROLESTATE_FIELD_NUMBER;
            hash = (53 * hash) + devRoleState_;
            hash = (29 * hash) + unknownFields.hashCode();
            memoizedHashCode = hash;
            return hash;
        }

        public static ztp.Ztp.DeviceRoleState parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceRoleState parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleState parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceRoleState parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceRoleState parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleState parseFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceRoleState parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceRoleState parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
        }

        public static ztp.Ztp.DeviceRoleState parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceRoleState parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        @java.lang.Override
        public Builder newBuilderForType() {
            return newBuilder();
        }

        public static Builder newBuilder() {
            return DEFAULT_INSTANCE.toBuilder();
        }

        public static Builder newBuilder(ztp.Ztp.DeviceRoleState 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.GeneratedMessageV3.BuilderParent parent) {
            Builder builder = new Builder(parent);
            return builder;
        }

        /**
         * Protobuf type {@code ztp.DeviceRoleState}
         */
        public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ztp.DeviceRoleState)
        ztp.Ztp.DeviceRoleStateOrBuilder {

            public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                return ztp.Ztp.internal_static_ztp_DeviceRoleState_descriptor;
            }

            @java.lang.Override
            protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
                return ztp.Ztp.internal_static_ztp_DeviceRoleState_fieldAccessorTable.ensureFieldAccessorsInitialized(ztp.Ztp.DeviceRoleState.class, ztp.Ztp.DeviceRoleState.Builder.class);
            }

            // Construct using ztp.Ztp.DeviceRoleState.newBuilder()
            private Builder() {
                maybeForceBuilderInitialization();
            }

            private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                super(parent);
                maybeForceBuilderInitialization();
            }

            private void maybeForceBuilderInitialization() {
                if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                }
            }

            @java.lang.Override
            public Builder clear() {
                super.clear();
                if (devRoleIdBuilder_ == null) {
                    devRoleId_ = null;
                } else {
                    devRoleId_ = null;
                    devRoleIdBuilder_ = null;
                }
                devRoleState_ = 0;
                return this;
            }

            @java.lang.Override
            public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                return ztp.Ztp.internal_static_ztp_DeviceRoleState_descriptor;
            }

            @java.lang.Override
            public ztp.Ztp.DeviceRoleState getDefaultInstanceForType() {
                return ztp.Ztp.DeviceRoleState.getDefaultInstance();
            }

            @java.lang.Override
            public ztp.Ztp.DeviceRoleState build() {
                ztp.Ztp.DeviceRoleState result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(result);
                }
                return result;
            }

            @java.lang.Override
            public ztp.Ztp.DeviceRoleState buildPartial() {
                ztp.Ztp.DeviceRoleState result = new ztp.Ztp.DeviceRoleState(this);
                if (devRoleIdBuilder_ == null) {
                    result.devRoleId_ = devRoleId_;
                } else {
                    result.devRoleId_ = devRoleIdBuilder_.build();
                }
                result.devRoleState_ = devRoleState_;
                onBuilt();
                return result;
            }

            @java.lang.Override
            public Builder clone() {
                return super.clone();
            }

            @java.lang.Override
            public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                return super.setField(field, value);
            }

            @java.lang.Override
            public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                return super.clearField(field);
            }

            @java.lang.Override
            public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                return super.clearOneof(oneof);
            }

            @java.lang.Override
            public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                return super.setRepeatedField(field, index, value);
            }

            @java.lang.Override
            public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                return super.addRepeatedField(field, value);
            }

            @java.lang.Override
            public Builder mergeFrom(com.google.protobuf.Message other) {
                if (other instanceof ztp.Ztp.DeviceRoleState) {
                    return mergeFrom((ztp.Ztp.DeviceRoleState) other);
                } else {
                    super.mergeFrom(other);
                    return this;
                }
            }

            public Builder mergeFrom(ztp.Ztp.DeviceRoleState other) {
                if (other == ztp.Ztp.DeviceRoleState.getDefaultInstance())
                    return this;
                if (other.hasDevRoleId()) {
                    mergeDevRoleId(other.getDevRoleId());
                }
                if (other.devRoleState_ != 0) {
                    setDevRoleStateValue(other.getDevRoleStateValue());
                }
                this.mergeUnknownFields(other.unknownFields);
                onChanged();
                return this;
            }

            @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 {
                ztp.Ztp.DeviceRoleState parsedMessage = null;
                try {
                    parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                    parsedMessage = (ztp.Ztp.DeviceRoleState) e.getUnfinishedMessage();
                    throw e.unwrapIOException();
                } finally {
                    if (parsedMessage != null) {
                        mergeFrom(parsedMessage);
                    }
                }
                return this;
            }

            private ztp.Ztp.DeviceRoleId devRoleId_;

            private com.google.protobuf.SingleFieldBuilderV3<ztp.Ztp.DeviceRoleId, ztp.Ztp.DeviceRoleId.Builder, ztp.Ztp.DeviceRoleIdOrBuilder> devRoleIdBuilder_;

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             * @return Whether the devRoleId field is set.
             */
            public boolean hasDevRoleId() {
                return devRoleIdBuilder_ != null || devRoleId_ != null;
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             * @return The devRoleId.
             */
            public ztp.Ztp.DeviceRoleId getDevRoleId() {
                if (devRoleIdBuilder_ == null) {
                    return devRoleId_ == null ? ztp.Ztp.DeviceRoleId.getDefaultInstance() : devRoleId_;
                } else {
                    return devRoleIdBuilder_.getMessage();
                }
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             */
            public Builder setDevRoleId(ztp.Ztp.DeviceRoleId value) {
                if (devRoleIdBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    devRoleId_ = value;
                    onChanged();
                } else {
                    devRoleIdBuilder_.setMessage(value);
                }
                return this;
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             */
            public Builder setDevRoleId(ztp.Ztp.DeviceRoleId.Builder builderForValue) {
                if (devRoleIdBuilder_ == null) {
                    devRoleId_ = builderForValue.build();
                    onChanged();
                } else {
                    devRoleIdBuilder_.setMessage(builderForValue.build());
                }
                return this;
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             */
            public Builder mergeDevRoleId(ztp.Ztp.DeviceRoleId value) {
                if (devRoleIdBuilder_ == null) {
                    if (devRoleId_ != null) {
                        devRoleId_ = ztp.Ztp.DeviceRoleId.newBuilder(devRoleId_).mergeFrom(value).buildPartial();
                    } else {
                        devRoleId_ = value;
                    }
                    onChanged();
                } else {
                    devRoleIdBuilder_.mergeFrom(value);
                }
                return this;
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             */
            public Builder clearDevRoleId() {
                if (devRoleIdBuilder_ == null) {
                    devRoleId_ = null;
                    onChanged();
                } else {
                    devRoleId_ = null;
                    devRoleIdBuilder_ = null;
                }
                return this;
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             */
            public ztp.Ztp.DeviceRoleId.Builder getDevRoleIdBuilder() {
                onChanged();
                return getDevRoleIdFieldBuilder().getBuilder();
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             */
            public ztp.Ztp.DeviceRoleIdOrBuilder getDevRoleIdOrBuilder() {
                if (devRoleIdBuilder_ != null) {
                    return devRoleIdBuilder_.getMessageOrBuilder();
                } else {
                    return devRoleId_ == null ? ztp.Ztp.DeviceRoleId.getDefaultInstance() : devRoleId_;
                }
            }

            /**
             * <code>.ztp.DeviceRoleId devRoleId = 1;</code>
             */
            private com.google.protobuf.SingleFieldBuilderV3<ztp.Ztp.DeviceRoleId, ztp.Ztp.DeviceRoleId.Builder, ztp.Ztp.DeviceRoleIdOrBuilder> getDevRoleIdFieldBuilder() {
                if (devRoleIdBuilder_ == null) {
                    devRoleIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<ztp.Ztp.DeviceRoleId, ztp.Ztp.DeviceRoleId.Builder, ztp.Ztp.DeviceRoleIdOrBuilder>(getDevRoleId(), getParentForChildren(), isClean());
                    devRoleId_ = null;
                }
                return devRoleIdBuilder_;
            }

            private int devRoleState_ = 0;

            /**
             * <code>.ztp.ZtpDeviceState devRoleState = 2;</code>
             * @return The enum numeric value on the wire for devRoleState.
             */
            @java.lang.Override
            public int getDevRoleStateValue() {
                return devRoleState_;
            }

            /**
             * <code>.ztp.ZtpDeviceState devRoleState = 2;</code>
             * @param value The enum numeric value on the wire for devRoleState to set.
             * @return This builder for chaining.
             */
            public Builder setDevRoleStateValue(int value) {
                devRoleState_ = value;
                onChanged();
                return this;
            }

            /**
             * <code>.ztp.ZtpDeviceState devRoleState = 2;</code>
             * @return The devRoleState.
             */
            @java.lang.Override
            public ztp.Ztp.ZtpDeviceState getDevRoleState() {
                @SuppressWarnings("deprecation")
                ztp.Ztp.ZtpDeviceState result = ztp.Ztp.ZtpDeviceState.valueOf(devRoleState_);
                return result == null ? ztp.Ztp.ZtpDeviceState.UNRECOGNIZED : result;
            }

            /**
             * <code>.ztp.ZtpDeviceState devRoleState = 2;</code>
             * @param value The devRoleState to set.
             * @return This builder for chaining.
             */
            public Builder setDevRoleState(ztp.Ztp.ZtpDeviceState value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                devRoleState_ = value.getNumber();
                onChanged();
                return this;
            }

            /**
             * <code>.ztp.ZtpDeviceState devRoleState = 2;</code>
             * @return This builder for chaining.
             */
            public Builder clearDevRoleState() {
                devRoleState_ = 0;
                onChanged();
                return this;
            }

            @java.lang.Override
            public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.setUnknownFields(unknownFields);
            }

            @java.lang.Override
            public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.mergeUnknownFields(unknownFields);
            }
            // @@protoc_insertion_point(builder_scope:ztp.DeviceRoleState)
        }

        // @@protoc_insertion_point(class_scope:ztp.DeviceRoleState)
        private static final ztp.Ztp.DeviceRoleState DEFAULT_INSTANCE;

        static {
            DEFAULT_INSTANCE = new ztp.Ztp.DeviceRoleState();
        }

        public static ztp.Ztp.DeviceRoleState getDefaultInstance() {
            return DEFAULT_INSTANCE;
        }

        private static final com.google.protobuf.Parser<DeviceRoleState> PARSER = new com.google.protobuf.AbstractParser<DeviceRoleState>() {

            @java.lang.Override
            public DeviceRoleState parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
                return new DeviceRoleState(input, extensionRegistry);
            }
        };

        public static com.google.protobuf.Parser<DeviceRoleState> parser() {
            return PARSER;
        }

        @java.lang.Override
        public com.google.protobuf.Parser<DeviceRoleState> getParserForType() {
            return PARSER;
        }

        @java.lang.Override
        public ztp.Ztp.DeviceRoleState getDefaultInstanceForType() {
            return DEFAULT_INSTANCE;
        }
    }

    public interface DeviceDeletionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:ztp.DeviceDeletionResult)
    com.google.protobuf.MessageOrBuilder {

        /**
         * <code>repeated string deleted = 1;</code>
         * @return A list containing the deleted.
         */
        java.util.List<java.lang.String> getDeletedList();

        /**
         * <code>repeated string deleted = 1;</code>
         * @return The count of deleted.
         */
        int getDeletedCount();

        /**
         * <code>repeated string deleted = 1;</code>
         * @param index The index of the element to return.
         * @return The deleted at the given index.
         */
        java.lang.String getDeleted(int index);

        /**
         * <code>repeated string deleted = 1;</code>
         * @param index The index of the value to return.
         * @return The bytes of the deleted at the given index.
         */
        com.google.protobuf.ByteString getDeletedBytes(int index);
    }

    /**
     * Protobuf type {@code ztp.DeviceDeletionResult}
     */
    public static final class DeviceDeletionResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ztp.DeviceDeletionResult)
    DeviceDeletionResultOrBuilder {

        private static final long serialVersionUID = 0L;

        // Use DeviceDeletionResult.newBuilder() to construct.
        private DeviceDeletionResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
            super(builder);
        }

        private DeviceDeletionResult() {
            deleted_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        }

        @java.lang.Override
        @SuppressWarnings({ "unused" })
        protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            return new DeviceDeletionResult();
        }

        @java.lang.Override
        public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
            return this.unknownFields;
        }

        private DeviceDeletionResult(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            this();
            if (extensionRegistry == null) {
                throw new java.lang.NullPointerException();
            }
            int mutable_bitField0_ = 0;
            com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder();
            try {
                boolean done = false;
                while (!done) {
                    int tag = input.readTag();
                    switch(tag) {
                        case 0:
                            done = true;
                            break;
                        case 10:
                            {
                                java.lang.String s = input.readStringRequireUtf8();
                                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                                    deleted_ = new com.google.protobuf.LazyStringArrayList();
                                    mutable_bitField0_ |= 0x00000001;
                                }
                                deleted_.add(s);
                                break;
                            }
                        default:
                            {
                                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                                    done = true;
                                }
                                break;
                            }
                    }
                }
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                throw e.setUnfinishedMessage(this);
            } catch (java.io.IOException e) {
                throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
            } finally {
                if (((mutable_bitField0_ & 0x00000001) != 0)) {
                    deleted_ = deleted_.getUnmodifiableView();
                }
                this.unknownFields = unknownFields.build();
                makeExtensionsImmutable();
            }
        }

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return ztp.Ztp.internal_static_ztp_DeviceDeletionResult_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
            return ztp.Ztp.internal_static_ztp_DeviceDeletionResult_fieldAccessorTable.ensureFieldAccessorsInitialized(ztp.Ztp.DeviceDeletionResult.class, ztp.Ztp.DeviceDeletionResult.Builder.class);
        }

        public static final int DELETED_FIELD_NUMBER = 1;

        private com.google.protobuf.LazyStringList deleted_;

        /**
         * <code>repeated string deleted = 1;</code>
         * @return A list containing the deleted.
         */
        public com.google.protobuf.ProtocolStringList getDeletedList() {
            return deleted_;
        }

        /**
         * <code>repeated string deleted = 1;</code>
         * @return The count of deleted.
         */
        public int getDeletedCount() {
            return deleted_.size();
        }

        /**
         * <code>repeated string deleted = 1;</code>
         * @param index The index of the element to return.
         * @return The deleted at the given index.
         */
        public java.lang.String getDeleted(int index) {
            return deleted_.get(index);
        }

        /**
         * <code>repeated string deleted = 1;</code>
         * @param index The index of the value to return.
         * @return The bytes of the deleted at the given index.
         */
        public com.google.protobuf.ByteString getDeletedBytes(int index) {
            return deleted_.getByteString(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;
            memoizedIsInitialized = 1;
            return true;
        }

        @java.lang.Override
        public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            for (int i = 0; i < deleted_.size(); i++) {
                com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deleted_.getRaw(i));
            }
            unknownFields.writeTo(output);
        }

        @java.lang.Override
        public int getSerializedSize() {
            int size = memoizedSize;
            if (size != -1)
                return size;
            size = 0;
            {
                int dataSize = 0;
                for (int i = 0; i < deleted_.size(); i++) {
                    dataSize += computeStringSizeNoTag(deleted_.getRaw(i));
                }
                size += dataSize;
                size += 1 * getDeletedList().size();
            }
            size += unknownFields.getSerializedSize();
            memoizedSize = size;
            return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
            if (obj == this) {
                return true;
            }
            if (!(obj instanceof ztp.Ztp.DeviceDeletionResult)) {
                return super.equals(obj);
            }
            ztp.Ztp.DeviceDeletionResult other = (ztp.Ztp.DeviceDeletionResult) obj;
            if (!getDeletedList().equals(other.getDeletedList()))
                return false;
            if (!unknownFields.equals(other.unknownFields))
                return false;
            return true;
        }

        @java.lang.Override
        public int hashCode() {
            if (memoizedHashCode != 0) {
                return memoizedHashCode;
            }
            int hash = 41;
            hash = (19 * hash) + getDescriptor().hashCode();
            if (getDeletedCount() > 0) {
                hash = (37 * hash) + DELETED_FIELD_NUMBER;
                hash = (53 * hash) + getDeletedList().hashCode();
            }
            hash = (29 * hash) + unknownFields.hashCode();
            memoizedHashCode = hash;
            return hash;
        }

        public static ztp.Ztp.DeviceDeletionResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceDeletionResult parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceDeletionResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceDeletionResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceDeletionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static ztp.Ztp.DeviceDeletionResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static ztp.Ztp.DeviceDeletionResult parseFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceDeletionResult parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        public static ztp.Ztp.DeviceDeletionResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceDeletionResult parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
        }

        public static ztp.Ztp.DeviceDeletionResult parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static ztp.Ztp.DeviceDeletionResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        @java.lang.Override
        public Builder newBuilderForType() {
            return newBuilder();
        }

        public static Builder newBuilder() {
            return DEFAULT_INSTANCE.toBuilder();
        }

        public static Builder newBuilder(ztp.Ztp.DeviceDeletionResult 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.GeneratedMessageV3.BuilderParent parent) {
            Builder builder = new Builder(parent);
            return builder;
        }

        /**
         * Protobuf type {@code ztp.DeviceDeletionResult}
         */
        public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:ztp.DeviceDeletionResult)
        ztp.Ztp.DeviceDeletionResultOrBuilder {

            public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                return ztp.Ztp.internal_static_ztp_DeviceDeletionResult_descriptor;
            }

            @java.lang.Override
            protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
                return ztp.Ztp.internal_static_ztp_DeviceDeletionResult_fieldAccessorTable.ensureFieldAccessorsInitialized(ztp.Ztp.DeviceDeletionResult.class, ztp.Ztp.DeviceDeletionResult.Builder.class);
            }

            // Construct using ztp.Ztp.DeviceDeletionResult.newBuilder()
            private Builder() {
                maybeForceBuilderInitialization();
            }

            private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                super(parent);
                maybeForceBuilderInitialization();
            }

            private void maybeForceBuilderInitialization() {
                if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                }
            }

            @java.lang.Override
            public Builder clear() {
                super.clear();
                deleted_ = com.google.protobuf.LazyStringArrayList.EMPTY;
                bitField0_ = (bitField0_ & ~0x00000001);
                return this;
            }

            @java.lang.Override
            public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                return ztp.Ztp.internal_static_ztp_DeviceDeletionResult_descriptor;
            }

            @java.lang.Override
            public ztp.Ztp.DeviceDeletionResult getDefaultInstanceForType() {
                return ztp.Ztp.DeviceDeletionResult.getDefaultInstance();
            }

            @java.lang.Override
            public ztp.Ztp.DeviceDeletionResult build() {
                ztp.Ztp.DeviceDeletionResult result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(result);
                }
                return result;
            }

            @java.lang.Override
            public ztp.Ztp.DeviceDeletionResult buildPartial() {
                ztp.Ztp.DeviceDeletionResult result = new ztp.Ztp.DeviceDeletionResult(this);
                int from_bitField0_ = bitField0_;
                if (((bitField0_ & 0x00000001) != 0)) {
                    deleted_ = deleted_.getUnmodifiableView();
                    bitField0_ = (bitField0_ & ~0x00000001);
                }
                result.deleted_ = deleted_;
                onBuilt();
                return result;
            }

            @java.lang.Override
            public Builder clone() {
                return super.clone();
            }

            @java.lang.Override
            public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                return super.setField(field, value);
            }

            @java.lang.Override
            public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                return super.clearField(field);
            }

            @java.lang.Override
            public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                return super.clearOneof(oneof);
            }

            @java.lang.Override
            public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                return super.setRepeatedField(field, index, value);
            }

            @java.lang.Override
            public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                return super.addRepeatedField(field, value);
            }

            @java.lang.Override
            public Builder mergeFrom(com.google.protobuf.Message other) {
                if (other instanceof ztp.Ztp.DeviceDeletionResult) {
                    return mergeFrom((ztp.Ztp.DeviceDeletionResult) other);
                } else {
                    super.mergeFrom(other);
                    return this;
                }
            }

            public Builder mergeFrom(ztp.Ztp.DeviceDeletionResult other) {
                if (other == ztp.Ztp.DeviceDeletionResult.getDefaultInstance())
                    return this;
                if (!other.deleted_.isEmpty()) {
                    if (deleted_.isEmpty()) {
                        deleted_ = other.deleted_;
                        bitField0_ = (bitField0_ & ~0x00000001);
                    } else {
                        ensureDeletedIsMutable();
                        deleted_.addAll(other.deleted_);
                    }
                    onChanged();
                }
                this.mergeUnknownFields(other.unknownFields);
                onChanged();
                return this;
            }

            @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 {
                ztp.Ztp.DeviceDeletionResult parsedMessage = null;
                try {
                    parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                    parsedMessage = (ztp.Ztp.DeviceDeletionResult) e.getUnfinishedMessage();
                    throw e.unwrapIOException();
                } finally {
                    if (parsedMessage != null) {
                        mergeFrom(parsedMessage);
                    }
                }
                return this;
            }

            private int bitField0_;

            private com.google.protobuf.LazyStringList deleted_ = com.google.protobuf.LazyStringArrayList.EMPTY;

            private void ensureDeletedIsMutable() {
                if (!((bitField0_ & 0x00000001) != 0)) {
                    deleted_ = new com.google.protobuf.LazyStringArrayList(deleted_);
                    bitField0_ |= 0x00000001;
                }
            }

            /**
             * <code>repeated string deleted = 1;</code>
             * @return A list containing the deleted.
             */
            public com.google.protobuf.ProtocolStringList getDeletedList() {
                return deleted_.getUnmodifiableView();
            }

            /**
             * <code>repeated string deleted = 1;</code>
             * @return The count of deleted.
             */
            public int getDeletedCount() {
                return deleted_.size();
            }

            /**
             * <code>repeated string deleted = 1;</code>
             * @param index The index of the element to return.
             * @return The deleted at the given index.
             */
            public java.lang.String getDeleted(int index) {
                return deleted_.get(index);
            }

            /**
             * <code>repeated string deleted = 1;</code>
             * @param index The index of the value to return.
             * @return The bytes of the deleted at the given index.
             */
            public com.google.protobuf.ByteString getDeletedBytes(int index) {
                return deleted_.getByteString(index);
            }

            /**
             * <code>repeated string deleted = 1;</code>
             * @param index The index to set the value at.
             * @param value The deleted to set.
             * @return This builder for chaining.
             */
            public Builder setDeleted(int index, java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                ensureDeletedIsMutable();
                deleted_.set(index, value);
                onChanged();
                return this;
            }

            /**
             * <code>repeated string deleted = 1;</code>
             * @param value The deleted to add.
             * @return This builder for chaining.
             */
            public Builder addDeleted(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                ensureDeletedIsMutable();
                deleted_.add(value);
                onChanged();
                return this;
            }

            /**
             * <code>repeated string deleted = 1;</code>
             * @param values The deleted to add.
             * @return This builder for chaining.
             */
            public Builder addAllDeleted(java.lang.Iterable<java.lang.String> values) {
                ensureDeletedIsMutable();
                com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deleted_);
                onChanged();
                return this;
            }

            /**
             * <code>repeated string deleted = 1;</code>
             * @return This builder for chaining.
             */
            public Builder clearDeleted() {
                deleted_ = com.google.protobuf.LazyStringArrayList.EMPTY;
                bitField0_ = (bitField0_ & ~0x00000001);
                onChanged();
                return this;
            }

            /**
             * <code>repeated string deleted = 1;</code>
             * @param value The bytes of the deleted to add.
             * @return This builder for chaining.
             */
            public Builder addDeletedBytes(com.google.protobuf.ByteString value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                checkByteStringIsUtf8(value);
                ensureDeletedIsMutable();
                deleted_.add(value);
                onChanged();
                return this;
            }

            @java.lang.Override
            public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.setUnknownFields(unknownFields);
            }

            @java.lang.Override
            public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.mergeUnknownFields(unknownFields);
            }
            // @@protoc_insertion_point(builder_scope:ztp.DeviceDeletionResult)
        }

        // @@protoc_insertion_point(class_scope:ztp.DeviceDeletionResult)
        private static final ztp.Ztp.DeviceDeletionResult DEFAULT_INSTANCE;

        static {
            DEFAULT_INSTANCE = new ztp.Ztp.DeviceDeletionResult();
        }

        public static ztp.Ztp.DeviceDeletionResult getDefaultInstance() {
            return DEFAULT_INSTANCE;
        }

        private static final com.google.protobuf.Parser<DeviceDeletionResult> PARSER = new com.google.protobuf.AbstractParser<DeviceDeletionResult>() {

            @java.lang.Override
            public DeviceDeletionResult parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
                return new DeviceDeletionResult(input, extensionRegistry);
            }
        };

        public static com.google.protobuf.Parser<DeviceDeletionResult> parser() {
            return PARSER;
        }

        @java.lang.Override
        public com.google.protobuf.Parser<DeviceDeletionResult> getParserForType() {
            return PARSER;
        }

        @java.lang.Override
        public ztp.Ztp.DeviceDeletionResult getDefaultInstanceForType() {
            return DEFAULT_INSTANCE;
        }
    }

    private static final com.google.protobuf.Descriptors.Descriptor internal_static_ztp_DeviceRoleId_descriptor;

    private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ztp_DeviceRoleId_fieldAccessorTable;

    private static final com.google.protobuf.Descriptors.Descriptor internal_static_ztp_DeviceRole_descriptor;

    private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ztp_DeviceRole_fieldAccessorTable;

    private static final com.google.protobuf.Descriptors.Descriptor internal_static_ztp_DeviceRoleConfig_descriptor;

    private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ztp_DeviceRoleConfig_fieldAccessorTable;

    private static final com.google.protobuf.Descriptors.Descriptor internal_static_ztp_DeviceRoleList_descriptor;

    private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ztp_DeviceRoleList_fieldAccessorTable;

    private static final com.google.protobuf.Descriptors.Descriptor internal_static_ztp_DeviceRoleState_descriptor;

    private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ztp_DeviceRoleState_fieldAccessorTable;

    private static final com.google.protobuf.Descriptors.Descriptor internal_static_ztp_DeviceDeletionResult_descriptor;

    private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ztp_DeviceDeletionResult_fieldAccessorTable;

    public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
        return descriptor;
    }

    private static com.google.protobuf.Descriptors.FileDescriptor descriptor;

    static {
        java.lang.String[] descriptorData = { "\n\tztp.proto\022\003ztp\032\rcontext.proto\"R\n\014Devic" + "eRoleId\022 \n\tdevRoleId\030\001 \001(\0132\r.context.Uui" + "d\022 \n\005devId\030\002 \001(\0132\021.context.DeviceId\"\\\n\nD" + "eviceRole\022$\n\tdevRoleId\030\001 \001(\0132\021.ztp.Devic" + "eRoleId\022(\n\013devRoleType\030\002 \001(\0162\023.ztp.Devic" + "eRoleType\"^\n\020DeviceRoleConfig\022 \n\007devRole" + "\030\001 \001(\0132\017.ztp.DeviceRole\022(\n\tdevConfig\030\002 \001" + "(\0132\025.context.DeviceConfig\"2\n\016DeviceRoleL" + "ist\022 \n\007devRole\030\001 \003(\0132\017.ztp.DeviceRole\"b\n" + "\017DeviceRoleState\022$\n\tdevRoleId\030\001 \001(\0132\021.zt" + "p.DeviceRoleId\022)\n\014devRoleState\030\002 \001(\0162\023.z" + "tp.ZtpDeviceState\"\'\n\024DeviceDeletionResul" + "t\022\017\n\007deleted\030\001 \003(\t*H\n\016DeviceRoleType\022\010\n\004" + "NONE\020\000\022\013\n\007DEV_OPS\020\001\022\014\n\010DEV_CONF\020\002\022\021\n\rPIP" + "ELINE_CONF\020\003*~\n\016ZtpDeviceState\022\033\n\027ZTP_DE" + "V_STATE_UNDEFINED\020\000\022\031\n\025ZTP_DEV_STATE_CRE" + "ATED\020\001\022\031\n\025ZTP_DEV_STATE_UPDATED\020\002\022\031\n\025ZTP" + "_DEV_STATE_DELETED\020\0032\361\002\n\nZtpService\0228\n\020Z" + "tpGetDeviceRole\022\021.ztp.DeviceRoleId\032\017.ztp" + ".DeviceRole\"\000\022G\n\033ZtpGetDeviceRolesByDevi" + "ceId\022\021.context.DeviceId\032\023.ztp.DeviceRole" + "List\"\000\0221\n\006ZtpAdd\022\017.ztp.DeviceRole\032\024.ztp." + "DeviceRoleState\"\000\022:\n\tZtpUpdate\022\025.ztp.Dev" + "iceRoleConfig\032\024.ztp.DeviceRoleState\"\000\0224\n" + "\tZtpDelete\022\017.ztp.DeviceRole\032\024.ztp.Device" + "RoleState\"\000\022;\n\014ZtpDeleteAll\022\016.context.Em" + "pty\032\031.ztp.DeviceDeletionResult\"\000b\006proto3" };
        descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { context.ContextOuterClass.getDescriptor() });
        internal_static_ztp_DeviceRoleId_descriptor = getDescriptor().getMessageTypes().get(0);
        internal_static_ztp_DeviceRoleId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ztp_DeviceRoleId_descriptor, new java.lang.String[] { "DevRoleId", "DevId" });
        internal_static_ztp_DeviceRole_descriptor = getDescriptor().getMessageTypes().get(1);
        internal_static_ztp_DeviceRole_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ztp_DeviceRole_descriptor, new java.lang.String[] { "DevRoleId", "DevRoleType" });
        internal_static_ztp_DeviceRoleConfig_descriptor = getDescriptor().getMessageTypes().get(2);
        internal_static_ztp_DeviceRoleConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ztp_DeviceRoleConfig_descriptor, new java.lang.String[] { "DevRole", "DevConfig" });
        internal_static_ztp_DeviceRoleList_descriptor = getDescriptor().getMessageTypes().get(3);
        internal_static_ztp_DeviceRoleList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ztp_DeviceRoleList_descriptor, new java.lang.String[] { "DevRole" });
        internal_static_ztp_DeviceRoleState_descriptor = getDescriptor().getMessageTypes().get(4);
        internal_static_ztp_DeviceRoleState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ztp_DeviceRoleState_descriptor, new java.lang.String[] { "DevRoleId", "DevRoleState" });
        internal_static_ztp_DeviceDeletionResult_descriptor = getDescriptor().getMessageTypes().get(5);
        internal_static_ztp_DeviceDeletionResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ztp_DeviceDeletionResult_descriptor, new java.lang.String[] { "Deleted" });
        context.ContextOuterClass.getDescriptor();
    }
    // @@protoc_insertion_point(outer_class_scope)
}
