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

com.powsybl.computation.mpi.generated.Messages Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/messages.proto

package com.powsybl.computation.mpi.generated;

public final class Messages {
  private Messages() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface CommonFileOrBuilder extends
      // @@protoc_insertion_point(interface_extends:messages.CommonFile)
      com.google.protobuf.MessageOrBuilder {

    /**
     * required string name = 1;
     */
    boolean hasName();
    /**
     * required string name = 1;
     */
    java.lang.String getName();
    /**
     * required string name = 1;
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * required int32 chunk = 2;
     */
    boolean hasChunk();
    /**
     * required int32 chunk = 2;
     */
    int getChunk();

    /**
     * required bool last = 3;
     */
    boolean hasLast();
    /**
     * required bool last = 3;
     */
    boolean getLast();

    /**
     * required bytes data = 4;
     */
    boolean hasData();
    /**
     * required bytes data = 4;
     */
    com.google.protobuf.ByteString getData();
  }
  /**
   * Protobuf type {@code messages.CommonFile}
   */
  public  static final class CommonFile extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:messages.CommonFile)
      CommonFileOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use CommonFile.newBuilder() to construct.
    private CommonFile(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private CommonFile() {
      name_ = "";
      chunk_ = 0;
      last_ = false;
      data_ = com.google.protobuf.ByteString.EMPTY;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private CommonFile(
        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: {
              com.google.protobuf.ByteString bs = input.readBytes();
              bitField0_ |= 0x00000001;
              name_ = bs;
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              chunk_ = input.readInt32();
              break;
            }
            case 24: {
              bitField0_ |= 0x00000004;
              last_ = input.readBool();
              break;
            }
            case 34: {
              bitField0_ |= 0x00000008;
              data_ = input.readBytes();
              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 com.powsybl.computation.mpi.generated.Messages.internal_static_messages_CommonFile_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_CommonFile_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.powsybl.computation.mpi.generated.Messages.CommonFile.class, com.powsybl.computation.mpi.generated.Messages.CommonFile.Builder.class);
    }

    private int bitField0_;
    public static final int NAME_FIELD_NUMBER = 1;
    private volatile java.lang.Object name_;
    /**
     * required string name = 1;
     */
    public boolean hasName() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * required string name = 1;
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          name_ = s;
        }
        return s;
      }
    }
    /**
     * required string name = 1;
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int CHUNK_FIELD_NUMBER = 2;
    private int chunk_;
    /**
     * required int32 chunk = 2;
     */
    public boolean hasChunk() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * required int32 chunk = 2;
     */
    public int getChunk() {
      return chunk_;
    }

    public static final int LAST_FIELD_NUMBER = 3;
    private boolean last_;
    /**
     * required bool last = 3;
     */
    public boolean hasLast() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * required bool last = 3;
     */
    public boolean getLast() {
      return last_;
    }

    public static final int DATA_FIELD_NUMBER = 4;
    private com.google.protobuf.ByteString data_;
    /**
     * required bytes data = 4;
     */
    public boolean hasData() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * required bytes data = 4;
     */
    public com.google.protobuf.ByteString getData() {
      return data_;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      if (!hasName()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasChunk()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasLast()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasData()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeInt32(2, chunk_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBool(3, last_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeBytes(4, data_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, chunk_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(3, last_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(4, data_);
      }
      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 com.powsybl.computation.mpi.generated.Messages.CommonFile)) {
        return super.equals(obj);
      }
      com.powsybl.computation.mpi.generated.Messages.CommonFile other = (com.powsybl.computation.mpi.generated.Messages.CommonFile) obj;

      boolean result = true;
      result = result && (hasName() == other.hasName());
      if (hasName()) {
        result = result && getName()
            .equals(other.getName());
      }
      result = result && (hasChunk() == other.hasChunk());
      if (hasChunk()) {
        result = result && (getChunk()
            == other.getChunk());
      }
      result = result && (hasLast() == other.hasLast());
      if (hasLast()) {
        result = result && (getLast()
            == other.getLast());
      }
      result = result && (hasData() == other.hasData());
      if (hasData()) {
        result = result && getData()
            .equals(other.getData());
      }
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasName()) {
        hash = (37 * hash) + NAME_FIELD_NUMBER;
        hash = (53 * hash) + getName().hashCode();
      }
      if (hasChunk()) {
        hash = (37 * hash) + CHUNK_FIELD_NUMBER;
        hash = (53 * hash) + getChunk();
      }
      if (hasLast()) {
        hash = (37 * hash) + LAST_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
            getLast());
      }
      if (hasData()) {
        hash = (37 * hash) + DATA_FIELD_NUMBER;
        hash = (53 * hash) + getData().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_CommonFile_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.powsybl.computation.mpi.generated.Messages.CommonFile.class, com.powsybl.computation.mpi.generated.Messages.CommonFile.Builder.class);
      }

      // Construct using com.powsybl.computation.mpi.generated.Messages.CommonFile.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();
        name_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        chunk_ = 0;
        bitField0_ = (bitField0_ & ~0x00000002);
        last_ = false;
        bitField0_ = (bitField0_ & ~0x00000004);
        data_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_CommonFile_descriptor;
      }

      @java.lang.Override
      public com.powsybl.computation.mpi.generated.Messages.CommonFile getDefaultInstanceForType() {
        return com.powsybl.computation.mpi.generated.Messages.CommonFile.getDefaultInstance();
      }

      @java.lang.Override
      public com.powsybl.computation.mpi.generated.Messages.CommonFile build() {
        com.powsybl.computation.mpi.generated.Messages.CommonFile result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.powsybl.computation.mpi.generated.Messages.CommonFile buildPartial() {
        com.powsybl.computation.mpi.generated.Messages.CommonFile result = new com.powsybl.computation.mpi.generated.Messages.CommonFile(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.name_ = name_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.chunk_ = chunk_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.last_ = last_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        result.data_ = data_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return (Builder) super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.powsybl.computation.mpi.generated.Messages.CommonFile) {
          return mergeFrom((com.powsybl.computation.mpi.generated.Messages.CommonFile)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.powsybl.computation.mpi.generated.Messages.CommonFile other) {
        if (other == com.powsybl.computation.mpi.generated.Messages.CommonFile.getDefaultInstance()) return this;
        if (other.hasName()) {
          bitField0_ |= 0x00000001;
          name_ = other.name_;
          onChanged();
        }
        if (other.hasChunk()) {
          setChunk(other.getChunk());
        }
        if (other.hasLast()) {
          setLast(other.getLast());
        }
        if (other.hasData()) {
          setData(other.getData());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        if (!hasName()) {
          return false;
        }
        if (!hasChunk()) {
          return false;
        }
        if (!hasLast()) {
          return false;
        }
        if (!hasData()) {
          return false;
        }
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.powsybl.computation.mpi.generated.Messages.CommonFile parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.powsybl.computation.mpi.generated.Messages.CommonFile) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.lang.Object name_ = "";
      /**
       * required string name = 1;
       */
      public boolean hasName() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * required string name = 1;
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            name_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * required string name = 1;
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * required string name = 1;
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * required string name = 1;
       */
      public Builder clearName() {
        bitField0_ = (bitField0_ & ~0x00000001);
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * required string name = 1;
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        name_ = value;
        onChanged();
        return this;
      }

      private int chunk_ ;
      /**
       * required int32 chunk = 2;
       */
      public boolean hasChunk() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * required int32 chunk = 2;
       */
      public int getChunk() {
        return chunk_;
      }
      /**
       * required int32 chunk = 2;
       */
      public Builder setChunk(int value) {
        bitField0_ |= 0x00000002;
        chunk_ = value;
        onChanged();
        return this;
      }
      /**
       * required int32 chunk = 2;
       */
      public Builder clearChunk() {
        bitField0_ = (bitField0_ & ~0x00000002);
        chunk_ = 0;
        onChanged();
        return this;
      }

      private boolean last_ ;
      /**
       * required bool last = 3;
       */
      public boolean hasLast() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * required bool last = 3;
       */
      public boolean getLast() {
        return last_;
      }
      /**
       * required bool last = 3;
       */
      public Builder setLast(boolean value) {
        bitField0_ |= 0x00000004;
        last_ = value;
        onChanged();
        return this;
      }
      /**
       * required bool last = 3;
       */
      public Builder clearLast() {
        bitField0_ = (bitField0_ & ~0x00000004);
        last_ = false;
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * required bytes data = 4;
       */
      public boolean hasData() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * required bytes data = 4;
       */
      public com.google.protobuf.ByteString getData() {
        return data_;
      }
      /**
       * required bytes data = 4;
       */
      public Builder setData(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        data_ = value;
        onChanged();
        return this;
      }
      /**
       * required bytes data = 4;
       */
      public Builder clearData() {
        bitField0_ = (bitField0_ & ~0x00000008);
        data_ = getDefaultInstance().getData();
        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:messages.CommonFile)
    }

    // @@protoc_insertion_point(class_scope:messages.CommonFile)
    private static final com.powsybl.computation.mpi.generated.Messages.CommonFile DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.powsybl.computation.mpi.generated.Messages.CommonFile();
    }

    public static com.powsybl.computation.mpi.generated.Messages.CommonFile getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

    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.powsybl.computation.mpi.generated.Messages.CommonFile getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface TaskOrBuilder extends
      // @@protoc_insertion_point(interface_extends:messages.Task)
      com.google.protobuf.MessageOrBuilder {

    /**
     * required int32 jobId = 1;
     */
    boolean hasJobId();
    /**
     * required int32 jobId = 1;
     */
    int getJobId();

    /**
     * required int32 index = 2;
     */
    boolean hasIndex();
    /**
     * required int32 index = 2;
     */
    int getIndex();

    /**
     * required .messages.Task.Environment env = 3;
     */
    boolean hasEnv();
    /**
     * required .messages.Task.Environment env = 3;
     */
    com.powsybl.computation.mpi.generated.Messages.Task.Environment getEnv();
    /**
     * required .messages.Task.Environment env = 3;
     */
    com.powsybl.computation.mpi.generated.Messages.Task.EnvironmentOrBuilder getEnvOrBuilder();

    /**
     * required string cmdId = 4;
     */
    boolean hasCmdId();
    /**
     * required string cmdId = 4;
     */
    java.lang.String getCmdId();
    /**
     * required string cmdId = 4;
     */
    com.google.protobuf.ByteString
        getCmdIdBytes();

    /**
     * repeated .messages.Task.Command command = 5;
     */
    java.util.List 
        getCommandList();
    /**
     * repeated .messages.Task.Command command = 5;
     */
    com.powsybl.computation.mpi.generated.Messages.Task.Command getCommand(int index);
    /**
     * repeated .messages.Task.Command command = 5;
     */
    int getCommandCount();
    /**
     * repeated .messages.Task.Command command = 5;
     */
    java.util.List 
        getCommandOrBuilderList();
    /**
     * repeated .messages.Task.Command command = 5;
     */
    com.powsybl.computation.mpi.generated.Messages.Task.CommandOrBuilder getCommandOrBuilder(
        int index);

    /**
     * repeated .messages.Task.InputFile inputFile = 6;
     */
    java.util.List 
        getInputFileList();
    /**
     * repeated .messages.Task.InputFile inputFile = 6;
     */
    com.powsybl.computation.mpi.generated.Messages.Task.InputFile getInputFile(int index);
    /**
     * repeated .messages.Task.InputFile inputFile = 6;
     */
    int getInputFileCount();
    /**
     * repeated .messages.Task.InputFile inputFile = 6;
     */
    java.util.List 
        getInputFileOrBuilderList();
    /**
     * repeated .messages.Task.InputFile inputFile = 6;
     */
    com.powsybl.computation.mpi.generated.Messages.Task.InputFileOrBuilder getInputFileOrBuilder(
        int index);

    /**
     * repeated .messages.Task.OutputFile outputFile = 7;
     */
    java.util.List 
        getOutputFileList();
    /**
     * repeated .messages.Task.OutputFile outputFile = 7;
     */
    com.powsybl.computation.mpi.generated.Messages.Task.OutputFile getOutputFile(int index);
    /**
     * repeated .messages.Task.OutputFile outputFile = 7;
     */
    int getOutputFileCount();
    /**
     * repeated .messages.Task.OutputFile outputFile = 7;
     */
    java.util.List 
        getOutputFileOrBuilderList();
    /**
     * repeated .messages.Task.OutputFile outputFile = 7;
     */
    com.powsybl.computation.mpi.generated.Messages.Task.OutputFileOrBuilder getOutputFileOrBuilder(
        int index);

    /**
     * required bool initJob = 8;
     */
    boolean hasInitJob();
    /**
     * required bool initJob = 8;
     */
    boolean getInitJob();

    /**
     * 
     * for cleanup
     * 
* * repeated int32 completedJobId = 9; */ java.util.List getCompletedJobIdList(); /** *
     * for cleanup
     * 
* * repeated int32 completedJobId = 9; */ int getCompletedJobIdCount(); /** *
     * for cleanup
     * 
* * repeated int32 completedJobId = 9; */ int getCompletedJobId(int index); } /** * Protobuf type {@code messages.Task} */ public static final class Task extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:messages.Task) TaskOrBuilder { private static final long serialVersionUID = 0L; // Use Task.newBuilder() to construct. private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Task() { jobId_ = 0; index_ = 0; cmdId_ = ""; command_ = java.util.Collections.emptyList(); inputFile_ = java.util.Collections.emptyList(); outputFile_ = java.util.Collections.emptyList(); initJob_ = false; completedJobId_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Task( 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 8: { bitField0_ |= 0x00000001; jobId_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; index_ = input.readInt32(); break; } case 26: { com.powsybl.computation.mpi.generated.Messages.Task.Environment.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = env_.toBuilder(); } env_ = input.readMessage(com.powsybl.computation.mpi.generated.Messages.Task.Environment.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(env_); env_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; cmdId_ = bs; break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { command_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } command_.add( input.readMessage(com.powsybl.computation.mpi.generated.Messages.Task.Command.PARSER, extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { inputFile_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } inputFile_.add( input.readMessage(com.powsybl.computation.mpi.generated.Messages.Task.InputFile.PARSER, extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { outputFile_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } outputFile_.add( input.readMessage(com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.PARSER, extensionRegistry)); break; } case 64: { bitField0_ |= 0x00000010; initJob_ = input.readBool(); break; } case 72: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { completedJobId_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } completedJobId_.add(input.readInt32()); break; } case 74: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) { completedJobId_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } while (input.getBytesUntilLimit() > 0) { completedJobId_.add(input.readInt32()); } input.popLimit(limit); 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_ & 0x00000010) == 0x00000010)) { command_ = java.util.Collections.unmodifiableList(command_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { inputFile_ = java.util.Collections.unmodifiableList(inputFile_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { outputFile_ = java.util.Collections.unmodifiableList(outputFile_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { completedJobId_ = java.util.Collections.unmodifiableList(completedJobId_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.Task.class, com.powsybl.computation.mpi.generated.Messages.Task.Builder.class); } public interface InputFileOrBuilder extends // @@protoc_insertion_point(interface_extends:messages.Task.InputFile) com.google.protobuf.MessageOrBuilder { /** * required string name = 1; */ boolean hasName(); /** * required string name = 1; */ java.lang.String getName(); /** * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * required .messages.Task.InputFile.Scope scope = 2; */ boolean hasScope(); /** * required .messages.Task.InputFile.Scope scope = 2; */ com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Scope getScope(); /** * optional bytes data = 3; */ boolean hasData(); /** * optional bytes data = 3; */ com.google.protobuf.ByteString getData(); /** * required .messages.Task.InputFile.PreProcessor preProcessor = 4; */ boolean hasPreProcessor(); /** * required .messages.Task.InputFile.PreProcessor preProcessor = 4; */ com.powsybl.computation.mpi.generated.Messages.Task.InputFile.PreProcessor getPreProcessor(); } /** * Protobuf type {@code messages.Task.InputFile} */ public static final class InputFile extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:messages.Task.InputFile) InputFileOrBuilder { private static final long serialVersionUID = 0L; // Use InputFile.newBuilder() to construct. private InputFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InputFile() { name_ = ""; scope_ = 1; data_ = com.google.protobuf.ByteString.EMPTY; preProcessor_ = 1; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InputFile( 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: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 16: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Scope value = com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Scope.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; scope_ = rawValue; } break; } case 26: { bitField0_ |= 0x00000004; data_ = input.readBytes(); break; } case 32: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") com.powsybl.computation.mpi.generated.Messages.Task.InputFile.PreProcessor value = com.powsybl.computation.mpi.generated.Messages.Task.InputFile.PreProcessor.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { bitField0_ |= 0x00000008; preProcessor_ = 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 com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_InputFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_InputFile_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.Task.InputFile.class, com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Builder.class); } /** * Protobuf enum {@code messages.Task.InputFile.PreProcessor} */ public enum PreProcessor implements com.google.protobuf.ProtocolMessageEnum { /** * NONE = 1; */ NONE(1), /** * ARCHIVE_UNZIP = 2; */ ARCHIVE_UNZIP(2), /** * FILE_GUNZIP = 3; */ FILE_GUNZIP(3), ; /** * NONE = 1; */ public static final int NONE_VALUE = 1; /** * ARCHIVE_UNZIP = 2; */ public static final int ARCHIVE_UNZIP_VALUE = 2; /** * FILE_GUNZIP = 3; */ public static final int FILE_GUNZIP_VALUE = 3; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PreProcessor valueOf(int value) { return forNumber(value); } public static PreProcessor forNumber(int value) { switch (value) { case 1: return NONE; case 2: return ARCHIVE_UNZIP; case 3: return FILE_GUNZIP; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PreProcessor> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PreProcessor findValueByNumber(int number) { return PreProcessor.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 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.powsybl.computation.mpi.generated.Messages.Task.InputFile.getDescriptor().getEnumTypes().get(0); } private static final PreProcessor[] VALUES = values(); public static PreProcessor valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private PreProcessor(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:messages.Task.InputFile.PreProcessor) } /** * Protobuf enum {@code messages.Task.InputFile.Scope} */ public enum Scope implements com.google.protobuf.ProtocolMessageEnum { /** * RUN = 1; */ RUN(1), /** * JOB = 2; */ JOB(2), /** * TASK = 3; */ TASK(3), ; /** * RUN = 1; */ public static final int RUN_VALUE = 1; /** * JOB = 2; */ public static final int JOB_VALUE = 2; /** * TASK = 3; */ public static final int TASK_VALUE = 3; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Scope valueOf(int value) { return forNumber(value); } public static Scope forNumber(int value) { switch (value) { case 1: return RUN; case 2: return JOB; case 3: return TASK; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Scope> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Scope findValueByNumber(int number) { return Scope.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 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.powsybl.computation.mpi.generated.Messages.Task.InputFile.getDescriptor().getEnumTypes().get(1); } private static final Scope[] VALUES = values(); public static Scope valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Scope(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:messages.Task.InputFile.Scope) } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCOPE_FIELD_NUMBER = 2; private int scope_; /** * required .messages.Task.InputFile.Scope scope = 2; */ public boolean hasScope() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .messages.Task.InputFile.Scope scope = 2; */ public com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Scope getScope() { @SuppressWarnings("deprecation") com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Scope result = com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Scope.valueOf(scope_); return result == null ? com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Scope.RUN : result; } public static final int DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString data_; /** * optional bytes data = 3; */ public boolean hasData() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes data = 3; */ public com.google.protobuf.ByteString getData() { return data_; } public static final int PREPROCESSOR_FIELD_NUMBER = 4; private int preProcessor_; /** * required .messages.Task.InputFile.PreProcessor preProcessor = 4; */ public boolean hasPreProcessor() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required .messages.Task.InputFile.PreProcessor preProcessor = 4; */ public com.powsybl.computation.mpi.generated.Messages.Task.InputFile.PreProcessor getPreProcessor() { @SuppressWarnings("deprecation") com.powsybl.computation.mpi.generated.Messages.Task.InputFile.PreProcessor result = com.powsybl.computation.mpi.generated.Messages.Task.InputFile.PreProcessor.valueOf(preProcessor_); return result == null ? com.powsybl.computation.mpi.generated.Messages.Task.InputFile.PreProcessor.NONE : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasScope()) { memoizedIsInitialized = 0; return false; } if (!hasPreProcessor()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, scope_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, data_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeEnum(4, preProcessor_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, scope_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, data_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, preProcessor_); } 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 com.powsybl.computation.mpi.generated.Messages.Task.InputFile)) { return super.equals(obj); } com.powsybl.computation.mpi.generated.Messages.Task.InputFile other = (com.powsybl.computation.mpi.generated.Messages.Task.InputFile) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasScope() == other.hasScope()); if (hasScope()) { result = result && scope_ == other.scope_; } result = result && (hasData() == other.hasData()); if (hasData()) { result = result && getData() .equals(other.getData()); } result = result && (hasPreProcessor() == other.hasPreProcessor()); if (hasPreProcessor()) { result = result && preProcessor_ == other.preProcessor_; } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasScope()) { hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + scope_; } if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } if (hasPreProcessor()) { hash = (37 * hash) + PREPROCESSOR_FIELD_NUMBER; hash = (53 * hash) + preProcessor_; } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.powsybl.computation.mpi.generated.Messages.Task.InputFile parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task.InputFile parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task.InputFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task.InputFile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task.InputFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task.InputFile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task.InputFile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task.InputFile 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 com.powsybl.computation.mpi.generated.Messages.Task.InputFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task.InputFile 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 com.powsybl.computation.mpi.generated.Messages.Task.InputFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task.InputFile 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(com.powsybl.computation.mpi.generated.Messages.Task.InputFile 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 messages.Task.InputFile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:messages.Task.InputFile) com.powsybl.computation.mpi.generated.Messages.Task.InputFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_InputFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_InputFile_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.Task.InputFile.class, com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Builder.class); } // Construct using com.powsybl.computation.mpi.generated.Messages.Task.InputFile.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(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); scope_ = 1; bitField0_ = (bitField0_ & ~0x00000002); data_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); preProcessor_ = 1; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_InputFile_descriptor; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task.InputFile getDefaultInstanceForType() { return com.powsybl.computation.mpi.generated.Messages.Task.InputFile.getDefaultInstance(); } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task.InputFile build() { com.powsybl.computation.mpi.generated.Messages.Task.InputFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task.InputFile buildPartial() { com.powsybl.computation.mpi.generated.Messages.Task.InputFile result = new com.powsybl.computation.mpi.generated.Messages.Task.InputFile(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.scope_ = scope_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.data_ = data_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.preProcessor_ = preProcessor_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.powsybl.computation.mpi.generated.Messages.Task.InputFile) { return mergeFrom((com.powsybl.computation.mpi.generated.Messages.Task.InputFile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.powsybl.computation.mpi.generated.Messages.Task.InputFile other) { if (other == com.powsybl.computation.mpi.generated.Messages.Task.InputFile.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasScope()) { setScope(other.getScope()); } if (other.hasData()) { setData(other.getData()); } if (other.hasPreProcessor()) { setPreProcessor(other.getPreProcessor()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasScope()) { return false; } if (!hasPreProcessor()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.powsybl.computation.mpi.generated.Messages.Task.InputFile parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.powsybl.computation.mpi.generated.Messages.Task.InputFile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private int scope_ = 1; /** * required .messages.Task.InputFile.Scope scope = 2; */ public boolean hasScope() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .messages.Task.InputFile.Scope scope = 2; */ public com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Scope getScope() { @SuppressWarnings("deprecation") com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Scope result = com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Scope.valueOf(scope_); return result == null ? com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Scope.RUN : result; } /** * required .messages.Task.InputFile.Scope scope = 2; */ public Builder setScope(com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Scope value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; scope_ = value.getNumber(); onChanged(); return this; } /** * required .messages.Task.InputFile.Scope scope = 2; */ public Builder clearScope() { bitField0_ = (bitField0_ & ~0x00000002); scope_ = 1; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes data = 3; */ public boolean hasData() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes data = 3; */ public com.google.protobuf.ByteString getData() { return data_; } /** * optional bytes data = 3; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; data_ = value; onChanged(); return this; } /** * optional bytes data = 3; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000004); data_ = getDefaultInstance().getData(); onChanged(); return this; } private int preProcessor_ = 1; /** * required .messages.Task.InputFile.PreProcessor preProcessor = 4; */ public boolean hasPreProcessor() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required .messages.Task.InputFile.PreProcessor preProcessor = 4; */ public com.powsybl.computation.mpi.generated.Messages.Task.InputFile.PreProcessor getPreProcessor() { @SuppressWarnings("deprecation") com.powsybl.computation.mpi.generated.Messages.Task.InputFile.PreProcessor result = com.powsybl.computation.mpi.generated.Messages.Task.InputFile.PreProcessor.valueOf(preProcessor_); return result == null ? com.powsybl.computation.mpi.generated.Messages.Task.InputFile.PreProcessor.NONE : result; } /** * required .messages.Task.InputFile.PreProcessor preProcessor = 4; */ public Builder setPreProcessor(com.powsybl.computation.mpi.generated.Messages.Task.InputFile.PreProcessor value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; preProcessor_ = value.getNumber(); onChanged(); return this; } /** * required .messages.Task.InputFile.PreProcessor preProcessor = 4; */ public Builder clearPreProcessor() { bitField0_ = (bitField0_ & ~0x00000008); preProcessor_ = 1; 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:messages.Task.InputFile) } // @@protoc_insertion_point(class_scope:messages.Task.InputFile) private static final com.powsybl.computation.mpi.generated.Messages.Task.InputFile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.powsybl.computation.mpi.generated.Messages.Task.InputFile(); } public static com.powsybl.computation.mpi.generated.Messages.Task.InputFile getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InputFile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InputFile(input, extensionRegistry); } }; 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.powsybl.computation.mpi.generated.Messages.Task.InputFile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OutputFileOrBuilder extends // @@protoc_insertion_point(interface_extends:messages.Task.OutputFile) com.google.protobuf.MessageOrBuilder { /** * required string name = 1; */ boolean hasName(); /** * required string name = 1; */ java.lang.String getName(); /** * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * required .messages.Task.OutputFile.PostProcessor postProcessor = 2; */ boolean hasPostProcessor(); /** * required .messages.Task.OutputFile.PostProcessor postProcessor = 2; */ com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.PostProcessor getPostProcessor(); } /** * Protobuf type {@code messages.Task.OutputFile} */ public static final class OutputFile extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:messages.Task.OutputFile) OutputFileOrBuilder { private static final long serialVersionUID = 0L; // Use OutputFile.newBuilder() to construct. private OutputFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OutputFile() { name_ = ""; postProcessor_ = 1; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OutputFile( 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: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 16: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.PostProcessor value = com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.PostProcessor.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; postProcessor_ = 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 com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_OutputFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_OutputFile_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.class, com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.Builder.class); } /** * Protobuf enum {@code messages.Task.OutputFile.PostProcessor} */ public enum PostProcessor implements com.google.protobuf.ProtocolMessageEnum { /** * NONE = 1; */ NONE(1), /** * FILE_GZIP = 2; */ FILE_GZIP(2), ; /** * NONE = 1; */ public static final int NONE_VALUE = 1; /** * FILE_GZIP = 2; */ public static final int FILE_GZIP_VALUE = 2; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PostProcessor valueOf(int value) { return forNumber(value); } public static PostProcessor forNumber(int value) { switch (value) { case 1: return NONE; case 2: return FILE_GZIP; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PostProcessor> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PostProcessor findValueByNumber(int number) { return PostProcessor.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 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.powsybl.computation.mpi.generated.Messages.Task.OutputFile.getDescriptor().getEnumTypes().get(0); } private static final PostProcessor[] VALUES = values(); public static PostProcessor valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private PostProcessor(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:messages.Task.OutputFile.PostProcessor) } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int POSTPROCESSOR_FIELD_NUMBER = 2; private int postProcessor_; /** * required .messages.Task.OutputFile.PostProcessor postProcessor = 2; */ public boolean hasPostProcessor() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .messages.Task.OutputFile.PostProcessor postProcessor = 2; */ public com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.PostProcessor getPostProcessor() { @SuppressWarnings("deprecation") com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.PostProcessor result = com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.PostProcessor.valueOf(postProcessor_); return result == null ? com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.PostProcessor.NONE : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasPostProcessor()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, postProcessor_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, postProcessor_); } 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 com.powsybl.computation.mpi.generated.Messages.Task.OutputFile)) { return super.equals(obj); } com.powsybl.computation.mpi.generated.Messages.Task.OutputFile other = (com.powsybl.computation.mpi.generated.Messages.Task.OutputFile) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasPostProcessor() == other.hasPostProcessor()); if (hasPostProcessor()) { result = result && postProcessor_ == other.postProcessor_; } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasPostProcessor()) { hash = (37 * hash) + POSTPROCESSOR_FIELD_NUMBER; hash = (53 * hash) + postProcessor_; } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.powsybl.computation.mpi.generated.Messages.Task.OutputFile parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task.OutputFile parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task.OutputFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task.OutputFile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task.OutputFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task.OutputFile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task.OutputFile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task.OutputFile 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 com.powsybl.computation.mpi.generated.Messages.Task.OutputFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task.OutputFile 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 com.powsybl.computation.mpi.generated.Messages.Task.OutputFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task.OutputFile 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(com.powsybl.computation.mpi.generated.Messages.Task.OutputFile 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 messages.Task.OutputFile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:messages.Task.OutputFile) com.powsybl.computation.mpi.generated.Messages.Task.OutputFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_OutputFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_OutputFile_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.class, com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.Builder.class); } // Construct using com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.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(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); postProcessor_ = 1; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_OutputFile_descriptor; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task.OutputFile getDefaultInstanceForType() { return com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.getDefaultInstance(); } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task.OutputFile build() { com.powsybl.computation.mpi.generated.Messages.Task.OutputFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task.OutputFile buildPartial() { com.powsybl.computation.mpi.generated.Messages.Task.OutputFile result = new com.powsybl.computation.mpi.generated.Messages.Task.OutputFile(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.postProcessor_ = postProcessor_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.powsybl.computation.mpi.generated.Messages.Task.OutputFile) { return mergeFrom((com.powsybl.computation.mpi.generated.Messages.Task.OutputFile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.powsybl.computation.mpi.generated.Messages.Task.OutputFile other) { if (other == com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasPostProcessor()) { setPostProcessor(other.getPostProcessor()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasPostProcessor()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.powsybl.computation.mpi.generated.Messages.Task.OutputFile parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.powsybl.computation.mpi.generated.Messages.Task.OutputFile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private int postProcessor_ = 1; /** * required .messages.Task.OutputFile.PostProcessor postProcessor = 2; */ public boolean hasPostProcessor() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .messages.Task.OutputFile.PostProcessor postProcessor = 2; */ public com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.PostProcessor getPostProcessor() { @SuppressWarnings("deprecation") com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.PostProcessor result = com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.PostProcessor.valueOf(postProcessor_); return result == null ? com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.PostProcessor.NONE : result; } /** * required .messages.Task.OutputFile.PostProcessor postProcessor = 2; */ public Builder setPostProcessor(com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.PostProcessor value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; postProcessor_ = value.getNumber(); onChanged(); return this; } /** * required .messages.Task.OutputFile.PostProcessor postProcessor = 2; */ public Builder clearPostProcessor() { bitField0_ = (bitField0_ & ~0x00000002); postProcessor_ = 1; 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:messages.Task.OutputFile) } // @@protoc_insertion_point(class_scope:messages.Task.OutputFile) private static final com.powsybl.computation.mpi.generated.Messages.Task.OutputFile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.powsybl.computation.mpi.generated.Messages.Task.OutputFile(); } public static com.powsybl.computation.mpi.generated.Messages.Task.OutputFile getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OutputFile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OutputFile(input, extensionRegistry); } }; 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.powsybl.computation.mpi.generated.Messages.Task.OutputFile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VariableOrBuilder extends // @@protoc_insertion_point(interface_extends:messages.Task.Variable) com.google.protobuf.MessageOrBuilder { /** * required string name = 1; */ boolean hasName(); /** * required string name = 1; */ java.lang.String getName(); /** * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * required string value = 2; */ boolean hasValue(); /** * required string value = 2; */ java.lang.String getValue(); /** * required string value = 2; */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code messages.Task.Variable} */ public static final class Variable extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:messages.Task.Variable) VariableOrBuilder { private static final long serialVersionUID = 0L; // Use Variable.newBuilder() to construct. private Variable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Variable() { name_ = ""; value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Variable( 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: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; value_ = bs; 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 com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_Variable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_Variable_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.Task.Variable.class, com.powsybl.computation.mpi.generated.Messages.Task.Variable.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** * required string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { value_ = s; } return s; } } /** * required string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } 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 com.powsybl.computation.mpi.generated.Messages.Task.Variable)) { return super.equals(obj); } com.powsybl.computation.mpi.generated.Messages.Task.Variable other = (com.powsybl.computation.mpi.generated.Messages.Task.Variable) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.powsybl.computation.mpi.generated.Messages.Task.Variable parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task.Variable parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task.Variable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task.Variable parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task.Variable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task.Variable parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task.Variable parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task.Variable 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 com.powsybl.computation.mpi.generated.Messages.Task.Variable parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task.Variable 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 com.powsybl.computation.mpi.generated.Messages.Task.Variable parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task.Variable 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(com.powsybl.computation.mpi.generated.Messages.Task.Variable 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 messages.Task.Variable} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:messages.Task.Variable) com.powsybl.computation.mpi.generated.Messages.Task.VariableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_Variable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_Variable_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.Task.Variable.class, com.powsybl.computation.mpi.generated.Messages.Task.Variable.Builder.class); } // Construct using com.powsybl.computation.mpi.generated.Messages.Task.Variable.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(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_Variable_descriptor; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task.Variable getDefaultInstanceForType() { return com.powsybl.computation.mpi.generated.Messages.Task.Variable.getDefaultInstance(); } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task.Variable build() { com.powsybl.computation.mpi.generated.Messages.Task.Variable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task.Variable buildPartial() { com.powsybl.computation.mpi.generated.Messages.Task.Variable result = new com.powsybl.computation.mpi.generated.Messages.Task.Variable(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.powsybl.computation.mpi.generated.Messages.Task.Variable) { return mergeFrom((com.powsybl.computation.mpi.generated.Messages.Task.Variable)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.powsybl.computation.mpi.generated.Messages.Task.Variable other) { if (other == com.powsybl.computation.mpi.generated.Messages.Task.Variable.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasValue()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.powsybl.computation.mpi.generated.Messages.Task.Variable parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.powsybl.computation.mpi.generated.Messages.Task.Variable) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private java.lang.Object value_ = ""; /** * required string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 2; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * required string value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 2; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = 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:messages.Task.Variable) } // @@protoc_insertion_point(class_scope:messages.Task.Variable) private static final com.powsybl.computation.mpi.generated.Messages.Task.Variable DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.powsybl.computation.mpi.generated.Messages.Task.Variable(); } public static com.powsybl.computation.mpi.generated.Messages.Task.Variable getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Variable parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Variable(input, extensionRegistry); } }; 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.powsybl.computation.mpi.generated.Messages.Task.Variable getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnvironmentOrBuilder extends // @@protoc_insertion_point(interface_extends:messages.Task.Environment) com.google.protobuf.MessageOrBuilder { /** * repeated .messages.Task.Variable variable = 1; */ java.util.List getVariableList(); /** * repeated .messages.Task.Variable variable = 1; */ com.powsybl.computation.mpi.generated.Messages.Task.Variable getVariable(int index); /** * repeated .messages.Task.Variable variable = 1; */ int getVariableCount(); /** * repeated .messages.Task.Variable variable = 1; */ java.util.List getVariableOrBuilderList(); /** * repeated .messages.Task.Variable variable = 1; */ com.powsybl.computation.mpi.generated.Messages.Task.VariableOrBuilder getVariableOrBuilder( int index); } /** * Protobuf type {@code messages.Task.Environment} */ public static final class Environment extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:messages.Task.Environment) EnvironmentOrBuilder { private static final long serialVersionUID = 0L; // Use Environment.newBuilder() to construct. private Environment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Environment() { variable_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Environment( 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) == 0x00000001)) { variable_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } variable_.add( input.readMessage(com.powsybl.computation.mpi.generated.Messages.Task.Variable.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) == 0x00000001)) { variable_ = java.util.Collections.unmodifiableList(variable_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_Environment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_Environment_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.Task.Environment.class, com.powsybl.computation.mpi.generated.Messages.Task.Environment.Builder.class); } public static final int VARIABLE_FIELD_NUMBER = 1; private java.util.List variable_; /** * repeated .messages.Task.Variable variable = 1; */ public java.util.List getVariableList() { return variable_; } /** * repeated .messages.Task.Variable variable = 1; */ public java.util.List getVariableOrBuilderList() { return variable_; } /** * repeated .messages.Task.Variable variable = 1; */ public int getVariableCount() { return variable_.size(); } /** * repeated .messages.Task.Variable variable = 1; */ public com.powsybl.computation.mpi.generated.Messages.Task.Variable getVariable(int index) { return variable_.get(index); } /** * repeated .messages.Task.Variable variable = 1; */ public com.powsybl.computation.mpi.generated.Messages.Task.VariableOrBuilder getVariableOrBuilder( int index) { return variable_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getVariableCount(); i++) { if (!getVariable(i).isInitialized()) { memoizedIsInitialized = 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 < variable_.size(); i++) { output.writeMessage(1, variable_.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 < variable_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, variable_.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 com.powsybl.computation.mpi.generated.Messages.Task.Environment)) { return super.equals(obj); } com.powsybl.computation.mpi.generated.Messages.Task.Environment other = (com.powsybl.computation.mpi.generated.Messages.Task.Environment) obj; boolean result = true; result = result && getVariableList() .equals(other.getVariableList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getVariableCount() > 0) { hash = (37 * hash) + VARIABLE_FIELD_NUMBER; hash = (53 * hash) + getVariableList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.powsybl.computation.mpi.generated.Messages.Task.Environment parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task.Environment parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task.Environment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task.Environment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task.Environment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task.Environment parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task.Environment parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task.Environment 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 com.powsybl.computation.mpi.generated.Messages.Task.Environment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task.Environment 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 com.powsybl.computation.mpi.generated.Messages.Task.Environment parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task.Environment 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(com.powsybl.computation.mpi.generated.Messages.Task.Environment 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 messages.Task.Environment} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:messages.Task.Environment) com.powsybl.computation.mpi.generated.Messages.Task.EnvironmentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_Environment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_Environment_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.Task.Environment.class, com.powsybl.computation.mpi.generated.Messages.Task.Environment.Builder.class); } // Construct using com.powsybl.computation.mpi.generated.Messages.Task.Environment.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVariableFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (variableBuilder_ == null) { variable_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { variableBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_Environment_descriptor; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task.Environment getDefaultInstanceForType() { return com.powsybl.computation.mpi.generated.Messages.Task.Environment.getDefaultInstance(); } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task.Environment build() { com.powsybl.computation.mpi.generated.Messages.Task.Environment result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task.Environment buildPartial() { com.powsybl.computation.mpi.generated.Messages.Task.Environment result = new com.powsybl.computation.mpi.generated.Messages.Task.Environment(this); int from_bitField0_ = bitField0_; if (variableBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { variable_ = java.util.Collections.unmodifiableList(variable_); bitField0_ = (bitField0_ & ~0x00000001); } result.variable_ = variable_; } else { result.variable_ = variableBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.powsybl.computation.mpi.generated.Messages.Task.Environment) { return mergeFrom((com.powsybl.computation.mpi.generated.Messages.Task.Environment)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.powsybl.computation.mpi.generated.Messages.Task.Environment other) { if (other == com.powsybl.computation.mpi.generated.Messages.Task.Environment.getDefaultInstance()) return this; if (variableBuilder_ == null) { if (!other.variable_.isEmpty()) { if (variable_.isEmpty()) { variable_ = other.variable_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureVariableIsMutable(); variable_.addAll(other.variable_); } onChanged(); } } else { if (!other.variable_.isEmpty()) { if (variableBuilder_.isEmpty()) { variableBuilder_.dispose(); variableBuilder_ = null; variable_ = other.variable_; bitField0_ = (bitField0_ & ~0x00000001); variableBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVariableFieldBuilder() : null; } else { variableBuilder_.addAllMessages(other.variable_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getVariableCount(); i++) { if (!getVariable(i).isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.powsybl.computation.mpi.generated.Messages.Task.Environment parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.powsybl.computation.mpi.generated.Messages.Task.Environment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List variable_ = java.util.Collections.emptyList(); private void ensureVariableIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { variable_ = new java.util.ArrayList(variable_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.Task.Variable, com.powsybl.computation.mpi.generated.Messages.Task.Variable.Builder, com.powsybl.computation.mpi.generated.Messages.Task.VariableOrBuilder> variableBuilder_; /** * repeated .messages.Task.Variable variable = 1; */ public java.util.List getVariableList() { if (variableBuilder_ == null) { return java.util.Collections.unmodifiableList(variable_); } else { return variableBuilder_.getMessageList(); } } /** * repeated .messages.Task.Variable variable = 1; */ public int getVariableCount() { if (variableBuilder_ == null) { return variable_.size(); } else { return variableBuilder_.getCount(); } } /** * repeated .messages.Task.Variable variable = 1; */ public com.powsybl.computation.mpi.generated.Messages.Task.Variable getVariable(int index) { if (variableBuilder_ == null) { return variable_.get(index); } else { return variableBuilder_.getMessage(index); } } /** * repeated .messages.Task.Variable variable = 1; */ public Builder setVariable( int index, com.powsybl.computation.mpi.generated.Messages.Task.Variable value) { if (variableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVariableIsMutable(); variable_.set(index, value); onChanged(); } else { variableBuilder_.setMessage(index, value); } return this; } /** * repeated .messages.Task.Variable variable = 1; */ public Builder setVariable( int index, com.powsybl.computation.mpi.generated.Messages.Task.Variable.Builder builderForValue) { if (variableBuilder_ == null) { ensureVariableIsMutable(); variable_.set(index, builderForValue.build()); onChanged(); } else { variableBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .messages.Task.Variable variable = 1; */ public Builder addVariable(com.powsybl.computation.mpi.generated.Messages.Task.Variable value) { if (variableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVariableIsMutable(); variable_.add(value); onChanged(); } else { variableBuilder_.addMessage(value); } return this; } /** * repeated .messages.Task.Variable variable = 1; */ public Builder addVariable( int index, com.powsybl.computation.mpi.generated.Messages.Task.Variable value) { if (variableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVariableIsMutable(); variable_.add(index, value); onChanged(); } else { variableBuilder_.addMessage(index, value); } return this; } /** * repeated .messages.Task.Variable variable = 1; */ public Builder addVariable( com.powsybl.computation.mpi.generated.Messages.Task.Variable.Builder builderForValue) { if (variableBuilder_ == null) { ensureVariableIsMutable(); variable_.add(builderForValue.build()); onChanged(); } else { variableBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .messages.Task.Variable variable = 1; */ public Builder addVariable( int index, com.powsybl.computation.mpi.generated.Messages.Task.Variable.Builder builderForValue) { if (variableBuilder_ == null) { ensureVariableIsMutable(); variable_.add(index, builderForValue.build()); onChanged(); } else { variableBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .messages.Task.Variable variable = 1; */ public Builder addAllVariable( java.lang.Iterable values) { if (variableBuilder_ == null) { ensureVariableIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, variable_); onChanged(); } else { variableBuilder_.addAllMessages(values); } return this; } /** * repeated .messages.Task.Variable variable = 1; */ public Builder clearVariable() { if (variableBuilder_ == null) { variable_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { variableBuilder_.clear(); } return this; } /** * repeated .messages.Task.Variable variable = 1; */ public Builder removeVariable(int index) { if (variableBuilder_ == null) { ensureVariableIsMutable(); variable_.remove(index); onChanged(); } else { variableBuilder_.remove(index); } return this; } /** * repeated .messages.Task.Variable variable = 1; */ public com.powsybl.computation.mpi.generated.Messages.Task.Variable.Builder getVariableBuilder( int index) { return getVariableFieldBuilder().getBuilder(index); } /** * repeated .messages.Task.Variable variable = 1; */ public com.powsybl.computation.mpi.generated.Messages.Task.VariableOrBuilder getVariableOrBuilder( int index) { if (variableBuilder_ == null) { return variable_.get(index); } else { return variableBuilder_.getMessageOrBuilder(index); } } /** * repeated .messages.Task.Variable variable = 1; */ public java.util.List getVariableOrBuilderList() { if (variableBuilder_ != null) { return variableBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(variable_); } } /** * repeated .messages.Task.Variable variable = 1; */ public com.powsybl.computation.mpi.generated.Messages.Task.Variable.Builder addVariableBuilder() { return getVariableFieldBuilder().addBuilder( com.powsybl.computation.mpi.generated.Messages.Task.Variable.getDefaultInstance()); } /** * repeated .messages.Task.Variable variable = 1; */ public com.powsybl.computation.mpi.generated.Messages.Task.Variable.Builder addVariableBuilder( int index) { return getVariableFieldBuilder().addBuilder( index, com.powsybl.computation.mpi.generated.Messages.Task.Variable.getDefaultInstance()); } /** * repeated .messages.Task.Variable variable = 1; */ public java.util.List getVariableBuilderList() { return getVariableFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.Task.Variable, com.powsybl.computation.mpi.generated.Messages.Task.Variable.Builder, com.powsybl.computation.mpi.generated.Messages.Task.VariableOrBuilder> getVariableFieldBuilder() { if (variableBuilder_ == null) { variableBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.Task.Variable, com.powsybl.computation.mpi.generated.Messages.Task.Variable.Builder, com.powsybl.computation.mpi.generated.Messages.Task.VariableOrBuilder>( variable_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); variable_ = null; } return variableBuilder_; } @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:messages.Task.Environment) } // @@protoc_insertion_point(class_scope:messages.Task.Environment) private static final com.powsybl.computation.mpi.generated.Messages.Task.Environment DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.powsybl.computation.mpi.generated.Messages.Task.Environment(); } public static com.powsybl.computation.mpi.generated.Messages.Task.Environment getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Environment parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Environment(input, extensionRegistry); } }; 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.powsybl.computation.mpi.generated.Messages.Task.Environment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommandOrBuilder extends // @@protoc_insertion_point(interface_extends:messages.Task.Command) com.google.protobuf.MessageOrBuilder { /** * required string program = 1; */ boolean hasProgram(); /** * required string program = 1; */ java.lang.String getProgram(); /** * required string program = 1; */ com.google.protobuf.ByteString getProgramBytes(); /** * repeated string argument = 2; */ java.util.List getArgumentList(); /** * repeated string argument = 2; */ int getArgumentCount(); /** * repeated string argument = 2; */ java.lang.String getArgument(int index); /** * repeated string argument = 2; */ com.google.protobuf.ByteString getArgumentBytes(int index); /** * optional int32 timeout = 3; */ boolean hasTimeout(); /** * optional int32 timeout = 3; */ int getTimeout(); } /** * Protobuf type {@code messages.Task.Command} */ public static final class Command extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:messages.Task.Command) CommandOrBuilder { private static final long serialVersionUID = 0L; // Use Command.newBuilder() to construct. private Command(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Command() { program_ = ""; argument_ = com.google.protobuf.LazyStringArrayList.EMPTY; timeout_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Command( 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: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; program_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { argument_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } argument_.add(bs); break; } case 24: { bitField0_ |= 0x00000002; timeout_ = input.readInt32(); 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_ & 0x00000002) == 0x00000002)) { argument_ = argument_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_Command_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_Command_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.Task.Command.class, com.powsybl.computation.mpi.generated.Messages.Task.Command.Builder.class); } private int bitField0_; public static final int PROGRAM_FIELD_NUMBER = 1; private volatile java.lang.Object program_; /** * required string program = 1; */ public boolean hasProgram() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string program = 1; */ public java.lang.String getProgram() { java.lang.Object ref = program_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { program_ = s; } return s; } } /** * required string program = 1; */ public com.google.protobuf.ByteString getProgramBytes() { java.lang.Object ref = program_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); program_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ARGUMENT_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList argument_; /** * repeated string argument = 2; */ public com.google.protobuf.ProtocolStringList getArgumentList() { return argument_; } /** * repeated string argument = 2; */ public int getArgumentCount() { return argument_.size(); } /** * repeated string argument = 2; */ public java.lang.String getArgument(int index) { return argument_.get(index); } /** * repeated string argument = 2; */ public com.google.protobuf.ByteString getArgumentBytes(int index) { return argument_.getByteString(index); } public static final int TIMEOUT_FIELD_NUMBER = 3; private int timeout_; /** * optional int32 timeout = 3; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 timeout = 3; */ public int getTimeout() { return timeout_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasProgram()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, program_); } for (int i = 0; i < argument_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, argument_.getRaw(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(3, timeout_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, program_); } { int dataSize = 0; for (int i = 0; i < argument_.size(); i++) { dataSize += computeStringSizeNoTag(argument_.getRaw(i)); } size += dataSize; size += 1 * getArgumentList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, timeout_); } 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 com.powsybl.computation.mpi.generated.Messages.Task.Command)) { return super.equals(obj); } com.powsybl.computation.mpi.generated.Messages.Task.Command other = (com.powsybl.computation.mpi.generated.Messages.Task.Command) obj; boolean result = true; result = result && (hasProgram() == other.hasProgram()); if (hasProgram()) { result = result && getProgram() .equals(other.getProgram()); } result = result && getArgumentList() .equals(other.getArgumentList()); result = result && (hasTimeout() == other.hasTimeout()); if (hasTimeout()) { result = result && (getTimeout() == other.getTimeout()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasProgram()) { hash = (37 * hash) + PROGRAM_FIELD_NUMBER; hash = (53 * hash) + getProgram().hashCode(); } if (getArgumentCount() > 0) { hash = (37 * hash) + ARGUMENT_FIELD_NUMBER; hash = (53 * hash) + getArgumentList().hashCode(); } if (hasTimeout()) { hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getTimeout(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.powsybl.computation.mpi.generated.Messages.Task.Command parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task.Command parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task.Command parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task.Command parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task.Command parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task.Command parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task.Command parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task.Command 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 com.powsybl.computation.mpi.generated.Messages.Task.Command parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task.Command 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 com.powsybl.computation.mpi.generated.Messages.Task.Command parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task.Command 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(com.powsybl.computation.mpi.generated.Messages.Task.Command 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 messages.Task.Command} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:messages.Task.Command) com.powsybl.computation.mpi.generated.Messages.Task.CommandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_Command_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_Command_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.Task.Command.class, com.powsybl.computation.mpi.generated.Messages.Task.Command.Builder.class); } // Construct using com.powsybl.computation.mpi.generated.Messages.Task.Command.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(); program_ = ""; bitField0_ = (bitField0_ & ~0x00000001); argument_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); timeout_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_Command_descriptor; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task.Command getDefaultInstanceForType() { return com.powsybl.computation.mpi.generated.Messages.Task.Command.getDefaultInstance(); } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task.Command build() { com.powsybl.computation.mpi.generated.Messages.Task.Command result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task.Command buildPartial() { com.powsybl.computation.mpi.generated.Messages.Task.Command result = new com.powsybl.computation.mpi.generated.Messages.Task.Command(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.program_ = program_; if (((bitField0_ & 0x00000002) == 0x00000002)) { argument_ = argument_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.argument_ = argument_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.timeout_ = timeout_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.powsybl.computation.mpi.generated.Messages.Task.Command) { return mergeFrom((com.powsybl.computation.mpi.generated.Messages.Task.Command)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.powsybl.computation.mpi.generated.Messages.Task.Command other) { if (other == com.powsybl.computation.mpi.generated.Messages.Task.Command.getDefaultInstance()) return this; if (other.hasProgram()) { bitField0_ |= 0x00000001; program_ = other.program_; onChanged(); } if (!other.argument_.isEmpty()) { if (argument_.isEmpty()) { argument_ = other.argument_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureArgumentIsMutable(); argument_.addAll(other.argument_); } onChanged(); } if (other.hasTimeout()) { setTimeout(other.getTimeout()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasProgram()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.powsybl.computation.mpi.generated.Messages.Task.Command parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.powsybl.computation.mpi.generated.Messages.Task.Command) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object program_ = ""; /** * required string program = 1; */ public boolean hasProgram() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string program = 1; */ public java.lang.String getProgram() { java.lang.Object ref = program_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { program_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string program = 1; */ public com.google.protobuf.ByteString getProgramBytes() { java.lang.Object ref = program_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); program_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string program = 1; */ public Builder setProgram( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; program_ = value; onChanged(); return this; } /** * required string program = 1; */ public Builder clearProgram() { bitField0_ = (bitField0_ & ~0x00000001); program_ = getDefaultInstance().getProgram(); onChanged(); return this; } /** * required string program = 1; */ public Builder setProgramBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; program_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList argument_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgumentIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { argument_ = new com.google.protobuf.LazyStringArrayList(argument_); bitField0_ |= 0x00000002; } } /** * repeated string argument = 2; */ public com.google.protobuf.ProtocolStringList getArgumentList() { return argument_.getUnmodifiableView(); } /** * repeated string argument = 2; */ public int getArgumentCount() { return argument_.size(); } /** * repeated string argument = 2; */ public java.lang.String getArgument(int index) { return argument_.get(index); } /** * repeated string argument = 2; */ public com.google.protobuf.ByteString getArgumentBytes(int index) { return argument_.getByteString(index); } /** * repeated string argument = 2; */ public Builder setArgument( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgumentIsMutable(); argument_.set(index, value); onChanged(); return this; } /** * repeated string argument = 2; */ public Builder addArgument( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgumentIsMutable(); argument_.add(value); onChanged(); return this; } /** * repeated string argument = 2; */ public Builder addAllArgument( java.lang.Iterable values) { ensureArgumentIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, argument_); onChanged(); return this; } /** * repeated string argument = 2; */ public Builder clearArgument() { argument_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string argument = 2; */ public Builder addArgumentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureArgumentIsMutable(); argument_.add(value); onChanged(); return this; } private int timeout_ ; /** * optional int32 timeout = 3; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 timeout = 3; */ public int getTimeout() { return timeout_; } /** * optional int32 timeout = 3; */ public Builder setTimeout(int value) { bitField0_ |= 0x00000004; timeout_ = value; onChanged(); return this; } /** * optional int32 timeout = 3; */ public Builder clearTimeout() { bitField0_ = (bitField0_ & ~0x00000004); timeout_ = 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:messages.Task.Command) } // @@protoc_insertion_point(class_scope:messages.Task.Command) private static final com.powsybl.computation.mpi.generated.Messages.Task.Command DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.powsybl.computation.mpi.generated.Messages.Task.Command(); } public static com.powsybl.computation.mpi.generated.Messages.Task.Command getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Command parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Command(input, extensionRegistry); } }; 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.powsybl.computation.mpi.generated.Messages.Task.Command getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int JOBID_FIELD_NUMBER = 1; private int jobId_; /** * required int32 jobId = 1; */ public boolean hasJobId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 jobId = 1; */ public int getJobId() { return jobId_; } public static final int INDEX_FIELD_NUMBER = 2; private int index_; /** * required int32 index = 2; */ public boolean hasIndex() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 index = 2; */ public int getIndex() { return index_; } public static final int ENV_FIELD_NUMBER = 3; private com.powsybl.computation.mpi.generated.Messages.Task.Environment env_; /** * required .messages.Task.Environment env = 3; */ public boolean hasEnv() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .messages.Task.Environment env = 3; */ public com.powsybl.computation.mpi.generated.Messages.Task.Environment getEnv() { return env_ == null ? com.powsybl.computation.mpi.generated.Messages.Task.Environment.getDefaultInstance() : env_; } /** * required .messages.Task.Environment env = 3; */ public com.powsybl.computation.mpi.generated.Messages.Task.EnvironmentOrBuilder getEnvOrBuilder() { return env_ == null ? com.powsybl.computation.mpi.generated.Messages.Task.Environment.getDefaultInstance() : env_; } public static final int CMDID_FIELD_NUMBER = 4; private volatile java.lang.Object cmdId_; /** * required string cmdId = 4; */ public boolean hasCmdId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required string cmdId = 4; */ public java.lang.String getCmdId() { java.lang.Object ref = cmdId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { cmdId_ = s; } return s; } } /** * required string cmdId = 4; */ public com.google.protobuf.ByteString getCmdIdBytes() { java.lang.Object ref = cmdId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cmdId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMMAND_FIELD_NUMBER = 5; private java.util.List command_; /** * repeated .messages.Task.Command command = 5; */ public java.util.List getCommandList() { return command_; } /** * repeated .messages.Task.Command command = 5; */ public java.util.List getCommandOrBuilderList() { return command_; } /** * repeated .messages.Task.Command command = 5; */ public int getCommandCount() { return command_.size(); } /** * repeated .messages.Task.Command command = 5; */ public com.powsybl.computation.mpi.generated.Messages.Task.Command getCommand(int index) { return command_.get(index); } /** * repeated .messages.Task.Command command = 5; */ public com.powsybl.computation.mpi.generated.Messages.Task.CommandOrBuilder getCommandOrBuilder( int index) { return command_.get(index); } public static final int INPUTFILE_FIELD_NUMBER = 6; private java.util.List inputFile_; /** * repeated .messages.Task.InputFile inputFile = 6; */ public java.util.List getInputFileList() { return inputFile_; } /** * repeated .messages.Task.InputFile inputFile = 6; */ public java.util.List getInputFileOrBuilderList() { return inputFile_; } /** * repeated .messages.Task.InputFile inputFile = 6; */ public int getInputFileCount() { return inputFile_.size(); } /** * repeated .messages.Task.InputFile inputFile = 6; */ public com.powsybl.computation.mpi.generated.Messages.Task.InputFile getInputFile(int index) { return inputFile_.get(index); } /** * repeated .messages.Task.InputFile inputFile = 6; */ public com.powsybl.computation.mpi.generated.Messages.Task.InputFileOrBuilder getInputFileOrBuilder( int index) { return inputFile_.get(index); } public static final int OUTPUTFILE_FIELD_NUMBER = 7; private java.util.List outputFile_; /** * repeated .messages.Task.OutputFile outputFile = 7; */ public java.util.List getOutputFileList() { return outputFile_; } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public java.util.List getOutputFileOrBuilderList() { return outputFile_; } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public int getOutputFileCount() { return outputFile_.size(); } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public com.powsybl.computation.mpi.generated.Messages.Task.OutputFile getOutputFile(int index) { return outputFile_.get(index); } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public com.powsybl.computation.mpi.generated.Messages.Task.OutputFileOrBuilder getOutputFileOrBuilder( int index) { return outputFile_.get(index); } public static final int INITJOB_FIELD_NUMBER = 8; private boolean initJob_; /** * required bool initJob = 8; */ public boolean hasInitJob() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * required bool initJob = 8; */ public boolean getInitJob() { return initJob_; } public static final int COMPLETEDJOBID_FIELD_NUMBER = 9; private java.util.List completedJobId_; /** *
     * for cleanup
     * 
* * repeated int32 completedJobId = 9; */ public java.util.List getCompletedJobIdList() { return completedJobId_; } /** *
     * for cleanup
     * 
* * repeated int32 completedJobId = 9; */ public int getCompletedJobIdCount() { return completedJobId_.size(); } /** *
     * for cleanup
     * 
* * repeated int32 completedJobId = 9; */ public int getCompletedJobId(int index) { return completedJobId_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasJobId()) { memoizedIsInitialized = 0; return false; } if (!hasIndex()) { memoizedIsInitialized = 0; return false; } if (!hasEnv()) { memoizedIsInitialized = 0; return false; } if (!hasCmdId()) { memoizedIsInitialized = 0; return false; } if (!hasInitJob()) { memoizedIsInitialized = 0; return false; } if (!getEnv().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getCommandCount(); i++) { if (!getCommand(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getInputFileCount(); i++) { if (!getInputFile(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getOutputFileCount(); i++) { if (!getOutputFile(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, jobId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, index_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getEnv()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cmdId_); } for (int i = 0; i < command_.size(); i++) { output.writeMessage(5, command_.get(i)); } for (int i = 0; i < inputFile_.size(); i++) { output.writeMessage(6, inputFile_.get(i)); } for (int i = 0; i < outputFile_.size(); i++) { output.writeMessage(7, outputFile_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(8, initJob_); } for (int i = 0; i < completedJobId_.size(); i++) { output.writeInt32(9, completedJobId_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, jobId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, index_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getEnv()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cmdId_); } for (int i = 0; i < command_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, command_.get(i)); } for (int i = 0; i < inputFile_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, inputFile_.get(i)); } for (int i = 0; i < outputFile_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, outputFile_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, initJob_); } { int dataSize = 0; for (int i = 0; i < completedJobId_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(completedJobId_.get(i)); } size += dataSize; size += 1 * getCompletedJobIdList().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 com.powsybl.computation.mpi.generated.Messages.Task)) { return super.equals(obj); } com.powsybl.computation.mpi.generated.Messages.Task other = (com.powsybl.computation.mpi.generated.Messages.Task) obj; boolean result = true; result = result && (hasJobId() == other.hasJobId()); if (hasJobId()) { result = result && (getJobId() == other.getJobId()); } result = result && (hasIndex() == other.hasIndex()); if (hasIndex()) { result = result && (getIndex() == other.getIndex()); } result = result && (hasEnv() == other.hasEnv()); if (hasEnv()) { result = result && getEnv() .equals(other.getEnv()); } result = result && (hasCmdId() == other.hasCmdId()); if (hasCmdId()) { result = result && getCmdId() .equals(other.getCmdId()); } result = result && getCommandList() .equals(other.getCommandList()); result = result && getInputFileList() .equals(other.getInputFileList()); result = result && getOutputFileList() .equals(other.getOutputFileList()); result = result && (hasInitJob() == other.hasInitJob()); if (hasInitJob()) { result = result && (getInitJob() == other.getInitJob()); } result = result && getCompletedJobIdList() .equals(other.getCompletedJobIdList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasJobId()) { hash = (37 * hash) + JOBID_FIELD_NUMBER; hash = (53 * hash) + getJobId(); } if (hasIndex()) { hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndex(); } if (hasEnv()) { hash = (37 * hash) + ENV_FIELD_NUMBER; hash = (53 * hash) + getEnv().hashCode(); } if (hasCmdId()) { hash = (37 * hash) + CMDID_FIELD_NUMBER; hash = (53 * hash) + getCmdId().hashCode(); } if (getCommandCount() > 0) { hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommandList().hashCode(); } if (getInputFileCount() > 0) { hash = (37 * hash) + INPUTFILE_FIELD_NUMBER; hash = (53 * hash) + getInputFileList().hashCode(); } if (getOutputFileCount() > 0) { hash = (37 * hash) + OUTPUTFILE_FIELD_NUMBER; hash = (53 * hash) + getOutputFileList().hashCode(); } if (hasInitJob()) { hash = (37 * hash) + INITJOB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getInitJob()); } if (getCompletedJobIdCount() > 0) { hash = (37 * hash) + COMPLETEDJOBID_FIELD_NUMBER; hash = (53 * hash) + getCompletedJobIdList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.powsybl.computation.mpi.generated.Messages.Task parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.Task parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.Task parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task 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 com.powsybl.computation.mpi.generated.Messages.Task parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task 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 com.powsybl.computation.mpi.generated.Messages.Task parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.Task 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(com.powsybl.computation.mpi.generated.Messages.Task 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 messages.Task} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:messages.Task) com.powsybl.computation.mpi.generated.Messages.TaskOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.Task.class, com.powsybl.computation.mpi.generated.Messages.Task.Builder.class); } // Construct using com.powsybl.computation.mpi.generated.Messages.Task.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEnvFieldBuilder(); getCommandFieldBuilder(); getInputFileFieldBuilder(); getOutputFileFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); jobId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); index_ = 0; bitField0_ = (bitField0_ & ~0x00000002); if (envBuilder_ == null) { env_ = null; } else { envBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); cmdId_ = ""; bitField0_ = (bitField0_ & ~0x00000008); if (commandBuilder_ == null) { command_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { commandBuilder_.clear(); } if (inputFileBuilder_ == null) { inputFile_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { inputFileBuilder_.clear(); } if (outputFileBuilder_ == null) { outputFile_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { outputFileBuilder_.clear(); } initJob_ = false; bitField0_ = (bitField0_ & ~0x00000080); completedJobId_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_Task_descriptor; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task getDefaultInstanceForType() { return com.powsybl.computation.mpi.generated.Messages.Task.getDefaultInstance(); } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task build() { com.powsybl.computation.mpi.generated.Messages.Task result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.Task buildPartial() { com.powsybl.computation.mpi.generated.Messages.Task result = new com.powsybl.computation.mpi.generated.Messages.Task(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.jobId_ = jobId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.index_ = index_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (envBuilder_ == null) { result.env_ = env_; } else { result.env_ = envBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.cmdId_ = cmdId_; if (commandBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { command_ = java.util.Collections.unmodifiableList(command_); bitField0_ = (bitField0_ & ~0x00000010); } result.command_ = command_; } else { result.command_ = commandBuilder_.build(); } if (inputFileBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { inputFile_ = java.util.Collections.unmodifiableList(inputFile_); bitField0_ = (bitField0_ & ~0x00000020); } result.inputFile_ = inputFile_; } else { result.inputFile_ = inputFileBuilder_.build(); } if (outputFileBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { outputFile_ = java.util.Collections.unmodifiableList(outputFile_); bitField0_ = (bitField0_ & ~0x00000040); } result.outputFile_ = outputFile_; } else { result.outputFile_ = outputFileBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000010; } result.initJob_ = initJob_; if (((bitField0_ & 0x00000100) == 0x00000100)) { completedJobId_ = java.util.Collections.unmodifiableList(completedJobId_); bitField0_ = (bitField0_ & ~0x00000100); } result.completedJobId_ = completedJobId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.powsybl.computation.mpi.generated.Messages.Task) { return mergeFrom((com.powsybl.computation.mpi.generated.Messages.Task)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.powsybl.computation.mpi.generated.Messages.Task other) { if (other == com.powsybl.computation.mpi.generated.Messages.Task.getDefaultInstance()) return this; if (other.hasJobId()) { setJobId(other.getJobId()); } if (other.hasIndex()) { setIndex(other.getIndex()); } if (other.hasEnv()) { mergeEnv(other.getEnv()); } if (other.hasCmdId()) { bitField0_ |= 0x00000008; cmdId_ = other.cmdId_; onChanged(); } if (commandBuilder_ == null) { if (!other.command_.isEmpty()) { if (command_.isEmpty()) { command_ = other.command_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureCommandIsMutable(); command_.addAll(other.command_); } onChanged(); } } else { if (!other.command_.isEmpty()) { if (commandBuilder_.isEmpty()) { commandBuilder_.dispose(); commandBuilder_ = null; command_ = other.command_; bitField0_ = (bitField0_ & ~0x00000010); commandBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCommandFieldBuilder() : null; } else { commandBuilder_.addAllMessages(other.command_); } } } if (inputFileBuilder_ == null) { if (!other.inputFile_.isEmpty()) { if (inputFile_.isEmpty()) { inputFile_ = other.inputFile_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureInputFileIsMutable(); inputFile_.addAll(other.inputFile_); } onChanged(); } } else { if (!other.inputFile_.isEmpty()) { if (inputFileBuilder_.isEmpty()) { inputFileBuilder_.dispose(); inputFileBuilder_ = null; inputFile_ = other.inputFile_; bitField0_ = (bitField0_ & ~0x00000020); inputFileBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInputFileFieldBuilder() : null; } else { inputFileBuilder_.addAllMessages(other.inputFile_); } } } if (outputFileBuilder_ == null) { if (!other.outputFile_.isEmpty()) { if (outputFile_.isEmpty()) { outputFile_ = other.outputFile_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureOutputFileIsMutable(); outputFile_.addAll(other.outputFile_); } onChanged(); } } else { if (!other.outputFile_.isEmpty()) { if (outputFileBuilder_.isEmpty()) { outputFileBuilder_.dispose(); outputFileBuilder_ = null; outputFile_ = other.outputFile_; bitField0_ = (bitField0_ & ~0x00000040); outputFileBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOutputFileFieldBuilder() : null; } else { outputFileBuilder_.addAllMessages(other.outputFile_); } } } if (other.hasInitJob()) { setInitJob(other.getInitJob()); } if (!other.completedJobId_.isEmpty()) { if (completedJobId_.isEmpty()) { completedJobId_ = other.completedJobId_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureCompletedJobIdIsMutable(); completedJobId_.addAll(other.completedJobId_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasJobId()) { return false; } if (!hasIndex()) { return false; } if (!hasEnv()) { return false; } if (!hasCmdId()) { return false; } if (!hasInitJob()) { return false; } if (!getEnv().isInitialized()) { return false; } for (int i = 0; i < getCommandCount(); i++) { if (!getCommand(i).isInitialized()) { return false; } } for (int i = 0; i < getInputFileCount(); i++) { if (!getInputFile(i).isInitialized()) { return false; } } for (int i = 0; i < getOutputFileCount(); i++) { if (!getOutputFile(i).isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.powsybl.computation.mpi.generated.Messages.Task parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.powsybl.computation.mpi.generated.Messages.Task) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int jobId_ ; /** * required int32 jobId = 1; */ public boolean hasJobId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 jobId = 1; */ public int getJobId() { return jobId_; } /** * required int32 jobId = 1; */ public Builder setJobId(int value) { bitField0_ |= 0x00000001; jobId_ = value; onChanged(); return this; } /** * required int32 jobId = 1; */ public Builder clearJobId() { bitField0_ = (bitField0_ & ~0x00000001); jobId_ = 0; onChanged(); return this; } private int index_ ; /** * required int32 index = 2; */ public boolean hasIndex() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 index = 2; */ public int getIndex() { return index_; } /** * required int32 index = 2; */ public Builder setIndex(int value) { bitField0_ |= 0x00000002; index_ = value; onChanged(); return this; } /** * required int32 index = 2; */ public Builder clearIndex() { bitField0_ = (bitField0_ & ~0x00000002); index_ = 0; onChanged(); return this; } private com.powsybl.computation.mpi.generated.Messages.Task.Environment env_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.Task.Environment, com.powsybl.computation.mpi.generated.Messages.Task.Environment.Builder, com.powsybl.computation.mpi.generated.Messages.Task.EnvironmentOrBuilder> envBuilder_; /** * required .messages.Task.Environment env = 3; */ public boolean hasEnv() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .messages.Task.Environment env = 3; */ public com.powsybl.computation.mpi.generated.Messages.Task.Environment getEnv() { if (envBuilder_ == null) { return env_ == null ? com.powsybl.computation.mpi.generated.Messages.Task.Environment.getDefaultInstance() : env_; } else { return envBuilder_.getMessage(); } } /** * required .messages.Task.Environment env = 3; */ public Builder setEnv(com.powsybl.computation.mpi.generated.Messages.Task.Environment value) { if (envBuilder_ == null) { if (value == null) { throw new NullPointerException(); } env_ = value; onChanged(); } else { envBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * required .messages.Task.Environment env = 3; */ public Builder setEnv( com.powsybl.computation.mpi.generated.Messages.Task.Environment.Builder builderForValue) { if (envBuilder_ == null) { env_ = builderForValue.build(); onChanged(); } else { envBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * required .messages.Task.Environment env = 3; */ public Builder mergeEnv(com.powsybl.computation.mpi.generated.Messages.Task.Environment value) { if (envBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && env_ != null && env_ != com.powsybl.computation.mpi.generated.Messages.Task.Environment.getDefaultInstance()) { env_ = com.powsybl.computation.mpi.generated.Messages.Task.Environment.newBuilder(env_).mergeFrom(value).buildPartial(); } else { env_ = value; } onChanged(); } else { envBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * required .messages.Task.Environment env = 3; */ public Builder clearEnv() { if (envBuilder_ == null) { env_ = null; onChanged(); } else { envBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * required .messages.Task.Environment env = 3; */ public com.powsybl.computation.mpi.generated.Messages.Task.Environment.Builder getEnvBuilder() { bitField0_ |= 0x00000004; onChanged(); return getEnvFieldBuilder().getBuilder(); } /** * required .messages.Task.Environment env = 3; */ public com.powsybl.computation.mpi.generated.Messages.Task.EnvironmentOrBuilder getEnvOrBuilder() { if (envBuilder_ != null) { return envBuilder_.getMessageOrBuilder(); } else { return env_ == null ? com.powsybl.computation.mpi.generated.Messages.Task.Environment.getDefaultInstance() : env_; } } /** * required .messages.Task.Environment env = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.Task.Environment, com.powsybl.computation.mpi.generated.Messages.Task.Environment.Builder, com.powsybl.computation.mpi.generated.Messages.Task.EnvironmentOrBuilder> getEnvFieldBuilder() { if (envBuilder_ == null) { envBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.Task.Environment, com.powsybl.computation.mpi.generated.Messages.Task.Environment.Builder, com.powsybl.computation.mpi.generated.Messages.Task.EnvironmentOrBuilder>( getEnv(), getParentForChildren(), isClean()); env_ = null; } return envBuilder_; } private java.lang.Object cmdId_ = ""; /** * required string cmdId = 4; */ public boolean hasCmdId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required string cmdId = 4; */ public java.lang.String getCmdId() { java.lang.Object ref = cmdId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { cmdId_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string cmdId = 4; */ public com.google.protobuf.ByteString getCmdIdBytes() { java.lang.Object ref = cmdId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cmdId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string cmdId = 4; */ public Builder setCmdId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; cmdId_ = value; onChanged(); return this; } /** * required string cmdId = 4; */ public Builder clearCmdId() { bitField0_ = (bitField0_ & ~0x00000008); cmdId_ = getDefaultInstance().getCmdId(); onChanged(); return this; } /** * required string cmdId = 4; */ public Builder setCmdIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; cmdId_ = value; onChanged(); return this; } private java.util.List command_ = java.util.Collections.emptyList(); private void ensureCommandIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { command_ = new java.util.ArrayList(command_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.Task.Command, com.powsybl.computation.mpi.generated.Messages.Task.Command.Builder, com.powsybl.computation.mpi.generated.Messages.Task.CommandOrBuilder> commandBuilder_; /** * repeated .messages.Task.Command command = 5; */ public java.util.List getCommandList() { if (commandBuilder_ == null) { return java.util.Collections.unmodifiableList(command_); } else { return commandBuilder_.getMessageList(); } } /** * repeated .messages.Task.Command command = 5; */ public int getCommandCount() { if (commandBuilder_ == null) { return command_.size(); } else { return commandBuilder_.getCount(); } } /** * repeated .messages.Task.Command command = 5; */ public com.powsybl.computation.mpi.generated.Messages.Task.Command getCommand(int index) { if (commandBuilder_ == null) { return command_.get(index); } else { return commandBuilder_.getMessage(index); } } /** * repeated .messages.Task.Command command = 5; */ public Builder setCommand( int index, com.powsybl.computation.mpi.generated.Messages.Task.Command value) { if (commandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.set(index, value); onChanged(); } else { commandBuilder_.setMessage(index, value); } return this; } /** * repeated .messages.Task.Command command = 5; */ public Builder setCommand( int index, com.powsybl.computation.mpi.generated.Messages.Task.Command.Builder builderForValue) { if (commandBuilder_ == null) { ensureCommandIsMutable(); command_.set(index, builderForValue.build()); onChanged(); } else { commandBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .messages.Task.Command command = 5; */ public Builder addCommand(com.powsybl.computation.mpi.generated.Messages.Task.Command value) { if (commandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.add(value); onChanged(); } else { commandBuilder_.addMessage(value); } return this; } /** * repeated .messages.Task.Command command = 5; */ public Builder addCommand( int index, com.powsybl.computation.mpi.generated.Messages.Task.Command value) { if (commandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.add(index, value); onChanged(); } else { commandBuilder_.addMessage(index, value); } return this; } /** * repeated .messages.Task.Command command = 5; */ public Builder addCommand( com.powsybl.computation.mpi.generated.Messages.Task.Command.Builder builderForValue) { if (commandBuilder_ == null) { ensureCommandIsMutable(); command_.add(builderForValue.build()); onChanged(); } else { commandBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .messages.Task.Command command = 5; */ public Builder addCommand( int index, com.powsybl.computation.mpi.generated.Messages.Task.Command.Builder builderForValue) { if (commandBuilder_ == null) { ensureCommandIsMutable(); command_.add(index, builderForValue.build()); onChanged(); } else { commandBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .messages.Task.Command command = 5; */ public Builder addAllCommand( java.lang.Iterable values) { if (commandBuilder_ == null) { ensureCommandIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, command_); onChanged(); } else { commandBuilder_.addAllMessages(values); } return this; } /** * repeated .messages.Task.Command command = 5; */ public Builder clearCommand() { if (commandBuilder_ == null) { command_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { commandBuilder_.clear(); } return this; } /** * repeated .messages.Task.Command command = 5; */ public Builder removeCommand(int index) { if (commandBuilder_ == null) { ensureCommandIsMutable(); command_.remove(index); onChanged(); } else { commandBuilder_.remove(index); } return this; } /** * repeated .messages.Task.Command command = 5; */ public com.powsybl.computation.mpi.generated.Messages.Task.Command.Builder getCommandBuilder( int index) { return getCommandFieldBuilder().getBuilder(index); } /** * repeated .messages.Task.Command command = 5; */ public com.powsybl.computation.mpi.generated.Messages.Task.CommandOrBuilder getCommandOrBuilder( int index) { if (commandBuilder_ == null) { return command_.get(index); } else { return commandBuilder_.getMessageOrBuilder(index); } } /** * repeated .messages.Task.Command command = 5; */ public java.util.List getCommandOrBuilderList() { if (commandBuilder_ != null) { return commandBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(command_); } } /** * repeated .messages.Task.Command command = 5; */ public com.powsybl.computation.mpi.generated.Messages.Task.Command.Builder addCommandBuilder() { return getCommandFieldBuilder().addBuilder( com.powsybl.computation.mpi.generated.Messages.Task.Command.getDefaultInstance()); } /** * repeated .messages.Task.Command command = 5; */ public com.powsybl.computation.mpi.generated.Messages.Task.Command.Builder addCommandBuilder( int index) { return getCommandFieldBuilder().addBuilder( index, com.powsybl.computation.mpi.generated.Messages.Task.Command.getDefaultInstance()); } /** * repeated .messages.Task.Command command = 5; */ public java.util.List getCommandBuilderList() { return getCommandFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.Task.Command, com.powsybl.computation.mpi.generated.Messages.Task.Command.Builder, com.powsybl.computation.mpi.generated.Messages.Task.CommandOrBuilder> getCommandFieldBuilder() { if (commandBuilder_ == null) { commandBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.Task.Command, com.powsybl.computation.mpi.generated.Messages.Task.Command.Builder, com.powsybl.computation.mpi.generated.Messages.Task.CommandOrBuilder>( command_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); command_ = null; } return commandBuilder_; } private java.util.List inputFile_ = java.util.Collections.emptyList(); private void ensureInputFileIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { inputFile_ = new java.util.ArrayList(inputFile_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.Task.InputFile, com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Builder, com.powsybl.computation.mpi.generated.Messages.Task.InputFileOrBuilder> inputFileBuilder_; /** * repeated .messages.Task.InputFile inputFile = 6; */ public java.util.List getInputFileList() { if (inputFileBuilder_ == null) { return java.util.Collections.unmodifiableList(inputFile_); } else { return inputFileBuilder_.getMessageList(); } } /** * repeated .messages.Task.InputFile inputFile = 6; */ public int getInputFileCount() { if (inputFileBuilder_ == null) { return inputFile_.size(); } else { return inputFileBuilder_.getCount(); } } /** * repeated .messages.Task.InputFile inputFile = 6; */ public com.powsybl.computation.mpi.generated.Messages.Task.InputFile getInputFile(int index) { if (inputFileBuilder_ == null) { return inputFile_.get(index); } else { return inputFileBuilder_.getMessage(index); } } /** * repeated .messages.Task.InputFile inputFile = 6; */ public Builder setInputFile( int index, com.powsybl.computation.mpi.generated.Messages.Task.InputFile value) { if (inputFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputFileIsMutable(); inputFile_.set(index, value); onChanged(); } else { inputFileBuilder_.setMessage(index, value); } return this; } /** * repeated .messages.Task.InputFile inputFile = 6; */ public Builder setInputFile( int index, com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Builder builderForValue) { if (inputFileBuilder_ == null) { ensureInputFileIsMutable(); inputFile_.set(index, builderForValue.build()); onChanged(); } else { inputFileBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .messages.Task.InputFile inputFile = 6; */ public Builder addInputFile(com.powsybl.computation.mpi.generated.Messages.Task.InputFile value) { if (inputFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputFileIsMutable(); inputFile_.add(value); onChanged(); } else { inputFileBuilder_.addMessage(value); } return this; } /** * repeated .messages.Task.InputFile inputFile = 6; */ public Builder addInputFile( int index, com.powsybl.computation.mpi.generated.Messages.Task.InputFile value) { if (inputFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputFileIsMutable(); inputFile_.add(index, value); onChanged(); } else { inputFileBuilder_.addMessage(index, value); } return this; } /** * repeated .messages.Task.InputFile inputFile = 6; */ public Builder addInputFile( com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Builder builderForValue) { if (inputFileBuilder_ == null) { ensureInputFileIsMutable(); inputFile_.add(builderForValue.build()); onChanged(); } else { inputFileBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .messages.Task.InputFile inputFile = 6; */ public Builder addInputFile( int index, com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Builder builderForValue) { if (inputFileBuilder_ == null) { ensureInputFileIsMutable(); inputFile_.add(index, builderForValue.build()); onChanged(); } else { inputFileBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .messages.Task.InputFile inputFile = 6; */ public Builder addAllInputFile( java.lang.Iterable values) { if (inputFileBuilder_ == null) { ensureInputFileIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, inputFile_); onChanged(); } else { inputFileBuilder_.addAllMessages(values); } return this; } /** * repeated .messages.Task.InputFile inputFile = 6; */ public Builder clearInputFile() { if (inputFileBuilder_ == null) { inputFile_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { inputFileBuilder_.clear(); } return this; } /** * repeated .messages.Task.InputFile inputFile = 6; */ public Builder removeInputFile(int index) { if (inputFileBuilder_ == null) { ensureInputFileIsMutable(); inputFile_.remove(index); onChanged(); } else { inputFileBuilder_.remove(index); } return this; } /** * repeated .messages.Task.InputFile inputFile = 6; */ public com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Builder getInputFileBuilder( int index) { return getInputFileFieldBuilder().getBuilder(index); } /** * repeated .messages.Task.InputFile inputFile = 6; */ public com.powsybl.computation.mpi.generated.Messages.Task.InputFileOrBuilder getInputFileOrBuilder( int index) { if (inputFileBuilder_ == null) { return inputFile_.get(index); } else { return inputFileBuilder_.getMessageOrBuilder(index); } } /** * repeated .messages.Task.InputFile inputFile = 6; */ public java.util.List getInputFileOrBuilderList() { if (inputFileBuilder_ != null) { return inputFileBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(inputFile_); } } /** * repeated .messages.Task.InputFile inputFile = 6; */ public com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Builder addInputFileBuilder() { return getInputFileFieldBuilder().addBuilder( com.powsybl.computation.mpi.generated.Messages.Task.InputFile.getDefaultInstance()); } /** * repeated .messages.Task.InputFile inputFile = 6; */ public com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Builder addInputFileBuilder( int index) { return getInputFileFieldBuilder().addBuilder( index, com.powsybl.computation.mpi.generated.Messages.Task.InputFile.getDefaultInstance()); } /** * repeated .messages.Task.InputFile inputFile = 6; */ public java.util.List getInputFileBuilderList() { return getInputFileFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.Task.InputFile, com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Builder, com.powsybl.computation.mpi.generated.Messages.Task.InputFileOrBuilder> getInputFileFieldBuilder() { if (inputFileBuilder_ == null) { inputFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.Task.InputFile, com.powsybl.computation.mpi.generated.Messages.Task.InputFile.Builder, com.powsybl.computation.mpi.generated.Messages.Task.InputFileOrBuilder>( inputFile_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); inputFile_ = null; } return inputFileBuilder_; } private java.util.List outputFile_ = java.util.Collections.emptyList(); private void ensureOutputFileIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { outputFile_ = new java.util.ArrayList(outputFile_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.Task.OutputFile, com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.Builder, com.powsybl.computation.mpi.generated.Messages.Task.OutputFileOrBuilder> outputFileBuilder_; /** * repeated .messages.Task.OutputFile outputFile = 7; */ public java.util.List getOutputFileList() { if (outputFileBuilder_ == null) { return java.util.Collections.unmodifiableList(outputFile_); } else { return outputFileBuilder_.getMessageList(); } } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public int getOutputFileCount() { if (outputFileBuilder_ == null) { return outputFile_.size(); } else { return outputFileBuilder_.getCount(); } } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public com.powsybl.computation.mpi.generated.Messages.Task.OutputFile getOutputFile(int index) { if (outputFileBuilder_ == null) { return outputFile_.get(index); } else { return outputFileBuilder_.getMessage(index); } } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public Builder setOutputFile( int index, com.powsybl.computation.mpi.generated.Messages.Task.OutputFile value) { if (outputFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputFileIsMutable(); outputFile_.set(index, value); onChanged(); } else { outputFileBuilder_.setMessage(index, value); } return this; } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public Builder setOutputFile( int index, com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.Builder builderForValue) { if (outputFileBuilder_ == null) { ensureOutputFileIsMutable(); outputFile_.set(index, builderForValue.build()); onChanged(); } else { outputFileBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public Builder addOutputFile(com.powsybl.computation.mpi.generated.Messages.Task.OutputFile value) { if (outputFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputFileIsMutable(); outputFile_.add(value); onChanged(); } else { outputFileBuilder_.addMessage(value); } return this; } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public Builder addOutputFile( int index, com.powsybl.computation.mpi.generated.Messages.Task.OutputFile value) { if (outputFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputFileIsMutable(); outputFile_.add(index, value); onChanged(); } else { outputFileBuilder_.addMessage(index, value); } return this; } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public Builder addOutputFile( com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.Builder builderForValue) { if (outputFileBuilder_ == null) { ensureOutputFileIsMutable(); outputFile_.add(builderForValue.build()); onChanged(); } else { outputFileBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public Builder addOutputFile( int index, com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.Builder builderForValue) { if (outputFileBuilder_ == null) { ensureOutputFileIsMutable(); outputFile_.add(index, builderForValue.build()); onChanged(); } else { outputFileBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public Builder addAllOutputFile( java.lang.Iterable values) { if (outputFileBuilder_ == null) { ensureOutputFileIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, outputFile_); onChanged(); } else { outputFileBuilder_.addAllMessages(values); } return this; } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public Builder clearOutputFile() { if (outputFileBuilder_ == null) { outputFile_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { outputFileBuilder_.clear(); } return this; } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public Builder removeOutputFile(int index) { if (outputFileBuilder_ == null) { ensureOutputFileIsMutable(); outputFile_.remove(index); onChanged(); } else { outputFileBuilder_.remove(index); } return this; } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.Builder getOutputFileBuilder( int index) { return getOutputFileFieldBuilder().getBuilder(index); } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public com.powsybl.computation.mpi.generated.Messages.Task.OutputFileOrBuilder getOutputFileOrBuilder( int index) { if (outputFileBuilder_ == null) { return outputFile_.get(index); } else { return outputFileBuilder_.getMessageOrBuilder(index); } } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public java.util.List getOutputFileOrBuilderList() { if (outputFileBuilder_ != null) { return outputFileBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(outputFile_); } } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.Builder addOutputFileBuilder() { return getOutputFileFieldBuilder().addBuilder( com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.getDefaultInstance()); } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.Builder addOutputFileBuilder( int index) { return getOutputFileFieldBuilder().addBuilder( index, com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.getDefaultInstance()); } /** * repeated .messages.Task.OutputFile outputFile = 7; */ public java.util.List getOutputFileBuilderList() { return getOutputFileFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.Task.OutputFile, com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.Builder, com.powsybl.computation.mpi.generated.Messages.Task.OutputFileOrBuilder> getOutputFileFieldBuilder() { if (outputFileBuilder_ == null) { outputFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.Task.OutputFile, com.powsybl.computation.mpi.generated.Messages.Task.OutputFile.Builder, com.powsybl.computation.mpi.generated.Messages.Task.OutputFileOrBuilder>( outputFile_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); outputFile_ = null; } return outputFileBuilder_; } private boolean initJob_ ; /** * required bool initJob = 8; */ public boolean hasInitJob() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * required bool initJob = 8; */ public boolean getInitJob() { return initJob_; } /** * required bool initJob = 8; */ public Builder setInitJob(boolean value) { bitField0_ |= 0x00000080; initJob_ = value; onChanged(); return this; } /** * required bool initJob = 8; */ public Builder clearInitJob() { bitField0_ = (bitField0_ & ~0x00000080); initJob_ = false; onChanged(); return this; } private java.util.List completedJobId_ = java.util.Collections.emptyList(); private void ensureCompletedJobIdIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { completedJobId_ = new java.util.ArrayList(completedJobId_); bitField0_ |= 0x00000100; } } /** *
       * for cleanup
       * 
* * repeated int32 completedJobId = 9; */ public java.util.List getCompletedJobIdList() { return java.util.Collections.unmodifiableList(completedJobId_); } /** *
       * for cleanup
       * 
* * repeated int32 completedJobId = 9; */ public int getCompletedJobIdCount() { return completedJobId_.size(); } /** *
       * for cleanup
       * 
* * repeated int32 completedJobId = 9; */ public int getCompletedJobId(int index) { return completedJobId_.get(index); } /** *
       * for cleanup
       * 
* * repeated int32 completedJobId = 9; */ public Builder setCompletedJobId( int index, int value) { ensureCompletedJobIdIsMutable(); completedJobId_.set(index, value); onChanged(); return this; } /** *
       * for cleanup
       * 
* * repeated int32 completedJobId = 9; */ public Builder addCompletedJobId(int value) { ensureCompletedJobIdIsMutable(); completedJobId_.add(value); onChanged(); return this; } /** *
       * for cleanup
       * 
* * repeated int32 completedJobId = 9; */ public Builder addAllCompletedJobId( java.lang.Iterable values) { ensureCompletedJobIdIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, completedJobId_); onChanged(); return this; } /** *
       * for cleanup
       * 
* * repeated int32 completedJobId = 9; */ public Builder clearCompletedJobId() { completedJobId_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); 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:messages.Task) } // @@protoc_insertion_point(class_scope:messages.Task) private static final com.powsybl.computation.mpi.generated.Messages.Task DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.powsybl.computation.mpi.generated.Messages.Task(); } public static com.powsybl.computation.mpi.generated.Messages.Task getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Task parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Task(input, extensionRegistry); } }; 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.powsybl.computation.mpi.generated.Messages.Task getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TaskResultOrBuilder extends // @@protoc_insertion_point(interface_extends:messages.TaskResult) com.google.protobuf.MessageOrBuilder { /** * required int32 exitCode = 1; */ boolean hasExitCode(); /** * required int32 exitCode = 1; */ int getExitCode(); /** *
     * in ms
     * 
* * required int64 taskDuration = 2; */ boolean hasTaskDuration(); /** *
     * in ms
     * 
* * required int64 taskDuration = 2; */ long getTaskDuration(); /** *
     * in ms
     * 
* * repeated int64 commandDuration = 3; */ java.util.List getCommandDurationList(); /** *
     * in ms
     * 
* * repeated int64 commandDuration = 3; */ int getCommandDurationCount(); /** *
     * in ms
     * 
* * repeated int64 commandDuration = 3; */ long getCommandDuration(int index); /** *
     * in bytes
     * 
* * required int64 workingDataSize = 4; */ boolean hasWorkingDataSize(); /** *
     * in bytes
     * 
* * required int64 workingDataSize = 4; */ long getWorkingDataSize(); /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ java.util.List getOutputFileList(); /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile getOutputFile(int index); /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ int getOutputFileCount(); /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ java.util.List getOutputFileOrBuilderList(); /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFileOrBuilder getOutputFileOrBuilder( int index); } /** * Protobuf type {@code messages.TaskResult} */ public static final class TaskResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:messages.TaskResult) TaskResultOrBuilder { private static final long serialVersionUID = 0L; // Use TaskResult.newBuilder() to construct. private TaskResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TaskResult() { exitCode_ = 0; taskDuration_ = 0L; commandDuration_ = java.util.Collections.emptyList(); workingDataSize_ = 0L; outputFile_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TaskResult( 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 8: { bitField0_ |= 0x00000001; exitCode_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; taskDuration_ = input.readInt64(); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { commandDuration_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } commandDuration_.add(input.readInt64()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { commandDuration_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { commandDuration_.add(input.readInt64()); } input.popLimit(limit); break; } case 32: { bitField0_ |= 0x00000004; workingDataSize_ = input.readInt64(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { outputFile_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } outputFile_.add( input.readMessage(com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.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_ & 0x00000004) == 0x00000004)) { commandDuration_ = java.util.Collections.unmodifiableList(commandDuration_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { outputFile_ = java.util.Collections.unmodifiableList(outputFile_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_TaskResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_TaskResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.TaskResult.class, com.powsybl.computation.mpi.generated.Messages.TaskResult.Builder.class); } public interface OutputFileOrBuilder extends // @@protoc_insertion_point(interface_extends:messages.TaskResult.OutputFile) com.google.protobuf.MessageOrBuilder { /** * required string name = 1; */ boolean hasName(); /** * required string name = 1; */ java.lang.String getName(); /** * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * optional bytes data = 2; */ boolean hasData(); /** * optional bytes data = 2; */ com.google.protobuf.ByteString getData(); } /** * Protobuf type {@code messages.TaskResult.OutputFile} */ public static final class OutputFile extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:messages.TaskResult.OutputFile) OutputFileOrBuilder { private static final long serialVersionUID = 0L; // Use OutputFile.newBuilder() to construct. private OutputFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OutputFile() { name_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OutputFile( 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: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { bitField0_ |= 0x00000002; data_ = input.readBytes(); 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 com.powsybl.computation.mpi.generated.Messages.internal_static_messages_TaskResult_OutputFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_TaskResult_OutputFile_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.class, com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_; /** * optional bytes data = 2; */ public boolean hasData() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, data_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, data_); } 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 com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile)) { return super.equals(obj); } com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile other = (com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasData() == other.hasData()); if (hasData()) { result = result && getData() .equals(other.getData()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile 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 com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile 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 com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile 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(com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile 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 messages.TaskResult.OutputFile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:messages.TaskResult.OutputFile) com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_TaskResult_OutputFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_TaskResult_OutputFile_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.class, com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.Builder.class); } // Construct using com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.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(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); data_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_TaskResult_OutputFile_descriptor; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile getDefaultInstanceForType() { return com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.getDefaultInstance(); } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile build() { com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile buildPartial() { com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile result = new com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.data_ = data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile) { return mergeFrom((com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile other) { if (other == com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasData()) { setData(other.getData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasName()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes data = 2; */ public boolean hasData() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } /** * optional bytes data = 2; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; data_ = value; onChanged(); return this; } /** * optional bytes data = 2; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000002); data_ = getDefaultInstance().getData(); 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:messages.TaskResult.OutputFile) } // @@protoc_insertion_point(class_scope:messages.TaskResult.OutputFile) private static final com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile(); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OutputFile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OutputFile(input, extensionRegistry); } }; 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.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int EXITCODE_FIELD_NUMBER = 1; private int exitCode_; /** * required int32 exitCode = 1; */ public boolean hasExitCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 exitCode = 1; */ public int getExitCode() { return exitCode_; } public static final int TASKDURATION_FIELD_NUMBER = 2; private long taskDuration_; /** *
     * in ms
     * 
* * required int64 taskDuration = 2; */ public boolean hasTaskDuration() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * in ms
     * 
* * required int64 taskDuration = 2; */ public long getTaskDuration() { return taskDuration_; } public static final int COMMANDDURATION_FIELD_NUMBER = 3; private java.util.List commandDuration_; /** *
     * in ms
     * 
* * repeated int64 commandDuration = 3; */ public java.util.List getCommandDurationList() { return commandDuration_; } /** *
     * in ms
     * 
* * repeated int64 commandDuration = 3; */ public int getCommandDurationCount() { return commandDuration_.size(); } /** *
     * in ms
     * 
* * repeated int64 commandDuration = 3; */ public long getCommandDuration(int index) { return commandDuration_.get(index); } public static final int WORKINGDATASIZE_FIELD_NUMBER = 4; private long workingDataSize_; /** *
     * in bytes
     * 
* * required int64 workingDataSize = 4; */ public boolean hasWorkingDataSize() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * in bytes
     * 
* * required int64 workingDataSize = 4; */ public long getWorkingDataSize() { return workingDataSize_; } public static final int OUTPUTFILE_FIELD_NUMBER = 5; private java.util.List outputFile_; /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public java.util.List getOutputFileList() { return outputFile_; } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public java.util.List getOutputFileOrBuilderList() { return outputFile_; } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public int getOutputFileCount() { return outputFile_.size(); } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile getOutputFile(int index) { return outputFile_.get(index); } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFileOrBuilder getOutputFileOrBuilder( int index) { return outputFile_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasExitCode()) { memoizedIsInitialized = 0; return false; } if (!hasTaskDuration()) { memoizedIsInitialized = 0; return false; } if (!hasWorkingDataSize()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getOutputFileCount(); i++) { if (!getOutputFile(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, exitCode_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, taskDuration_); } for (int i = 0; i < commandDuration_.size(); i++) { output.writeInt64(3, commandDuration_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(4, workingDataSize_); } for (int i = 0; i < outputFile_.size(); i++) { output.writeMessage(5, outputFile_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, exitCode_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, taskDuration_); } { int dataSize = 0; for (int i = 0; i < commandDuration_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(commandDuration_.get(i)); } size += dataSize; size += 1 * getCommandDurationList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, workingDataSize_); } for (int i = 0; i < outputFile_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, outputFile_.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 com.powsybl.computation.mpi.generated.Messages.TaskResult)) { return super.equals(obj); } com.powsybl.computation.mpi.generated.Messages.TaskResult other = (com.powsybl.computation.mpi.generated.Messages.TaskResult) obj; boolean result = true; result = result && (hasExitCode() == other.hasExitCode()); if (hasExitCode()) { result = result && (getExitCode() == other.getExitCode()); } result = result && (hasTaskDuration() == other.hasTaskDuration()); if (hasTaskDuration()) { result = result && (getTaskDuration() == other.getTaskDuration()); } result = result && getCommandDurationList() .equals(other.getCommandDurationList()); result = result && (hasWorkingDataSize() == other.hasWorkingDataSize()); if (hasWorkingDataSize()) { result = result && (getWorkingDataSize() == other.getWorkingDataSize()); } result = result && getOutputFileList() .equals(other.getOutputFileList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasExitCode()) { hash = (37 * hash) + EXITCODE_FIELD_NUMBER; hash = (53 * hash) + getExitCode(); } if (hasTaskDuration()) { hash = (37 * hash) + TASKDURATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTaskDuration()); } if (getCommandDurationCount() > 0) { hash = (37 * hash) + COMMANDDURATION_FIELD_NUMBER; hash = (53 * hash) + getCommandDurationList().hashCode(); } if (hasWorkingDataSize()) { hash = (37 * hash) + WORKINGDATASIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWorkingDataSize()); } if (getOutputFileCount() > 0) { hash = (37 * hash) + OUTPUTFILE_FIELD_NUMBER; hash = (53 * hash) + getOutputFileList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.powsybl.computation.mpi.generated.Messages.TaskResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult 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 com.powsybl.computation.mpi.generated.Messages.TaskResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult 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 com.powsybl.computation.mpi.generated.Messages.TaskResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult 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(com.powsybl.computation.mpi.generated.Messages.TaskResult 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 messages.TaskResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:messages.TaskResult) com.powsybl.computation.mpi.generated.Messages.TaskResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_TaskResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_TaskResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.powsybl.computation.mpi.generated.Messages.TaskResult.class, com.powsybl.computation.mpi.generated.Messages.TaskResult.Builder.class); } // Construct using com.powsybl.computation.mpi.generated.Messages.TaskResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOutputFileFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); exitCode_ = 0; bitField0_ = (bitField0_ & ~0x00000001); taskDuration_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); commandDuration_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); workingDataSize_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); if (outputFileBuilder_ == null) { outputFile_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { outputFileBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.powsybl.computation.mpi.generated.Messages.internal_static_messages_TaskResult_descriptor; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.TaskResult getDefaultInstanceForType() { return com.powsybl.computation.mpi.generated.Messages.TaskResult.getDefaultInstance(); } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.TaskResult build() { com.powsybl.computation.mpi.generated.Messages.TaskResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.powsybl.computation.mpi.generated.Messages.TaskResult buildPartial() { com.powsybl.computation.mpi.generated.Messages.TaskResult result = new com.powsybl.computation.mpi.generated.Messages.TaskResult(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.exitCode_ = exitCode_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.taskDuration_ = taskDuration_; if (((bitField0_ & 0x00000004) == 0x00000004)) { commandDuration_ = java.util.Collections.unmodifiableList(commandDuration_); bitField0_ = (bitField0_ & ~0x00000004); } result.commandDuration_ = commandDuration_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.workingDataSize_ = workingDataSize_; if (outputFileBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { outputFile_ = java.util.Collections.unmodifiableList(outputFile_); bitField0_ = (bitField0_ & ~0x00000010); } result.outputFile_ = outputFile_; } else { result.outputFile_ = outputFileBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.powsybl.computation.mpi.generated.Messages.TaskResult) { return mergeFrom((com.powsybl.computation.mpi.generated.Messages.TaskResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.powsybl.computation.mpi.generated.Messages.TaskResult other) { if (other == com.powsybl.computation.mpi.generated.Messages.TaskResult.getDefaultInstance()) return this; if (other.hasExitCode()) { setExitCode(other.getExitCode()); } if (other.hasTaskDuration()) { setTaskDuration(other.getTaskDuration()); } if (!other.commandDuration_.isEmpty()) { if (commandDuration_.isEmpty()) { commandDuration_ = other.commandDuration_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCommandDurationIsMutable(); commandDuration_.addAll(other.commandDuration_); } onChanged(); } if (other.hasWorkingDataSize()) { setWorkingDataSize(other.getWorkingDataSize()); } if (outputFileBuilder_ == null) { if (!other.outputFile_.isEmpty()) { if (outputFile_.isEmpty()) { outputFile_ = other.outputFile_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureOutputFileIsMutable(); outputFile_.addAll(other.outputFile_); } onChanged(); } } else { if (!other.outputFile_.isEmpty()) { if (outputFileBuilder_.isEmpty()) { outputFileBuilder_.dispose(); outputFileBuilder_ = null; outputFile_ = other.outputFile_; bitField0_ = (bitField0_ & ~0x00000010); outputFileBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOutputFileFieldBuilder() : null; } else { outputFileBuilder_.addAllMessages(other.outputFile_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasExitCode()) { return false; } if (!hasTaskDuration()) { return false; } if (!hasWorkingDataSize()) { return false; } for (int i = 0; i < getOutputFileCount(); i++) { if (!getOutputFile(i).isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.powsybl.computation.mpi.generated.Messages.TaskResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.powsybl.computation.mpi.generated.Messages.TaskResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int exitCode_ ; /** * required int32 exitCode = 1; */ public boolean hasExitCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 exitCode = 1; */ public int getExitCode() { return exitCode_; } /** * required int32 exitCode = 1; */ public Builder setExitCode(int value) { bitField0_ |= 0x00000001; exitCode_ = value; onChanged(); return this; } /** * required int32 exitCode = 1; */ public Builder clearExitCode() { bitField0_ = (bitField0_ & ~0x00000001); exitCode_ = 0; onChanged(); return this; } private long taskDuration_ ; /** *
       * in ms
       * 
* * required int64 taskDuration = 2; */ public boolean hasTaskDuration() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * in ms
       * 
* * required int64 taskDuration = 2; */ public long getTaskDuration() { return taskDuration_; } /** *
       * in ms
       * 
* * required int64 taskDuration = 2; */ public Builder setTaskDuration(long value) { bitField0_ |= 0x00000002; taskDuration_ = value; onChanged(); return this; } /** *
       * in ms
       * 
* * required int64 taskDuration = 2; */ public Builder clearTaskDuration() { bitField0_ = (bitField0_ & ~0x00000002); taskDuration_ = 0L; onChanged(); return this; } private java.util.List commandDuration_ = java.util.Collections.emptyList(); private void ensureCommandDurationIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { commandDuration_ = new java.util.ArrayList(commandDuration_); bitField0_ |= 0x00000004; } } /** *
       * in ms
       * 
* * repeated int64 commandDuration = 3; */ public java.util.List getCommandDurationList() { return java.util.Collections.unmodifiableList(commandDuration_); } /** *
       * in ms
       * 
* * repeated int64 commandDuration = 3; */ public int getCommandDurationCount() { return commandDuration_.size(); } /** *
       * in ms
       * 
* * repeated int64 commandDuration = 3; */ public long getCommandDuration(int index) { return commandDuration_.get(index); } /** *
       * in ms
       * 
* * repeated int64 commandDuration = 3; */ public Builder setCommandDuration( int index, long value) { ensureCommandDurationIsMutable(); commandDuration_.set(index, value); onChanged(); return this; } /** *
       * in ms
       * 
* * repeated int64 commandDuration = 3; */ public Builder addCommandDuration(long value) { ensureCommandDurationIsMutable(); commandDuration_.add(value); onChanged(); return this; } /** *
       * in ms
       * 
* * repeated int64 commandDuration = 3; */ public Builder addAllCommandDuration( java.lang.Iterable values) { ensureCommandDurationIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, commandDuration_); onChanged(); return this; } /** *
       * in ms
       * 
* * repeated int64 commandDuration = 3; */ public Builder clearCommandDuration() { commandDuration_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private long workingDataSize_ ; /** *
       * in bytes
       * 
* * required int64 workingDataSize = 4; */ public boolean hasWorkingDataSize() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * in bytes
       * 
* * required int64 workingDataSize = 4; */ public long getWorkingDataSize() { return workingDataSize_; } /** *
       * in bytes
       * 
* * required int64 workingDataSize = 4; */ public Builder setWorkingDataSize(long value) { bitField0_ |= 0x00000008; workingDataSize_ = value; onChanged(); return this; } /** *
       * in bytes
       * 
* * required int64 workingDataSize = 4; */ public Builder clearWorkingDataSize() { bitField0_ = (bitField0_ & ~0x00000008); workingDataSize_ = 0L; onChanged(); return this; } private java.util.List outputFile_ = java.util.Collections.emptyList(); private void ensureOutputFileIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { outputFile_ = new java.util.ArrayList(outputFile_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile, com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.Builder, com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFileOrBuilder> outputFileBuilder_; /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public java.util.List getOutputFileList() { if (outputFileBuilder_ == null) { return java.util.Collections.unmodifiableList(outputFile_); } else { return outputFileBuilder_.getMessageList(); } } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public int getOutputFileCount() { if (outputFileBuilder_ == null) { return outputFile_.size(); } else { return outputFileBuilder_.getCount(); } } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile getOutputFile(int index) { if (outputFileBuilder_ == null) { return outputFile_.get(index); } else { return outputFileBuilder_.getMessage(index); } } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public Builder setOutputFile( int index, com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile value) { if (outputFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputFileIsMutable(); outputFile_.set(index, value); onChanged(); } else { outputFileBuilder_.setMessage(index, value); } return this; } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public Builder setOutputFile( int index, com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.Builder builderForValue) { if (outputFileBuilder_ == null) { ensureOutputFileIsMutable(); outputFile_.set(index, builderForValue.build()); onChanged(); } else { outputFileBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public Builder addOutputFile(com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile value) { if (outputFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputFileIsMutable(); outputFile_.add(value); onChanged(); } else { outputFileBuilder_.addMessage(value); } return this; } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public Builder addOutputFile( int index, com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile value) { if (outputFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputFileIsMutable(); outputFile_.add(index, value); onChanged(); } else { outputFileBuilder_.addMessage(index, value); } return this; } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public Builder addOutputFile( com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.Builder builderForValue) { if (outputFileBuilder_ == null) { ensureOutputFileIsMutable(); outputFile_.add(builderForValue.build()); onChanged(); } else { outputFileBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public Builder addOutputFile( int index, com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.Builder builderForValue) { if (outputFileBuilder_ == null) { ensureOutputFileIsMutable(); outputFile_.add(index, builderForValue.build()); onChanged(); } else { outputFileBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public Builder addAllOutputFile( java.lang.Iterable values) { if (outputFileBuilder_ == null) { ensureOutputFileIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, outputFile_); onChanged(); } else { outputFileBuilder_.addAllMessages(values); } return this; } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public Builder clearOutputFile() { if (outputFileBuilder_ == null) { outputFile_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { outputFileBuilder_.clear(); } return this; } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public Builder removeOutputFile(int index) { if (outputFileBuilder_ == null) { ensureOutputFileIsMutable(); outputFile_.remove(index); onChanged(); } else { outputFileBuilder_.remove(index); } return this; } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.Builder getOutputFileBuilder( int index) { return getOutputFileFieldBuilder().getBuilder(index); } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFileOrBuilder getOutputFileOrBuilder( int index) { if (outputFileBuilder_ == null) { return outputFile_.get(index); } else { return outputFileBuilder_.getMessageOrBuilder(index); } } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public java.util.List getOutputFileOrBuilderList() { if (outputFileBuilder_ != null) { return outputFileBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(outputFile_); } } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.Builder addOutputFileBuilder() { return getOutputFileFieldBuilder().addBuilder( com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.getDefaultInstance()); } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.Builder addOutputFileBuilder( int index) { return getOutputFileFieldBuilder().addBuilder( index, com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.getDefaultInstance()); } /** * repeated .messages.TaskResult.OutputFile outputFile = 5; */ public java.util.List getOutputFileBuilderList() { return getOutputFileFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile, com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.Builder, com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFileOrBuilder> getOutputFileFieldBuilder() { if (outputFileBuilder_ == null) { outputFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile, com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFile.Builder, com.powsybl.computation.mpi.generated.Messages.TaskResult.OutputFileOrBuilder>( outputFile_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); outputFile_ = null; } return outputFileBuilder_; } @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:messages.TaskResult) } // @@protoc_insertion_point(class_scope:messages.TaskResult) private static final com.powsybl.computation.mpi.generated.Messages.TaskResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.powsybl.computation.mpi.generated.Messages.TaskResult(); } public static com.powsybl.computation.mpi.generated.Messages.TaskResult getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TaskResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TaskResult(input, extensionRegistry); } }; 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.powsybl.computation.mpi.generated.Messages.TaskResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_messages_CommonFile_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_messages_CommonFile_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_messages_Task_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_messages_Task_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_messages_Task_InputFile_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_messages_Task_InputFile_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_messages_Task_OutputFile_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_messages_Task_OutputFile_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_messages_Task_Variable_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_messages_Task_Variable_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_messages_Task_Environment_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_messages_Task_Environment_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_messages_Task_Command_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_messages_Task_Command_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_messages_TaskResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_messages_TaskResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_messages_TaskResult_OutputFile_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_messages_TaskResult_OutputFile_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\024proto/messages.proto\022\010messages\"E\n\nComm" + "onFile\022\014\n\004name\030\001 \002(\t\022\r\n\005chunk\030\002 \002(\005\022\014\n\004l" + "ast\030\003 \002(\010\022\014\n\004data\030\004 \002(\014\"\254\006\n\004Task\022\r\n\005jobI" + "d\030\001 \002(\005\022\r\n\005index\030\002 \002(\005\022\'\n\003env\030\003 \002(\0132\032.me" + "ssages.Task.Environment\022\r\n\005cmdId\030\004 \002(\t\022\'" + "\n\007command\030\005 \003(\0132\026.messages.Task.Command\022" + "+\n\tinputFile\030\006 \003(\0132\030.messages.Task.Input" + "File\022-\n\noutputFile\030\007 \003(\0132\031.messages.Task" + ".OutputFile\022\017\n\007initJob\030\010 \002(\010\022\026\n\016complete" + "dJobId\030\t \003(\005\032\366\001\n\tInputFile\022\014\n\004name\030\001 \002(\t" + "\022-\n\005scope\030\002 \002(\0162\036.messages.Task.InputFil" + "e.Scope\022\014\n\004data\030\003 \001(\014\022;\n\014preProcessor\030\004 " + "\002(\0162%.messages.Task.InputFile.PreProcess" + "or\"<\n\014PreProcessor\022\010\n\004NONE\020\001\022\021\n\rARCHIVE_" + "UNZIP\020\002\022\017\n\013FILE_GUNZIP\020\003\"#\n\005Scope\022\007\n\003RUN" + "\020\001\022\007\n\003JOB\020\002\022\010\n\004TASK\020\003\032\204\001\n\nOutputFile\022\014\n\004" + "name\030\001 \002(\t\022>\n\rpostProcessor\030\002 \002(\0162\'.mess" + "ages.Task.OutputFile.PostProcessor\"(\n\rPo" + "stProcessor\022\010\n\004NONE\020\001\022\r\n\tFILE_GZIP\020\002\032\'\n\010" + "Variable\022\014\n\004name\030\001 \002(\t\022\r\n\005value\030\002 \002(\t\0328\n" + "\013Environment\022)\n\010variable\030\001 \003(\0132\027.message" + "s.Task.Variable\032=\n\007Command\022\017\n\007program\030\001 " + "\002(\t\022\020\n\010argument\030\002 \003(\t\022\017\n\007timeout\030\003 \001(\005\"\305" + "\001\n\nTaskResult\022\020\n\010exitCode\030\001 \002(\005\022\024\n\014taskD" + "uration\030\002 \002(\003\022\027\n\017commandDuration\030\003 \003(\003\022\027" + "\n\017workingDataSize\030\004 \002(\003\0223\n\noutputFile\030\005 " + "\003(\0132\037.messages.TaskResult.OutputFile\032(\n\n" + "OutputFile\022\014\n\004name\030\001 \002(\t\022\014\n\004data\030\002 \001(\014B3" + "\n%com.powsybl.computation.mpi.generatedB" + "\010MessagesP\000" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_messages_CommonFile_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_messages_CommonFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_messages_CommonFile_descriptor, new java.lang.String[] { "Name", "Chunk", "Last", "Data", }); internal_static_messages_Task_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_messages_Task_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_messages_Task_descriptor, new java.lang.String[] { "JobId", "Index", "Env", "CmdId", "Command", "InputFile", "OutputFile", "InitJob", "CompletedJobId", }); internal_static_messages_Task_InputFile_descriptor = internal_static_messages_Task_descriptor.getNestedTypes().get(0); internal_static_messages_Task_InputFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_messages_Task_InputFile_descriptor, new java.lang.String[] { "Name", "Scope", "Data", "PreProcessor", }); internal_static_messages_Task_OutputFile_descriptor = internal_static_messages_Task_descriptor.getNestedTypes().get(1); internal_static_messages_Task_OutputFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_messages_Task_OutputFile_descriptor, new java.lang.String[] { "Name", "PostProcessor", }); internal_static_messages_Task_Variable_descriptor = internal_static_messages_Task_descriptor.getNestedTypes().get(2); internal_static_messages_Task_Variable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_messages_Task_Variable_descriptor, new java.lang.String[] { "Name", "Value", }); internal_static_messages_Task_Environment_descriptor = internal_static_messages_Task_descriptor.getNestedTypes().get(3); internal_static_messages_Task_Environment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_messages_Task_Environment_descriptor, new java.lang.String[] { "Variable", }); internal_static_messages_Task_Command_descriptor = internal_static_messages_Task_descriptor.getNestedTypes().get(4); internal_static_messages_Task_Command_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_messages_Task_Command_descriptor, new java.lang.String[] { "Program", "Argument", "Timeout", }); internal_static_messages_TaskResult_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_messages_TaskResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_messages_TaskResult_descriptor, new java.lang.String[] { "ExitCode", "TaskDuration", "CommandDuration", "WorkingDataSize", "OutputFile", }); internal_static_messages_TaskResult_OutputFile_descriptor = internal_static_messages_TaskResult_descriptor.getNestedTypes().get(0); internal_static_messages_TaskResult_OutputFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_messages_TaskResult_OutputFile_descriptor, new java.lang.String[] { "Name", "Data", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy