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

io.provenance.scope.contract.proto.Envelopes Maven / Gradle / Ivy

Go to download

A collection of libraries that interact and run Provenance Java based contracts.

There is a newer version: 0.7.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: io/provenance/scope/contract/envelope.proto

package io.provenance.scope.contract.proto;

public final class Envelopes {
  private Envelopes() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
    registry.add(io.provenance.scope.contract.proto.Envelopes.description);
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface EnvelopeStateOrBuilder extends
      // @@protoc_insertion_point(interface_extends:io.provenance.scope.contract.EnvelopeState)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .io.provenance.scope.contract.Envelope input = 1;
     * @return Whether the input field is set.
     */
    boolean hasInput();
    /**
     * .io.provenance.scope.contract.Envelope input = 1;
     * @return The input.
     */
    io.provenance.scope.contract.proto.Envelopes.Envelope getInput();
    /**
     * .io.provenance.scope.contract.Envelope input = 1;
     */
    io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder getInputOrBuilder();

    /**
     * .io.provenance.scope.contract.Envelope result = 2;
     * @return Whether the result field is set.
     */
    boolean hasResult();
    /**
     * .io.provenance.scope.contract.Envelope result = 2;
     * @return The result.
     */
    io.provenance.scope.contract.proto.Envelopes.Envelope getResult();
    /**
     * .io.provenance.scope.contract.Envelope result = 2;
     */
    io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder getResultOrBuilder();
  }
  /**
   * Protobuf type {@code io.provenance.scope.contract.EnvelopeState}
   */
  public static final class EnvelopeState extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:io.provenance.scope.contract.EnvelopeState)
      EnvelopeStateOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use EnvelopeState.newBuilder() to construct.
    private EnvelopeState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private EnvelopeState() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private EnvelopeState(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              io.provenance.scope.contract.proto.Envelopes.Envelope.Builder subBuilder = null;
              if (input_ != null) {
                subBuilder = input_.toBuilder();
              }
              input_ = input.readMessage(io.provenance.scope.contract.proto.Envelopes.Envelope.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(input_);
                input_ = subBuilder.buildPartial();
              }

              break;
            }
            case 18: {
              io.provenance.scope.contract.proto.Envelopes.Envelope.Builder subBuilder = null;
              if (result_ != null) {
                subBuilder = result_.toBuilder();
              }
              result_ = input.readMessage(io.provenance.scope.contract.proto.Envelopes.Envelope.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(result_);
                result_ = subBuilder.buildPartial();
              }

              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.provenance.scope.contract.proto.Envelopes.internal_static_io_provenance_scope_contract_EnvelopeState_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.provenance.scope.contract.proto.Envelopes.internal_static_io_provenance_scope_contract_EnvelopeState_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.provenance.scope.contract.proto.Envelopes.EnvelopeState.class, io.provenance.scope.contract.proto.Envelopes.EnvelopeState.Builder.class);
    }

    public static final int INPUT_FIELD_NUMBER = 1;
    private io.provenance.scope.contract.proto.Envelopes.Envelope input_;
    /**
     * .io.provenance.scope.contract.Envelope input = 1;
     * @return Whether the input field is set.
     */
    @java.lang.Override
    public boolean hasInput() {
      return input_ != null;
    }
    /**
     * .io.provenance.scope.contract.Envelope input = 1;
     * @return The input.
     */
    @java.lang.Override
    public io.provenance.scope.contract.proto.Envelopes.Envelope getInput() {
      return input_ == null ? io.provenance.scope.contract.proto.Envelopes.Envelope.getDefaultInstance() : input_;
    }
    /**
     * .io.provenance.scope.contract.Envelope input = 1;
     */
    @java.lang.Override
    public io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder getInputOrBuilder() {
      return getInput();
    }

    public static final int RESULT_FIELD_NUMBER = 2;
    private io.provenance.scope.contract.proto.Envelopes.Envelope result_;
    /**
     * .io.provenance.scope.contract.Envelope result = 2;
     * @return Whether the result field is set.
     */
    @java.lang.Override
    public boolean hasResult() {
      return result_ != null;
    }
    /**
     * .io.provenance.scope.contract.Envelope result = 2;
     * @return The result.
     */
    @java.lang.Override
    public io.provenance.scope.contract.proto.Envelopes.Envelope getResult() {
      return result_ == null ? io.provenance.scope.contract.proto.Envelopes.Envelope.getDefaultInstance() : result_;
    }
    /**
     * .io.provenance.scope.contract.Envelope result = 2;
     */
    @java.lang.Override
    public io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder getResultOrBuilder() {
      return getResult();
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (input_ != null) {
        output.writeMessage(1, getInput());
      }
      if (result_ != null) {
        output.writeMessage(2, getResult());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (input_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getInput());
      }
      if (result_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getResult());
      }
      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 io.provenance.scope.contract.proto.Envelopes.EnvelopeState)) {
        return super.equals(obj);
      }
      io.provenance.scope.contract.proto.Envelopes.EnvelopeState other = (io.provenance.scope.contract.proto.Envelopes.EnvelopeState) obj;

      if (hasInput() != other.hasInput()) return false;
      if (hasInput()) {
        if (!getInput()
            .equals(other.getInput())) return false;
      }
      if (hasResult() != other.hasResult()) return false;
      if (hasResult()) {
        if (!getResult()
            .equals(other.getResult())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasInput()) {
        hash = (37 * hash) + INPUT_FIELD_NUMBER;
        hash = (53 * hash) + getInput().hashCode();
      }
      if (hasResult()) {
        hash = (37 * hash) + RESULT_FIELD_NUMBER;
        hash = (53 * hash) + getResult().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.provenance.scope.contract.proto.Envelopes.internal_static_io_provenance_scope_contract_EnvelopeState_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.provenance.scope.contract.proto.Envelopes.EnvelopeState.class, io.provenance.scope.contract.proto.Envelopes.EnvelopeState.Builder.class);
      }

      // Construct using io.provenance.scope.contract.proto.Envelopes.EnvelopeState.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (inputBuilder_ == null) {
          input_ = null;
        } else {
          input_ = null;
          inputBuilder_ = null;
        }
        if (resultBuilder_ == null) {
          result_ = null;
        } else {
          result_ = null;
          resultBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.provenance.scope.contract.proto.Envelopes.internal_static_io_provenance_scope_contract_EnvelopeState_descriptor;
      }

      @java.lang.Override
      public io.provenance.scope.contract.proto.Envelopes.EnvelopeState getDefaultInstanceForType() {
        return io.provenance.scope.contract.proto.Envelopes.EnvelopeState.getDefaultInstance();
      }

      @java.lang.Override
      public io.provenance.scope.contract.proto.Envelopes.EnvelopeState build() {
        io.provenance.scope.contract.proto.Envelopes.EnvelopeState result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.provenance.scope.contract.proto.Envelopes.EnvelopeState buildPartial() {
        io.provenance.scope.contract.proto.Envelopes.EnvelopeState result = new io.provenance.scope.contract.proto.Envelopes.EnvelopeState(this);
        if (inputBuilder_ == null) {
          result.input_ = input_;
        } else {
          result.input_ = inputBuilder_.build();
        }
        if (resultBuilder_ == null) {
          result.result_ = result_;
        } else {
          result.result_ = resultBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof io.provenance.scope.contract.proto.Envelopes.EnvelopeState) {
          return mergeFrom((io.provenance.scope.contract.proto.Envelopes.EnvelopeState)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.provenance.scope.contract.proto.Envelopes.EnvelopeState other) {
        if (other == io.provenance.scope.contract.proto.Envelopes.EnvelopeState.getDefaultInstance()) return this;
        if (other.hasInput()) {
          mergeInput(other.getInput());
        }
        if (other.hasResult()) {
          mergeResult(other.getResult());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        io.provenance.scope.contract.proto.Envelopes.EnvelopeState parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (io.provenance.scope.contract.proto.Envelopes.EnvelopeState) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private io.provenance.scope.contract.proto.Envelopes.Envelope input_;
      private com.google.protobuf.SingleFieldBuilderV3<
          io.provenance.scope.contract.proto.Envelopes.Envelope, io.provenance.scope.contract.proto.Envelopes.Envelope.Builder, io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder> inputBuilder_;
      /**
       * .io.provenance.scope.contract.Envelope input = 1;
       * @return Whether the input field is set.
       */
      public boolean hasInput() {
        return inputBuilder_ != null || input_ != null;
      }
      /**
       * .io.provenance.scope.contract.Envelope input = 1;
       * @return The input.
       */
      public io.provenance.scope.contract.proto.Envelopes.Envelope getInput() {
        if (inputBuilder_ == null) {
          return input_ == null ? io.provenance.scope.contract.proto.Envelopes.Envelope.getDefaultInstance() : input_;
        } else {
          return inputBuilder_.getMessage();
        }
      }
      /**
       * .io.provenance.scope.contract.Envelope input = 1;
       */
      public Builder setInput(io.provenance.scope.contract.proto.Envelopes.Envelope value) {
        if (inputBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          input_ = value;
          onChanged();
        } else {
          inputBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .io.provenance.scope.contract.Envelope input = 1;
       */
      public Builder setInput(
          io.provenance.scope.contract.proto.Envelopes.Envelope.Builder builderForValue) {
        if (inputBuilder_ == null) {
          input_ = builderForValue.build();
          onChanged();
        } else {
          inputBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .io.provenance.scope.contract.Envelope input = 1;
       */
      public Builder mergeInput(io.provenance.scope.contract.proto.Envelopes.Envelope value) {
        if (inputBuilder_ == null) {
          if (input_ != null) {
            input_ =
              io.provenance.scope.contract.proto.Envelopes.Envelope.newBuilder(input_).mergeFrom(value).buildPartial();
          } else {
            input_ = value;
          }
          onChanged();
        } else {
          inputBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .io.provenance.scope.contract.Envelope input = 1;
       */
      public Builder clearInput() {
        if (inputBuilder_ == null) {
          input_ = null;
          onChanged();
        } else {
          input_ = null;
          inputBuilder_ = null;
        }

        return this;
      }
      /**
       * .io.provenance.scope.contract.Envelope input = 1;
       */
      public io.provenance.scope.contract.proto.Envelopes.Envelope.Builder getInputBuilder() {
        
        onChanged();
        return getInputFieldBuilder().getBuilder();
      }
      /**
       * .io.provenance.scope.contract.Envelope input = 1;
       */
      public io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder getInputOrBuilder() {
        if (inputBuilder_ != null) {
          return inputBuilder_.getMessageOrBuilder();
        } else {
          return input_ == null ?
              io.provenance.scope.contract.proto.Envelopes.Envelope.getDefaultInstance() : input_;
        }
      }
      /**
       * .io.provenance.scope.contract.Envelope input = 1;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          io.provenance.scope.contract.proto.Envelopes.Envelope, io.provenance.scope.contract.proto.Envelopes.Envelope.Builder, io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder> 
          getInputFieldBuilder() {
        if (inputBuilder_ == null) {
          inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              io.provenance.scope.contract.proto.Envelopes.Envelope, io.provenance.scope.contract.proto.Envelopes.Envelope.Builder, io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder>(
                  getInput(),
                  getParentForChildren(),
                  isClean());
          input_ = null;
        }
        return inputBuilder_;
      }

      private io.provenance.scope.contract.proto.Envelopes.Envelope result_;
      private com.google.protobuf.SingleFieldBuilderV3<
          io.provenance.scope.contract.proto.Envelopes.Envelope, io.provenance.scope.contract.proto.Envelopes.Envelope.Builder, io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder> resultBuilder_;
      /**
       * .io.provenance.scope.contract.Envelope result = 2;
       * @return Whether the result field is set.
       */
      public boolean hasResult() {
        return resultBuilder_ != null || result_ != null;
      }
      /**
       * .io.provenance.scope.contract.Envelope result = 2;
       * @return The result.
       */
      public io.provenance.scope.contract.proto.Envelopes.Envelope getResult() {
        if (resultBuilder_ == null) {
          return result_ == null ? io.provenance.scope.contract.proto.Envelopes.Envelope.getDefaultInstance() : result_;
        } else {
          return resultBuilder_.getMessage();
        }
      }
      /**
       * .io.provenance.scope.contract.Envelope result = 2;
       */
      public Builder setResult(io.provenance.scope.contract.proto.Envelopes.Envelope value) {
        if (resultBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          result_ = value;
          onChanged();
        } else {
          resultBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .io.provenance.scope.contract.Envelope result = 2;
       */
      public Builder setResult(
          io.provenance.scope.contract.proto.Envelopes.Envelope.Builder builderForValue) {
        if (resultBuilder_ == null) {
          result_ = builderForValue.build();
          onChanged();
        } else {
          resultBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .io.provenance.scope.contract.Envelope result = 2;
       */
      public Builder mergeResult(io.provenance.scope.contract.proto.Envelopes.Envelope value) {
        if (resultBuilder_ == null) {
          if (result_ != null) {
            result_ =
              io.provenance.scope.contract.proto.Envelopes.Envelope.newBuilder(result_).mergeFrom(value).buildPartial();
          } else {
            result_ = value;
          }
          onChanged();
        } else {
          resultBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .io.provenance.scope.contract.Envelope result = 2;
       */
      public Builder clearResult() {
        if (resultBuilder_ == null) {
          result_ = null;
          onChanged();
        } else {
          result_ = null;
          resultBuilder_ = null;
        }

        return this;
      }
      /**
       * .io.provenance.scope.contract.Envelope result = 2;
       */
      public io.provenance.scope.contract.proto.Envelopes.Envelope.Builder getResultBuilder() {
        
        onChanged();
        return getResultFieldBuilder().getBuilder();
      }
      /**
       * .io.provenance.scope.contract.Envelope result = 2;
       */
      public io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder getResultOrBuilder() {
        if (resultBuilder_ != null) {
          return resultBuilder_.getMessageOrBuilder();
        } else {
          return result_ == null ?
              io.provenance.scope.contract.proto.Envelopes.Envelope.getDefaultInstance() : result_;
        }
      }
      /**
       * .io.provenance.scope.contract.Envelope result = 2;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          io.provenance.scope.contract.proto.Envelopes.Envelope, io.provenance.scope.contract.proto.Envelopes.Envelope.Builder, io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder> 
          getResultFieldBuilder() {
        if (resultBuilder_ == null) {
          resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              io.provenance.scope.contract.proto.Envelopes.Envelope, io.provenance.scope.contract.proto.Envelopes.Envelope.Builder, io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder>(
                  getResult(),
                  getParentForChildren(),
                  isClean());
          result_ = null;
        }
        return resultBuilder_;
      }
      @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:io.provenance.scope.contract.EnvelopeState)
    }

    // @@protoc_insertion_point(class_scope:io.provenance.scope.contract.EnvelopeState)
    private static final io.provenance.scope.contract.proto.Envelopes.EnvelopeState DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.provenance.scope.contract.proto.Envelopes.EnvelopeState();
    }

    public static io.provenance.scope.contract.proto.Envelopes.EnvelopeState getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public EnvelopeState parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new EnvelopeState(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 io.provenance.scope.contract.proto.Envelopes.EnvelopeState getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface EnvelopeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:io.provenance.scope.contract.Envelope)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ref contains
     * 1) the scope of the object being modified on blockchain.
     * 2) the uuid of the contract execution.
     * 3) the hash of the contract instance that has been executed.
     * 
* * .io.provenance.scope.contract.ProvenanceReference ref = 1; * @return Whether the ref field is set. */ boolean hasRef(); /** *
     * ref contains
     * 1) the scope of the object being modified on blockchain.
     * 2) the uuid of the contract execution.
     * 3) the hash of the contract instance that has been executed.
     * 
* * .io.provenance.scope.contract.ProvenanceReference ref = 1; * @return The ref. */ io.provenance.scope.contract.proto.Commons.ProvenanceReference getRef(); /** *
     * ref contains
     * 1) the scope of the object being modified on blockchain.
     * 2) the uuid of the contract execution.
     * 3) the hash of the contract instance that has been executed.
     * 
* * .io.provenance.scope.contract.ProvenanceReference ref = 1; */ io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder getRefOrBuilder(); /** *
     * The executed contract.
     * 
* * .io.provenance.scope.contract.Contract contract = 2; * @return Whether the contract field is set. */ boolean hasContract(); /** *
     * The executed contract.
     * 
* * .io.provenance.scope.contract.Contract contract = 2; * @return The contract. */ io.provenance.scope.contract.proto.Contracts.Contract getContract(); /** *
     * The executed contract.
     * 
* * .io.provenance.scope.contract.Contract contract = 2; */ io.provenance.scope.contract.proto.Contracts.ContractOrBuilder getContractOrBuilder(); /** *
     * Signatures for the contract.
     * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ java.util.List getSignaturesList(); /** *
     * Signatures for the contract.
     * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ io.provenance.scope.proto.Common.Signature getSignatures(int index); /** *
     * Signatures for the contract.
     * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ int getSignaturesCount(); /** *
     * Signatures for the contract.
     * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ java.util.List getSignaturesOrBuilderList(); /** *
     * Signatures for the contract.
     * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ io.provenance.scope.proto.Common.SignatureOrBuilder getSignaturesOrBuilder( int index); /** *
     * Unique identifier for determining contract/group execution instance
     * 
* * .io.provenance.scope.UUID execution_uuid = 5; * @return Whether the executionUuid field is set. */ boolean hasExecutionUuid(); /** *
     * Unique identifier for determining contract/group execution instance
     * 
* * .io.provenance.scope.UUID execution_uuid = 5; * @return The executionUuid. */ io.provenance.scope.proto.Util.UUID getExecutionUuid(); /** *
     * Unique identifier for determining contract/group execution instance
     * 
* * .io.provenance.scope.UUID execution_uuid = 5; */ io.provenance.scope.proto.Util.UUIDOrBuilder getExecutionUuidOrBuilder(); /** *
     * Unique identifier for determining previous execution instance
     * 
* * .io.provenance.scope.UUID prev_execution_uuid = 6; * @return Whether the prevExecutionUuid field is set. */ boolean hasPrevExecutionUuid(); /** *
     * Unique identifier for determining previous execution instance
     * 
* * .io.provenance.scope.UUID prev_execution_uuid = 6; * @return The prevExecutionUuid. */ io.provenance.scope.proto.Util.UUID getPrevExecutionUuid(); /** *
     * Unique identifier for determining previous execution instance
     * 
* * .io.provenance.scope.UUID prev_execution_uuid = 6; */ io.provenance.scope.proto.Util.UUIDOrBuilder getPrevExecutionUuidOrBuilder(); /** *
     * When a contract execution is considered stale and expired
     * 
* * .google.protobuf.Timestamp expiration_time = 7; * @return Whether the expirationTime field is set. */ boolean hasExpirationTime(); /** *
     * When a contract execution is considered stale and expired
     * 
* * .google.protobuf.Timestamp expiration_time = 7; * @return The expirationTime. */ com.google.protobuf.Timestamp getExpirationTime(); /** *
     * When a contract execution is considered stale and expired
     * 
* * .google.protobuf.Timestamp expiration_time = 7; */ com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder(); /** *
     * Scope snapshot for executing
     * 
* * .google.protobuf.Any scope = 8; * @return Whether the scope field is set. */ boolean hasScope(); /** *
     * Scope snapshot for executing
     * 
* * .google.protobuf.Any scope = 8; * @return The scope. */ com.google.protobuf.Any getScope(); /** *
     * Scope snapshot for executing
     * 
* * .google.protobuf.Any scope = 8; */ com.google.protobuf.AnyOrBuilder getScopeOrBuilder(); /** * .io.provenance.scope.contract.Envelope.Status status = 9; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .io.provenance.scope.contract.Envelope.Status status = 9; * @return The status. */ io.provenance.scope.contract.proto.Envelopes.Envelope.Status getStatus(); /** * .io.provenance.scope.UUID scope_spec_uuid = 10; * @return Whether the scopeSpecUuid field is set. */ boolean hasScopeSpecUuid(); /** * .io.provenance.scope.UUID scope_spec_uuid = 10; * @return The scopeSpecUuid. */ io.provenance.scope.proto.Util.UUID getScopeSpecUuid(); /** * .io.provenance.scope.UUID scope_spec_uuid = 10; */ io.provenance.scope.proto.Util.UUIDOrBuilder getScopeSpecUuidOrBuilder(); /** * bool new_scope = 11; * @return The newScope. */ boolean getNewScope(); /** * bool new_session = 12; * @return The newSession. */ boolean getNewSession(); /** * bool main_net = 13; * @return The mainNet. */ boolean getMainNet(); /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ java.util.List getDataAccessList(); /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ io.provenance.scope.proto.PK.PublicKey getDataAccess(int index); /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ int getDataAccessCount(); /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ java.util.List getDataAccessOrBuilderList(); /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ io.provenance.scope.proto.PK.PublicKeyOrBuilder getDataAccessOrBuilder( int index); } /** * Protobuf type {@code io.provenance.scope.contract.Envelope} */ public static final class Envelope extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.provenance.scope.contract.Envelope) EnvelopeOrBuilder { private static final long serialVersionUID = 0L; // Use Envelope.newBuilder() to construct. private Envelope(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Envelope() { signatures_ = java.util.Collections.emptyList(); status_ = 0; dataAccess_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Envelope(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Envelope( 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: { io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder subBuilder = null; if (ref_ != null) { subBuilder = ref_.toBuilder(); } ref_ = input.readMessage(io.provenance.scope.contract.proto.Commons.ProvenanceReference.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ref_); ref_ = subBuilder.buildPartial(); } break; } case 18: { io.provenance.scope.contract.proto.Contracts.Contract.Builder subBuilder = null; if (contract_ != null) { subBuilder = contract_.toBuilder(); } contract_ = input.readMessage(io.provenance.scope.contract.proto.Contracts.Contract.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(contract_); contract_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { signatures_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } signatures_.add( input.readMessage(io.provenance.scope.proto.Common.Signature.parser(), extensionRegistry)); break; } case 42: { io.provenance.scope.proto.Util.UUID.Builder subBuilder = null; if (executionUuid_ != null) { subBuilder = executionUuid_.toBuilder(); } executionUuid_ = input.readMessage(io.provenance.scope.proto.Util.UUID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(executionUuid_); executionUuid_ = subBuilder.buildPartial(); } break; } case 50: { io.provenance.scope.proto.Util.UUID.Builder subBuilder = null; if (prevExecutionUuid_ != null) { subBuilder = prevExecutionUuid_.toBuilder(); } prevExecutionUuid_ = input.readMessage(io.provenance.scope.proto.Util.UUID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(prevExecutionUuid_); prevExecutionUuid_ = subBuilder.buildPartial(); } break; } case 58: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (expirationTime_ != null) { subBuilder = expirationTime_.toBuilder(); } expirationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expirationTime_); expirationTime_ = subBuilder.buildPartial(); } break; } case 66: { com.google.protobuf.Any.Builder subBuilder = null; if (scope_ != null) { subBuilder = scope_.toBuilder(); } scope_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scope_); scope_ = subBuilder.buildPartial(); } break; } case 72: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 82: { io.provenance.scope.proto.Util.UUID.Builder subBuilder = null; if (scopeSpecUuid_ != null) { subBuilder = scopeSpecUuid_.toBuilder(); } scopeSpecUuid_ = input.readMessage(io.provenance.scope.proto.Util.UUID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scopeSpecUuid_); scopeSpecUuid_ = subBuilder.buildPartial(); } break; } case 88: { newScope_ = input.readBool(); break; } case 96: { newSession_ = input.readBool(); break; } case 104: { mainNet_ = input.readBool(); break; } case 114: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { dataAccess_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } dataAccess_.add( input.readMessage(io.provenance.scope.proto.PK.PublicKey.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { signatures_ = java.util.Collections.unmodifiableList(signatures_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { dataAccess_ = java.util.Collections.unmodifiableList(dataAccess_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.scope.contract.proto.Envelopes.internal_static_io_provenance_scope_contract_Envelope_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.scope.contract.proto.Envelopes.internal_static_io_provenance_scope_contract_Envelope_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.scope.contract.proto.Envelopes.Envelope.class, io.provenance.scope.contract.proto.Envelopes.Envelope.Builder.class); } /** * Protobuf enum {@code io.provenance.scope.contract.Envelope.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * CREATED = 0 [(.io.provenance.scope.contract.description) = "Envelope created."]; */ CREATED(0), /** * FRAGMENT = 1 [(.io.provenance.scope.contract.description) = "Envelope sent to other parties, awaiting responses."]; */ FRAGMENT(1), /** * INBOX = 2 [(.io.provenance.scope.contract.description) = "Envelope received."]; */ INBOX(2), /** * EXECUTED = 3 [(.io.provenance.scope.contract.description) = "Envelope executed by non-invoker."]; */ EXECUTED(3), /** * OUTBOX = 4 [(.io.provenance.scope.contract.description) = "Envelope response sent from non-invoker to invoker."]; */ OUTBOX(4), /** * SIGNED = 5 [(.io.provenance.scope.contract.description) = "Envelope is complete with all signatures."]; */ SIGNED(5), /** * CHAINCODE = 6 [(.io.provenance.scope.contract.description) = "Envelope has been sent to chaincode."]; */ CHAINCODE(6), /** * INDEX = 7 [(.io.provenance.scope.contract.description) = "Envelope has been returned from chaincode."]; */ INDEX(7), /** * COMPLETE = 8 [(.io.provenance.scope.contract.description) = "Envelope has been completed."]; */ COMPLETE(8), /** * ERROR = 11 [(.io.provenance.scope.contract.description) = "Envelope is in error state."]; */ ERROR(11), UNRECOGNIZED(-1), ; /** * CREATED = 0 [(.io.provenance.scope.contract.description) = "Envelope created."]; */ public static final int CREATED_VALUE = 0; /** * FRAGMENT = 1 [(.io.provenance.scope.contract.description) = "Envelope sent to other parties, awaiting responses."]; */ public static final int FRAGMENT_VALUE = 1; /** * INBOX = 2 [(.io.provenance.scope.contract.description) = "Envelope received."]; */ public static final int INBOX_VALUE = 2; /** * EXECUTED = 3 [(.io.provenance.scope.contract.description) = "Envelope executed by non-invoker."]; */ public static final int EXECUTED_VALUE = 3; /** * OUTBOX = 4 [(.io.provenance.scope.contract.description) = "Envelope response sent from non-invoker to invoker."]; */ public static final int OUTBOX_VALUE = 4; /** * SIGNED = 5 [(.io.provenance.scope.contract.description) = "Envelope is complete with all signatures."]; */ public static final int SIGNED_VALUE = 5; /** * CHAINCODE = 6 [(.io.provenance.scope.contract.description) = "Envelope has been sent to chaincode."]; */ public static final int CHAINCODE_VALUE = 6; /** * INDEX = 7 [(.io.provenance.scope.contract.description) = "Envelope has been returned from chaincode."]; */ public static final int INDEX_VALUE = 7; /** * COMPLETE = 8 [(.io.provenance.scope.contract.description) = "Envelope has been completed."]; */ public static final int COMPLETE_VALUE = 8; /** * ERROR = 11 [(.io.provenance.scope.contract.description) = "Envelope is in error state."]; */ public static final int ERROR_VALUE = 11; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Status valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Status forNumber(int value) { switch (value) { case 0: return CREATED; case 1: return FRAGMENT; case 2: return INBOX; case 3: return EXECUTED; case 4: return OUTBOX; case 5: return SIGNED; case 6: return CHAINCODE; case 7: return INDEX; case 8: return COMPLETE; case 11: return ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.provenance.scope.contract.proto.Envelopes.Envelope.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:io.provenance.scope.contract.Envelope.Status) } public static final int REF_FIELD_NUMBER = 1; private io.provenance.scope.contract.proto.Commons.ProvenanceReference ref_; /** *
     * ref contains
     * 1) the scope of the object being modified on blockchain.
     * 2) the uuid of the contract execution.
     * 3) the hash of the contract instance that has been executed.
     * 
* * .io.provenance.scope.contract.ProvenanceReference ref = 1; * @return Whether the ref field is set. */ @java.lang.Override public boolean hasRef() { return ref_ != null; } /** *
     * ref contains
     * 1) the scope of the object being modified on blockchain.
     * 2) the uuid of the contract execution.
     * 3) the hash of the contract instance that has been executed.
     * 
* * .io.provenance.scope.contract.ProvenanceReference ref = 1; * @return The ref. */ @java.lang.Override public io.provenance.scope.contract.proto.Commons.ProvenanceReference getRef() { return ref_ == null ? io.provenance.scope.contract.proto.Commons.ProvenanceReference.getDefaultInstance() : ref_; } /** *
     * ref contains
     * 1) the scope of the object being modified on blockchain.
     * 2) the uuid of the contract execution.
     * 3) the hash of the contract instance that has been executed.
     * 
* * .io.provenance.scope.contract.ProvenanceReference ref = 1; */ @java.lang.Override public io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder getRefOrBuilder() { return getRef(); } public static final int CONTRACT_FIELD_NUMBER = 2; private io.provenance.scope.contract.proto.Contracts.Contract contract_; /** *
     * The executed contract.
     * 
* * .io.provenance.scope.contract.Contract contract = 2; * @return Whether the contract field is set. */ @java.lang.Override public boolean hasContract() { return contract_ != null; } /** *
     * The executed contract.
     * 
* * .io.provenance.scope.contract.Contract contract = 2; * @return The contract. */ @java.lang.Override public io.provenance.scope.contract.proto.Contracts.Contract getContract() { return contract_ == null ? io.provenance.scope.contract.proto.Contracts.Contract.getDefaultInstance() : contract_; } /** *
     * The executed contract.
     * 
* * .io.provenance.scope.contract.Contract contract = 2; */ @java.lang.Override public io.provenance.scope.contract.proto.Contracts.ContractOrBuilder getContractOrBuilder() { return getContract(); } public static final int SIGNATURES_FIELD_NUMBER = 3; private java.util.List signatures_; /** *
     * Signatures for the contract.
     * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ @java.lang.Override public java.util.List getSignaturesList() { return signatures_; } /** *
     * Signatures for the contract.
     * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ @java.lang.Override public java.util.List getSignaturesOrBuilderList() { return signatures_; } /** *
     * Signatures for the contract.
     * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ @java.lang.Override public int getSignaturesCount() { return signatures_.size(); } /** *
     * Signatures for the contract.
     * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ @java.lang.Override public io.provenance.scope.proto.Common.Signature getSignatures(int index) { return signatures_.get(index); } /** *
     * Signatures for the contract.
     * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ @java.lang.Override public io.provenance.scope.proto.Common.SignatureOrBuilder getSignaturesOrBuilder( int index) { return signatures_.get(index); } public static final int EXECUTION_UUID_FIELD_NUMBER = 5; private io.provenance.scope.proto.Util.UUID executionUuid_; /** *
     * Unique identifier for determining contract/group execution instance
     * 
* * .io.provenance.scope.UUID execution_uuid = 5; * @return Whether the executionUuid field is set. */ @java.lang.Override public boolean hasExecutionUuid() { return executionUuid_ != null; } /** *
     * Unique identifier for determining contract/group execution instance
     * 
* * .io.provenance.scope.UUID execution_uuid = 5; * @return The executionUuid. */ @java.lang.Override public io.provenance.scope.proto.Util.UUID getExecutionUuid() { return executionUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : executionUuid_; } /** *
     * Unique identifier for determining contract/group execution instance
     * 
* * .io.provenance.scope.UUID execution_uuid = 5; */ @java.lang.Override public io.provenance.scope.proto.Util.UUIDOrBuilder getExecutionUuidOrBuilder() { return getExecutionUuid(); } public static final int PREV_EXECUTION_UUID_FIELD_NUMBER = 6; private io.provenance.scope.proto.Util.UUID prevExecutionUuid_; /** *
     * Unique identifier for determining previous execution instance
     * 
* * .io.provenance.scope.UUID prev_execution_uuid = 6; * @return Whether the prevExecutionUuid field is set. */ @java.lang.Override public boolean hasPrevExecutionUuid() { return prevExecutionUuid_ != null; } /** *
     * Unique identifier for determining previous execution instance
     * 
* * .io.provenance.scope.UUID prev_execution_uuid = 6; * @return The prevExecutionUuid. */ @java.lang.Override public io.provenance.scope.proto.Util.UUID getPrevExecutionUuid() { return prevExecutionUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : prevExecutionUuid_; } /** *
     * Unique identifier for determining previous execution instance
     * 
* * .io.provenance.scope.UUID prev_execution_uuid = 6; */ @java.lang.Override public io.provenance.scope.proto.Util.UUIDOrBuilder getPrevExecutionUuidOrBuilder() { return getPrevExecutionUuid(); } public static final int EXPIRATION_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp expirationTime_; /** *
     * When a contract execution is considered stale and expired
     * 
* * .google.protobuf.Timestamp expiration_time = 7; * @return Whether the expirationTime field is set. */ @java.lang.Override public boolean hasExpirationTime() { return expirationTime_ != null; } /** *
     * When a contract execution is considered stale and expired
     * 
* * .google.protobuf.Timestamp expiration_time = 7; * @return The expirationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpirationTime() { return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } /** *
     * When a contract execution is considered stale and expired
     * 
* * .google.protobuf.Timestamp expiration_time = 7; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() { return getExpirationTime(); } public static final int SCOPE_FIELD_NUMBER = 8; private com.google.protobuf.Any scope_; /** *
     * Scope snapshot for executing
     * 
* * .google.protobuf.Any scope = 8; * @return Whether the scope field is set. */ @java.lang.Override public boolean hasScope() { return scope_ != null; } /** *
     * Scope snapshot for executing
     * 
* * .google.protobuf.Any scope = 8; * @return The scope. */ @java.lang.Override public com.google.protobuf.Any getScope() { return scope_ == null ? com.google.protobuf.Any.getDefaultInstance() : scope_; } /** *
     * Scope snapshot for executing
     * 
* * .google.protobuf.Any scope = 8; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getScopeOrBuilder() { return getScope(); } public static final int STATUS_FIELD_NUMBER = 9; private int status_; /** * .io.provenance.scope.contract.Envelope.Status status = 9; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .io.provenance.scope.contract.Envelope.Status status = 9; * @return The status. */ @java.lang.Override public io.provenance.scope.contract.proto.Envelopes.Envelope.Status getStatus() { @SuppressWarnings("deprecation") io.provenance.scope.contract.proto.Envelopes.Envelope.Status result = io.provenance.scope.contract.proto.Envelopes.Envelope.Status.valueOf(status_); return result == null ? io.provenance.scope.contract.proto.Envelopes.Envelope.Status.UNRECOGNIZED : result; } public static final int SCOPE_SPEC_UUID_FIELD_NUMBER = 10; private io.provenance.scope.proto.Util.UUID scopeSpecUuid_; /** * .io.provenance.scope.UUID scope_spec_uuid = 10; * @return Whether the scopeSpecUuid field is set. */ @java.lang.Override public boolean hasScopeSpecUuid() { return scopeSpecUuid_ != null; } /** * .io.provenance.scope.UUID scope_spec_uuid = 10; * @return The scopeSpecUuid. */ @java.lang.Override public io.provenance.scope.proto.Util.UUID getScopeSpecUuid() { return scopeSpecUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : scopeSpecUuid_; } /** * .io.provenance.scope.UUID scope_spec_uuid = 10; */ @java.lang.Override public io.provenance.scope.proto.Util.UUIDOrBuilder getScopeSpecUuidOrBuilder() { return getScopeSpecUuid(); } public static final int NEW_SCOPE_FIELD_NUMBER = 11; private boolean newScope_; /** * bool new_scope = 11; * @return The newScope. */ @java.lang.Override public boolean getNewScope() { return newScope_; } public static final int NEW_SESSION_FIELD_NUMBER = 12; private boolean newSession_; /** * bool new_session = 12; * @return The newSession. */ @java.lang.Override public boolean getNewSession() { return newSession_; } public static final int MAIN_NET_FIELD_NUMBER = 13; private boolean mainNet_; /** * bool main_net = 13; * @return The mainNet. */ @java.lang.Override public boolean getMainNet() { return mainNet_; } public static final int DATA_ACCESS_FIELD_NUMBER = 14; private java.util.List dataAccess_; /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ @java.lang.Override public java.util.List getDataAccessList() { return dataAccess_; } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ @java.lang.Override public java.util.List getDataAccessOrBuilderList() { return dataAccess_; } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ @java.lang.Override public int getDataAccessCount() { return dataAccess_.size(); } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ @java.lang.Override public io.provenance.scope.proto.PK.PublicKey getDataAccess(int index) { return dataAccess_.get(index); } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ @java.lang.Override public io.provenance.scope.proto.PK.PublicKeyOrBuilder getDataAccessOrBuilder( int index) { return dataAccess_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (ref_ != null) { output.writeMessage(1, getRef()); } if (contract_ != null) { output.writeMessage(2, getContract()); } for (int i = 0; i < signatures_.size(); i++) { output.writeMessage(3, signatures_.get(i)); } if (executionUuid_ != null) { output.writeMessage(5, getExecutionUuid()); } if (prevExecutionUuid_ != null) { output.writeMessage(6, getPrevExecutionUuid()); } if (expirationTime_ != null) { output.writeMessage(7, getExpirationTime()); } if (scope_ != null) { output.writeMessage(8, getScope()); } if (status_ != io.provenance.scope.contract.proto.Envelopes.Envelope.Status.CREATED.getNumber()) { output.writeEnum(9, status_); } if (scopeSpecUuid_ != null) { output.writeMessage(10, getScopeSpecUuid()); } if (newScope_ != false) { output.writeBool(11, newScope_); } if (newSession_ != false) { output.writeBool(12, newSession_); } if (mainNet_ != false) { output.writeBool(13, mainNet_); } for (int i = 0; i < dataAccess_.size(); i++) { output.writeMessage(14, dataAccess_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ref_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRef()); } if (contract_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getContract()); } for (int i = 0; i < signatures_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, signatures_.get(i)); } if (executionUuid_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getExecutionUuid()); } if (prevExecutionUuid_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getPrevExecutionUuid()); } if (expirationTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getExpirationTime()); } if (scope_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getScope()); } if (status_ != io.provenance.scope.contract.proto.Envelopes.Envelope.Status.CREATED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, status_); } if (scopeSpecUuid_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getScopeSpecUuid()); } if (newScope_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, newScope_); } if (newSession_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, newSession_); } if (mainNet_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, mainNet_); } for (int i = 0; i < dataAccess_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, dataAccess_.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 io.provenance.scope.contract.proto.Envelopes.Envelope)) { return super.equals(obj); } io.provenance.scope.contract.proto.Envelopes.Envelope other = (io.provenance.scope.contract.proto.Envelopes.Envelope) obj; if (hasRef() != other.hasRef()) return false; if (hasRef()) { if (!getRef() .equals(other.getRef())) return false; } if (hasContract() != other.hasContract()) return false; if (hasContract()) { if (!getContract() .equals(other.getContract())) return false; } if (!getSignaturesList() .equals(other.getSignaturesList())) return false; if (hasExecutionUuid() != other.hasExecutionUuid()) return false; if (hasExecutionUuid()) { if (!getExecutionUuid() .equals(other.getExecutionUuid())) return false; } if (hasPrevExecutionUuid() != other.hasPrevExecutionUuid()) return false; if (hasPrevExecutionUuid()) { if (!getPrevExecutionUuid() .equals(other.getPrevExecutionUuid())) return false; } if (hasExpirationTime() != other.hasExpirationTime()) return false; if (hasExpirationTime()) { if (!getExpirationTime() .equals(other.getExpirationTime())) return false; } if (hasScope() != other.hasScope()) return false; if (hasScope()) { if (!getScope() .equals(other.getScope())) return false; } if (status_ != other.status_) return false; if (hasScopeSpecUuid() != other.hasScopeSpecUuid()) return false; if (hasScopeSpecUuid()) { if (!getScopeSpecUuid() .equals(other.getScopeSpecUuid())) return false; } if (getNewScope() != other.getNewScope()) return false; if (getNewSession() != other.getNewSession()) return false; if (getMainNet() != other.getMainNet()) return false; if (!getDataAccessList() .equals(other.getDataAccessList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRef()) { hash = (37 * hash) + REF_FIELD_NUMBER; hash = (53 * hash) + getRef().hashCode(); } if (hasContract()) { hash = (37 * hash) + CONTRACT_FIELD_NUMBER; hash = (53 * hash) + getContract().hashCode(); } if (getSignaturesCount() > 0) { hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; hash = (53 * hash) + getSignaturesList().hashCode(); } if (hasExecutionUuid()) { hash = (37 * hash) + EXECUTION_UUID_FIELD_NUMBER; hash = (53 * hash) + getExecutionUuid().hashCode(); } if (hasPrevExecutionUuid()) { hash = (37 * hash) + PREV_EXECUTION_UUID_FIELD_NUMBER; hash = (53 * hash) + getPrevExecutionUuid().hashCode(); } if (hasExpirationTime()) { hash = (37 * hash) + EXPIRATION_TIME_FIELD_NUMBER; hash = (53 * hash) + getExpirationTime().hashCode(); } if (hasScope()) { hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + getScope().hashCode(); } hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (hasScopeSpecUuid()) { hash = (37 * hash) + SCOPE_SPEC_UUID_FIELD_NUMBER; hash = (53 * hash) + getScopeSpecUuid().hashCode(); } hash = (37 * hash) + NEW_SCOPE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNewScope()); hash = (37 * hash) + NEW_SESSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNewSession()); hash = (37 * hash) + MAIN_NET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMainNet()); if (getDataAccessCount() > 0) { hash = (37 * hash) + DATA_ACCESS_FIELD_NUMBER; hash = (53 * hash) + getDataAccessList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.provenance.scope.contract.proto.Envelopes.Envelope parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.scope.contract.proto.Envelopes.Envelope parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.scope.contract.proto.Envelopes.Envelope parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.scope.contract.proto.Envelopes.Envelope parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.scope.contract.proto.Envelopes.Envelope parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.scope.contract.proto.Envelopes.Envelope parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.scope.contract.proto.Envelopes.Envelope parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.scope.contract.proto.Envelopes.Envelope 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 io.provenance.scope.contract.proto.Envelopes.Envelope parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.provenance.scope.contract.proto.Envelopes.Envelope 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 io.provenance.scope.contract.proto.Envelopes.Envelope parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.scope.contract.proto.Envelopes.Envelope 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(io.provenance.scope.contract.proto.Envelopes.Envelope 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 io.provenance.scope.contract.Envelope} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.provenance.scope.contract.Envelope) io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.scope.contract.proto.Envelopes.internal_static_io_provenance_scope_contract_Envelope_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.scope.contract.proto.Envelopes.internal_static_io_provenance_scope_contract_Envelope_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.scope.contract.proto.Envelopes.Envelope.class, io.provenance.scope.contract.proto.Envelopes.Envelope.Builder.class); } // Construct using io.provenance.scope.contract.proto.Envelopes.Envelope.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSignaturesFieldBuilder(); getDataAccessFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (refBuilder_ == null) { ref_ = null; } else { ref_ = null; refBuilder_ = null; } if (contractBuilder_ == null) { contract_ = null; } else { contract_ = null; contractBuilder_ = null; } if (signaturesBuilder_ == null) { signatures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { signaturesBuilder_.clear(); } if (executionUuidBuilder_ == null) { executionUuid_ = null; } else { executionUuid_ = null; executionUuidBuilder_ = null; } if (prevExecutionUuidBuilder_ == null) { prevExecutionUuid_ = null; } else { prevExecutionUuid_ = null; prevExecutionUuidBuilder_ = null; } if (expirationTimeBuilder_ == null) { expirationTime_ = null; } else { expirationTime_ = null; expirationTimeBuilder_ = null; } if (scopeBuilder_ == null) { scope_ = null; } else { scope_ = null; scopeBuilder_ = null; } status_ = 0; if (scopeSpecUuidBuilder_ == null) { scopeSpecUuid_ = null; } else { scopeSpecUuid_ = null; scopeSpecUuidBuilder_ = null; } newScope_ = false; newSession_ = false; mainNet_ = false; if (dataAccessBuilder_ == null) { dataAccess_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { dataAccessBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.provenance.scope.contract.proto.Envelopes.internal_static_io_provenance_scope_contract_Envelope_descriptor; } @java.lang.Override public io.provenance.scope.contract.proto.Envelopes.Envelope getDefaultInstanceForType() { return io.provenance.scope.contract.proto.Envelopes.Envelope.getDefaultInstance(); } @java.lang.Override public io.provenance.scope.contract.proto.Envelopes.Envelope build() { io.provenance.scope.contract.proto.Envelopes.Envelope result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.provenance.scope.contract.proto.Envelopes.Envelope buildPartial() { io.provenance.scope.contract.proto.Envelopes.Envelope result = new io.provenance.scope.contract.proto.Envelopes.Envelope(this); int from_bitField0_ = bitField0_; if (refBuilder_ == null) { result.ref_ = ref_; } else { result.ref_ = refBuilder_.build(); } if (contractBuilder_ == null) { result.contract_ = contract_; } else { result.contract_ = contractBuilder_.build(); } if (signaturesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { signatures_ = java.util.Collections.unmodifiableList(signatures_); bitField0_ = (bitField0_ & ~0x00000001); } result.signatures_ = signatures_; } else { result.signatures_ = signaturesBuilder_.build(); } if (executionUuidBuilder_ == null) { result.executionUuid_ = executionUuid_; } else { result.executionUuid_ = executionUuidBuilder_.build(); } if (prevExecutionUuidBuilder_ == null) { result.prevExecutionUuid_ = prevExecutionUuid_; } else { result.prevExecutionUuid_ = prevExecutionUuidBuilder_.build(); } if (expirationTimeBuilder_ == null) { result.expirationTime_ = expirationTime_; } else { result.expirationTime_ = expirationTimeBuilder_.build(); } if (scopeBuilder_ == null) { result.scope_ = scope_; } else { result.scope_ = scopeBuilder_.build(); } result.status_ = status_; if (scopeSpecUuidBuilder_ == null) { result.scopeSpecUuid_ = scopeSpecUuid_; } else { result.scopeSpecUuid_ = scopeSpecUuidBuilder_.build(); } result.newScope_ = newScope_; result.newSession_ = newSession_; result.mainNet_ = mainNet_; if (dataAccessBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { dataAccess_ = java.util.Collections.unmodifiableList(dataAccess_); bitField0_ = (bitField0_ & ~0x00000002); } result.dataAccess_ = dataAccess_; } else { result.dataAccess_ = dataAccessBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.provenance.scope.contract.proto.Envelopes.Envelope) { return mergeFrom((io.provenance.scope.contract.proto.Envelopes.Envelope)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.provenance.scope.contract.proto.Envelopes.Envelope other) { if (other == io.provenance.scope.contract.proto.Envelopes.Envelope.getDefaultInstance()) return this; if (other.hasRef()) { mergeRef(other.getRef()); } if (other.hasContract()) { mergeContract(other.getContract()); } if (signaturesBuilder_ == null) { if (!other.signatures_.isEmpty()) { if (signatures_.isEmpty()) { signatures_ = other.signatures_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSignaturesIsMutable(); signatures_.addAll(other.signatures_); } onChanged(); } } else { if (!other.signatures_.isEmpty()) { if (signaturesBuilder_.isEmpty()) { signaturesBuilder_.dispose(); signaturesBuilder_ = null; signatures_ = other.signatures_; bitField0_ = (bitField0_ & ~0x00000001); signaturesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSignaturesFieldBuilder() : null; } else { signaturesBuilder_.addAllMessages(other.signatures_); } } } if (other.hasExecutionUuid()) { mergeExecutionUuid(other.getExecutionUuid()); } if (other.hasPrevExecutionUuid()) { mergePrevExecutionUuid(other.getPrevExecutionUuid()); } if (other.hasExpirationTime()) { mergeExpirationTime(other.getExpirationTime()); } if (other.hasScope()) { mergeScope(other.getScope()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (other.hasScopeSpecUuid()) { mergeScopeSpecUuid(other.getScopeSpecUuid()); } if (other.getNewScope() != false) { setNewScope(other.getNewScope()); } if (other.getNewSession() != false) { setNewSession(other.getNewSession()); } if (other.getMainNet() != false) { setMainNet(other.getMainNet()); } if (dataAccessBuilder_ == null) { if (!other.dataAccess_.isEmpty()) { if (dataAccess_.isEmpty()) { dataAccess_ = other.dataAccess_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDataAccessIsMutable(); dataAccess_.addAll(other.dataAccess_); } onChanged(); } } else { if (!other.dataAccess_.isEmpty()) { if (dataAccessBuilder_.isEmpty()) { dataAccessBuilder_.dispose(); dataAccessBuilder_ = null; dataAccess_ = other.dataAccess_; bitField0_ = (bitField0_ & ~0x00000002); dataAccessBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataAccessFieldBuilder() : null; } else { dataAccessBuilder_.addAllMessages(other.dataAccess_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.provenance.scope.contract.proto.Envelopes.Envelope parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.provenance.scope.contract.proto.Envelopes.Envelope) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.provenance.scope.contract.proto.Commons.ProvenanceReference ref_; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.contract.proto.Commons.ProvenanceReference, io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder, io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder> refBuilder_; /** *
       * ref contains
       * 1) the scope of the object being modified on blockchain.
       * 2) the uuid of the contract execution.
       * 3) the hash of the contract instance that has been executed.
       * 
* * .io.provenance.scope.contract.ProvenanceReference ref = 1; * @return Whether the ref field is set. */ public boolean hasRef() { return refBuilder_ != null || ref_ != null; } /** *
       * ref contains
       * 1) the scope of the object being modified on blockchain.
       * 2) the uuid of the contract execution.
       * 3) the hash of the contract instance that has been executed.
       * 
* * .io.provenance.scope.contract.ProvenanceReference ref = 1; * @return The ref. */ public io.provenance.scope.contract.proto.Commons.ProvenanceReference getRef() { if (refBuilder_ == null) { return ref_ == null ? io.provenance.scope.contract.proto.Commons.ProvenanceReference.getDefaultInstance() : ref_; } else { return refBuilder_.getMessage(); } } /** *
       * ref contains
       * 1) the scope of the object being modified on blockchain.
       * 2) the uuid of the contract execution.
       * 3) the hash of the contract instance that has been executed.
       * 
* * .io.provenance.scope.contract.ProvenanceReference ref = 1; */ public Builder setRef(io.provenance.scope.contract.proto.Commons.ProvenanceReference value) { if (refBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ref_ = value; onChanged(); } else { refBuilder_.setMessage(value); } return this; } /** *
       * ref contains
       * 1) the scope of the object being modified on blockchain.
       * 2) the uuid of the contract execution.
       * 3) the hash of the contract instance that has been executed.
       * 
* * .io.provenance.scope.contract.ProvenanceReference ref = 1; */ public Builder setRef( io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder builderForValue) { if (refBuilder_ == null) { ref_ = builderForValue.build(); onChanged(); } else { refBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * ref contains
       * 1) the scope of the object being modified on blockchain.
       * 2) the uuid of the contract execution.
       * 3) the hash of the contract instance that has been executed.
       * 
* * .io.provenance.scope.contract.ProvenanceReference ref = 1; */ public Builder mergeRef(io.provenance.scope.contract.proto.Commons.ProvenanceReference value) { if (refBuilder_ == null) { if (ref_ != null) { ref_ = io.provenance.scope.contract.proto.Commons.ProvenanceReference.newBuilder(ref_).mergeFrom(value).buildPartial(); } else { ref_ = value; } onChanged(); } else { refBuilder_.mergeFrom(value); } return this; } /** *
       * ref contains
       * 1) the scope of the object being modified on blockchain.
       * 2) the uuid of the contract execution.
       * 3) the hash of the contract instance that has been executed.
       * 
* * .io.provenance.scope.contract.ProvenanceReference ref = 1; */ public Builder clearRef() { if (refBuilder_ == null) { ref_ = null; onChanged(); } else { ref_ = null; refBuilder_ = null; } return this; } /** *
       * ref contains
       * 1) the scope of the object being modified on blockchain.
       * 2) the uuid of the contract execution.
       * 3) the hash of the contract instance that has been executed.
       * 
* * .io.provenance.scope.contract.ProvenanceReference ref = 1; */ public io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder getRefBuilder() { onChanged(); return getRefFieldBuilder().getBuilder(); } /** *
       * ref contains
       * 1) the scope of the object being modified on blockchain.
       * 2) the uuid of the contract execution.
       * 3) the hash of the contract instance that has been executed.
       * 
* * .io.provenance.scope.contract.ProvenanceReference ref = 1; */ public io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder getRefOrBuilder() { if (refBuilder_ != null) { return refBuilder_.getMessageOrBuilder(); } else { return ref_ == null ? io.provenance.scope.contract.proto.Commons.ProvenanceReference.getDefaultInstance() : ref_; } } /** *
       * ref contains
       * 1) the scope of the object being modified on blockchain.
       * 2) the uuid of the contract execution.
       * 3) the hash of the contract instance that has been executed.
       * 
* * .io.provenance.scope.contract.ProvenanceReference ref = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.contract.proto.Commons.ProvenanceReference, io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder, io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder> getRefFieldBuilder() { if (refBuilder_ == null) { refBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.contract.proto.Commons.ProvenanceReference, io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder, io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder>( getRef(), getParentForChildren(), isClean()); ref_ = null; } return refBuilder_; } private io.provenance.scope.contract.proto.Contracts.Contract contract_; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.contract.proto.Contracts.Contract, io.provenance.scope.contract.proto.Contracts.Contract.Builder, io.provenance.scope.contract.proto.Contracts.ContractOrBuilder> contractBuilder_; /** *
       * The executed contract.
       * 
* * .io.provenance.scope.contract.Contract contract = 2; * @return Whether the contract field is set. */ public boolean hasContract() { return contractBuilder_ != null || contract_ != null; } /** *
       * The executed contract.
       * 
* * .io.provenance.scope.contract.Contract contract = 2; * @return The contract. */ public io.provenance.scope.contract.proto.Contracts.Contract getContract() { if (contractBuilder_ == null) { return contract_ == null ? io.provenance.scope.contract.proto.Contracts.Contract.getDefaultInstance() : contract_; } else { return contractBuilder_.getMessage(); } } /** *
       * The executed contract.
       * 
* * .io.provenance.scope.contract.Contract contract = 2; */ public Builder setContract(io.provenance.scope.contract.proto.Contracts.Contract value) { if (contractBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contract_ = value; onChanged(); } else { contractBuilder_.setMessage(value); } return this; } /** *
       * The executed contract.
       * 
* * .io.provenance.scope.contract.Contract contract = 2; */ public Builder setContract( io.provenance.scope.contract.proto.Contracts.Contract.Builder builderForValue) { if (contractBuilder_ == null) { contract_ = builderForValue.build(); onChanged(); } else { contractBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The executed contract.
       * 
* * .io.provenance.scope.contract.Contract contract = 2; */ public Builder mergeContract(io.provenance.scope.contract.proto.Contracts.Contract value) { if (contractBuilder_ == null) { if (contract_ != null) { contract_ = io.provenance.scope.contract.proto.Contracts.Contract.newBuilder(contract_).mergeFrom(value).buildPartial(); } else { contract_ = value; } onChanged(); } else { contractBuilder_.mergeFrom(value); } return this; } /** *
       * The executed contract.
       * 
* * .io.provenance.scope.contract.Contract contract = 2; */ public Builder clearContract() { if (contractBuilder_ == null) { contract_ = null; onChanged(); } else { contract_ = null; contractBuilder_ = null; } return this; } /** *
       * The executed contract.
       * 
* * .io.provenance.scope.contract.Contract contract = 2; */ public io.provenance.scope.contract.proto.Contracts.Contract.Builder getContractBuilder() { onChanged(); return getContractFieldBuilder().getBuilder(); } /** *
       * The executed contract.
       * 
* * .io.provenance.scope.contract.Contract contract = 2; */ public io.provenance.scope.contract.proto.Contracts.ContractOrBuilder getContractOrBuilder() { if (contractBuilder_ != null) { return contractBuilder_.getMessageOrBuilder(); } else { return contract_ == null ? io.provenance.scope.contract.proto.Contracts.Contract.getDefaultInstance() : contract_; } } /** *
       * The executed contract.
       * 
* * .io.provenance.scope.contract.Contract contract = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.contract.proto.Contracts.Contract, io.provenance.scope.contract.proto.Contracts.Contract.Builder, io.provenance.scope.contract.proto.Contracts.ContractOrBuilder> getContractFieldBuilder() { if (contractBuilder_ == null) { contractBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.contract.proto.Contracts.Contract, io.provenance.scope.contract.proto.Contracts.Contract.Builder, io.provenance.scope.contract.proto.Contracts.ContractOrBuilder>( getContract(), getParentForChildren(), isClean()); contract_ = null; } return contractBuilder_; } private java.util.List signatures_ = java.util.Collections.emptyList(); private void ensureSignaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { signatures_ = new java.util.ArrayList(signatures_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.scope.proto.Common.Signature, io.provenance.scope.proto.Common.Signature.Builder, io.provenance.scope.proto.Common.SignatureOrBuilder> signaturesBuilder_; /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public java.util.List getSignaturesList() { if (signaturesBuilder_ == null) { return java.util.Collections.unmodifiableList(signatures_); } else { return signaturesBuilder_.getMessageList(); } } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public int getSignaturesCount() { if (signaturesBuilder_ == null) { return signatures_.size(); } else { return signaturesBuilder_.getCount(); } } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public io.provenance.scope.proto.Common.Signature getSignatures(int index) { if (signaturesBuilder_ == null) { return signatures_.get(index); } else { return signaturesBuilder_.getMessage(index); } } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public Builder setSignatures( int index, io.provenance.scope.proto.Common.Signature value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.set(index, value); onChanged(); } else { signaturesBuilder_.setMessage(index, value); } return this; } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public Builder setSignatures( int index, io.provenance.scope.proto.Common.Signature.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.set(index, builderForValue.build()); onChanged(); } else { signaturesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public Builder addSignatures(io.provenance.scope.proto.Common.Signature value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.add(value); onChanged(); } else { signaturesBuilder_.addMessage(value); } return this; } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public Builder addSignatures( int index, io.provenance.scope.proto.Common.Signature value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.add(index, value); onChanged(); } else { signaturesBuilder_.addMessage(index, value); } return this; } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public Builder addSignatures( io.provenance.scope.proto.Common.Signature.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.add(builderForValue.build()); onChanged(); } else { signaturesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public Builder addSignatures( int index, io.provenance.scope.proto.Common.Signature.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.add(index, builderForValue.build()); onChanged(); } else { signaturesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public Builder addAllSignatures( java.lang.Iterable values) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, signatures_); onChanged(); } else { signaturesBuilder_.addAllMessages(values); } return this; } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public Builder clearSignatures() { if (signaturesBuilder_ == null) { signatures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { signaturesBuilder_.clear(); } return this; } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public Builder removeSignatures(int index) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.remove(index); onChanged(); } else { signaturesBuilder_.remove(index); } return this; } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public io.provenance.scope.proto.Common.Signature.Builder getSignaturesBuilder( int index) { return getSignaturesFieldBuilder().getBuilder(index); } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public io.provenance.scope.proto.Common.SignatureOrBuilder getSignaturesOrBuilder( int index) { if (signaturesBuilder_ == null) { return signatures_.get(index); } else { return signaturesBuilder_.getMessageOrBuilder(index); } } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public java.util.List getSignaturesOrBuilderList() { if (signaturesBuilder_ != null) { return signaturesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(signatures_); } } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public io.provenance.scope.proto.Common.Signature.Builder addSignaturesBuilder() { return getSignaturesFieldBuilder().addBuilder( io.provenance.scope.proto.Common.Signature.getDefaultInstance()); } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public io.provenance.scope.proto.Common.Signature.Builder addSignaturesBuilder( int index) { return getSignaturesFieldBuilder().addBuilder( index, io.provenance.scope.proto.Common.Signature.getDefaultInstance()); } /** *
       * Signatures for the contract.
       * 
* * repeated .io.provenance.scope.Signature signatures = 3; */ public java.util.List getSignaturesBuilderList() { return getSignaturesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.scope.proto.Common.Signature, io.provenance.scope.proto.Common.Signature.Builder, io.provenance.scope.proto.Common.SignatureOrBuilder> getSignaturesFieldBuilder() { if (signaturesBuilder_ == null) { signaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.scope.proto.Common.Signature, io.provenance.scope.proto.Common.Signature.Builder, io.provenance.scope.proto.Common.SignatureOrBuilder>( signatures_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); signatures_ = null; } return signaturesBuilder_; } private io.provenance.scope.proto.Util.UUID executionUuid_; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> executionUuidBuilder_; /** *
       * Unique identifier for determining contract/group execution instance
       * 
* * .io.provenance.scope.UUID execution_uuid = 5; * @return Whether the executionUuid field is set. */ public boolean hasExecutionUuid() { return executionUuidBuilder_ != null || executionUuid_ != null; } /** *
       * Unique identifier for determining contract/group execution instance
       * 
* * .io.provenance.scope.UUID execution_uuid = 5; * @return The executionUuid. */ public io.provenance.scope.proto.Util.UUID getExecutionUuid() { if (executionUuidBuilder_ == null) { return executionUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : executionUuid_; } else { return executionUuidBuilder_.getMessage(); } } /** *
       * Unique identifier for determining contract/group execution instance
       * 
* * .io.provenance.scope.UUID execution_uuid = 5; */ public Builder setExecutionUuid(io.provenance.scope.proto.Util.UUID value) { if (executionUuidBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executionUuid_ = value; onChanged(); } else { executionUuidBuilder_.setMessage(value); } return this; } /** *
       * Unique identifier for determining contract/group execution instance
       * 
* * .io.provenance.scope.UUID execution_uuid = 5; */ public Builder setExecutionUuid( io.provenance.scope.proto.Util.UUID.Builder builderForValue) { if (executionUuidBuilder_ == null) { executionUuid_ = builderForValue.build(); onChanged(); } else { executionUuidBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Unique identifier for determining contract/group execution instance
       * 
* * .io.provenance.scope.UUID execution_uuid = 5; */ public Builder mergeExecutionUuid(io.provenance.scope.proto.Util.UUID value) { if (executionUuidBuilder_ == null) { if (executionUuid_ != null) { executionUuid_ = io.provenance.scope.proto.Util.UUID.newBuilder(executionUuid_).mergeFrom(value).buildPartial(); } else { executionUuid_ = value; } onChanged(); } else { executionUuidBuilder_.mergeFrom(value); } return this; } /** *
       * Unique identifier for determining contract/group execution instance
       * 
* * .io.provenance.scope.UUID execution_uuid = 5; */ public Builder clearExecutionUuid() { if (executionUuidBuilder_ == null) { executionUuid_ = null; onChanged(); } else { executionUuid_ = null; executionUuidBuilder_ = null; } return this; } /** *
       * Unique identifier for determining contract/group execution instance
       * 
* * .io.provenance.scope.UUID execution_uuid = 5; */ public io.provenance.scope.proto.Util.UUID.Builder getExecutionUuidBuilder() { onChanged(); return getExecutionUuidFieldBuilder().getBuilder(); } /** *
       * Unique identifier for determining contract/group execution instance
       * 
* * .io.provenance.scope.UUID execution_uuid = 5; */ public io.provenance.scope.proto.Util.UUIDOrBuilder getExecutionUuidOrBuilder() { if (executionUuidBuilder_ != null) { return executionUuidBuilder_.getMessageOrBuilder(); } else { return executionUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : executionUuid_; } } /** *
       * Unique identifier for determining contract/group execution instance
       * 
* * .io.provenance.scope.UUID execution_uuid = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> getExecutionUuidFieldBuilder() { if (executionUuidBuilder_ == null) { executionUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder>( getExecutionUuid(), getParentForChildren(), isClean()); executionUuid_ = null; } return executionUuidBuilder_; } private io.provenance.scope.proto.Util.UUID prevExecutionUuid_; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> prevExecutionUuidBuilder_; /** *
       * Unique identifier for determining previous execution instance
       * 
* * .io.provenance.scope.UUID prev_execution_uuid = 6; * @return Whether the prevExecutionUuid field is set. */ public boolean hasPrevExecutionUuid() { return prevExecutionUuidBuilder_ != null || prevExecutionUuid_ != null; } /** *
       * Unique identifier for determining previous execution instance
       * 
* * .io.provenance.scope.UUID prev_execution_uuid = 6; * @return The prevExecutionUuid. */ public io.provenance.scope.proto.Util.UUID getPrevExecutionUuid() { if (prevExecutionUuidBuilder_ == null) { return prevExecutionUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : prevExecutionUuid_; } else { return prevExecutionUuidBuilder_.getMessage(); } } /** *
       * Unique identifier for determining previous execution instance
       * 
* * .io.provenance.scope.UUID prev_execution_uuid = 6; */ public Builder setPrevExecutionUuid(io.provenance.scope.proto.Util.UUID value) { if (prevExecutionUuidBuilder_ == null) { if (value == null) { throw new NullPointerException(); } prevExecutionUuid_ = value; onChanged(); } else { prevExecutionUuidBuilder_.setMessage(value); } return this; } /** *
       * Unique identifier for determining previous execution instance
       * 
* * .io.provenance.scope.UUID prev_execution_uuid = 6; */ public Builder setPrevExecutionUuid( io.provenance.scope.proto.Util.UUID.Builder builderForValue) { if (prevExecutionUuidBuilder_ == null) { prevExecutionUuid_ = builderForValue.build(); onChanged(); } else { prevExecutionUuidBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Unique identifier for determining previous execution instance
       * 
* * .io.provenance.scope.UUID prev_execution_uuid = 6; */ public Builder mergePrevExecutionUuid(io.provenance.scope.proto.Util.UUID value) { if (prevExecutionUuidBuilder_ == null) { if (prevExecutionUuid_ != null) { prevExecutionUuid_ = io.provenance.scope.proto.Util.UUID.newBuilder(prevExecutionUuid_).mergeFrom(value).buildPartial(); } else { prevExecutionUuid_ = value; } onChanged(); } else { prevExecutionUuidBuilder_.mergeFrom(value); } return this; } /** *
       * Unique identifier for determining previous execution instance
       * 
* * .io.provenance.scope.UUID prev_execution_uuid = 6; */ public Builder clearPrevExecutionUuid() { if (prevExecutionUuidBuilder_ == null) { prevExecutionUuid_ = null; onChanged(); } else { prevExecutionUuid_ = null; prevExecutionUuidBuilder_ = null; } return this; } /** *
       * Unique identifier for determining previous execution instance
       * 
* * .io.provenance.scope.UUID prev_execution_uuid = 6; */ public io.provenance.scope.proto.Util.UUID.Builder getPrevExecutionUuidBuilder() { onChanged(); return getPrevExecutionUuidFieldBuilder().getBuilder(); } /** *
       * Unique identifier for determining previous execution instance
       * 
* * .io.provenance.scope.UUID prev_execution_uuid = 6; */ public io.provenance.scope.proto.Util.UUIDOrBuilder getPrevExecutionUuidOrBuilder() { if (prevExecutionUuidBuilder_ != null) { return prevExecutionUuidBuilder_.getMessageOrBuilder(); } else { return prevExecutionUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : prevExecutionUuid_; } } /** *
       * Unique identifier for determining previous execution instance
       * 
* * .io.provenance.scope.UUID prev_execution_uuid = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> getPrevExecutionUuidFieldBuilder() { if (prevExecutionUuidBuilder_ == null) { prevExecutionUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder>( getPrevExecutionUuid(), getParentForChildren(), isClean()); prevExecutionUuid_ = null; } return prevExecutionUuidBuilder_; } private com.google.protobuf.Timestamp expirationTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expirationTimeBuilder_; /** *
       * When a contract execution is considered stale and expired
       * 
* * .google.protobuf.Timestamp expiration_time = 7; * @return Whether the expirationTime field is set. */ public boolean hasExpirationTime() { return expirationTimeBuilder_ != null || expirationTime_ != null; } /** *
       * When a contract execution is considered stale and expired
       * 
* * .google.protobuf.Timestamp expiration_time = 7; * @return The expirationTime. */ public com.google.protobuf.Timestamp getExpirationTime() { if (expirationTimeBuilder_ == null) { return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } else { return expirationTimeBuilder_.getMessage(); } } /** *
       * When a contract execution is considered stale and expired
       * 
* * .google.protobuf.Timestamp expiration_time = 7; */ public Builder setExpirationTime(com.google.protobuf.Timestamp value) { if (expirationTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expirationTime_ = value; onChanged(); } else { expirationTimeBuilder_.setMessage(value); } return this; } /** *
       * When a contract execution is considered stale and expired
       * 
* * .google.protobuf.Timestamp expiration_time = 7; */ public Builder setExpirationTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (expirationTimeBuilder_ == null) { expirationTime_ = builderForValue.build(); onChanged(); } else { expirationTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * When a contract execution is considered stale and expired
       * 
* * .google.protobuf.Timestamp expiration_time = 7; */ public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) { if (expirationTimeBuilder_ == null) { if (expirationTime_ != null) { expirationTime_ = com.google.protobuf.Timestamp.newBuilder(expirationTime_).mergeFrom(value).buildPartial(); } else { expirationTime_ = value; } onChanged(); } else { expirationTimeBuilder_.mergeFrom(value); } return this; } /** *
       * When a contract execution is considered stale and expired
       * 
* * .google.protobuf.Timestamp expiration_time = 7; */ public Builder clearExpirationTime() { if (expirationTimeBuilder_ == null) { expirationTime_ = null; onChanged(); } else { expirationTime_ = null; expirationTimeBuilder_ = null; } return this; } /** *
       * When a contract execution is considered stale and expired
       * 
* * .google.protobuf.Timestamp expiration_time = 7; */ public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder() { onChanged(); return getExpirationTimeFieldBuilder().getBuilder(); } /** *
       * When a contract execution is considered stale and expired
       * 
* * .google.protobuf.Timestamp expiration_time = 7; */ public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() { if (expirationTimeBuilder_ != null) { return expirationTimeBuilder_.getMessageOrBuilder(); } else { return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } } /** *
       * When a contract execution is considered stale and expired
       * 
* * .google.protobuf.Timestamp expiration_time = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExpirationTimeFieldBuilder() { if (expirationTimeBuilder_ == null) { expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getExpirationTime(), getParentForChildren(), isClean()); expirationTime_ = null; } return expirationTimeBuilder_; } private com.google.protobuf.Any scope_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> scopeBuilder_; /** *
       * Scope snapshot for executing
       * 
* * .google.protobuf.Any scope = 8; * @return Whether the scope field is set. */ public boolean hasScope() { return scopeBuilder_ != null || scope_ != null; } /** *
       * Scope snapshot for executing
       * 
* * .google.protobuf.Any scope = 8; * @return The scope. */ public com.google.protobuf.Any getScope() { if (scopeBuilder_ == null) { return scope_ == null ? com.google.protobuf.Any.getDefaultInstance() : scope_; } else { return scopeBuilder_.getMessage(); } } /** *
       * Scope snapshot for executing
       * 
* * .google.protobuf.Any scope = 8; */ public Builder setScope(com.google.protobuf.Any value) { if (scopeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scope_ = value; onChanged(); } else { scopeBuilder_.setMessage(value); } return this; } /** *
       * Scope snapshot for executing
       * 
* * .google.protobuf.Any scope = 8; */ public Builder setScope( com.google.protobuf.Any.Builder builderForValue) { if (scopeBuilder_ == null) { scope_ = builderForValue.build(); onChanged(); } else { scopeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Scope snapshot for executing
       * 
* * .google.protobuf.Any scope = 8; */ public Builder mergeScope(com.google.protobuf.Any value) { if (scopeBuilder_ == null) { if (scope_ != null) { scope_ = com.google.protobuf.Any.newBuilder(scope_).mergeFrom(value).buildPartial(); } else { scope_ = value; } onChanged(); } else { scopeBuilder_.mergeFrom(value); } return this; } /** *
       * Scope snapshot for executing
       * 
* * .google.protobuf.Any scope = 8; */ public Builder clearScope() { if (scopeBuilder_ == null) { scope_ = null; onChanged(); } else { scope_ = null; scopeBuilder_ = null; } return this; } /** *
       * Scope snapshot for executing
       * 
* * .google.protobuf.Any scope = 8; */ public com.google.protobuf.Any.Builder getScopeBuilder() { onChanged(); return getScopeFieldBuilder().getBuilder(); } /** *
       * Scope snapshot for executing
       * 
* * .google.protobuf.Any scope = 8; */ public com.google.protobuf.AnyOrBuilder getScopeOrBuilder() { if (scopeBuilder_ != null) { return scopeBuilder_.getMessageOrBuilder(); } else { return scope_ == null ? com.google.protobuf.Any.getDefaultInstance() : scope_; } } /** *
       * Scope snapshot for executing
       * 
* * .google.protobuf.Any scope = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getScopeFieldBuilder() { if (scopeBuilder_ == null) { scopeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getScope(), getParentForChildren(), isClean()); scope_ = null; } return scopeBuilder_; } private int status_ = 0; /** * .io.provenance.scope.contract.Envelope.Status status = 9; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .io.provenance.scope.contract.Envelope.Status status = 9; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** * .io.provenance.scope.contract.Envelope.Status status = 9; * @return The status. */ @java.lang.Override public io.provenance.scope.contract.proto.Envelopes.Envelope.Status getStatus() { @SuppressWarnings("deprecation") io.provenance.scope.contract.proto.Envelopes.Envelope.Status result = io.provenance.scope.contract.proto.Envelopes.Envelope.Status.valueOf(status_); return result == null ? io.provenance.scope.contract.proto.Envelopes.Envelope.Status.UNRECOGNIZED : result; } /** * .io.provenance.scope.contract.Envelope.Status status = 9; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(io.provenance.scope.contract.proto.Envelopes.Envelope.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .io.provenance.scope.contract.Envelope.Status status = 9; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private io.provenance.scope.proto.Util.UUID scopeSpecUuid_; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> scopeSpecUuidBuilder_; /** * .io.provenance.scope.UUID scope_spec_uuid = 10; * @return Whether the scopeSpecUuid field is set. */ public boolean hasScopeSpecUuid() { return scopeSpecUuidBuilder_ != null || scopeSpecUuid_ != null; } /** * .io.provenance.scope.UUID scope_spec_uuid = 10; * @return The scopeSpecUuid. */ public io.provenance.scope.proto.Util.UUID getScopeSpecUuid() { if (scopeSpecUuidBuilder_ == null) { return scopeSpecUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : scopeSpecUuid_; } else { return scopeSpecUuidBuilder_.getMessage(); } } /** * .io.provenance.scope.UUID scope_spec_uuid = 10; */ public Builder setScopeSpecUuid(io.provenance.scope.proto.Util.UUID value) { if (scopeSpecUuidBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scopeSpecUuid_ = value; onChanged(); } else { scopeSpecUuidBuilder_.setMessage(value); } return this; } /** * .io.provenance.scope.UUID scope_spec_uuid = 10; */ public Builder setScopeSpecUuid( io.provenance.scope.proto.Util.UUID.Builder builderForValue) { if (scopeSpecUuidBuilder_ == null) { scopeSpecUuid_ = builderForValue.build(); onChanged(); } else { scopeSpecUuidBuilder_.setMessage(builderForValue.build()); } return this; } /** * .io.provenance.scope.UUID scope_spec_uuid = 10; */ public Builder mergeScopeSpecUuid(io.provenance.scope.proto.Util.UUID value) { if (scopeSpecUuidBuilder_ == null) { if (scopeSpecUuid_ != null) { scopeSpecUuid_ = io.provenance.scope.proto.Util.UUID.newBuilder(scopeSpecUuid_).mergeFrom(value).buildPartial(); } else { scopeSpecUuid_ = value; } onChanged(); } else { scopeSpecUuidBuilder_.mergeFrom(value); } return this; } /** * .io.provenance.scope.UUID scope_spec_uuid = 10; */ public Builder clearScopeSpecUuid() { if (scopeSpecUuidBuilder_ == null) { scopeSpecUuid_ = null; onChanged(); } else { scopeSpecUuid_ = null; scopeSpecUuidBuilder_ = null; } return this; } /** * .io.provenance.scope.UUID scope_spec_uuid = 10; */ public io.provenance.scope.proto.Util.UUID.Builder getScopeSpecUuidBuilder() { onChanged(); return getScopeSpecUuidFieldBuilder().getBuilder(); } /** * .io.provenance.scope.UUID scope_spec_uuid = 10; */ public io.provenance.scope.proto.Util.UUIDOrBuilder getScopeSpecUuidOrBuilder() { if (scopeSpecUuidBuilder_ != null) { return scopeSpecUuidBuilder_.getMessageOrBuilder(); } else { return scopeSpecUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : scopeSpecUuid_; } } /** * .io.provenance.scope.UUID scope_spec_uuid = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> getScopeSpecUuidFieldBuilder() { if (scopeSpecUuidBuilder_ == null) { scopeSpecUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder>( getScopeSpecUuid(), getParentForChildren(), isClean()); scopeSpecUuid_ = null; } return scopeSpecUuidBuilder_; } private boolean newScope_ ; /** * bool new_scope = 11; * @return The newScope. */ @java.lang.Override public boolean getNewScope() { return newScope_; } /** * bool new_scope = 11; * @param value The newScope to set. * @return This builder for chaining. */ public Builder setNewScope(boolean value) { newScope_ = value; onChanged(); return this; } /** * bool new_scope = 11; * @return This builder for chaining. */ public Builder clearNewScope() { newScope_ = false; onChanged(); return this; } private boolean newSession_ ; /** * bool new_session = 12; * @return The newSession. */ @java.lang.Override public boolean getNewSession() { return newSession_; } /** * bool new_session = 12; * @param value The newSession to set. * @return This builder for chaining. */ public Builder setNewSession(boolean value) { newSession_ = value; onChanged(); return this; } /** * bool new_session = 12; * @return This builder for chaining. */ public Builder clearNewSession() { newSession_ = false; onChanged(); return this; } private boolean mainNet_ ; /** * bool main_net = 13; * @return The mainNet. */ @java.lang.Override public boolean getMainNet() { return mainNet_; } /** * bool main_net = 13; * @param value The mainNet to set. * @return This builder for chaining. */ public Builder setMainNet(boolean value) { mainNet_ = value; onChanged(); return this; } /** * bool main_net = 13; * @return This builder for chaining. */ public Builder clearMainNet() { mainNet_ = false; onChanged(); return this; } private java.util.List dataAccess_ = java.util.Collections.emptyList(); private void ensureDataAccessIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { dataAccess_ = new java.util.ArrayList(dataAccess_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.scope.proto.PK.PublicKey, io.provenance.scope.proto.PK.PublicKey.Builder, io.provenance.scope.proto.PK.PublicKeyOrBuilder> dataAccessBuilder_; /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public java.util.List getDataAccessList() { if (dataAccessBuilder_ == null) { return java.util.Collections.unmodifiableList(dataAccess_); } else { return dataAccessBuilder_.getMessageList(); } } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public int getDataAccessCount() { if (dataAccessBuilder_ == null) { return dataAccess_.size(); } else { return dataAccessBuilder_.getCount(); } } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public io.provenance.scope.proto.PK.PublicKey getDataAccess(int index) { if (dataAccessBuilder_ == null) { return dataAccess_.get(index); } else { return dataAccessBuilder_.getMessage(index); } } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public Builder setDataAccess( int index, io.provenance.scope.proto.PK.PublicKey value) { if (dataAccessBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataAccessIsMutable(); dataAccess_.set(index, value); onChanged(); } else { dataAccessBuilder_.setMessage(index, value); } return this; } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public Builder setDataAccess( int index, io.provenance.scope.proto.PK.PublicKey.Builder builderForValue) { if (dataAccessBuilder_ == null) { ensureDataAccessIsMutable(); dataAccess_.set(index, builderForValue.build()); onChanged(); } else { dataAccessBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public Builder addDataAccess(io.provenance.scope.proto.PK.PublicKey value) { if (dataAccessBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataAccessIsMutable(); dataAccess_.add(value); onChanged(); } else { dataAccessBuilder_.addMessage(value); } return this; } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public Builder addDataAccess( int index, io.provenance.scope.proto.PK.PublicKey value) { if (dataAccessBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataAccessIsMutable(); dataAccess_.add(index, value); onChanged(); } else { dataAccessBuilder_.addMessage(index, value); } return this; } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public Builder addDataAccess( io.provenance.scope.proto.PK.PublicKey.Builder builderForValue) { if (dataAccessBuilder_ == null) { ensureDataAccessIsMutable(); dataAccess_.add(builderForValue.build()); onChanged(); } else { dataAccessBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public Builder addDataAccess( int index, io.provenance.scope.proto.PK.PublicKey.Builder builderForValue) { if (dataAccessBuilder_ == null) { ensureDataAccessIsMutable(); dataAccess_.add(index, builderForValue.build()); onChanged(); } else { dataAccessBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public Builder addAllDataAccess( java.lang.Iterable values) { if (dataAccessBuilder_ == null) { ensureDataAccessIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dataAccess_); onChanged(); } else { dataAccessBuilder_.addAllMessages(values); } return this; } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public Builder clearDataAccess() { if (dataAccessBuilder_ == null) { dataAccess_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { dataAccessBuilder_.clear(); } return this; } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public Builder removeDataAccess(int index) { if (dataAccessBuilder_ == null) { ensureDataAccessIsMutable(); dataAccess_.remove(index); onChanged(); } else { dataAccessBuilder_.remove(index); } return this; } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public io.provenance.scope.proto.PK.PublicKey.Builder getDataAccessBuilder( int index) { return getDataAccessFieldBuilder().getBuilder(index); } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public io.provenance.scope.proto.PK.PublicKeyOrBuilder getDataAccessOrBuilder( int index) { if (dataAccessBuilder_ == null) { return dataAccess_.get(index); } else { return dataAccessBuilder_.getMessageOrBuilder(index); } } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public java.util.List getDataAccessOrBuilderList() { if (dataAccessBuilder_ != null) { return dataAccessBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dataAccess_); } } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public io.provenance.scope.proto.PK.PublicKey.Builder addDataAccessBuilder() { return getDataAccessFieldBuilder().addBuilder( io.provenance.scope.proto.PK.PublicKey.getDefaultInstance()); } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public io.provenance.scope.proto.PK.PublicKey.Builder addDataAccessBuilder( int index) { return getDataAccessFieldBuilder().addBuilder( index, io.provenance.scope.proto.PK.PublicKey.getDefaultInstance()); } /** * repeated .io.provenance.scope.PublicKey data_access = 14; */ public java.util.List getDataAccessBuilderList() { return getDataAccessFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.scope.proto.PK.PublicKey, io.provenance.scope.proto.PK.PublicKey.Builder, io.provenance.scope.proto.PK.PublicKeyOrBuilder> getDataAccessFieldBuilder() { if (dataAccessBuilder_ == null) { dataAccessBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.scope.proto.PK.PublicKey, io.provenance.scope.proto.PK.PublicKey.Builder, io.provenance.scope.proto.PK.PublicKeyOrBuilder>( dataAccess_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); dataAccess_ = null; } return dataAccessBuilder_; } @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:io.provenance.scope.contract.Envelope) } // @@protoc_insertion_point(class_scope:io.provenance.scope.contract.Envelope) private static final io.provenance.scope.contract.proto.Envelopes.Envelope DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.provenance.scope.contract.proto.Envelopes.Envelope(); } public static io.provenance.scope.contract.proto.Envelopes.Envelope getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Envelope parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Envelope(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 io.provenance.scope.contract.proto.Envelopes.Envelope getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnvelopeErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:io.provenance.scope.contract.EnvelopeError) com.google.protobuf.MessageOrBuilder { /** * .io.provenance.scope.UUID uuid = 1; * @return Whether the uuid field is set. */ boolean hasUuid(); /** * .io.provenance.scope.UUID uuid = 1; * @return The uuid. */ io.provenance.scope.proto.Util.UUID getUuid(); /** * .io.provenance.scope.UUID uuid = 1; */ io.provenance.scope.proto.Util.UUIDOrBuilder getUuidOrBuilder(); /** * .io.provenance.scope.UUID session_uuid = 2; * @return Whether the sessionUuid field is set. */ boolean hasSessionUuid(); /** * .io.provenance.scope.UUID session_uuid = 2; * @return The sessionUuid. */ io.provenance.scope.proto.Util.UUID getSessionUuid(); /** * .io.provenance.scope.UUID session_uuid = 2; */ io.provenance.scope.proto.Util.UUIDOrBuilder getSessionUuidOrBuilder(); /** * .io.provenance.scope.UUID execution_uuid = 3; * @return Whether the executionUuid field is set. */ boolean hasExecutionUuid(); /** * .io.provenance.scope.UUID execution_uuid = 3; * @return The executionUuid. */ io.provenance.scope.proto.Util.UUID getExecutionUuid(); /** * .io.provenance.scope.UUID execution_uuid = 3; */ io.provenance.scope.proto.Util.UUIDOrBuilder getExecutionUuidOrBuilder(); /** * .io.provenance.scope.contract.EnvelopeError.Type type = 4; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * .io.provenance.scope.contract.EnvelopeError.Type type = 4; * @return The type. */ io.provenance.scope.contract.proto.Envelopes.EnvelopeError.Type getType(); /** * string message = 5; * @return The message. */ java.lang.String getMessage(); /** * string message = 5; * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** * .google.protobuf.Timestamp read_time = 6; * @return Whether the readTime field is set. */ boolean hasReadTime(); /** * .google.protobuf.Timestamp read_time = 6; * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** * .google.protobuf.Timestamp read_time = 6; */ com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** * .io.provenance.scope.UUID scope_uuid = 7; * @return Whether the scopeUuid field is set. */ boolean hasScopeUuid(); /** * .io.provenance.scope.UUID scope_uuid = 7; * @return The scopeUuid. */ io.provenance.scope.proto.Util.UUID getScopeUuid(); /** * .io.provenance.scope.UUID scope_uuid = 7; */ io.provenance.scope.proto.Util.UUIDOrBuilder getScopeUuidOrBuilder(); /** * .io.provenance.scope.contract.Envelope envelope = 8; * @return Whether the envelope field is set. */ boolean hasEnvelope(); /** * .io.provenance.scope.contract.Envelope envelope = 8; * @return The envelope. */ io.provenance.scope.contract.proto.Envelopes.Envelope getEnvelope(); /** * .io.provenance.scope.contract.Envelope envelope = 8; */ io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder getEnvelopeOrBuilder(); /** * .io.provenance.scope.AuditFields audit_fields = 99; * @return Whether the auditFields field is set. */ boolean hasAuditFields(); /** * .io.provenance.scope.AuditFields audit_fields = 99; * @return The auditFields. */ io.provenance.scope.proto.Util.AuditFields getAuditFields(); /** * .io.provenance.scope.AuditFields audit_fields = 99; */ io.provenance.scope.proto.Util.AuditFieldsOrBuilder getAuditFieldsOrBuilder(); } /** * Protobuf type {@code io.provenance.scope.contract.EnvelopeError} */ public static final class EnvelopeError extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.provenance.scope.contract.EnvelopeError) EnvelopeErrorOrBuilder { private static final long serialVersionUID = 0L; // Use EnvelopeError.newBuilder() to construct. private EnvelopeError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnvelopeError() { type_ = 0; message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnvelopeError(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnvelopeError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.provenance.scope.proto.Util.UUID.Builder subBuilder = null; if (uuid_ != null) { subBuilder = uuid_.toBuilder(); } uuid_ = input.readMessage(io.provenance.scope.proto.Util.UUID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(uuid_); uuid_ = subBuilder.buildPartial(); } break; } case 18: { io.provenance.scope.proto.Util.UUID.Builder subBuilder = null; if (sessionUuid_ != null) { subBuilder = sessionUuid_.toBuilder(); } sessionUuid_ = input.readMessage(io.provenance.scope.proto.Util.UUID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sessionUuid_); sessionUuid_ = subBuilder.buildPartial(); } break; } case 26: { io.provenance.scope.proto.Util.UUID.Builder subBuilder = null; if (executionUuid_ != null) { subBuilder = executionUuid_.toBuilder(); } executionUuid_ = input.readMessage(io.provenance.scope.proto.Util.UUID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(executionUuid_); executionUuid_ = subBuilder.buildPartial(); } break; } case 32: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); message_ = s; break; } case 50: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (readTime_ != null) { subBuilder = readTime_.toBuilder(); } readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(readTime_); readTime_ = subBuilder.buildPartial(); } break; } case 58: { io.provenance.scope.proto.Util.UUID.Builder subBuilder = null; if (scopeUuid_ != null) { subBuilder = scopeUuid_.toBuilder(); } scopeUuid_ = input.readMessage(io.provenance.scope.proto.Util.UUID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scopeUuid_); scopeUuid_ = subBuilder.buildPartial(); } break; } case 66: { io.provenance.scope.contract.proto.Envelopes.Envelope.Builder subBuilder = null; if (envelope_ != null) { subBuilder = envelope_.toBuilder(); } envelope_ = input.readMessage(io.provenance.scope.contract.proto.Envelopes.Envelope.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(envelope_); envelope_ = subBuilder.buildPartial(); } break; } case 794: { io.provenance.scope.proto.Util.AuditFields.Builder subBuilder = null; if (auditFields_ != null) { subBuilder = auditFields_.toBuilder(); } auditFields_ = input.readMessage(io.provenance.scope.proto.Util.AuditFields.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(auditFields_); auditFields_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.scope.contract.proto.Envelopes.internal_static_io_provenance_scope_contract_EnvelopeError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.scope.contract.proto.Envelopes.internal_static_io_provenance_scope_contract_EnvelopeError_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.scope.contract.proto.Envelopes.EnvelopeError.class, io.provenance.scope.contract.proto.Envelopes.EnvelopeError.Builder.class); } /** * Protobuf enum {@code io.provenance.scope.contract.EnvelopeError.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * NO_ERROR_TYPE = 0; */ NO_ERROR_TYPE(0), /** * CONTRACT_WHITELIST = 1; */ CONTRACT_WHITELIST(1), /** * TTL_TIMEOUT = 2; */ TTL_TIMEOUT(2), /** * CC_INVOCATION = 3; */ CC_INVOCATION(3), /** * CONTRACT_INVOCATION = 4; */ CONTRACT_INVOCATION(4), /** * CONTRACT_CANCELLED = 5; */ CONTRACT_CANCELLED(5), /** * CONTRACT_REJECTED = 6; */ CONTRACT_REJECTED(6), /** * PUBLIC_KEY_CHECK = 7; */ PUBLIC_KEY_CHECK(7), UNRECOGNIZED(-1), ; /** * NO_ERROR_TYPE = 0; */ public static final int NO_ERROR_TYPE_VALUE = 0; /** * CONTRACT_WHITELIST = 1; */ public static final int CONTRACT_WHITELIST_VALUE = 1; /** * TTL_TIMEOUT = 2; */ public static final int TTL_TIMEOUT_VALUE = 2; /** * CC_INVOCATION = 3; */ public static final int CC_INVOCATION_VALUE = 3; /** * CONTRACT_INVOCATION = 4; */ public static final int CONTRACT_INVOCATION_VALUE = 4; /** * CONTRACT_CANCELLED = 5; */ public static final int CONTRACT_CANCELLED_VALUE = 5; /** * CONTRACT_REJECTED = 6; */ public static final int CONTRACT_REJECTED_VALUE = 6; /** * PUBLIC_KEY_CHECK = 7; */ public static final int PUBLIC_KEY_CHECK_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Type forNumber(int value) { switch (value) { case 0: return NO_ERROR_TYPE; case 1: return CONTRACT_WHITELIST; case 2: return TTL_TIMEOUT; case 3: return CC_INVOCATION; case 4: return CONTRACT_INVOCATION; case 5: return CONTRACT_CANCELLED; case 6: return CONTRACT_REJECTED; case 7: return PUBLIC_KEY_CHECK; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.provenance.scope.contract.proto.Envelopes.EnvelopeError.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:io.provenance.scope.contract.EnvelopeError.Type) } public static final int UUID_FIELD_NUMBER = 1; private io.provenance.scope.proto.Util.UUID uuid_; /** * .io.provenance.scope.UUID uuid = 1; * @return Whether the uuid field is set. */ @java.lang.Override public boolean hasUuid() { return uuid_ != null; } /** * .io.provenance.scope.UUID uuid = 1; * @return The uuid. */ @java.lang.Override public io.provenance.scope.proto.Util.UUID getUuid() { return uuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : uuid_; } /** * .io.provenance.scope.UUID uuid = 1; */ @java.lang.Override public io.provenance.scope.proto.Util.UUIDOrBuilder getUuidOrBuilder() { return getUuid(); } public static final int SESSION_UUID_FIELD_NUMBER = 2; private io.provenance.scope.proto.Util.UUID sessionUuid_; /** * .io.provenance.scope.UUID session_uuid = 2; * @return Whether the sessionUuid field is set. */ @java.lang.Override public boolean hasSessionUuid() { return sessionUuid_ != null; } /** * .io.provenance.scope.UUID session_uuid = 2; * @return The sessionUuid. */ @java.lang.Override public io.provenance.scope.proto.Util.UUID getSessionUuid() { return sessionUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : sessionUuid_; } /** * .io.provenance.scope.UUID session_uuid = 2; */ @java.lang.Override public io.provenance.scope.proto.Util.UUIDOrBuilder getSessionUuidOrBuilder() { return getSessionUuid(); } public static final int EXECUTION_UUID_FIELD_NUMBER = 3; private io.provenance.scope.proto.Util.UUID executionUuid_; /** * .io.provenance.scope.UUID execution_uuid = 3; * @return Whether the executionUuid field is set. */ @java.lang.Override public boolean hasExecutionUuid() { return executionUuid_ != null; } /** * .io.provenance.scope.UUID execution_uuid = 3; * @return The executionUuid. */ @java.lang.Override public io.provenance.scope.proto.Util.UUID getExecutionUuid() { return executionUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : executionUuid_; } /** * .io.provenance.scope.UUID execution_uuid = 3; */ @java.lang.Override public io.provenance.scope.proto.Util.UUIDOrBuilder getExecutionUuidOrBuilder() { return getExecutionUuid(); } public static final int TYPE_FIELD_NUMBER = 4; private int type_; /** * .io.provenance.scope.contract.EnvelopeError.Type type = 4; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .io.provenance.scope.contract.EnvelopeError.Type type = 4; * @return The type. */ @java.lang.Override public io.provenance.scope.contract.proto.Envelopes.EnvelopeError.Type getType() { @SuppressWarnings("deprecation") io.provenance.scope.contract.proto.Envelopes.EnvelopeError.Type result = io.provenance.scope.contract.proto.Envelopes.EnvelopeError.Type.valueOf(type_); return result == null ? io.provenance.scope.contract.proto.Envelopes.EnvelopeError.Type.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object message_; /** * string message = 5; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; 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(); message_ = s; return s; } } /** * string message = 5; * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READ_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp readTime_; /** * .google.protobuf.Timestamp read_time = 6; * @return Whether the readTime field is set. */ @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } /** * .google.protobuf.Timestamp read_time = 6; * @return The readTime. */ @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** * .google.protobuf.Timestamp read_time = 6; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } public static final int SCOPE_UUID_FIELD_NUMBER = 7; private io.provenance.scope.proto.Util.UUID scopeUuid_; /** * .io.provenance.scope.UUID scope_uuid = 7; * @return Whether the scopeUuid field is set. */ @java.lang.Override public boolean hasScopeUuid() { return scopeUuid_ != null; } /** * .io.provenance.scope.UUID scope_uuid = 7; * @return The scopeUuid. */ @java.lang.Override public io.provenance.scope.proto.Util.UUID getScopeUuid() { return scopeUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : scopeUuid_; } /** * .io.provenance.scope.UUID scope_uuid = 7; */ @java.lang.Override public io.provenance.scope.proto.Util.UUIDOrBuilder getScopeUuidOrBuilder() { return getScopeUuid(); } public static final int ENVELOPE_FIELD_NUMBER = 8; private io.provenance.scope.contract.proto.Envelopes.Envelope envelope_; /** * .io.provenance.scope.contract.Envelope envelope = 8; * @return Whether the envelope field is set. */ @java.lang.Override public boolean hasEnvelope() { return envelope_ != null; } /** * .io.provenance.scope.contract.Envelope envelope = 8; * @return The envelope. */ @java.lang.Override public io.provenance.scope.contract.proto.Envelopes.Envelope getEnvelope() { return envelope_ == null ? io.provenance.scope.contract.proto.Envelopes.Envelope.getDefaultInstance() : envelope_; } /** * .io.provenance.scope.contract.Envelope envelope = 8; */ @java.lang.Override public io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder getEnvelopeOrBuilder() { return getEnvelope(); } public static final int AUDIT_FIELDS_FIELD_NUMBER = 99; private io.provenance.scope.proto.Util.AuditFields auditFields_; /** * .io.provenance.scope.AuditFields audit_fields = 99; * @return Whether the auditFields field is set. */ @java.lang.Override public boolean hasAuditFields() { return auditFields_ != null; } /** * .io.provenance.scope.AuditFields audit_fields = 99; * @return The auditFields. */ @java.lang.Override public io.provenance.scope.proto.Util.AuditFields getAuditFields() { return auditFields_ == null ? io.provenance.scope.proto.Util.AuditFields.getDefaultInstance() : auditFields_; } /** * .io.provenance.scope.AuditFields audit_fields = 99; */ @java.lang.Override public io.provenance.scope.proto.Util.AuditFieldsOrBuilder getAuditFieldsOrBuilder() { return getAuditFields(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (uuid_ != null) { output.writeMessage(1, getUuid()); } if (sessionUuid_ != null) { output.writeMessage(2, getSessionUuid()); } if (executionUuid_ != null) { output.writeMessage(3, getExecutionUuid()); } if (type_ != io.provenance.scope.contract.proto.Envelopes.EnvelopeError.Type.NO_ERROR_TYPE.getNumber()) { output.writeEnum(4, type_); } if (!getMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); } if (readTime_ != null) { output.writeMessage(6, getReadTime()); } if (scopeUuid_ != null) { output.writeMessage(7, getScopeUuid()); } if (envelope_ != null) { output.writeMessage(8, getEnvelope()); } if (auditFields_ != null) { output.writeMessage(99, getAuditFields()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (uuid_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getUuid()); } if (sessionUuid_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSessionUuid()); } if (executionUuid_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExecutionUuid()); } if (type_ != io.provenance.scope.contract.proto.Envelopes.EnvelopeError.Type.NO_ERROR_TYPE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, type_); } if (!getMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); } if (readTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getReadTime()); } if (scopeUuid_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getScopeUuid()); } if (envelope_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getEnvelope()); } if (auditFields_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(99, getAuditFields()); } 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 io.provenance.scope.contract.proto.Envelopes.EnvelopeError)) { return super.equals(obj); } io.provenance.scope.contract.proto.Envelopes.EnvelopeError other = (io.provenance.scope.contract.proto.Envelopes.EnvelopeError) obj; if (hasUuid() != other.hasUuid()) return false; if (hasUuid()) { if (!getUuid() .equals(other.getUuid())) return false; } if (hasSessionUuid() != other.hasSessionUuid()) return false; if (hasSessionUuid()) { if (!getSessionUuid() .equals(other.getSessionUuid())) return false; } if (hasExecutionUuid() != other.hasExecutionUuid()) return false; if (hasExecutionUuid()) { if (!getExecutionUuid() .equals(other.getExecutionUuid())) return false; } if (type_ != other.type_) return false; if (!getMessage() .equals(other.getMessage())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { if (!getReadTime() .equals(other.getReadTime())) return false; } if (hasScopeUuid() != other.hasScopeUuid()) return false; if (hasScopeUuid()) { if (!getScopeUuid() .equals(other.getScopeUuid())) return false; } if (hasEnvelope() != other.hasEnvelope()) return false; if (hasEnvelope()) { if (!getEnvelope() .equals(other.getEnvelope())) return false; } if (hasAuditFields() != other.hasAuditFields()) return false; if (hasAuditFields()) { if (!getAuditFields() .equals(other.getAuditFields())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasUuid()) { hash = (37 * hash) + UUID_FIELD_NUMBER; hash = (53 * hash) + getUuid().hashCode(); } if (hasSessionUuid()) { hash = (37 * hash) + SESSION_UUID_FIELD_NUMBER; hash = (53 * hash) + getSessionUuid().hashCode(); } if (hasExecutionUuid()) { hash = (37 * hash) + EXECUTION_UUID_FIELD_NUMBER; hash = (53 * hash) + getExecutionUuid().hashCode(); } hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); if (hasReadTime()) { hash = (37 * hash) + READ_TIME_FIELD_NUMBER; hash = (53 * hash) + getReadTime().hashCode(); } if (hasScopeUuid()) { hash = (37 * hash) + SCOPE_UUID_FIELD_NUMBER; hash = (53 * hash) + getScopeUuid().hashCode(); } if (hasEnvelope()) { hash = (37 * hash) + ENVELOPE_FIELD_NUMBER; hash = (53 * hash) + getEnvelope().hashCode(); } if (hasAuditFields()) { hash = (37 * hash) + AUDIT_FIELDS_FIELD_NUMBER; hash = (53 * hash) + getAuditFields().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.provenance.scope.contract.proto.Envelopes.EnvelopeError parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.scope.contract.proto.Envelopes.EnvelopeError parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.scope.contract.proto.Envelopes.EnvelopeError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.scope.contract.proto.Envelopes.EnvelopeError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.scope.contract.proto.Envelopes.EnvelopeError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.scope.contract.proto.Envelopes.EnvelopeError parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.scope.contract.proto.Envelopes.EnvelopeError parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.scope.contract.proto.Envelopes.EnvelopeError 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 io.provenance.scope.contract.proto.Envelopes.EnvelopeError parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.provenance.scope.contract.proto.Envelopes.EnvelopeError 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 io.provenance.scope.contract.proto.Envelopes.EnvelopeError parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.scope.contract.proto.Envelopes.EnvelopeError 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(io.provenance.scope.contract.proto.Envelopes.EnvelopeError 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 io.provenance.scope.contract.EnvelopeError} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.provenance.scope.contract.EnvelopeError) io.provenance.scope.contract.proto.Envelopes.EnvelopeErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.scope.contract.proto.Envelopes.internal_static_io_provenance_scope_contract_EnvelopeError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.scope.contract.proto.Envelopes.internal_static_io_provenance_scope_contract_EnvelopeError_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.scope.contract.proto.Envelopes.EnvelopeError.class, io.provenance.scope.contract.proto.Envelopes.EnvelopeError.Builder.class); } // Construct using io.provenance.scope.contract.proto.Envelopes.EnvelopeError.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (uuidBuilder_ == null) { uuid_ = null; } else { uuid_ = null; uuidBuilder_ = null; } if (sessionUuidBuilder_ == null) { sessionUuid_ = null; } else { sessionUuid_ = null; sessionUuidBuilder_ = null; } if (executionUuidBuilder_ == null) { executionUuid_ = null; } else { executionUuid_ = null; executionUuidBuilder_ = null; } type_ = 0; message_ = ""; if (readTimeBuilder_ == null) { readTime_ = null; } else { readTime_ = null; readTimeBuilder_ = null; } if (scopeUuidBuilder_ == null) { scopeUuid_ = null; } else { scopeUuid_ = null; scopeUuidBuilder_ = null; } if (envelopeBuilder_ == null) { envelope_ = null; } else { envelope_ = null; envelopeBuilder_ = null; } if (auditFieldsBuilder_ == null) { auditFields_ = null; } else { auditFields_ = null; auditFieldsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.provenance.scope.contract.proto.Envelopes.internal_static_io_provenance_scope_contract_EnvelopeError_descriptor; } @java.lang.Override public io.provenance.scope.contract.proto.Envelopes.EnvelopeError getDefaultInstanceForType() { return io.provenance.scope.contract.proto.Envelopes.EnvelopeError.getDefaultInstance(); } @java.lang.Override public io.provenance.scope.contract.proto.Envelopes.EnvelopeError build() { io.provenance.scope.contract.proto.Envelopes.EnvelopeError result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.provenance.scope.contract.proto.Envelopes.EnvelopeError buildPartial() { io.provenance.scope.contract.proto.Envelopes.EnvelopeError result = new io.provenance.scope.contract.proto.Envelopes.EnvelopeError(this); if (uuidBuilder_ == null) { result.uuid_ = uuid_; } else { result.uuid_ = uuidBuilder_.build(); } if (sessionUuidBuilder_ == null) { result.sessionUuid_ = sessionUuid_; } else { result.sessionUuid_ = sessionUuidBuilder_.build(); } if (executionUuidBuilder_ == null) { result.executionUuid_ = executionUuid_; } else { result.executionUuid_ = executionUuidBuilder_.build(); } result.type_ = type_; result.message_ = message_; if (readTimeBuilder_ == null) { result.readTime_ = readTime_; } else { result.readTime_ = readTimeBuilder_.build(); } if (scopeUuidBuilder_ == null) { result.scopeUuid_ = scopeUuid_; } else { result.scopeUuid_ = scopeUuidBuilder_.build(); } if (envelopeBuilder_ == null) { result.envelope_ = envelope_; } else { result.envelope_ = envelopeBuilder_.build(); } if (auditFieldsBuilder_ == null) { result.auditFields_ = auditFields_; } else { result.auditFields_ = auditFieldsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.provenance.scope.contract.proto.Envelopes.EnvelopeError) { return mergeFrom((io.provenance.scope.contract.proto.Envelopes.EnvelopeError)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.provenance.scope.contract.proto.Envelopes.EnvelopeError other) { if (other == io.provenance.scope.contract.proto.Envelopes.EnvelopeError.getDefaultInstance()) return this; if (other.hasUuid()) { mergeUuid(other.getUuid()); } if (other.hasSessionUuid()) { mergeSessionUuid(other.getSessionUuid()); } if (other.hasExecutionUuid()) { mergeExecutionUuid(other.getExecutionUuid()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (other.hasReadTime()) { mergeReadTime(other.getReadTime()); } if (other.hasScopeUuid()) { mergeScopeUuid(other.getScopeUuid()); } if (other.hasEnvelope()) { mergeEnvelope(other.getEnvelope()); } if (other.hasAuditFields()) { mergeAuditFields(other.getAuditFields()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.provenance.scope.contract.proto.Envelopes.EnvelopeError parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.provenance.scope.contract.proto.Envelopes.EnvelopeError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.provenance.scope.proto.Util.UUID uuid_; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> uuidBuilder_; /** * .io.provenance.scope.UUID uuid = 1; * @return Whether the uuid field is set. */ public boolean hasUuid() { return uuidBuilder_ != null || uuid_ != null; } /** * .io.provenance.scope.UUID uuid = 1; * @return The uuid. */ public io.provenance.scope.proto.Util.UUID getUuid() { if (uuidBuilder_ == null) { return uuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : uuid_; } else { return uuidBuilder_.getMessage(); } } /** * .io.provenance.scope.UUID uuid = 1; */ public Builder setUuid(io.provenance.scope.proto.Util.UUID value) { if (uuidBuilder_ == null) { if (value == null) { throw new NullPointerException(); } uuid_ = value; onChanged(); } else { uuidBuilder_.setMessage(value); } return this; } /** * .io.provenance.scope.UUID uuid = 1; */ public Builder setUuid( io.provenance.scope.proto.Util.UUID.Builder builderForValue) { if (uuidBuilder_ == null) { uuid_ = builderForValue.build(); onChanged(); } else { uuidBuilder_.setMessage(builderForValue.build()); } return this; } /** * .io.provenance.scope.UUID uuid = 1; */ public Builder mergeUuid(io.provenance.scope.proto.Util.UUID value) { if (uuidBuilder_ == null) { if (uuid_ != null) { uuid_ = io.provenance.scope.proto.Util.UUID.newBuilder(uuid_).mergeFrom(value).buildPartial(); } else { uuid_ = value; } onChanged(); } else { uuidBuilder_.mergeFrom(value); } return this; } /** * .io.provenance.scope.UUID uuid = 1; */ public Builder clearUuid() { if (uuidBuilder_ == null) { uuid_ = null; onChanged(); } else { uuid_ = null; uuidBuilder_ = null; } return this; } /** * .io.provenance.scope.UUID uuid = 1; */ public io.provenance.scope.proto.Util.UUID.Builder getUuidBuilder() { onChanged(); return getUuidFieldBuilder().getBuilder(); } /** * .io.provenance.scope.UUID uuid = 1; */ public io.provenance.scope.proto.Util.UUIDOrBuilder getUuidOrBuilder() { if (uuidBuilder_ != null) { return uuidBuilder_.getMessageOrBuilder(); } else { return uuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : uuid_; } } /** * .io.provenance.scope.UUID uuid = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> getUuidFieldBuilder() { if (uuidBuilder_ == null) { uuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder>( getUuid(), getParentForChildren(), isClean()); uuid_ = null; } return uuidBuilder_; } private io.provenance.scope.proto.Util.UUID sessionUuid_; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> sessionUuidBuilder_; /** * .io.provenance.scope.UUID session_uuid = 2; * @return Whether the sessionUuid field is set. */ public boolean hasSessionUuid() { return sessionUuidBuilder_ != null || sessionUuid_ != null; } /** * .io.provenance.scope.UUID session_uuid = 2; * @return The sessionUuid. */ public io.provenance.scope.proto.Util.UUID getSessionUuid() { if (sessionUuidBuilder_ == null) { return sessionUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : sessionUuid_; } else { return sessionUuidBuilder_.getMessage(); } } /** * .io.provenance.scope.UUID session_uuid = 2; */ public Builder setSessionUuid(io.provenance.scope.proto.Util.UUID value) { if (sessionUuidBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sessionUuid_ = value; onChanged(); } else { sessionUuidBuilder_.setMessage(value); } return this; } /** * .io.provenance.scope.UUID session_uuid = 2; */ public Builder setSessionUuid( io.provenance.scope.proto.Util.UUID.Builder builderForValue) { if (sessionUuidBuilder_ == null) { sessionUuid_ = builderForValue.build(); onChanged(); } else { sessionUuidBuilder_.setMessage(builderForValue.build()); } return this; } /** * .io.provenance.scope.UUID session_uuid = 2; */ public Builder mergeSessionUuid(io.provenance.scope.proto.Util.UUID value) { if (sessionUuidBuilder_ == null) { if (sessionUuid_ != null) { sessionUuid_ = io.provenance.scope.proto.Util.UUID.newBuilder(sessionUuid_).mergeFrom(value).buildPartial(); } else { sessionUuid_ = value; } onChanged(); } else { sessionUuidBuilder_.mergeFrom(value); } return this; } /** * .io.provenance.scope.UUID session_uuid = 2; */ public Builder clearSessionUuid() { if (sessionUuidBuilder_ == null) { sessionUuid_ = null; onChanged(); } else { sessionUuid_ = null; sessionUuidBuilder_ = null; } return this; } /** * .io.provenance.scope.UUID session_uuid = 2; */ public io.provenance.scope.proto.Util.UUID.Builder getSessionUuidBuilder() { onChanged(); return getSessionUuidFieldBuilder().getBuilder(); } /** * .io.provenance.scope.UUID session_uuid = 2; */ public io.provenance.scope.proto.Util.UUIDOrBuilder getSessionUuidOrBuilder() { if (sessionUuidBuilder_ != null) { return sessionUuidBuilder_.getMessageOrBuilder(); } else { return sessionUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : sessionUuid_; } } /** * .io.provenance.scope.UUID session_uuid = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> getSessionUuidFieldBuilder() { if (sessionUuidBuilder_ == null) { sessionUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder>( getSessionUuid(), getParentForChildren(), isClean()); sessionUuid_ = null; } return sessionUuidBuilder_; } private io.provenance.scope.proto.Util.UUID executionUuid_; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> executionUuidBuilder_; /** * .io.provenance.scope.UUID execution_uuid = 3; * @return Whether the executionUuid field is set. */ public boolean hasExecutionUuid() { return executionUuidBuilder_ != null || executionUuid_ != null; } /** * .io.provenance.scope.UUID execution_uuid = 3; * @return The executionUuid. */ public io.provenance.scope.proto.Util.UUID getExecutionUuid() { if (executionUuidBuilder_ == null) { return executionUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : executionUuid_; } else { return executionUuidBuilder_.getMessage(); } } /** * .io.provenance.scope.UUID execution_uuid = 3; */ public Builder setExecutionUuid(io.provenance.scope.proto.Util.UUID value) { if (executionUuidBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executionUuid_ = value; onChanged(); } else { executionUuidBuilder_.setMessage(value); } return this; } /** * .io.provenance.scope.UUID execution_uuid = 3; */ public Builder setExecutionUuid( io.provenance.scope.proto.Util.UUID.Builder builderForValue) { if (executionUuidBuilder_ == null) { executionUuid_ = builderForValue.build(); onChanged(); } else { executionUuidBuilder_.setMessage(builderForValue.build()); } return this; } /** * .io.provenance.scope.UUID execution_uuid = 3; */ public Builder mergeExecutionUuid(io.provenance.scope.proto.Util.UUID value) { if (executionUuidBuilder_ == null) { if (executionUuid_ != null) { executionUuid_ = io.provenance.scope.proto.Util.UUID.newBuilder(executionUuid_).mergeFrom(value).buildPartial(); } else { executionUuid_ = value; } onChanged(); } else { executionUuidBuilder_.mergeFrom(value); } return this; } /** * .io.provenance.scope.UUID execution_uuid = 3; */ public Builder clearExecutionUuid() { if (executionUuidBuilder_ == null) { executionUuid_ = null; onChanged(); } else { executionUuid_ = null; executionUuidBuilder_ = null; } return this; } /** * .io.provenance.scope.UUID execution_uuid = 3; */ public io.provenance.scope.proto.Util.UUID.Builder getExecutionUuidBuilder() { onChanged(); return getExecutionUuidFieldBuilder().getBuilder(); } /** * .io.provenance.scope.UUID execution_uuid = 3; */ public io.provenance.scope.proto.Util.UUIDOrBuilder getExecutionUuidOrBuilder() { if (executionUuidBuilder_ != null) { return executionUuidBuilder_.getMessageOrBuilder(); } else { return executionUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : executionUuid_; } } /** * .io.provenance.scope.UUID execution_uuid = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> getExecutionUuidFieldBuilder() { if (executionUuidBuilder_ == null) { executionUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder>( getExecutionUuid(), getParentForChildren(), isClean()); executionUuid_ = null; } return executionUuidBuilder_; } private int type_ = 0; /** * .io.provenance.scope.contract.EnvelopeError.Type type = 4; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .io.provenance.scope.contract.EnvelopeError.Type type = 4; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .io.provenance.scope.contract.EnvelopeError.Type type = 4; * @return The type. */ @java.lang.Override public io.provenance.scope.contract.proto.Envelopes.EnvelopeError.Type getType() { @SuppressWarnings("deprecation") io.provenance.scope.contract.proto.Envelopes.EnvelopeError.Type result = io.provenance.scope.contract.proto.Envelopes.EnvelopeError.Type.valueOf(type_); return result == null ? io.provenance.scope.contract.proto.Envelopes.EnvelopeError.Type.UNRECOGNIZED : result; } /** * .io.provenance.scope.contract.EnvelopeError.Type type = 4; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(io.provenance.scope.contract.proto.Envelopes.EnvelopeError.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .io.provenance.scope.contract.EnvelopeError.Type type = 4; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private java.lang.Object message_ = ""; /** * string message = 5; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * string message = 5; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string message = 5; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** * string message = 5; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * string message = 5; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** * .google.protobuf.Timestamp read_time = 6; * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** * .google.protobuf.Timestamp read_time = 6; * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } else { return readTimeBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp read_time = 6; */ public Builder setReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } readTime_ = value; onChanged(); } else { readTimeBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp read_time = 6; */ public Builder setReadTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); } else { readTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp read_time = 6; */ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } onChanged(); } else { readTimeBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp read_time = 6; */ public Builder clearReadTime() { if (readTimeBuilder_ == null) { readTime_ = null; onChanged(); } else { readTime_ = null; readTimeBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp read_time = 6; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp read_time = 6; */ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** * .google.protobuf.Timestamp read_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; } private io.provenance.scope.proto.Util.UUID scopeUuid_; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> scopeUuidBuilder_; /** * .io.provenance.scope.UUID scope_uuid = 7; * @return Whether the scopeUuid field is set. */ public boolean hasScopeUuid() { return scopeUuidBuilder_ != null || scopeUuid_ != null; } /** * .io.provenance.scope.UUID scope_uuid = 7; * @return The scopeUuid. */ public io.provenance.scope.proto.Util.UUID getScopeUuid() { if (scopeUuidBuilder_ == null) { return scopeUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : scopeUuid_; } else { return scopeUuidBuilder_.getMessage(); } } /** * .io.provenance.scope.UUID scope_uuid = 7; */ public Builder setScopeUuid(io.provenance.scope.proto.Util.UUID value) { if (scopeUuidBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scopeUuid_ = value; onChanged(); } else { scopeUuidBuilder_.setMessage(value); } return this; } /** * .io.provenance.scope.UUID scope_uuid = 7; */ public Builder setScopeUuid( io.provenance.scope.proto.Util.UUID.Builder builderForValue) { if (scopeUuidBuilder_ == null) { scopeUuid_ = builderForValue.build(); onChanged(); } else { scopeUuidBuilder_.setMessage(builderForValue.build()); } return this; } /** * .io.provenance.scope.UUID scope_uuid = 7; */ public Builder mergeScopeUuid(io.provenance.scope.proto.Util.UUID value) { if (scopeUuidBuilder_ == null) { if (scopeUuid_ != null) { scopeUuid_ = io.provenance.scope.proto.Util.UUID.newBuilder(scopeUuid_).mergeFrom(value).buildPartial(); } else { scopeUuid_ = value; } onChanged(); } else { scopeUuidBuilder_.mergeFrom(value); } return this; } /** * .io.provenance.scope.UUID scope_uuid = 7; */ public Builder clearScopeUuid() { if (scopeUuidBuilder_ == null) { scopeUuid_ = null; onChanged(); } else { scopeUuid_ = null; scopeUuidBuilder_ = null; } return this; } /** * .io.provenance.scope.UUID scope_uuid = 7; */ public io.provenance.scope.proto.Util.UUID.Builder getScopeUuidBuilder() { onChanged(); return getScopeUuidFieldBuilder().getBuilder(); } /** * .io.provenance.scope.UUID scope_uuid = 7; */ public io.provenance.scope.proto.Util.UUIDOrBuilder getScopeUuidOrBuilder() { if (scopeUuidBuilder_ != null) { return scopeUuidBuilder_.getMessageOrBuilder(); } else { return scopeUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : scopeUuid_; } } /** * .io.provenance.scope.UUID scope_uuid = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> getScopeUuidFieldBuilder() { if (scopeUuidBuilder_ == null) { scopeUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder>( getScopeUuid(), getParentForChildren(), isClean()); scopeUuid_ = null; } return scopeUuidBuilder_; } private io.provenance.scope.contract.proto.Envelopes.Envelope envelope_; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.contract.proto.Envelopes.Envelope, io.provenance.scope.contract.proto.Envelopes.Envelope.Builder, io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder> envelopeBuilder_; /** * .io.provenance.scope.contract.Envelope envelope = 8; * @return Whether the envelope field is set. */ public boolean hasEnvelope() { return envelopeBuilder_ != null || envelope_ != null; } /** * .io.provenance.scope.contract.Envelope envelope = 8; * @return The envelope. */ public io.provenance.scope.contract.proto.Envelopes.Envelope getEnvelope() { if (envelopeBuilder_ == null) { return envelope_ == null ? io.provenance.scope.contract.proto.Envelopes.Envelope.getDefaultInstance() : envelope_; } else { return envelopeBuilder_.getMessage(); } } /** * .io.provenance.scope.contract.Envelope envelope = 8; */ public Builder setEnvelope(io.provenance.scope.contract.proto.Envelopes.Envelope value) { if (envelopeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } envelope_ = value; onChanged(); } else { envelopeBuilder_.setMessage(value); } return this; } /** * .io.provenance.scope.contract.Envelope envelope = 8; */ public Builder setEnvelope( io.provenance.scope.contract.proto.Envelopes.Envelope.Builder builderForValue) { if (envelopeBuilder_ == null) { envelope_ = builderForValue.build(); onChanged(); } else { envelopeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .io.provenance.scope.contract.Envelope envelope = 8; */ public Builder mergeEnvelope(io.provenance.scope.contract.proto.Envelopes.Envelope value) { if (envelopeBuilder_ == null) { if (envelope_ != null) { envelope_ = io.provenance.scope.contract.proto.Envelopes.Envelope.newBuilder(envelope_).mergeFrom(value).buildPartial(); } else { envelope_ = value; } onChanged(); } else { envelopeBuilder_.mergeFrom(value); } return this; } /** * .io.provenance.scope.contract.Envelope envelope = 8; */ public Builder clearEnvelope() { if (envelopeBuilder_ == null) { envelope_ = null; onChanged(); } else { envelope_ = null; envelopeBuilder_ = null; } return this; } /** * .io.provenance.scope.contract.Envelope envelope = 8; */ public io.provenance.scope.contract.proto.Envelopes.Envelope.Builder getEnvelopeBuilder() { onChanged(); return getEnvelopeFieldBuilder().getBuilder(); } /** * .io.provenance.scope.contract.Envelope envelope = 8; */ public io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder getEnvelopeOrBuilder() { if (envelopeBuilder_ != null) { return envelopeBuilder_.getMessageOrBuilder(); } else { return envelope_ == null ? io.provenance.scope.contract.proto.Envelopes.Envelope.getDefaultInstance() : envelope_; } } /** * .io.provenance.scope.contract.Envelope envelope = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.contract.proto.Envelopes.Envelope, io.provenance.scope.contract.proto.Envelopes.Envelope.Builder, io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder> getEnvelopeFieldBuilder() { if (envelopeBuilder_ == null) { envelopeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.contract.proto.Envelopes.Envelope, io.provenance.scope.contract.proto.Envelopes.Envelope.Builder, io.provenance.scope.contract.proto.Envelopes.EnvelopeOrBuilder>( getEnvelope(), getParentForChildren(), isClean()); envelope_ = null; } return envelopeBuilder_; } private io.provenance.scope.proto.Util.AuditFields auditFields_; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.AuditFields, io.provenance.scope.proto.Util.AuditFields.Builder, io.provenance.scope.proto.Util.AuditFieldsOrBuilder> auditFieldsBuilder_; /** * .io.provenance.scope.AuditFields audit_fields = 99; * @return Whether the auditFields field is set. */ public boolean hasAuditFields() { return auditFieldsBuilder_ != null || auditFields_ != null; } /** * .io.provenance.scope.AuditFields audit_fields = 99; * @return The auditFields. */ public io.provenance.scope.proto.Util.AuditFields getAuditFields() { if (auditFieldsBuilder_ == null) { return auditFields_ == null ? io.provenance.scope.proto.Util.AuditFields.getDefaultInstance() : auditFields_; } else { return auditFieldsBuilder_.getMessage(); } } /** * .io.provenance.scope.AuditFields audit_fields = 99; */ public Builder setAuditFields(io.provenance.scope.proto.Util.AuditFields value) { if (auditFieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } auditFields_ = value; onChanged(); } else { auditFieldsBuilder_.setMessage(value); } return this; } /** * .io.provenance.scope.AuditFields audit_fields = 99; */ public Builder setAuditFields( io.provenance.scope.proto.Util.AuditFields.Builder builderForValue) { if (auditFieldsBuilder_ == null) { auditFields_ = builderForValue.build(); onChanged(); } else { auditFieldsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .io.provenance.scope.AuditFields audit_fields = 99; */ public Builder mergeAuditFields(io.provenance.scope.proto.Util.AuditFields value) { if (auditFieldsBuilder_ == null) { if (auditFields_ != null) { auditFields_ = io.provenance.scope.proto.Util.AuditFields.newBuilder(auditFields_).mergeFrom(value).buildPartial(); } else { auditFields_ = value; } onChanged(); } else { auditFieldsBuilder_.mergeFrom(value); } return this; } /** * .io.provenance.scope.AuditFields audit_fields = 99; */ public Builder clearAuditFields() { if (auditFieldsBuilder_ == null) { auditFields_ = null; onChanged(); } else { auditFields_ = null; auditFieldsBuilder_ = null; } return this; } /** * .io.provenance.scope.AuditFields audit_fields = 99; */ public io.provenance.scope.proto.Util.AuditFields.Builder getAuditFieldsBuilder() { onChanged(); return getAuditFieldsFieldBuilder().getBuilder(); } /** * .io.provenance.scope.AuditFields audit_fields = 99; */ public io.provenance.scope.proto.Util.AuditFieldsOrBuilder getAuditFieldsOrBuilder() { if (auditFieldsBuilder_ != null) { return auditFieldsBuilder_.getMessageOrBuilder(); } else { return auditFields_ == null ? io.provenance.scope.proto.Util.AuditFields.getDefaultInstance() : auditFields_; } } /** * .io.provenance.scope.AuditFields audit_fields = 99; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.AuditFields, io.provenance.scope.proto.Util.AuditFields.Builder, io.provenance.scope.proto.Util.AuditFieldsOrBuilder> getAuditFieldsFieldBuilder() { if (auditFieldsBuilder_ == null) { auditFieldsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.Util.AuditFields, io.provenance.scope.proto.Util.AuditFields.Builder, io.provenance.scope.proto.Util.AuditFieldsOrBuilder>( getAuditFields(), getParentForChildren(), isClean()); auditFields_ = null; } return auditFieldsBuilder_; } @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:io.provenance.scope.contract.EnvelopeError) } // @@protoc_insertion_point(class_scope:io.provenance.scope.contract.EnvelopeError) private static final io.provenance.scope.contract.proto.Envelopes.EnvelopeError DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.provenance.scope.contract.proto.Envelopes.EnvelopeError(); } public static io.provenance.scope.contract.proto.Envelopes.EnvelopeError getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnvelopeError parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnvelopeError(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 io.provenance.scope.contract.proto.Envelopes.EnvelopeError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int DESCRIPTION_FIELD_NUMBER = 65533; /** * extend .google.protobuf.EnumValueOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumValueOptions, java.lang.String> description = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_provenance_scope_contract_EnvelopeState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_provenance_scope_contract_EnvelopeState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_provenance_scope_contract_Envelope_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_provenance_scope_contract_Envelope_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_provenance_scope_contract_EnvelopeError_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_provenance_scope_contract_EnvelopeError_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+io/provenance/scope/contract/envelope." + "proto\022\034io.provenance.scope.contract\032 goo" + "gle/protobuf/descriptor.proto\032\037google/pr" + "otobuf/timestamp.proto\032\031google/protobuf/" + "any.proto\032+io/provenance/scope/contract/" + "contract.proto\032)io/provenance/scope/cont" + "ract/common.proto\0320io/provenance/scope/c" + "ontract/specification.proto\032\020public_key." + "proto\032\nutil.proto\032\014common.proto\"~\n\rEnvel" + "opeState\0225\n\005input\030\001 \001(\0132&.io.provenance." + "scope.contract.Envelope\0226\n\006result\030\002 \001(\0132" + "&.io.provenance.scope.contract.Envelope\"" + "\203\t\n\010Envelope\022>\n\003ref\030\001 \001(\01321.io.provenanc" + "e.scope.contract.ProvenanceReference\0228\n\010" + "contract\030\002 \001(\0132&.io.provenance.scope.con" + "tract.Contract\0222\n\nsignatures\030\003 \003(\0132\036.io." + "provenance.scope.Signature\0221\n\016execution_" + "uuid\030\005 \001(\0132\031.io.provenance.scope.UUID\0226\n" + "\023prev_execution_uuid\030\006 \001(\0132\031.io.provenan" + "ce.scope.UUID\0223\n\017expiration_time\030\007 \001(\0132\032" + ".google.protobuf.Timestamp\022#\n\005scope\030\010 \001(" + "\0132\024.google.protobuf.Any\022=\n\006status\030\t \001(\0162" + "-.io.provenance.scope.contract.Envelope." + "Status\0222\n\017scope_spec_uuid\030\n \001(\0132\031.io.pro" + "venance.scope.UUID\022\021\n\tnew_scope\030\013 \001(\010\022\023\n" + "\013new_session\030\014 \001(\010\022\020\n\010main_net\030\r \001(\010\0223\n\013" + "data_access\030\016 \003(\0132\036.io.provenance.scope." + "PublicKey\"\233\004\n\006Status\022\"\n\007CREATED\020\000\032\025\352\377\037\021E" + "nvelope created.\022E\n\010FRAGMENT\020\001\0327\352\377\0373Enve" + "lope sent to other parties, awaiting res" + "ponses.\022!\n\005INBOX\020\002\032\026\352\377\037\022Envelope receive" + "d.\0223\n\010EXECUTED\020\003\032%\352\377\037!Envelope executed " + "by non-invoker.\022C\n\006OUTBOX\020\004\0327\352\377\0373Envelop" + "e response sent from non-invoker to invo" + "ker.\0229\n\006SIGNED\020\005\032-\352\377\037)Envelope is comple" + "te with all signatures.\0227\n\tCHAINCODE\020\006\032(" + "\352\377\037$Envelope has been sent to chaincode." + "\0229\n\005INDEX\020\007\032.\352\377\037*Envelope has been retur" + "ned from chaincode.\022.\n\010COMPLETE\020\010\032 \352\377\037\034E" + "nvelope has been completed.\022*\n\005ERROR\020\013\032\037" + "\352\377\037\033Envelope is in error state.J\004\010\004\020\005\"\363\004" + "\n\rEnvelopeError\022\'\n\004uuid\030\001 \001(\0132\031.io.prove" + "nance.scope.UUID\022/\n\014session_uuid\030\002 \001(\0132\031" + ".io.provenance.scope.UUID\0221\n\016execution_u" + "uid\030\003 \001(\0132\031.io.provenance.scope.UUID\022>\n\004" + "type\030\004 \001(\01620.io.provenance.scope.contrac" + "t.EnvelopeError.Type\022\017\n\007message\030\005 \001(\t\022-\n" + "\tread_time\030\006 \001(\0132\032.google.protobuf.Times" + "tamp\022-\n\nscope_uuid\030\007 \001(\0132\031.io.provenance" + ".scope.UUID\0228\n\010envelope\030\010 \001(\0132&.io.prove" + "nance.scope.contract.Envelope\0226\n\014audit_f" + "ields\030c \001(\0132 .io.provenance.scope.AuditF" + "ields\"\263\001\n\004Type\022\021\n\rNO_ERROR_TYPE\020\000\022\026\n\022CON" + "TRACT_WHITELIST\020\001\022\017\n\013TTL_TIMEOUT\020\002\022\021\n\rCC" + "_INVOCATION\020\003\022\027\n\023CONTRACT_INVOCATION\020\004\022\026" + "\n\022CONTRACT_CANCELLED\020\005\022\025\n\021CONTRACT_REJEC" + "TED\020\006\022\024\n\020PUBLIC_KEY_CHECK\020\007:8\n\013descripti" + "on\022!.google.protobuf.EnumValueOptions\030\375\377" + "\003 \001(\tB/\n\"io.provenance.scope.contract.pr" + "otoB\tEnvelopesb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.DescriptorProtos.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.AnyProto.getDescriptor(), io.provenance.scope.contract.proto.Contracts.getDescriptor(), io.provenance.scope.contract.proto.Commons.getDescriptor(), io.provenance.scope.contract.proto.Specifications.getDescriptor(), io.provenance.scope.proto.PK.getDescriptor(), io.provenance.scope.proto.Util.getDescriptor(), io.provenance.scope.proto.Common.getDescriptor(), }); internal_static_io_provenance_scope_contract_EnvelopeState_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_io_provenance_scope_contract_EnvelopeState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_provenance_scope_contract_EnvelopeState_descriptor, new java.lang.String[] { "Input", "Result", }); internal_static_io_provenance_scope_contract_Envelope_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_io_provenance_scope_contract_Envelope_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_provenance_scope_contract_Envelope_descriptor, new java.lang.String[] { "Ref", "Contract", "Signatures", "ExecutionUuid", "PrevExecutionUuid", "ExpirationTime", "Scope", "Status", "ScopeSpecUuid", "NewScope", "NewSession", "MainNet", "DataAccess", }); internal_static_io_provenance_scope_contract_EnvelopeError_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_io_provenance_scope_contract_EnvelopeError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_provenance_scope_contract_EnvelopeError_descriptor, new java.lang.String[] { "Uuid", "SessionUuid", "ExecutionUuid", "Type", "Message", "ReadTime", "ScopeUuid", "Envelope", "AuditFields", }); description.internalInit(descriptor.getExtensions().get(0)); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(io.provenance.scope.contract.proto.Envelopes.description); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.DescriptorProtos.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); io.provenance.scope.contract.proto.Contracts.getDescriptor(); io.provenance.scope.contract.proto.Commons.getDescriptor(); io.provenance.scope.contract.proto.Specifications.getDescriptor(); io.provenance.scope.proto.PK.getDescriptor(); io.provenance.scope.proto.Util.getDescriptor(); io.provenance.scope.proto.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy