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

org.polypheny.prism.ErrorDetails Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: org/polypheny/prism/error.proto

package org.polypheny.prism;

/**
 * 
 *
 *The ErrorDetails message conveys specific information about an error encountered during the processing of a request.
 *This detailed feedback aids clients in understanding the nature and cause of an issue.
 * 
* * Protobuf type {@code org.polypheny.prism.ErrorDetails} */ public final class ErrorDetails extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:org.polypheny.prism.ErrorDetails) ErrorDetailsOrBuilder { private static final long serialVersionUID = 0L; // Use ErrorDetails.newBuilder() to construct. private ErrorDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ErrorDetails() { state_ = ""; message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ErrorDetails(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.polypheny.prism.Error.internal_static_org_polypheny_prism_ErrorDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.polypheny.prism.Error.internal_static_org_polypheny_prism_ErrorDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( org.polypheny.prism.ErrorDetails.class, org.polypheny.prism.ErrorDetails.Builder.class); } private int bitField0_; public static final int ERROR_CODE_FIELD_NUMBER = 1; private int errorCode_ = 0; /** *
   *  A numeric code representing the specific error encountered. This code can be used programmatically to handle specific error cases.
   * 
* * optional int32 error_code = 1; * @return Whether the errorCode field is set. */ @java.lang.Override public boolean hasErrorCode() { return ((bitField0_ & 0x00000001) != 0); } /** *
   *  A numeric code representing the specific error encountered. This code can be used programmatically to handle specific error cases.
   * 
* * optional int32 error_code = 1; * @return The errorCode. */ @java.lang.Override public int getErrorCode() { return errorCode_; } public static final int STATE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object state_ = ""; /** *
   * An optional state description in the form of an identifier that provides further context about the error.
   * 
* * optional string state = 2; * @return Whether the state field is set. */ @java.lang.Override public boolean hasState() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * An optional state description in the form of an identifier that provides further context about the error.
   * 
* * optional string state = 2; * @return The state. */ @java.lang.Override public java.lang.String getState() { java.lang.Object ref = state_; 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(); state_ = s; return s; } } /** *
   * An optional state description in the form of an identifier that provides further context about the error.
   * 
* * optional string state = 2; * @return The bytes for state. */ @java.lang.Override public com.google.protobuf.ByteString getStateBytes() { java.lang.Object ref = state_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); state_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MESSAGE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** *
   * A human-readable message describing the error in detail. This message offers clients a clear understanding of the issue.
   * 
* * optional string message = 3; * @return Whether the message field is set. */ @java.lang.Override public boolean hasMessage() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * A human-readable message describing the error in detail. This message offers clients a clear understanding of the issue.
   * 
