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

tech.confio.ics23.NonExistenceProof Maven / Gradle / Ivy

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

package tech.confio.ics23;

/**
 * 
 *NonExistenceProof takes a proof of two neighbors, one left of the desired key,
 *one right of the desired key. If both proofs are valid AND they are neighbors,
 *then there is no valid proof for the given key.
 * 
* * Protobuf type {@code ics23.NonExistenceProof} */ public final class NonExistenceProof extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ics23.NonExistenceProof) NonExistenceProofOrBuilder { private static final long serialVersionUID = 0L; // Use NonExistenceProof.newBuilder() to construct. private NonExistenceProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NonExistenceProof() { key_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NonExistenceProof( 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: { key_ = input.readBytes(); break; } case 18: { tech.confio.ics23.ExistenceProof.Builder subBuilder = null; if (left_ != null) { subBuilder = left_.toBuilder(); } left_ = input.readMessage(tech.confio.ics23.ExistenceProof.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(left_); left_ = subBuilder.buildPartial(); } break; } case 26: { tech.confio.ics23.ExistenceProof.Builder subBuilder = null; if (right_ != null) { subBuilder = right_.toBuilder(); } right_ = input.readMessage(tech.confio.ics23.ExistenceProof.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(right_); right_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( 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 tech.confio.ics23.Proofs.internal_static_ics23_NonExistenceProof_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.confio.ics23.Proofs.internal_static_ics23_NonExistenceProof_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.confio.ics23.NonExistenceProof.class, tech.confio.ics23.NonExistenceProof.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString key_; /** *
   * TODO: remove this as unnecessary??? we prove a range
   * 
* * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int LEFT_FIELD_NUMBER = 2; private tech.confio.ics23.ExistenceProof left_; /** * .ics23.ExistenceProof left = 2; */ public boolean hasLeft() { return left_ != null; } /** * .ics23.ExistenceProof left = 2; */ public tech.confio.ics23.ExistenceProof getLeft() { return left_ == null ? tech.confio.ics23.ExistenceProof.getDefaultInstance() : left_; } /** * .ics23.ExistenceProof left = 2; */ public tech.confio.ics23.ExistenceProofOrBuilder getLeftOrBuilder() { return getLeft(); } public static final int RIGHT_FIELD_NUMBER = 3; private tech.confio.ics23.ExistenceProof right_; /** * .ics23.ExistenceProof right = 3; */ public boolean hasRight() { return right_ != null; } /** * .ics23.ExistenceProof right = 3; */ public tech.confio.ics23.ExistenceProof getRight() { return right_ == null ? tech.confio.ics23.ExistenceProof.getDefaultInstance() : right_; } /** * .ics23.ExistenceProof right = 3; */ public tech.confio.ics23.ExistenceProofOrBuilder getRightOrBuilder() { return getRight(); } 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 (!key_.isEmpty()) { output.writeBytes(1, key_); } if (left_ != null) { output.writeMessage(2, getLeft()); } if (right_ != null) { output.writeMessage(3, getRight()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, key_); } if (left_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLeft()); } if (right_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRight()); } 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 tech.confio.ics23.NonExistenceProof)) { return super.equals(obj); } tech.confio.ics23.NonExistenceProof other = (tech.confio.ics23.NonExistenceProof) obj; boolean result = true; result = result && getKey() .equals(other.getKey()); result = result && (hasLeft() == other.hasLeft()); if (hasLeft()) { result = result && getLeft() .equals(other.getLeft()); } result = result && (hasRight() == other.hasRight()); if (hasRight()) { result = result && getRight() .equals(other.getRight()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); if (hasLeft()) { hash = (37 * hash) + LEFT_FIELD_NUMBER; hash = (53 * hash) + getLeft().hashCode(); } if (hasRight()) { hash = (37 * hash) + RIGHT_FIELD_NUMBER; hash = (53 * hash) + getRight().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tech.confio.ics23.NonExistenceProof parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.confio.ics23.NonExistenceProof parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.confio.ics23.NonExistenceProof parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.confio.ics23.NonExistenceProof parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.confio.ics23.NonExistenceProof parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.confio.ics23.NonExistenceProof parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.confio.ics23.NonExistenceProof parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.confio.ics23.NonExistenceProof 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 tech.confio.ics23.NonExistenceProof parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.confio.ics23.NonExistenceProof 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 tech.confio.ics23.NonExistenceProof parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.confio.ics23.NonExistenceProof 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(tech.confio.ics23.NonExistenceProof 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; } /** *
   *NonExistenceProof takes a proof of two neighbors, one left of the desired key,
   *one right of the desired key. If both proofs are valid AND they are neighbors,
   *then there is no valid proof for the given key.
   * 
* * Protobuf type {@code ics23.NonExistenceProof} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ics23.NonExistenceProof) tech.confio.ics23.NonExistenceProofOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.confio.ics23.Proofs.internal_static_ics23_NonExistenceProof_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.confio.ics23.Proofs.internal_static_ics23_NonExistenceProof_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.confio.ics23.NonExistenceProof.class, tech.confio.ics23.NonExistenceProof.Builder.class); } // Construct using tech.confio.ics23.NonExistenceProof.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(); key_ = com.google.protobuf.ByteString.EMPTY; if (leftBuilder_ == null) { left_ = null; } else { left_ = null; leftBuilder_ = null; } if (rightBuilder_ == null) { right_ = null; } else { right_ = null; rightBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.confio.ics23.Proofs.internal_static_ics23_NonExistenceProof_descriptor; } @java.lang.Override public tech.confio.ics23.NonExistenceProof getDefaultInstanceForType() { return tech.confio.ics23.NonExistenceProof.getDefaultInstance(); } @java.lang.Override public tech.confio.ics23.NonExistenceProof build() { tech.confio.ics23.NonExistenceProof result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.confio.ics23.NonExistenceProof buildPartial() { tech.confio.ics23.NonExistenceProof result = new tech.confio.ics23.NonExistenceProof(this); result.key_ = key_; if (leftBuilder_ == null) { result.left_ = left_; } else { result.left_ = leftBuilder_.build(); } if (rightBuilder_ == null) { result.right_ = right_; } else { result.right_ = rightBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.confio.ics23.NonExistenceProof) { return mergeFrom((tech.confio.ics23.NonExistenceProof)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.confio.ics23.NonExistenceProof other) { if (other == tech.confio.ics23.NonExistenceProof.getDefaultInstance()) return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.hasLeft()) { mergeLeft(other.getLeft()); } if (other.hasRight()) { mergeRight(other.getRight()); } 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 { tech.confio.ics23.NonExistenceProof parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tech.confio.ics23.NonExistenceProof) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** *
     * TODO: remove this as unnecessary??? we prove a range
     * 
* * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } /** *
     * TODO: remove this as unnecessary??? we prove a range
     * 
* * bytes key = 1; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** *
     * TODO: remove this as unnecessary??? we prove a range
     * 
* * bytes key = 1; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private tech.confio.ics23.ExistenceProof left_ = null; private com.google.protobuf.SingleFieldBuilderV3< tech.confio.ics23.ExistenceProof, tech.confio.ics23.ExistenceProof.Builder, tech.confio.ics23.ExistenceProofOrBuilder> leftBuilder_; /** * .ics23.ExistenceProof left = 2; */ public boolean hasLeft() { return leftBuilder_ != null || left_ != null; } /** * .ics23.ExistenceProof left = 2; */ public tech.confio.ics23.ExistenceProof getLeft() { if (leftBuilder_ == null) { return left_ == null ? tech.confio.ics23.ExistenceProof.getDefaultInstance() : left_; } else { return leftBuilder_.getMessage(); } } /** * .ics23.ExistenceProof left = 2; */ public Builder setLeft(tech.confio.ics23.ExistenceProof value) { if (leftBuilder_ == null) { if (value == null) { throw new NullPointerException(); } left_ = value; onChanged(); } else { leftBuilder_.setMessage(value); } return this; } /** * .ics23.ExistenceProof left = 2; */ public Builder setLeft( tech.confio.ics23.ExistenceProof.Builder builderForValue) { if (leftBuilder_ == null) { left_ = builderForValue.build(); onChanged(); } else { leftBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ics23.ExistenceProof left = 2; */ public Builder mergeLeft(tech.confio.ics23.ExistenceProof value) { if (leftBuilder_ == null) { if (left_ != null) { left_ = tech.confio.ics23.ExistenceProof.newBuilder(left_).mergeFrom(value).buildPartial(); } else { left_ = value; } onChanged(); } else { leftBuilder_.mergeFrom(value); } return this; } /** * .ics23.ExistenceProof left = 2; */ public Builder clearLeft() { if (leftBuilder_ == null) { left_ = null; onChanged(); } else { left_ = null; leftBuilder_ = null; } return this; } /** * .ics23.ExistenceProof left = 2; */ public tech.confio.ics23.ExistenceProof.Builder getLeftBuilder() { onChanged(); return getLeftFieldBuilder().getBuilder(); } /** * .ics23.ExistenceProof left = 2; */ public tech.confio.ics23.ExistenceProofOrBuilder getLeftOrBuilder() { if (leftBuilder_ != null) { return leftBuilder_.getMessageOrBuilder(); } else { return left_ == null ? tech.confio.ics23.ExistenceProof.getDefaultInstance() : left_; } } /** * .ics23.ExistenceProof left = 2; */ private com.google.protobuf.SingleFieldBuilderV3< tech.confio.ics23.ExistenceProof, tech.confio.ics23.ExistenceProof.Builder, tech.confio.ics23.ExistenceProofOrBuilder> getLeftFieldBuilder() { if (leftBuilder_ == null) { leftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.confio.ics23.ExistenceProof, tech.confio.ics23.ExistenceProof.Builder, tech.confio.ics23.ExistenceProofOrBuilder>( getLeft(), getParentForChildren(), isClean()); left_ = null; } return leftBuilder_; } private tech.confio.ics23.ExistenceProof right_ = null; private com.google.protobuf.SingleFieldBuilderV3< tech.confio.ics23.ExistenceProof, tech.confio.ics23.ExistenceProof.Builder, tech.confio.ics23.ExistenceProofOrBuilder> rightBuilder_; /** * .ics23.ExistenceProof right = 3; */ public boolean hasRight() { return rightBuilder_ != null || right_ != null; } /** * .ics23.ExistenceProof right = 3; */ public tech.confio.ics23.ExistenceProof getRight() { if (rightBuilder_ == null) { return right_ == null ? tech.confio.ics23.ExistenceProof.getDefaultInstance() : right_; } else { return rightBuilder_.getMessage(); } } /** * .ics23.ExistenceProof right = 3; */ public Builder setRight(tech.confio.ics23.ExistenceProof value) { if (rightBuilder_ == null) { if (value == null) { throw new NullPointerException(); } right_ = value; onChanged(); } else { rightBuilder_.setMessage(value); } return this; } /** * .ics23.ExistenceProof right = 3; */ public Builder setRight( tech.confio.ics23.ExistenceProof.Builder builderForValue) { if (rightBuilder_ == null) { right_ = builderForValue.build(); onChanged(); } else { rightBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ics23.ExistenceProof right = 3; */ public Builder mergeRight(tech.confio.ics23.ExistenceProof value) { if (rightBuilder_ == null) { if (right_ != null) { right_ = tech.confio.ics23.ExistenceProof.newBuilder(right_).mergeFrom(value).buildPartial(); } else { right_ = value; } onChanged(); } else { rightBuilder_.mergeFrom(value); } return this; } /** * .ics23.ExistenceProof right = 3; */ public Builder clearRight() { if (rightBuilder_ == null) { right_ = null; onChanged(); } else { right_ = null; rightBuilder_ = null; } return this; } /** * .ics23.ExistenceProof right = 3; */ public tech.confio.ics23.ExistenceProof.Builder getRightBuilder() { onChanged(); return getRightFieldBuilder().getBuilder(); } /** * .ics23.ExistenceProof right = 3; */ public tech.confio.ics23.ExistenceProofOrBuilder getRightOrBuilder() { if (rightBuilder_ != null) { return rightBuilder_.getMessageOrBuilder(); } else { return right_ == null ? tech.confio.ics23.ExistenceProof.getDefaultInstance() : right_; } } /** * .ics23.ExistenceProof right = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.confio.ics23.ExistenceProof, tech.confio.ics23.ExistenceProof.Builder, tech.confio.ics23.ExistenceProofOrBuilder> getRightFieldBuilder() { if (rightBuilder_ == null) { rightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.confio.ics23.ExistenceProof, tech.confio.ics23.ExistenceProof.Builder, tech.confio.ics23.ExistenceProofOrBuilder>( getRight(), getParentForChildren(), isClean()); right_ = null; } return rightBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:ics23.NonExistenceProof) } // @@protoc_insertion_point(class_scope:ics23.NonExistenceProof) private static final tech.confio.ics23.NonExistenceProof DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.confio.ics23.NonExistenceProof(); } public static tech.confio.ics23.NonExistenceProof getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NonExistenceProof parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NonExistenceProof(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 tech.confio.ics23.NonExistenceProof getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy