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

package coprocess;

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

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

    /**
     * <code>optional int32 response_code = 1;</code>
     */
    int getResponseCode();

    /**
     * <code>optional string response_error = 2;</code>
     */
    java.lang.String getResponseError();
    /**
     * <code>optional string response_error = 2;</code>
     */
    com.google.protobuf.ByteString
        getResponseErrorBytes();
  }
  /**
   * Protobuf type {@code coprocess.ReturnOverrides}
   */
  public  static final class ReturnOverrides extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:coprocess.ReturnOverrides)
      ReturnOverridesOrBuilder {
    // Use ReturnOverrides.newBuilder() to construct.
    private ReturnOverrides(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ReturnOverrides() {
      responseCode_ = 0;
      responseError_ = "";
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private ReturnOverrides(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 8: {

              responseCode_ = input.readInt32();
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              responseError_ = s;
              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 {
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return coprocess.CoprocessReturnOverrides.internal_static_coprocess_ReturnOverrides_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return coprocess.CoprocessReturnOverrides.internal_static_coprocess_ReturnOverrides_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              coprocess.CoprocessReturnOverrides.ReturnOverrides.class, coprocess.CoprocessReturnOverrides.ReturnOverrides.Builder.class);
    }

    public static final int RESPONSE_CODE_FIELD_NUMBER = 1;
    private int responseCode_;
    /**
     * <code>optional int32 response_code = 1;</code>
     */
    public int getResponseCode() {
      return responseCode_;
    }

    public static final int RESPONSE_ERROR_FIELD_NUMBER = 2;
    private volatile java.lang.Object responseError_;
    /**
     * <code>optional string response_error = 2;</code>
     */
    public java.lang.String getResponseError() {
      java.lang.Object ref = responseError_;
      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();
        responseError_ = s;
        return s;
      }
    }
    /**
     * <code>optional string response_error = 2;</code>
     */
    public com.google.protobuf.ByteString
        getResponseErrorBytes() {
      java.lang.Object ref = responseError_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        responseError_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (responseCode_ != 0) {
        output.writeInt32(1, responseCode_);
      }
      if (!getResponseErrorBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, responseError_);
      }
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (responseCode_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, responseCode_);
      }
      if (!getResponseErrorBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, responseError_);
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof coprocess.CoprocessReturnOverrides.ReturnOverrides)) {
        return super.equals(obj);
      }
      coprocess.CoprocessReturnOverrides.ReturnOverrides other = (coprocess.CoprocessReturnOverrides.ReturnOverrides) obj;

      boolean result = true;
      result = result && (getResponseCode()
          == other.getResponseCode());
      result = result && getResponseError()
          .equals(other.getResponseError());
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      hash = (37 * hash) + RESPONSE_CODE_FIELD_NUMBER;
      hash = (53 * hash) + getResponseCode();
      hash = (37 * hash) + RESPONSE_ERROR_FIELD_NUMBER;
      hash = (53 * hash) + getResponseError().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static coprocess.CoprocessReturnOverrides.ReturnOverrides parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static coprocess.CoprocessReturnOverrides.ReturnOverrides parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static coprocess.CoprocessReturnOverrides.ReturnOverrides parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static coprocess.CoprocessReturnOverrides.ReturnOverrides parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static coprocess.CoprocessReturnOverrides.ReturnOverrides parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static coprocess.CoprocessReturnOverrides.ReturnOverrides 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 coprocess.CoprocessReturnOverrides.ReturnOverrides parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static coprocess.CoprocessReturnOverrides.ReturnOverrides 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 coprocess.CoprocessReturnOverrides.ReturnOverrides parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static coprocess.CoprocessReturnOverrides.ReturnOverrides parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(coprocess.CoprocessReturnOverrides.ReturnOverrides prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    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 coprocess.ReturnOverrides}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:coprocess.ReturnOverrides)
        coprocess.CoprocessReturnOverrides.ReturnOverridesOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return coprocess.CoprocessReturnOverrides.internal_static_coprocess_ReturnOverrides_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return coprocess.CoprocessReturnOverrides.internal_static_coprocess_ReturnOverrides_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                coprocess.CoprocessReturnOverrides.ReturnOverrides.class, coprocess.CoprocessReturnOverrides.ReturnOverrides.Builder.class);
      }

      // Construct using coprocess.CoprocessReturnOverrides.ReturnOverrides.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        responseCode_ = 0;

        responseError_ = "";

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return coprocess.CoprocessReturnOverrides.internal_static_coprocess_ReturnOverrides_descriptor;
      }

      public coprocess.CoprocessReturnOverrides.ReturnOverrides getDefaultInstanceForType() {
        return coprocess.CoprocessReturnOverrides.ReturnOverrides.getDefaultInstance();
      }

      public coprocess.CoprocessReturnOverrides.ReturnOverrides build() {
        coprocess.CoprocessReturnOverrides.ReturnOverrides result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public coprocess.CoprocessReturnOverrides.ReturnOverrides buildPartial() {
        coprocess.CoprocessReturnOverrides.ReturnOverrides result = new coprocess.CoprocessReturnOverrides.ReturnOverrides(this);
        result.responseCode_ = responseCode_;
        result.responseError_ = responseError_;
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof coprocess.CoprocessReturnOverrides.ReturnOverrides) {
          return mergeFrom((coprocess.CoprocessReturnOverrides.ReturnOverrides)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(coprocess.CoprocessReturnOverrides.ReturnOverrides other) {
        if (other == coprocess.CoprocessReturnOverrides.ReturnOverrides.getDefaultInstance()) return this;
        if (other.getResponseCode() != 0) {
          setResponseCode(other.getResponseCode());
        }
        if (!other.getResponseError().isEmpty()) {
          responseError_ = other.responseError_;
          onChanged();
        }
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        coprocess.CoprocessReturnOverrides.ReturnOverrides parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (coprocess.CoprocessReturnOverrides.ReturnOverrides) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int responseCode_ ;
      /**
       * <code>optional int32 response_code = 1;</code>
       */
      public int getResponseCode() {
        return responseCode_;
      }
      /**
       * <code>optional int32 response_code = 1;</code>
       */
      public Builder setResponseCode(int value) {
        
        responseCode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional int32 response_code = 1;</code>
       */
      public Builder clearResponseCode() {
        
        responseCode_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object responseError_ = "";
      /**
       * <code>optional string response_error = 2;</code>
       */
      public java.lang.String getResponseError() {
        java.lang.Object ref = responseError_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          responseError_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string response_error = 2;</code>
       */
      public com.google.protobuf.ByteString
          getResponseErrorBytes() {
        java.lang.Object ref = responseError_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          responseError_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string response_error = 2;</code>
       */
      public Builder setResponseError(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        responseError_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string response_error = 2;</code>
       */
      public Builder clearResponseError() {
        
        responseError_ = getDefaultInstance().getResponseError();
        onChanged();
        return this;
      }
      /**
       * <code>optional string response_error = 2;</code>
       */
      public Builder setResponseErrorBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        responseError_ = value;
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }


      // @@protoc_insertion_point(builder_scope:coprocess.ReturnOverrides)
    }

    // @@protoc_insertion_point(class_scope:coprocess.ReturnOverrides)
    private static final coprocess.CoprocessReturnOverrides.ReturnOverrides DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new coprocess.CoprocessReturnOverrides.ReturnOverrides();
    }

    public static coprocess.CoprocessReturnOverrides.ReturnOverrides getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public coprocess.CoprocessReturnOverrides.ReturnOverrides getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_coprocess_ReturnOverrides_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_coprocess_ReturnOverrides_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 coprocess_return_overrides.proto\022\tcopr" +
      "ocess\"@\n\017ReturnOverrides\022\025\n\rresponse_cod" +
      "e\030\001 \001(\005\022\026\n\016response_error\030\002 \001(\tb\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
    internal_static_coprocess_ReturnOverrides_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_coprocess_ReturnOverrides_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_coprocess_ReturnOverrides_descriptor,
        new java.lang.String[] { "ResponseCode", "ResponseError", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