* * optional string message = 3; * @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; } } /** *
   * A human-readable message describing the error in detail. This message offers clients a clear understanding of the issue.
   * 
* * optional string message = 3; * @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; } } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, errorCode_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, state_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, errorCode_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, state_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.polypheny.prism.ErrorDetails)) { return super.equals(obj); } org.polypheny.prism.ErrorDetails other = (org.polypheny.prism.ErrorDetails) obj; if (hasErrorCode() != other.hasErrorCode()) return false; if (hasErrorCode()) { if (getErrorCode() != other.getErrorCode()) return false; } if (hasState() != other.hasState()) return false; if (hasState()) { if (!getState() .equals(other.getState())) return false; } if (hasMessage() != other.hasMessage()) return false; if (hasMessage()) { if (!getMessage() .equals(other.getMessage())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasErrorCode()) { hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER; hash = (53 * hash) + getErrorCode(); } if (hasState()) { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.polypheny.prism.ErrorDetails parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ErrorDetails parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.polypheny.prism.ErrorDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ErrorDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.polypheny.prism.ErrorDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ErrorDetails parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.polypheny.prism.ErrorDetails parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.polypheny.prism.ErrorDetails 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 org.polypheny.prism.ErrorDetails parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.polypheny.prism.ErrorDetails 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 org.polypheny.prism.ErrorDetails parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.polypheny.prism.ErrorDetails 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(org.polypheny.prism.ErrorDetails 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; } /** *
   *
   *The ErrorDetails message conveys specific information about an error encountered during the processing of a request.
   *This detailed feedback aids clients in understanding the nature and cause of an issue.
   * 
* * Protobuf type {@code org.polypheny.prism.ErrorDetails} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:org.polypheny.prism.ErrorDetails) org.polypheny.prism.ErrorDetailsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.polypheny.prism.Error.internal_static_org_polypheny_prism_ErrorDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.polypheny.prism.Error.internal_static_org_polypheny_prism_ErrorDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( org.polypheny.prism.ErrorDetails.class, org.polypheny.prism.ErrorDetails.Builder.class); } // Construct using org.polypheny.prism.ErrorDetails.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; errorCode_ = 0; state_ = ""; message_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.polypheny.prism.Error.internal_static_org_polypheny_prism_ErrorDetails_descriptor; } @java.lang.Override public org.polypheny.prism.ErrorDetails getDefaultInstanceForType() { return org.polypheny.prism.ErrorDetails.getDefaultInstance(); } @java.lang.Override public org.polypheny.prism.ErrorDetails build() { org.polypheny.prism.ErrorDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.polypheny.prism.ErrorDetails buildPartial() { org.polypheny.prism.ErrorDetails result = new org.polypheny.prism.ErrorDetails(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.polypheny.prism.ErrorDetails result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.errorCode_ = errorCode_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.state_ = state_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.message_ = message_; to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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 org.polypheny.prism.ErrorDetails) { return mergeFrom((org.polypheny.prism.ErrorDetails)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.polypheny.prism.ErrorDetails other) { if (other == org.polypheny.prism.ErrorDetails.getDefaultInstance()) return this; if (other.hasErrorCode()) { setErrorCode(other.getErrorCode()); } if (other.hasState()) { state_ = other.state_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasMessage()) { message_ = other.message_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { errorCode_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { state_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { message_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int errorCode_ ; /** *
     *  A numeric code representing the specific error encountered. This code can be used programmatically to handle specific error cases.
     * 
* * optional int32 error_code = 1; * @return Whether the errorCode field is set. */ @java.lang.Override public boolean hasErrorCode() { return ((bitField0_ & 0x00000001) != 0); } /** *
     *  A numeric code representing the specific error encountered. This code can be used programmatically to handle specific error cases.
     * 
* * optional int32 error_code = 1; * @return The errorCode. */ @java.lang.Override public int getErrorCode() { return errorCode_; } /** *
     *  A numeric code representing the specific error encountered. This code can be used programmatically to handle specific error cases.
     * 
* * optional int32 error_code = 1; * @param value The errorCode to set. * @return This builder for chaining. */ public Builder setErrorCode(int value) { errorCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *  A numeric code representing the specific error encountered. This code can be used programmatically to handle specific error cases.
     * 
* * optional int32 error_code = 1; * @return This builder for chaining. */ public Builder clearErrorCode() { bitField0_ = (bitField0_ & ~0x00000001); errorCode_ = 0; onChanged(); return this; } private java.lang.Object state_ = ""; /** *
     * An optional state description in the form of an identifier that provides further context about the error.
     * 
* * optional string state = 2; * @return Whether the state field is set. */ public boolean hasState() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * An optional state description in the form of an identifier that provides further context about the error.
     * 
* * optional string state = 2; * @return The state. */ public java.lang.String getState() { java.lang.Object ref = state_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); state_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * An optional state description in the form of an identifier that provides further context about the error.
     * 
* * optional string state = 2; * @return The bytes for state. */ public com.google.protobuf.ByteString getStateBytes() { java.lang.Object ref = state_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); state_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * An optional state description in the form of an identifier that provides further context about the error.
     * 
* * optional string state = 2; * @param value The state to set. * @return This builder for chaining. */ public Builder setState( java.lang.String value) { if (value == null) { throw new NullPointerException(); } state_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * An optional state description in the form of an identifier that provides further context about the error.
     * 
* * optional string state = 2; * @return This builder for chaining. */ public Builder clearState() { state_ = getDefaultInstance().getState(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * An optional state description in the form of an identifier that provides further context about the error.
     * 
* * optional string state = 2; * @param value The bytes for state to set. * @return This builder for chaining. */ public Builder setStateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); state_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object message_ = ""; /** *
     * A human-readable message describing the error in detail. This message offers clients a clear understanding of the issue.
     * 
* * optional string message = 3; * @return Whether the message field is set. */ public boolean hasMessage() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * A human-readable message describing the error in detail. This message offers clients a clear understanding of the issue.
     * 
* * optional string message = 3; * @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; } } /** *
     * A human-readable message describing the error in detail. This message offers clients a clear understanding of the issue.
     * 
* * optional string message = 3; * @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; } } /** *
     * A human-readable message describing the error in detail. This message offers clients a clear understanding of the issue.
     * 
* * optional string message = 3; * @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; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * A human-readable message describing the error in detail. This message offers clients a clear understanding of the issue.
     * 
* * optional string message = 3; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * A human-readable message describing the error in detail. This message offers clients a clear understanding of the issue.
     * 
* * optional string message = 3; * @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; bitField0_ |= 0x00000004; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:org.polypheny.prism.ErrorDetails) } // @@protoc_insertion_point(class_scope:org.polypheny.prism.ErrorDetails) private static final org.polypheny.prism.ErrorDetails DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.polypheny.prism.ErrorDetails(); } public static org.polypheny.prism.ErrorDetails getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ErrorDetails parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.polypheny.prism.ErrorDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy