// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: automation.proto

package automation;

public final class Automation {
  private Automation() {}
  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 automation.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 automation.Automation.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;
    }

    // @@protoc_insertion_point(enum_scope:automation.DeviceRoleType)
  }

  /**
   * Protobuf enum {@code automation.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 automation.Automation.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;
    }

    // @@protoc_insertion_point(enum_scope:automation.ZtpDeviceState)
  }

  public interface DeviceRoleIdOrBuilder extends
      // @@protoc_insertion_point(interface_extends:automation.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 automation.DeviceRoleId}
   */
  public static final class DeviceRoleId extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:automation.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 automation.Automation.internal_static_automation_DeviceRoleId_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return automation.Automation.internal_static_automation_DeviceRoleId_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              automation.Automation.DeviceRoleId.class, automation.Automation.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 automation.Automation.DeviceRoleId)) {
        return super.equals(obj);
      }
      automation.Automation.DeviceRoleId other = (automation.Automation.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 automation.Automation.DeviceRoleId parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.DeviceRoleId parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.DeviceRoleId parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.DeviceRoleId parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.DeviceRoleId parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.DeviceRoleId parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.DeviceRoleId parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static automation.Automation.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 automation.Automation.DeviceRoleId parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static automation.Automation.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 automation.Automation.DeviceRoleId parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static automation.Automation.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(automation.Automation.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 automation.DeviceRoleId}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:automation.DeviceRoleId)
        automation.Automation.DeviceRoleIdOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return automation.Automation.internal_static_automation_DeviceRoleId_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return automation.Automation.internal_static_automation_DeviceRoleId_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                automation.Automation.DeviceRoleId.class, automation.Automation.DeviceRoleId.Builder.class);
      }

      // Construct using automation.Automation.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 automation.Automation.internal_static_automation_DeviceRoleId_descriptor;
      }

      @java.lang.Override
      public automation.Automation.DeviceRoleId getDefaultInstanceForType() {
        return automation.Automation.DeviceRoleId.getDefaultInstance();
      }

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

      @java.lang.Override
      public automation.Automation.DeviceRoleId buildPartial() {
        automation.Automation.DeviceRoleId result = new automation.Automation.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 automation.Automation.DeviceRoleId) {
          return mergeFrom((automation.Automation.DeviceRoleId)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(automation.Automation.DeviceRoleId other) {
        if (other == automation.Automation.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 {
        automation.Automation.DeviceRoleId parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (automation.Automation.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:automation.DeviceRoleId)
    }

    // @@protoc_insertion_point(class_scope:automation.DeviceRoleId)
    private static final automation.Automation.DeviceRoleId DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new automation.Automation.DeviceRoleId();
    }

    public static automation.Automation.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 automation.Automation.DeviceRoleId getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * <code>.automation.DeviceRoleId devRoleId = 1;</code>
     * @return Whether the devRoleId field is set.
     */
    boolean hasDevRoleId();
    /**
     * <code>.automation.DeviceRoleId devRoleId = 1;</code>
     * @return The devRoleId.
     */
    automation.Automation.DeviceRoleId getDevRoleId();
    /**
     * <code>.automation.DeviceRoleId devRoleId = 1;</code>
     */
    automation.Automation.DeviceRoleIdOrBuilder getDevRoleIdOrBuilder();

    /**
     * <code>.automation.DeviceRoleType devRoleType = 2;</code>
     * @return The enum numeric value on the wire for devRoleType.
     */
    int getDevRoleTypeValue();
    /**
     * <code>.automation.DeviceRoleType devRoleType = 2;</code>
     * @return The devRoleType.
     */
    automation.Automation.DeviceRoleType getDevRoleType();
  }
  /**
   * Protobuf type {@code automation.DeviceRole}
   */
  public static final class DeviceRole extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:automation.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: {
              automation.Automation.DeviceRoleId.Builder subBuilder = null;
              if (devRoleId_ != null) {
                subBuilder = devRoleId_.toBuilder();
              }
              devRoleId_ = input.readMessage(automation.Automation.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 automation.Automation.internal_static_automation_DeviceRole_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return automation.Automation.internal_static_automation_DeviceRole_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              automation.Automation.DeviceRole.class, automation.Automation.DeviceRole.Builder.class);
    }

    public static final int DEVROLEID_FIELD_NUMBER = 1;
    private automation.Automation.DeviceRoleId devRoleId_;
    /**
     * <code>.automation.DeviceRoleId devRoleId = 1;</code>
     * @return Whether the devRoleId field is set.
     */
    @java.lang.Override
    public boolean hasDevRoleId() {
      return devRoleId_ != null;
    }
    /**
     * <code>.automation.DeviceRoleId devRoleId = 1;</code>
     * @return The devRoleId.
     */
    @java.lang.Override
    public automation.Automation.DeviceRoleId getDevRoleId() {
      return devRoleId_ == null ? automation.Automation.DeviceRoleId.getDefaultInstance() : devRoleId_;
    }
    /**
     * <code>.automation.DeviceRoleId devRoleId = 1;</code>
     */
    @java.lang.Override
    public automation.Automation.DeviceRoleIdOrBuilder getDevRoleIdOrBuilder() {
      return getDevRoleId();
    }

    public static final int DEVROLETYPE_FIELD_NUMBER = 2;
    private int devRoleType_;
    /**
     * <code>.automation.DeviceRoleType devRoleType = 2;</code>
     * @return The enum numeric value on the wire for devRoleType.
     */
    @java.lang.Override public int getDevRoleTypeValue() {
      return devRoleType_;
    }
    /**
     * <code>.automation.DeviceRoleType devRoleType = 2;</code>
     * @return The devRoleType.
     */
    @java.lang.Override public automation.Automation.DeviceRoleType getDevRoleType() {
      @SuppressWarnings("deprecation")
      automation.Automation.DeviceRoleType result = automation.Automation.DeviceRoleType.valueOf(devRoleType_);
      return result == null ? automation.Automation.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_ != automation.Automation.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_ != automation.Automation.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 automation.Automation.DeviceRole)) {
        return super.equals(obj);
      }
      automation.Automation.DeviceRole other = (automation.Automation.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 automation.Automation.DeviceRole parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.DeviceRole parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.DeviceRole parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.DeviceRole parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.DeviceRole parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.DeviceRole parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.DeviceRole parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static automation.Automation.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 automation.Automation.DeviceRole parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static automation.Automation.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 automation.Automation.DeviceRole parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static automation.Automation.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(automation.Automation.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 automation.DeviceRole}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:automation.DeviceRole)
        automation.Automation.DeviceRoleOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return automation.Automation.internal_static_automation_DeviceRole_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return automation.Automation.internal_static_automation_DeviceRole_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                automation.Automation.DeviceRole.class, automation.Automation.DeviceRole.Builder.class);
      }

      // Construct using automation.Automation.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 automation.Automation.internal_static_automation_DeviceRole_descriptor;
      }

      @java.lang.Override
      public automation.Automation.DeviceRole getDefaultInstanceForType() {
        return automation.Automation.DeviceRole.getDefaultInstance();
      }

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

      @java.lang.Override
      public automation.Automation.DeviceRole buildPartial() {
        automation.Automation.DeviceRole result = new automation.Automation.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 automation.Automation.DeviceRole) {
          return mergeFrom((automation.Automation.DeviceRole)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

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

      private automation.Automation.DeviceRoleId devRoleId_;
      private com.google.protobuf.SingleFieldBuilderV3<
          automation.Automation.DeviceRoleId, automation.Automation.DeviceRoleId.Builder, automation.Automation.DeviceRoleIdOrBuilder> devRoleIdBuilder_;
      /**
       * <code>.automation.DeviceRoleId devRoleId = 1;</code>
       * @return Whether the devRoleId field is set.
       */
      public boolean hasDevRoleId() {
        return devRoleIdBuilder_ != null || devRoleId_ != null;
      }
      /**
       * <code>.automation.DeviceRoleId devRoleId = 1;</code>
       * @return The devRoleId.
       */
      public automation.Automation.DeviceRoleId getDevRoleId() {
        if (devRoleIdBuilder_ == null) {
          return devRoleId_ == null ? automation.Automation.DeviceRoleId.getDefaultInstance() : devRoleId_;
        } else {
          return devRoleIdBuilder_.getMessage();
        }
      }
      /**
       * <code>.automation.DeviceRoleId devRoleId = 1;</code>
       */
      public Builder setDevRoleId(automation.Automation.DeviceRoleId value) {
        if (devRoleIdBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          devRoleId_ = value;
          onChanged();
        } else {
          devRoleIdBuilder_.setMessage(value);
        }

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

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

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

        return this;
      }
      /**
       * <code>.automation.DeviceRoleId devRoleId = 1;</code>
       */
      public automation.Automation.DeviceRoleId.Builder getDevRoleIdBuilder() {
        
        onChanged();
        return getDevRoleIdFieldBuilder().getBuilder();
      }
      /**
       * <code>.automation.DeviceRoleId devRoleId = 1;</code>
       */
      public automation.Automation.DeviceRoleIdOrBuilder getDevRoleIdOrBuilder() {
        if (devRoleIdBuilder_ != null) {
          return devRoleIdBuilder_.getMessageOrBuilder();
        } else {
          return devRoleId_ == null ?
              automation.Automation.DeviceRoleId.getDefaultInstance() : devRoleId_;
        }
      }
      /**
       * <code>.automation.DeviceRoleId devRoleId = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          automation.Automation.DeviceRoleId, automation.Automation.DeviceRoleId.Builder, automation.Automation.DeviceRoleIdOrBuilder> 
          getDevRoleIdFieldBuilder() {
        if (devRoleIdBuilder_ == null) {
          devRoleIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              automation.Automation.DeviceRoleId, automation.Automation.DeviceRoleId.Builder, automation.Automation.DeviceRoleIdOrBuilder>(
                  getDevRoleId(),
                  getParentForChildren(),
                  isClean());
          devRoleId_ = null;
        }
        return devRoleIdBuilder_;
      }

      private int devRoleType_ = 0;
      /**
       * <code>.automation.DeviceRoleType devRoleType = 2;</code>
       * @return The enum numeric value on the wire for devRoleType.
       */
      @java.lang.Override public int getDevRoleTypeValue() {
        return devRoleType_;
      }
      /**
       * <code>.automation.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>.automation.DeviceRoleType devRoleType = 2;</code>
       * @return The devRoleType.
       */
      @java.lang.Override
      public automation.Automation.DeviceRoleType getDevRoleType() {
        @SuppressWarnings("deprecation")
        automation.Automation.DeviceRoleType result = automation.Automation.DeviceRoleType.valueOf(devRoleType_);
        return result == null ? automation.Automation.DeviceRoleType.UNRECOGNIZED : result;
      }
      /**
       * <code>.automation.DeviceRoleType devRoleType = 2;</code>
       * @param value The devRoleType to set.
       * @return This builder for chaining.
       */
      public Builder setDevRoleType(automation.Automation.DeviceRoleType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        devRoleType_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.automation.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:automation.DeviceRole)
    }

    // @@protoc_insertion_point(class_scope:automation.DeviceRole)
    private static final automation.Automation.DeviceRole DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new automation.Automation.DeviceRole();
    }

    public static automation.Automation.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 automation.Automation.DeviceRole getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * <code>repeated .automation.DeviceRole devRole = 1;</code>
     */
    java.util.List<automation.Automation.DeviceRole> 
        getDevRoleList();
    /**
     * <code>repeated .automation.DeviceRole devRole = 1;</code>
     */
    automation.Automation.DeviceRole getDevRole(int index);
    /**
     * <code>repeated .automation.DeviceRole devRole = 1;</code>
     */
    int getDevRoleCount();
    /**
     * <code>repeated .automation.DeviceRole devRole = 1;</code>
     */
    java.util.List<? extends automation.Automation.DeviceRoleOrBuilder> 
        getDevRoleOrBuilderList();
    /**
     * <code>repeated .automation.DeviceRole devRole = 1;</code>
     */
    automation.Automation.DeviceRoleOrBuilder getDevRoleOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code automation.DeviceRoleList}
   */
  public static final class DeviceRoleList extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:automation.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<automation.Automation.DeviceRole>();
                mutable_bitField0_ |= 0x00000001;
              }
              devRole_.add(
                  input.readMessage(automation.Automation.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 automation.Automation.internal_static_automation_DeviceRoleList_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return automation.Automation.internal_static_automation_DeviceRoleList_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              automation.Automation.DeviceRoleList.class, automation.Automation.DeviceRoleList.Builder.class);
    }

    public static final int DEVROLE_FIELD_NUMBER = 1;
    private java.util.List<automation.Automation.DeviceRole> devRole_;
    /**
     * <code>repeated .automation.DeviceRole devRole = 1;</code>
     */
    @java.lang.Override
    public java.util.List<automation.Automation.DeviceRole> getDevRoleList() {
      return devRole_;
    }
    /**
     * <code>repeated .automation.DeviceRole devRole = 1;</code>
     */
    @java.lang.Override
    public java.util.List<? extends automation.Automation.DeviceRoleOrBuilder> 
        getDevRoleOrBuilderList() {
      return devRole_;
    }
    /**
     * <code>repeated .automation.DeviceRole devRole = 1;</code>
     */
    @java.lang.Override
    public int getDevRoleCount() {
      return devRole_.size();
    }
    /**
     * <code>repeated .automation.DeviceRole devRole = 1;</code>
     */
    @java.lang.Override
    public automation.Automation.DeviceRole getDevRole(int index) {
      return devRole_.get(index);
    }
    /**
     * <code>repeated .automation.DeviceRole devRole = 1;</code>
     */
    @java.lang.Override
    public automation.Automation.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 automation.Automation.DeviceRoleList)) {
        return super.equals(obj);
      }
      automation.Automation.DeviceRoleList other = (automation.Automation.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 automation.Automation.DeviceRoleList parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.DeviceRoleList parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.DeviceRoleList parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.DeviceRoleList parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.DeviceRoleList parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.DeviceRoleList parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.DeviceRoleList parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static automation.Automation.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 automation.Automation.DeviceRoleList parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static automation.Automation.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 automation.Automation.DeviceRoleList parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static automation.Automation.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(automation.Automation.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 automation.DeviceRoleList}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:automation.DeviceRoleList)
        automation.Automation.DeviceRoleListOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return automation.Automation.internal_static_automation_DeviceRoleList_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return automation.Automation.internal_static_automation_DeviceRoleList_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                automation.Automation.DeviceRoleList.class, automation.Automation.DeviceRoleList.Builder.class);
      }

      // Construct using automation.Automation.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 automation.Automation.internal_static_automation_DeviceRoleList_descriptor;
      }

      @java.lang.Override
      public automation.Automation.DeviceRoleList getDefaultInstanceForType() {
        return automation.Automation.DeviceRoleList.getDefaultInstance();
      }

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

      @java.lang.Override
      public automation.Automation.DeviceRoleList buildPartial() {
        automation.Automation.DeviceRoleList result = new automation.Automation.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 automation.Automation.DeviceRoleList) {
          return mergeFrom((automation.Automation.DeviceRoleList)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(automation.Automation.DeviceRoleList other) {
        if (other == automation.Automation.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 {
        automation.Automation.DeviceRoleList parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (automation.Automation.DeviceRoleList) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<automation.Automation.DeviceRole> devRole_ =
        java.util.Collections.emptyList();
      private void ensureDevRoleIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          devRole_ = new java.util.ArrayList<automation.Automation.DeviceRole>(devRole_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          automation.Automation.DeviceRole, automation.Automation.DeviceRole.Builder, automation.Automation.DeviceRoleOrBuilder> devRoleBuilder_;

      /**
       * <code>repeated .automation.DeviceRole devRole = 1;</code>
       */
      public java.util.List<automation.Automation.DeviceRole> getDevRoleList() {
        if (devRoleBuilder_ == null) {
          return java.util.Collections.unmodifiableList(devRole_);
        } else {
          return devRoleBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .automation.DeviceRole devRole = 1;</code>
       */
      public int getDevRoleCount() {
        if (devRoleBuilder_ == null) {
          return devRole_.size();
        } else {
          return devRoleBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .automation.DeviceRole devRole = 1;</code>
       */
      public automation.Automation.DeviceRole getDevRole(int index) {
        if (devRoleBuilder_ == null) {
          return devRole_.get(index);
        } else {
          return devRoleBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .automation.DeviceRole devRole = 1;</code>
       */
      public Builder setDevRole(
          int index, automation.Automation.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 .automation.DeviceRole devRole = 1;</code>
       */
      public Builder setDevRole(
          int index, automation.Automation.DeviceRole.Builder builderForValue) {
        if (devRoleBuilder_ == null) {
          ensureDevRoleIsMutable();
          devRole_.set(index, builderForValue.build());
          onChanged();
        } else {
          devRoleBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .automation.DeviceRole devRole = 1;</code>
       */
      public Builder addDevRole(automation.Automation.DeviceRole value) {
        if (devRoleBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureDevRoleIsMutable();
          devRole_.add(value);
          onChanged();
        } else {
          devRoleBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .automation.DeviceRole devRole = 1;</code>
       */
      public Builder addDevRole(
          int index, automation.Automation.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 .automation.DeviceRole devRole = 1;</code>
       */
      public Builder addDevRole(
          automation.Automation.DeviceRole.Builder builderForValue) {
        if (devRoleBuilder_ == null) {
          ensureDevRoleIsMutable();
          devRole_.add(builderForValue.build());
          onChanged();
        } else {
          devRoleBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .automation.DeviceRole devRole = 1;</code>
       */
      public Builder addDevRole(
          int index, automation.Automation.DeviceRole.Builder builderForValue) {
        if (devRoleBuilder_ == null) {
          ensureDevRoleIsMutable();
          devRole_.add(index, builderForValue.build());
          onChanged();
        } else {
          devRoleBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .automation.DeviceRole devRole = 1;</code>
       */
      public Builder addAllDevRole(
          java.lang.Iterable<? extends automation.Automation.DeviceRole> values) {
        if (devRoleBuilder_ == null) {
          ensureDevRoleIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, devRole_);
          onChanged();
        } else {
          devRoleBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .automation.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 .automation.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 .automation.DeviceRole devRole = 1;</code>
       */
      public automation.Automation.DeviceRole.Builder getDevRoleBuilder(
          int index) {
        return getDevRoleFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .automation.DeviceRole devRole = 1;</code>
       */
      public automation.Automation.DeviceRoleOrBuilder getDevRoleOrBuilder(
          int index) {
        if (devRoleBuilder_ == null) {
          return devRole_.get(index);  } else {
          return devRoleBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .automation.DeviceRole devRole = 1;</code>
       */
      public java.util.List<? extends automation.Automation.DeviceRoleOrBuilder> 
           getDevRoleOrBuilderList() {
        if (devRoleBuilder_ != null) {
          return devRoleBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(devRole_);
        }
      }
      /**
       * <code>repeated .automation.DeviceRole devRole = 1;</code>
       */
      public automation.Automation.DeviceRole.Builder addDevRoleBuilder() {
        return getDevRoleFieldBuilder().addBuilder(
            automation.Automation.DeviceRole.getDefaultInstance());
      }
      /**
       * <code>repeated .automation.DeviceRole devRole = 1;</code>
       */
      public automation.Automation.DeviceRole.Builder addDevRoleBuilder(
          int index) {
        return getDevRoleFieldBuilder().addBuilder(
            index, automation.Automation.DeviceRole.getDefaultInstance());
      }
      /**
       * <code>repeated .automation.DeviceRole devRole = 1;</code>
       */
      public java.util.List<automation.Automation.DeviceRole.Builder> 
           getDevRoleBuilderList() {
        return getDevRoleFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          automation.Automation.DeviceRole, automation.Automation.DeviceRole.Builder, automation.Automation.DeviceRoleOrBuilder> 
          getDevRoleFieldBuilder() {
        if (devRoleBuilder_ == null) {
          devRoleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              automation.Automation.DeviceRole, automation.Automation.DeviceRole.Builder, automation.Automation.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:automation.DeviceRoleList)
    }

    // @@protoc_insertion_point(class_scope:automation.DeviceRoleList)
    private static final automation.Automation.DeviceRoleList DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new automation.Automation.DeviceRoleList();
    }

    public static automation.Automation.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 automation.Automation.DeviceRoleList getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

    /**
     * <code>.automation.DeviceRoleId devRoleId = 1;</code>
     * @return Whether the devRoleId field is set.
     */
    boolean hasDevRoleId();
    /**
     * <code>.automation.DeviceRoleId devRoleId = 1;</code>
     * @return The devRoleId.
     */
    automation.Automation.DeviceRoleId getDevRoleId();
    /**
     * <code>.automation.DeviceRoleId devRoleId = 1;</code>
     */
    automation.Automation.DeviceRoleIdOrBuilder getDevRoleIdOrBuilder();

    /**
     * <code>.automation.ZtpDeviceState devRoleState = 2;</code>
     * @return The enum numeric value on the wire for devRoleState.
     */
    int getDevRoleStateValue();
    /**
     * <code>.automation.ZtpDeviceState devRoleState = 2;</code>
     * @return The devRoleState.
     */
    automation.Automation.ZtpDeviceState getDevRoleState();
  }
  /**
   * Protobuf type {@code automation.DeviceRoleState}
   */
  public static final class DeviceRoleState extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:automation.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: {
              automation.Automation.DeviceRoleId.Builder subBuilder = null;
              if (devRoleId_ != null) {
                subBuilder = devRoleId_.toBuilder();
              }
              devRoleId_ = input.readMessage(automation.Automation.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 automation.Automation.internal_static_automation_DeviceRoleState_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return automation.Automation.internal_static_automation_DeviceRoleState_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              automation.Automation.DeviceRoleState.class, automation.Automation.DeviceRoleState.Builder.class);
    }

    public static final int DEVROLEID_FIELD_NUMBER = 1;
    private automation.Automation.DeviceRoleId devRoleId_;
    /**
     * <code>.automation.DeviceRoleId devRoleId = 1;</code>
     * @return Whether the devRoleId field is set.
     */
    @java.lang.Override
    public boolean hasDevRoleId() {
      return devRoleId_ != null;
    }
    /**
     * <code>.automation.DeviceRoleId devRoleId = 1;</code>
     * @return The devRoleId.
     */
    @java.lang.Override
    public automation.Automation.DeviceRoleId getDevRoleId() {
      return devRoleId_ == null ? automation.Automation.DeviceRoleId.getDefaultInstance() : devRoleId_;
    }
    /**
     * <code>.automation.DeviceRoleId devRoleId = 1;</code>
     */
    @java.lang.Override
    public automation.Automation.DeviceRoleIdOrBuilder getDevRoleIdOrBuilder() {
      return getDevRoleId();
    }

    public static final int DEVROLESTATE_FIELD_NUMBER = 2;
    private int devRoleState_;
    /**
     * <code>.automation.ZtpDeviceState devRoleState = 2;</code>
     * @return The enum numeric value on the wire for devRoleState.
     */
    @java.lang.Override public int getDevRoleStateValue() {
      return devRoleState_;
    }
    /**
     * <code>.automation.ZtpDeviceState devRoleState = 2;</code>
     * @return The devRoleState.
     */
    @java.lang.Override public automation.Automation.ZtpDeviceState getDevRoleState() {
      @SuppressWarnings("deprecation")
      automation.Automation.ZtpDeviceState result = automation.Automation.ZtpDeviceState.valueOf(devRoleState_);
      return result == null ? automation.Automation.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_ != automation.Automation.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_ != automation.Automation.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 automation.Automation.DeviceRoleState)) {
        return super.equals(obj);
      }
      automation.Automation.DeviceRoleState other = (automation.Automation.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 automation.Automation.DeviceRoleState parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.DeviceRoleState parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.DeviceRoleState parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.DeviceRoleState parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.DeviceRoleState parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.DeviceRoleState parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.DeviceRoleState parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static automation.Automation.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 automation.Automation.DeviceRoleState parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static automation.Automation.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 automation.Automation.DeviceRoleState parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static automation.Automation.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(automation.Automation.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 automation.DeviceRoleState}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:automation.DeviceRoleState)
        automation.Automation.DeviceRoleStateOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return automation.Automation.internal_static_automation_DeviceRoleState_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return automation.Automation.internal_static_automation_DeviceRoleState_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                automation.Automation.DeviceRoleState.class, automation.Automation.DeviceRoleState.Builder.class);
      }

      // Construct using automation.Automation.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 automation.Automation.internal_static_automation_DeviceRoleState_descriptor;
      }

      @java.lang.Override
      public automation.Automation.DeviceRoleState getDefaultInstanceForType() {
        return automation.Automation.DeviceRoleState.getDefaultInstance();
      }

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

      @java.lang.Override
      public automation.Automation.DeviceRoleState buildPartial() {
        automation.Automation.DeviceRoleState result = new automation.Automation.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 automation.Automation.DeviceRoleState) {
          return mergeFrom((automation.Automation.DeviceRoleState)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

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

      private automation.Automation.DeviceRoleId devRoleId_;
      private com.google.protobuf.SingleFieldBuilderV3<
          automation.Automation.DeviceRoleId, automation.Automation.DeviceRoleId.Builder, automation.Automation.DeviceRoleIdOrBuilder> devRoleIdBuilder_;
      /**
       * <code>.automation.DeviceRoleId devRoleId = 1;</code>
       * @return Whether the devRoleId field is set.
       */
      public boolean hasDevRoleId() {
        return devRoleIdBuilder_ != null || devRoleId_ != null;
      }
      /**
       * <code>.automation.DeviceRoleId devRoleId = 1;</code>
       * @return The devRoleId.
       */
      public automation.Automation.DeviceRoleId getDevRoleId() {
        if (devRoleIdBuilder_ == null) {
          return devRoleId_ == null ? automation.Automation.DeviceRoleId.getDefaultInstance() : devRoleId_;
        } else {
          return devRoleIdBuilder_.getMessage();
        }
      }
      /**
       * <code>.automation.DeviceRoleId devRoleId = 1;</code>
       */
      public Builder setDevRoleId(automation.Automation.DeviceRoleId value) {
        if (devRoleIdBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          devRoleId_ = value;
          onChanged();
        } else {
          devRoleIdBuilder_.setMessage(value);
        }

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

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

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

        return this;
      }
      /**
       * <code>.automation.DeviceRoleId devRoleId = 1;</code>
       */
      public automation.Automation.DeviceRoleId.Builder getDevRoleIdBuilder() {
        
        onChanged();
        return getDevRoleIdFieldBuilder().getBuilder();
      }
      /**
       * <code>.automation.DeviceRoleId devRoleId = 1;</code>
       */
      public automation.Automation.DeviceRoleIdOrBuilder getDevRoleIdOrBuilder() {
        if (devRoleIdBuilder_ != null) {
          return devRoleIdBuilder_.getMessageOrBuilder();
        } else {
          return devRoleId_ == null ?
              automation.Automation.DeviceRoleId.getDefaultInstance() : devRoleId_;
        }
      }
      /**
       * <code>.automation.DeviceRoleId devRoleId = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          automation.Automation.DeviceRoleId, automation.Automation.DeviceRoleId.Builder, automation.Automation.DeviceRoleIdOrBuilder> 
          getDevRoleIdFieldBuilder() {
        if (devRoleIdBuilder_ == null) {
          devRoleIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              automation.Automation.DeviceRoleId, automation.Automation.DeviceRoleId.Builder, automation.Automation.DeviceRoleIdOrBuilder>(
                  getDevRoleId(),
                  getParentForChildren(),
                  isClean());
          devRoleId_ = null;
        }
        return devRoleIdBuilder_;
      }

      private int devRoleState_ = 0;
      /**
       * <code>.automation.ZtpDeviceState devRoleState = 2;</code>
       * @return The enum numeric value on the wire for devRoleState.
       */
      @java.lang.Override public int getDevRoleStateValue() {
        return devRoleState_;
      }
      /**
       * <code>.automation.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>.automation.ZtpDeviceState devRoleState = 2;</code>
       * @return The devRoleState.
       */
      @java.lang.Override
      public automation.Automation.ZtpDeviceState getDevRoleState() {
        @SuppressWarnings("deprecation")
        automation.Automation.ZtpDeviceState result = automation.Automation.ZtpDeviceState.valueOf(devRoleState_);
        return result == null ? automation.Automation.ZtpDeviceState.UNRECOGNIZED : result;
      }
      /**
       * <code>.automation.ZtpDeviceState devRoleState = 2;</code>
       * @param value The devRoleState to set.
       * @return This builder for chaining.
       */
      public Builder setDevRoleState(automation.Automation.ZtpDeviceState value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        devRoleState_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.automation.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:automation.DeviceRoleState)
    }

    // @@protoc_insertion_point(class_scope:automation.DeviceRoleState)
    private static final automation.Automation.DeviceRoleState DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new automation.Automation.DeviceRoleState();
    }

    public static automation.Automation.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 automation.Automation.DeviceRoleState getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface DeviceDeletionResultOrBuilder extends
      // @@protoc_insertion_point(interface_extends:automation.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 automation.DeviceDeletionResult}
   */
  public static final class DeviceDeletionResult extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:automation.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 automation.Automation.internal_static_automation_DeviceDeletionResult_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return automation.Automation.internal_static_automation_DeviceDeletionResult_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              automation.Automation.DeviceDeletionResult.class, automation.Automation.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 automation.Automation.DeviceDeletionResult)) {
        return super.equals(obj);
      }
      automation.Automation.DeviceDeletionResult other = (automation.Automation.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 automation.Automation.DeviceDeletionResult parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.DeviceDeletionResult parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.DeviceDeletionResult parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.DeviceDeletionResult parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.DeviceDeletionResult parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.DeviceDeletionResult parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.DeviceDeletionResult parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static automation.Automation.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 automation.Automation.DeviceDeletionResult parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static automation.Automation.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 automation.Automation.DeviceDeletionResult parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static automation.Automation.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(automation.Automation.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 automation.DeviceDeletionResult}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:automation.DeviceDeletionResult)
        automation.Automation.DeviceDeletionResultOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return automation.Automation.internal_static_automation_DeviceDeletionResult_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return automation.Automation.internal_static_automation_DeviceDeletionResult_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                automation.Automation.DeviceDeletionResult.class, automation.Automation.DeviceDeletionResult.Builder.class);
      }

      // Construct using automation.Automation.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 automation.Automation.internal_static_automation_DeviceDeletionResult_descriptor;
      }

      @java.lang.Override
      public automation.Automation.DeviceDeletionResult getDefaultInstanceForType() {
        return automation.Automation.DeviceDeletionResult.getDefaultInstance();
      }

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

      @java.lang.Override
      public automation.Automation.DeviceDeletionResult buildPartial() {
        automation.Automation.DeviceDeletionResult result = new automation.Automation.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 automation.Automation.DeviceDeletionResult) {
          return mergeFrom((automation.Automation.DeviceDeletionResult)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(automation.Automation.DeviceDeletionResult other) {
        if (other == automation.Automation.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 {
        automation.Automation.DeviceDeletionResult parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (automation.Automation.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:automation.DeviceDeletionResult)
    }

    // @@protoc_insertion_point(class_scope:automation.DeviceDeletionResult)
    private static final automation.Automation.DeviceDeletionResult DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new automation.Automation.DeviceDeletionResult();
    }

    public static automation.Automation.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 automation.Automation.DeviceDeletionResult getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface EmptyOrBuilder extends
      // @@protoc_insertion_point(interface_extends:automation.Empty)
      com.google.protobuf.MessageOrBuilder {
  }
  /**
   * Protobuf type {@code automation.Empty}
   */
  public static final class Empty extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:automation.Empty)
      EmptyOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Empty.newBuilder() to construct.
    private Empty(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Empty() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Empty(
        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;
            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 automation.Automation.internal_static_automation_Empty_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return automation.Automation.internal_static_automation_Empty_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              automation.Automation.Empty.class, automation.Automation.Empty.Builder.class);
    }

    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 {
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      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 automation.Automation.Empty)) {
        return super.equals(obj);
      }
      automation.Automation.Empty other = (automation.Automation.Empty) obj;

      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();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static automation.Automation.Empty parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.Empty parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.Empty parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.Empty parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.Empty parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static automation.Automation.Empty parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static automation.Automation.Empty parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static automation.Automation.Empty 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 automation.Automation.Empty parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static automation.Automation.Empty 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 automation.Automation.Empty parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static automation.Automation.Empty 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(automation.Automation.Empty 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 automation.Empty}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:automation.Empty)
        automation.Automation.EmptyOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return automation.Automation.internal_static_automation_Empty_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return automation.Automation.internal_static_automation_Empty_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                automation.Automation.Empty.class, automation.Automation.Empty.Builder.class);
      }

      // Construct using automation.Automation.Empty.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();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return automation.Automation.internal_static_automation_Empty_descriptor;
      }

      @java.lang.Override
      public automation.Automation.Empty getDefaultInstanceForType() {
        return automation.Automation.Empty.getDefaultInstance();
      }

      @java.lang.Override
      public automation.Automation.Empty build() {
        automation.Automation.Empty result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public automation.Automation.Empty buildPartial() {
        automation.Automation.Empty result = new automation.Automation.Empty(this);
        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 automation.Automation.Empty) {
          return mergeFrom((automation.Automation.Empty)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(automation.Automation.Empty other) {
        if (other == automation.Automation.Empty.getDefaultInstance()) return this;
        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 {
        automation.Automation.Empty parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (automation.Automation.Empty) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        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:automation.Empty)
    }

    // @@protoc_insertion_point(class_scope:automation.Empty)
    private static final automation.Automation.Empty DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new automation.Automation.Empty();
    }

    public static automation.Automation.Empty getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<Empty>
        PARSER = new com.google.protobuf.AbstractParser<Empty>() {
      @java.lang.Override
      public Empty parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Empty(input, extensionRegistry);
      }
    };

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

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

    @java.lang.Override
    public automation.Automation.Empty getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_automation_DeviceRoleId_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_automation_DeviceRoleId_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_automation_DeviceRole_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_automation_DeviceRole_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_automation_DeviceRoleList_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_automation_DeviceRoleList_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_automation_DeviceRoleState_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_automation_DeviceRoleState_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_automation_DeviceDeletionResult_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_automation_DeviceDeletionResult_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_automation_Empty_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_automation_Empty_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\020automation.proto\022\nautomation\032\rcontext." +
      "proto\"R\n\014DeviceRoleId\022 \n\tdevRoleId\030\001 \001(\013" +
      "2\r.context.Uuid\022 \n\005devId\030\002 \001(\0132\021.context" +
      ".DeviceId\"j\n\nDeviceRole\022+\n\tdevRoleId\030\001 \001" +
      "(\0132\030.automation.DeviceRoleId\022/\n\013devRoleT" +
      "ype\030\002 \001(\0162\032.automation.DeviceRoleType\"9\n" +
      "\016DeviceRoleList\022\'\n\007devRole\030\001 \003(\0132\026.autom" +
      "ation.DeviceRole\"p\n\017DeviceRoleState\022+\n\td" +
      "evRoleId\030\001 \001(\0132\030.automation.DeviceRoleId" +
      "\0220\n\014devRoleState\030\002 \001(\0162\032.automation.ZtpD" +
      "eviceState\"\'\n\024DeviceDeletionResult\022\017\n\007de" +
      "leted\030\001 \003(\t\"\007\n\005Empty*H\n\016DeviceRoleType\022\010" +
      "\n\004NONE\020\000\022\013\n\007DEV_OPS\020\001\022\014\n\010DEV_CONF\020\002\022\021\n\rP" +
      "IPELINE_CONF\020\003*~\n\016ZtpDeviceState\022\033\n\027ZTP_" +
      "DEV_STATE_UNDEFINED\020\000\022\031\n\025ZTP_DEV_STATE_C" +
      "REATED\020\001\022\031\n\025ZTP_DEV_STATE_UPDATED\020\002\022\031\n\025Z" +
      "TP_DEV_STATE_DELETED\020\0032\273\003\n\021AutomationSer" +
      "vice\022F\n\020ZtpGetDeviceRole\022\030.automation.De" +
      "viceRoleId\032\026.automation.DeviceRole\"\000\022N\n\033" +
      "ZtpGetDeviceRolesByDeviceId\022\021.context.De" +
      "viceId\032\032.automation.DeviceRoleList\"\000\022?\n\006" +
      "ZtpAdd\022\026.automation.DeviceRole\032\033.automat" +
      "ion.DeviceRoleState\"\000\022B\n\tZtpUpdate\022\026.aut" +
      "omation.DeviceRole\032\033.automation.DeviceRo" +
      "leState\"\000\022B\n\tZtpDelete\022\026.automation.Devi" +
      "ceRole\032\033.automation.DeviceRoleState\"\000\022E\n" +
      "\014ZtpDeleteAll\022\021.automation.Empty\032 .autom" +
      "ation.DeviceDeletionResult\"\000b\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          context.ContextOuterClass.getDescriptor(),
        });
    internal_static_automation_DeviceRoleId_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_automation_DeviceRoleId_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_automation_DeviceRoleId_descriptor,
        new java.lang.String[] { "DevRoleId", "DevId", });
    internal_static_automation_DeviceRole_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_automation_DeviceRole_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_automation_DeviceRole_descriptor,
        new java.lang.String[] { "DevRoleId", "DevRoleType", });
    internal_static_automation_DeviceRoleList_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_automation_DeviceRoleList_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_automation_DeviceRoleList_descriptor,
        new java.lang.String[] { "DevRole", });
    internal_static_automation_DeviceRoleState_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_automation_DeviceRoleState_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_automation_DeviceRoleState_descriptor,
        new java.lang.String[] { "DevRoleId", "DevRoleState", });
    internal_static_automation_DeviceDeletionResult_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_automation_DeviceDeletionResult_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_automation_DeviceDeletionResult_descriptor,
        new java.lang.String[] { "Deleted", });
    internal_static_automation_Empty_descriptor =
      getDescriptor().getMessageTypes().get(5);
    internal_static_automation_Empty_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_automation_Empty_descriptor,
        new java.lang.String[] { });
    context.ContextOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
