All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.diozero.remote.message.protobuf.SPI Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: diozero.proto
// Protobuf Java Version: 4.28.2

package com.diozero.remote.message.protobuf;

/**
 * Protobuf type {@code diozero.SPI}
 */
public final class SPI extends
    com.google.protobuf.GeneratedMessage implements
    // @@protoc_insertion_point(message_implements:diozero.SPI)
    SPIOrBuilder {
private static final long serialVersionUID = 0L;
  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 28,
      /* patch= */ 2,
      /* suffix= */ "",
      SPI.class.getName());
  }
  // Use SPI.newBuilder() to construct.
  private SPI(com.google.protobuf.GeneratedMessage.Builder builder) {
    super(builder);
  }
  private SPI() {
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.diozero.remote.message.protobuf.SPI.class, com.diozero.remote.message.protobuf.SPI.Builder.class);
  }

  /**
   * Protobuf enum {@code diozero.SPI.ClockMode}
   */
  public enum ClockMode
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * MODE_0 = 0;
     */
    MODE_0(0),
    /**
     * MODE_1 = 1;
     */
    MODE_1(1),
    /**
     * MODE_2 = 2;
     */
    MODE_2(2),
    /**
     * MODE_3 = 3;
     */
    MODE_3(3),
    UNRECOGNIZED(-1),
    ;

    static {
      com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 28,
        /* patch= */ 2,
        /* suffix= */ "",
        ClockMode.class.getName());
    }
    /**
     * MODE_0 = 0;
     */
    public static final int MODE_0_VALUE = 0;
    /**
     * MODE_1 = 1;
     */
    public static final int MODE_1_VALUE = 1;
    /**
     * MODE_2 = 2;
     */
    public static final int MODE_2_VALUE = 2;
    /**
     * MODE_3 = 3;
     */
    public static final int MODE_3_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 ClockMode 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 ClockMode forNumber(int value) {
      switch (value) {
        case 0: return MODE_0;
        case 1: return MODE_1;
        case 2: return MODE_2;
        case 3: return MODE_3;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        ClockMode> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public ClockMode findValueByNumber(int number) {
              return ClockMode.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 com.diozero.remote.message.protobuf.SPI.getDescriptor().getEnumTypes().get(0);
    }

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

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

    // @@protoc_insertion_point(enum_scope:diozero.SPI.ClockMode)
  }

  public interface IdentifierOrBuilder extends
      // @@protoc_insertion_point(interface_extends:diozero.SPI.Identifier)
      com.google.protobuf.MessageOrBuilder {

    /**
     * int32 controller = 1;
     * @return The controller.
     */
    int getController();

    /**
     * int32 chipSelect = 2;
     * @return The chipSelect.
     */
    int getChipSelect();
  }
  /**
   * Protobuf type {@code diozero.SPI.Identifier}
   */
  public static final class Identifier extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:diozero.SPI.Identifier)
      IdentifierOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 28,
        /* patch= */ 2,
        /* suffix= */ "",
        Identifier.class.getName());
    }
    // Use Identifier.newBuilder() to construct.
    private Identifier(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
    }
    private Identifier() {
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_Identifier_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_Identifier_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.diozero.remote.message.protobuf.SPI.Identifier.class, com.diozero.remote.message.protobuf.SPI.Identifier.Builder.class);
    }

    public static final int CONTROLLER_FIELD_NUMBER = 1;
    private int controller_ = 0;
    /**
     * int32 controller = 1;
     * @return The controller.
     */
    @java.lang.Override
    public int getController() {
      return controller_;
    }

    public static final int CHIPSELECT_FIELD_NUMBER = 2;
    private int chipSelect_ = 0;
    /**
     * int32 chipSelect = 2;
     * @return The chipSelect.
     */
    @java.lang.Override
    public int getChipSelect() {
      return chipSelect_;
    }

    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 (controller_ != 0) {
        output.writeInt32(1, controller_);
      }
      if (chipSelect_ != 0) {
        output.writeInt32(2, chipSelect_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (controller_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, controller_);
      }
      if (chipSelect_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, chipSelect_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.diozero.remote.message.protobuf.SPI.Identifier)) {
        return super.equals(obj);
      }
      com.diozero.remote.message.protobuf.SPI.Identifier other = (com.diozero.remote.message.protobuf.SPI.Identifier) obj;

      if (getController()
          != other.getController()) return false;
      if (getChipSelect()
          != other.getChipSelect()) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + CONTROLLER_FIELD_NUMBER;
      hash = (53 * hash) + getController();
      hash = (37 * hash) + CHIPSELECT_FIELD_NUMBER;
      hash = (53 * hash) + getChipSelect();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.diozero.remote.message.protobuf.SPI.Identifier parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.diozero.remote.message.protobuf.SPI.Identifier parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.diozero.remote.message.protobuf.SPI.Identifier parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.diozero.remote.message.protobuf.SPI.Identifier parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.diozero.remote.message.protobuf.SPI.Identifier parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.diozero.remote.message.protobuf.SPI.Identifier parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.diozero.remote.message.protobuf.SPI.Identifier parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static com.diozero.remote.message.protobuf.SPI.Identifier parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static com.diozero.remote.message.protobuf.SPI.Identifier parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static com.diozero.remote.message.protobuf.SPI.Identifier parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.diozero.remote.message.protobuf.SPI.Identifier parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static com.diozero.remote.message.protobuf.SPI.Identifier parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.diozero.remote.message.protobuf.SPI.Identifier prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code diozero.SPI.Identifier}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:diozero.SPI.Identifier)
        com.diozero.remote.message.protobuf.SPI.IdentifierOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_Identifier_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_Identifier_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.diozero.remote.message.protobuf.SPI.Identifier.class, com.diozero.remote.message.protobuf.SPI.Identifier.Builder.class);
      }

      // Construct using com.diozero.remote.message.protobuf.SPI.Identifier.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        controller_ = 0;
        chipSelect_ = 0;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_Identifier_descriptor;
      }

      @java.lang.Override
      public com.diozero.remote.message.protobuf.SPI.Identifier getDefaultInstanceForType() {
        return com.diozero.remote.message.protobuf.SPI.Identifier.getDefaultInstance();
      }

      @java.lang.Override
      public com.diozero.remote.message.protobuf.SPI.Identifier build() {
        com.diozero.remote.message.protobuf.SPI.Identifier result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.diozero.remote.message.protobuf.SPI.Identifier buildPartial() {
        com.diozero.remote.message.protobuf.SPI.Identifier result = new com.diozero.remote.message.protobuf.SPI.Identifier(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(com.diozero.remote.message.protobuf.SPI.Identifier result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.controller_ = controller_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.chipSelect_ = chipSelect_;
        }
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.diozero.remote.message.protobuf.SPI.Identifier) {
          return mergeFrom((com.diozero.remote.message.protobuf.SPI.Identifier)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.diozero.remote.message.protobuf.SPI.Identifier other) {
        if (other == com.diozero.remote.message.protobuf.SPI.Identifier.getDefaultInstance()) return this;
        if (other.getController() != 0) {
          setController(other.getController());
        }
        if (other.getChipSelect() != 0) {
          setChipSelect(other.getChipSelect());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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 {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                controller_ = input.readInt32();
                bitField0_ |= 0x00000001;
                break;
              } // case 8
              case 16: {
                chipSelect_ = input.readInt32();
                bitField0_ |= 0x00000002;
                break;
              } // case 16
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private int controller_ ;
      /**
       * int32 controller = 1;
       * @return The controller.
       */
      @java.lang.Override
      public int getController() {
        return controller_;
      }
      /**
       * int32 controller = 1;
       * @param value The controller to set.
       * @return This builder for chaining.
       */
      public Builder setController(int value) {

        controller_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * int32 controller = 1;
       * @return This builder for chaining.
       */
      public Builder clearController() {
        bitField0_ = (bitField0_ & ~0x00000001);
        controller_ = 0;
        onChanged();
        return this;
      }

      private int chipSelect_ ;
      /**
       * int32 chipSelect = 2;
       * @return The chipSelect.
       */
      @java.lang.Override
      public int getChipSelect() {
        return chipSelect_;
      }
      /**
       * int32 chipSelect = 2;
       * @param value The chipSelect to set.
       * @return This builder for chaining.
       */
      public Builder setChipSelect(int value) {

        chipSelect_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * int32 chipSelect = 2;
       * @return This builder for chaining.
       */
      public Builder clearChipSelect() {
        bitField0_ = (bitField0_ & ~0x00000002);
        chipSelect_ = 0;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:diozero.SPI.Identifier)
    }

    // @@protoc_insertion_point(class_scope:diozero.SPI.Identifier)
    private static final com.diozero.remote.message.protobuf.SPI.Identifier DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.diozero.remote.message.protobuf.SPI.Identifier();
    }

    public static com.diozero.remote.message.protobuf.SPI.Identifier getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Identifier parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

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

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

    @java.lang.Override
    public com.diozero.remote.message.protobuf.SPI.Identifier getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface OpenOrBuilder extends
      // @@protoc_insertion_point(interface_extends:diozero.SPI.Open)
      com.google.protobuf.MessageOrBuilder {

    /**
     * int32 controller = 1;
     * @return The controller.
     */
    int getController();

    /**
     * int32 chipSelect = 2;
     * @return The chipSelect.
     */
    int getChipSelect();

    /**
     * int32 frequency = 3;
     * @return The frequency.
     */
    int getFrequency();

    /**
     * .diozero.SPI.ClockMode clockMode = 5;
     * @return The enum numeric value on the wire for clockMode.
     */
    int getClockModeValue();
    /**
     * .diozero.SPI.ClockMode clockMode = 5;
     * @return The clockMode.
     */
    com.diozero.remote.message.protobuf.SPI.ClockMode getClockMode();

    /**
     * bool lsbFirst = 6;
     * @return The lsbFirst.
     */
    boolean getLsbFirst();
  }
  /**
   * Protobuf type {@code diozero.SPI.Open}
   */
  public static final class Open extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:diozero.SPI.Open)
      OpenOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 28,
        /* patch= */ 2,
        /* suffix= */ "",
        Open.class.getName());
    }
    // Use Open.newBuilder() to construct.
    private Open(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
    }
    private Open() {
      clockMode_ = 0;
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_Open_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_Open_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.diozero.remote.message.protobuf.SPI.Open.class, com.diozero.remote.message.protobuf.SPI.Open.Builder.class);
    }

    public static final int CONTROLLER_FIELD_NUMBER = 1;
    private int controller_ = 0;
    /**
     * int32 controller = 1;
     * @return The controller.
     */
    @java.lang.Override
    public int getController() {
      return controller_;
    }

    public static final int CHIPSELECT_FIELD_NUMBER = 2;
    private int chipSelect_ = 0;
    /**
     * int32 chipSelect = 2;
     * @return The chipSelect.
     */
    @java.lang.Override
    public int getChipSelect() {
      return chipSelect_;
    }

    public static final int FREQUENCY_FIELD_NUMBER = 3;
    private int frequency_ = 0;
    /**
     * int32 frequency = 3;
     * @return The frequency.
     */
    @java.lang.Override
    public int getFrequency() {
      return frequency_;
    }

    public static final int CLOCKMODE_FIELD_NUMBER = 5;
    private int clockMode_ = 0;
    /**
     * .diozero.SPI.ClockMode clockMode = 5;
     * @return The enum numeric value on the wire for clockMode.
     */
    @java.lang.Override public int getClockModeValue() {
      return clockMode_;
    }
    /**
     * .diozero.SPI.ClockMode clockMode = 5;
     * @return The clockMode.
     */
    @java.lang.Override public com.diozero.remote.message.protobuf.SPI.ClockMode getClockMode() {
      com.diozero.remote.message.protobuf.SPI.ClockMode result = com.diozero.remote.message.protobuf.SPI.ClockMode.forNumber(clockMode_);
      return result == null ? com.diozero.remote.message.protobuf.SPI.ClockMode.UNRECOGNIZED : result;
    }

    public static final int LSBFIRST_FIELD_NUMBER = 6;
    private boolean lsbFirst_ = false;
    /**
     * bool lsbFirst = 6;
     * @return The lsbFirst.
     */
    @java.lang.Override
    public boolean getLsbFirst() {
      return lsbFirst_;
    }

    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 (controller_ != 0) {
        output.writeInt32(1, controller_);
      }
      if (chipSelect_ != 0) {
        output.writeInt32(2, chipSelect_);
      }
      if (frequency_ != 0) {
        output.writeInt32(3, frequency_);
      }
      if (clockMode_ != com.diozero.remote.message.protobuf.SPI.ClockMode.MODE_0.getNumber()) {
        output.writeEnum(5, clockMode_);
      }
      if (lsbFirst_ != false) {
        output.writeBool(6, lsbFirst_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (controller_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, controller_);
      }
      if (chipSelect_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, chipSelect_);
      }
      if (frequency_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(3, frequency_);
      }
      if (clockMode_ != com.diozero.remote.message.protobuf.SPI.ClockMode.MODE_0.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(5, clockMode_);
      }
      if (lsbFirst_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(6, lsbFirst_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.diozero.remote.message.protobuf.SPI.Open)) {
        return super.equals(obj);
      }
      com.diozero.remote.message.protobuf.SPI.Open other = (com.diozero.remote.message.protobuf.SPI.Open) obj;

      if (getController()
          != other.getController()) return false;
      if (getChipSelect()
          != other.getChipSelect()) return false;
      if (getFrequency()
          != other.getFrequency()) return false;
      if (clockMode_ != other.clockMode_) return false;
      if (getLsbFirst()
          != other.getLsbFirst()) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + CONTROLLER_FIELD_NUMBER;
      hash = (53 * hash) + getController();
      hash = (37 * hash) + CHIPSELECT_FIELD_NUMBER;
      hash = (53 * hash) + getChipSelect();
      hash = (37 * hash) + FREQUENCY_FIELD_NUMBER;
      hash = (53 * hash) + getFrequency();
      hash = (37 * hash) + CLOCKMODE_FIELD_NUMBER;
      hash = (53 * hash) + clockMode_;
      hash = (37 * hash) + LSBFIRST_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getLsbFirst());
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.diozero.remote.message.protobuf.SPI.Open parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.diozero.remote.message.protobuf.SPI.Open parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.diozero.remote.message.protobuf.SPI.Open parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.diozero.remote.message.protobuf.SPI.Open parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.diozero.remote.message.protobuf.SPI.Open parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.diozero.remote.message.protobuf.SPI.Open parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.diozero.remote.message.protobuf.SPI.Open parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static com.diozero.remote.message.protobuf.SPI.Open parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static com.diozero.remote.message.protobuf.SPI.Open parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static com.diozero.remote.message.protobuf.SPI.Open parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.diozero.remote.message.protobuf.SPI.Open parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static com.diozero.remote.message.protobuf.SPI.Open parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.diozero.remote.message.protobuf.SPI.Open prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code diozero.SPI.Open}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:diozero.SPI.Open)
        com.diozero.remote.message.protobuf.SPI.OpenOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_Open_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_Open_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.diozero.remote.message.protobuf.SPI.Open.class, com.diozero.remote.message.protobuf.SPI.Open.Builder.class);
      }

      // Construct using com.diozero.remote.message.protobuf.SPI.Open.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        controller_ = 0;
        chipSelect_ = 0;
        frequency_ = 0;
        clockMode_ = 0;
        lsbFirst_ = false;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_Open_descriptor;
      }

      @java.lang.Override
      public com.diozero.remote.message.protobuf.SPI.Open getDefaultInstanceForType() {
        return com.diozero.remote.message.protobuf.SPI.Open.getDefaultInstance();
      }

      @java.lang.Override
      public com.diozero.remote.message.protobuf.SPI.Open build() {
        com.diozero.remote.message.protobuf.SPI.Open result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.diozero.remote.message.protobuf.SPI.Open buildPartial() {
        com.diozero.remote.message.protobuf.SPI.Open result = new com.diozero.remote.message.protobuf.SPI.Open(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(com.diozero.remote.message.protobuf.SPI.Open result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.controller_ = controller_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.chipSelect_ = chipSelect_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.frequency_ = frequency_;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.clockMode_ = clockMode_;
        }
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.lsbFirst_ = lsbFirst_;
        }
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.diozero.remote.message.protobuf.SPI.Open) {
          return mergeFrom((com.diozero.remote.message.protobuf.SPI.Open)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.diozero.remote.message.protobuf.SPI.Open other) {
        if (other == com.diozero.remote.message.protobuf.SPI.Open.getDefaultInstance()) return this;
        if (other.getController() != 0) {
          setController(other.getController());
        }
        if (other.getChipSelect() != 0) {
          setChipSelect(other.getChipSelect());
        }
        if (other.getFrequency() != 0) {
          setFrequency(other.getFrequency());
        }
        if (other.clockMode_ != 0) {
          setClockModeValue(other.getClockModeValue());
        }
        if (other.getLsbFirst() != false) {
          setLsbFirst(other.getLsbFirst());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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 {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                controller_ = input.readInt32();
                bitField0_ |= 0x00000001;
                break;
              } // case 8
              case 16: {
                chipSelect_ = input.readInt32();
                bitField0_ |= 0x00000002;
                break;
              } // case 16
              case 24: {
                frequency_ = input.readInt32();
                bitField0_ |= 0x00000004;
                break;
              } // case 24
              case 40: {
                clockMode_ = input.readEnum();
                bitField0_ |= 0x00000008;
                break;
              } // case 40
              case 48: {
                lsbFirst_ = input.readBool();
                bitField0_ |= 0x00000010;
                break;
              } // case 48
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private int controller_ ;
      /**
       * int32 controller = 1;
       * @return The controller.
       */
      @java.lang.Override
      public int getController() {
        return controller_;
      }
      /**
       * int32 controller = 1;
       * @param value The controller to set.
       * @return This builder for chaining.
       */
      public Builder setController(int value) {

        controller_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * int32 controller = 1;
       * @return This builder for chaining.
       */
      public Builder clearController() {
        bitField0_ = (bitField0_ & ~0x00000001);
        controller_ = 0;
        onChanged();
        return this;
      }

      private int chipSelect_ ;
      /**
       * int32 chipSelect = 2;
       * @return The chipSelect.
       */
      @java.lang.Override
      public int getChipSelect() {
        return chipSelect_;
      }
      /**
       * int32 chipSelect = 2;
       * @param value The chipSelect to set.
       * @return This builder for chaining.
       */
      public Builder setChipSelect(int value) {

        chipSelect_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * int32 chipSelect = 2;
       * @return This builder for chaining.
       */
      public Builder clearChipSelect() {
        bitField0_ = (bitField0_ & ~0x00000002);
        chipSelect_ = 0;
        onChanged();
        return this;
      }

      private int frequency_ ;
      /**
       * int32 frequency = 3;
       * @return The frequency.
       */
      @java.lang.Override
      public int getFrequency() {
        return frequency_;
      }
      /**
       * int32 frequency = 3;
       * @param value The frequency to set.
       * @return This builder for chaining.
       */
      public Builder setFrequency(int value) {

        frequency_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * int32 frequency = 3;
       * @return This builder for chaining.
       */
      public Builder clearFrequency() {
        bitField0_ = (bitField0_ & ~0x00000004);
        frequency_ = 0;
        onChanged();
        return this;
      }

      private int clockMode_ = 0;
      /**
       * .diozero.SPI.ClockMode clockMode = 5;
       * @return The enum numeric value on the wire for clockMode.
       */
      @java.lang.Override public int getClockModeValue() {
        return clockMode_;
      }
      /**
       * .diozero.SPI.ClockMode clockMode = 5;
       * @param value The enum numeric value on the wire for clockMode to set.
       * @return This builder for chaining.
       */
      public Builder setClockModeValue(int value) {
        clockMode_ = value;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       * .diozero.SPI.ClockMode clockMode = 5;
       * @return The clockMode.
       */
      @java.lang.Override
      public com.diozero.remote.message.protobuf.SPI.ClockMode getClockMode() {
        com.diozero.remote.message.protobuf.SPI.ClockMode result = com.diozero.remote.message.protobuf.SPI.ClockMode.forNumber(clockMode_);
        return result == null ? com.diozero.remote.message.protobuf.SPI.ClockMode.UNRECOGNIZED : result;
      }
      /**
       * .diozero.SPI.ClockMode clockMode = 5;
       * @param value The clockMode to set.
       * @return This builder for chaining.
       */
      public Builder setClockMode(com.diozero.remote.message.protobuf.SPI.ClockMode value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000008;
        clockMode_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * .diozero.SPI.ClockMode clockMode = 5;
       * @return This builder for chaining.
       */
      public Builder clearClockMode() {
        bitField0_ = (bitField0_ & ~0x00000008);
        clockMode_ = 0;
        onChanged();
        return this;
      }

      private boolean lsbFirst_ ;
      /**
       * bool lsbFirst = 6;
       * @return The lsbFirst.
       */
      @java.lang.Override
      public boolean getLsbFirst() {
        return lsbFirst_;
      }
      /**
       * bool lsbFirst = 6;
       * @param value The lsbFirst to set.
       * @return This builder for chaining.
       */
      public Builder setLsbFirst(boolean value) {

        lsbFirst_ = value;
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }
      /**
       * bool lsbFirst = 6;
       * @return This builder for chaining.
       */
      public Builder clearLsbFirst() {
        bitField0_ = (bitField0_ & ~0x00000010);
        lsbFirst_ = false;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:diozero.SPI.Open)
    }

    // @@protoc_insertion_point(class_scope:diozero.SPI.Open)
    private static final com.diozero.remote.message.protobuf.SPI.Open DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.diozero.remote.message.protobuf.SPI.Open();
    }

    public static com.diozero.remote.message.protobuf.SPI.Open getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Open parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

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

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

    @java.lang.Override
    public com.diozero.remote.message.protobuf.SPI.Open getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ByteArrayOrBuilder extends
      // @@protoc_insertion_point(interface_extends:diozero.SPI.ByteArray)
      com.google.protobuf.MessageOrBuilder {

    /**
     * int32 controller = 1;
     * @return The controller.
     */
    int getController();

    /**
     * int32 chipSelect = 2;
     * @return The chipSelect.
     */
    int getChipSelect();

    /**
     * bytes txData = 3;
     * @return The txData.
     */
    com.google.protobuf.ByteString getTxData();
  }
  /**
   * Protobuf type {@code diozero.SPI.ByteArray}
   */
  public static final class ByteArray extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:diozero.SPI.ByteArray)
      ByteArrayOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 28,
        /* patch= */ 2,
        /* suffix= */ "",
        ByteArray.class.getName());
    }
    // Use ByteArray.newBuilder() to construct.
    private ByteArray(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
    }
    private ByteArray() {
      txData_ = com.google.protobuf.ByteString.EMPTY;
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_ByteArray_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_ByteArray_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.diozero.remote.message.protobuf.SPI.ByteArray.class, com.diozero.remote.message.protobuf.SPI.ByteArray.Builder.class);
    }

    public static final int CONTROLLER_FIELD_NUMBER = 1;
    private int controller_ = 0;
    /**
     * int32 controller = 1;
     * @return The controller.
     */
    @java.lang.Override
    public int getController() {
      return controller_;
    }

    public static final int CHIPSELECT_FIELD_NUMBER = 2;
    private int chipSelect_ = 0;
    /**
     * int32 chipSelect = 2;
     * @return The chipSelect.
     */
    @java.lang.Override
    public int getChipSelect() {
      return chipSelect_;
    }

    public static final int TXDATA_FIELD_NUMBER = 3;
    private com.google.protobuf.ByteString txData_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * bytes txData = 3;
     * @return The txData.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getTxData() {
      return txData_;
    }

    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 (controller_ != 0) {
        output.writeInt32(1, controller_);
      }
      if (chipSelect_ != 0) {
        output.writeInt32(2, chipSelect_);
      }
      if (!txData_.isEmpty()) {
        output.writeBytes(3, txData_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (controller_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, controller_);
      }
      if (chipSelect_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, chipSelect_);
      }
      if (!txData_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, txData_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.diozero.remote.message.protobuf.SPI.ByteArray)) {
        return super.equals(obj);
      }
      com.diozero.remote.message.protobuf.SPI.ByteArray other = (com.diozero.remote.message.protobuf.SPI.ByteArray) obj;

      if (getController()
          != other.getController()) return false;
      if (getChipSelect()
          != other.getChipSelect()) return false;
      if (!getTxData()
          .equals(other.getTxData())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + CONTROLLER_FIELD_NUMBER;
      hash = (53 * hash) + getController();
      hash = (37 * hash) + CHIPSELECT_FIELD_NUMBER;
      hash = (53 * hash) + getChipSelect();
      hash = (37 * hash) + TXDATA_FIELD_NUMBER;
      hash = (53 * hash) + getTxData().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.diozero.remote.message.protobuf.SPI.ByteArray parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.diozero.remote.message.protobuf.SPI.ByteArray parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.diozero.remote.message.protobuf.SPI.ByteArray parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.diozero.remote.message.protobuf.SPI.ByteArray parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.diozero.remote.message.protobuf.SPI.ByteArray parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.diozero.remote.message.protobuf.SPI.ByteArray parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.diozero.remote.message.protobuf.SPI.ByteArray parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static com.diozero.remote.message.protobuf.SPI.ByteArray parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static com.diozero.remote.message.protobuf.SPI.ByteArray parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static com.diozero.remote.message.protobuf.SPI.ByteArray parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.diozero.remote.message.protobuf.SPI.ByteArray parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static com.diozero.remote.message.protobuf.SPI.ByteArray parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.diozero.remote.message.protobuf.SPI.ByteArray prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code diozero.SPI.ByteArray}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:diozero.SPI.ByteArray)
        com.diozero.remote.message.protobuf.SPI.ByteArrayOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_ByteArray_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_ByteArray_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.diozero.remote.message.protobuf.SPI.ByteArray.class, com.diozero.remote.message.protobuf.SPI.ByteArray.Builder.class);
      }

      // Construct using com.diozero.remote.message.protobuf.SPI.ByteArray.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        controller_ = 0;
        chipSelect_ = 0;
        txData_ = com.google.protobuf.ByteString.EMPTY;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_ByteArray_descriptor;
      }

      @java.lang.Override
      public com.diozero.remote.message.protobuf.SPI.ByteArray getDefaultInstanceForType() {
        return com.diozero.remote.message.protobuf.SPI.ByteArray.getDefaultInstance();
      }

      @java.lang.Override
      public com.diozero.remote.message.protobuf.SPI.ByteArray build() {
        com.diozero.remote.message.protobuf.SPI.ByteArray result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.diozero.remote.message.protobuf.SPI.ByteArray buildPartial() {
        com.diozero.remote.message.protobuf.SPI.ByteArray result = new com.diozero.remote.message.protobuf.SPI.ByteArray(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(com.diozero.remote.message.protobuf.SPI.ByteArray result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.controller_ = controller_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.chipSelect_ = chipSelect_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.txData_ = txData_;
        }
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.diozero.remote.message.protobuf.SPI.ByteArray) {
          return mergeFrom((com.diozero.remote.message.protobuf.SPI.ByteArray)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.diozero.remote.message.protobuf.SPI.ByteArray other) {
        if (other == com.diozero.remote.message.protobuf.SPI.ByteArray.getDefaultInstance()) return this;
        if (other.getController() != 0) {
          setController(other.getController());
        }
        if (other.getChipSelect() != 0) {
          setChipSelect(other.getChipSelect());
        }
        if (other.getTxData() != com.google.protobuf.ByteString.EMPTY) {
          setTxData(other.getTxData());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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 {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                controller_ = input.readInt32();
                bitField0_ |= 0x00000001;
                break;
              } // case 8
              case 16: {
                chipSelect_ = input.readInt32();
                bitField0_ |= 0x00000002;
                break;
              } // case 16
              case 26: {
                txData_ = input.readBytes();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private int controller_ ;
      /**
       * int32 controller = 1;
       * @return The controller.
       */
      @java.lang.Override
      public int getController() {
        return controller_;
      }
      /**
       * int32 controller = 1;
       * @param value The controller to set.
       * @return This builder for chaining.
       */
      public Builder setController(int value) {

        controller_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * int32 controller = 1;
       * @return This builder for chaining.
       */
      public Builder clearController() {
        bitField0_ = (bitField0_ & ~0x00000001);
        controller_ = 0;
        onChanged();
        return this;
      }

      private int chipSelect_ ;
      /**
       * int32 chipSelect = 2;
       * @return The chipSelect.
       */
      @java.lang.Override
      public int getChipSelect() {
        return chipSelect_;
      }
      /**
       * int32 chipSelect = 2;
       * @param value The chipSelect to set.
       * @return This builder for chaining.
       */
      public Builder setChipSelect(int value) {

        chipSelect_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * int32 chipSelect = 2;
       * @return This builder for chaining.
       */
      public Builder clearChipSelect() {
        bitField0_ = (bitField0_ & ~0x00000002);
        chipSelect_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString txData_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes txData = 3;
       * @return The txData.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTxData() {
        return txData_;
      }
      /**
       * bytes txData = 3;
       * @param value The txData to set.
       * @return This builder for chaining.
       */
      public Builder setTxData(com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        txData_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * bytes txData = 3;
       * @return This builder for chaining.
       */
      public Builder clearTxData() {
        bitField0_ = (bitField0_ & ~0x00000004);
        txData_ = getDefaultInstance().getTxData();
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:diozero.SPI.ByteArray)
    }

    // @@protoc_insertion_point(class_scope:diozero.SPI.ByteArray)
    private static final com.diozero.remote.message.protobuf.SPI.ByteArray DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.diozero.remote.message.protobuf.SPI.ByteArray();
    }

    public static com.diozero.remote.message.protobuf.SPI.ByteArray getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public ByteArray parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

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

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

    @java.lang.Override
    public com.diozero.remote.message.protobuf.SPI.ByteArray getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

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

    size = 0;
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.diozero.remote.message.protobuf.SPI)) {
      return super.equals(obj);
    }
    com.diozero.remote.message.protobuf.SPI other = (com.diozero.remote.message.protobuf.SPI) obj;

    if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.diozero.remote.message.protobuf.SPI parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.diozero.remote.message.protobuf.SPI parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.diozero.remote.message.protobuf.SPI parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.diozero.remote.message.protobuf.SPI parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.diozero.remote.message.protobuf.SPI parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.diozero.remote.message.protobuf.SPI parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.diozero.remote.message.protobuf.SPI parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input);
  }
  public static com.diozero.remote.message.protobuf.SPI parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static com.diozero.remote.message.protobuf.SPI parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static com.diozero.remote.message.protobuf.SPI parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.diozero.remote.message.protobuf.SPI parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input);
  }
  public static com.diozero.remote.message.protobuf.SPI parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.diozero.remote.message.protobuf.SPI prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessage.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code diozero.SPI}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessage.Builder implements
      // @@protoc_insertion_point(builder_implements:diozero.SPI)
      com.diozero.remote.message.protobuf.SPIOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.diozero.remote.message.protobuf.SPI.class, com.diozero.remote.message.protobuf.SPI.Builder.class);
    }

    // Construct using com.diozero.remote.message.protobuf.SPI.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      super(parent);

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

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.diozero.remote.message.protobuf.Diozero.internal_static_diozero_SPI_descriptor;
    }

    @java.lang.Override
    public com.diozero.remote.message.protobuf.SPI getDefaultInstanceForType() {
      return com.diozero.remote.message.protobuf.SPI.getDefaultInstance();
    }

    @java.lang.Override
    public com.diozero.remote.message.protobuf.SPI build() {
      com.diozero.remote.message.protobuf.SPI result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.diozero.remote.message.protobuf.SPI buildPartial() {
      com.diozero.remote.message.protobuf.SPI result = new com.diozero.remote.message.protobuf.SPI(this);
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.diozero.remote.message.protobuf.SPI) {
        return mergeFrom((com.diozero.remote.message.protobuf.SPI)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.diozero.remote.message.protobuf.SPI other) {
      if (other == com.diozero.remote.message.protobuf.SPI.getDefaultInstance()) return this;
      this.mergeUnknownFields(other.getUnknownFields());
      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 {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    // @@protoc_insertion_point(builder_scope:diozero.SPI)
  }

  // @@protoc_insertion_point(class_scope:diozero.SPI)
  private static final com.diozero.remote.message.protobuf.SPI DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.diozero.remote.message.protobuf.SPI();
  }

  public static com.diozero.remote.message.protobuf.SPI getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public SPI parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

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

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

  @java.lang.Override
  public com.diozero.remote.message.protobuf.SPI getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy