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

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

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

package tech.confio.ics23;

/**
 * 
 **
 *ExistenceProof takes a key and a value and a set of steps to perform on it.
 *The result of peforming all these steps will provide a "root hash", which can
 *be compared to the value in a header.
 *Since it is computationally infeasible to produce a hash collission for any of the used
 *cryptographic hash functions, if someone can provide a series of operations to transform
 *a given key and value into a root hash that matches some trusted root, these key and values
 *must be in the referenced merkle tree.
 *The only possible issue is maliablity in LeafOp, such as providing extra prefix data,
 *which should be controlled by a spec. Eg. with lengthOp as NONE,
 *prefix = FOO, key = BAR, value = CHOICE
 *and
 *prefix = F, key = OOBAR, value = CHOICE
 *would produce the same value.
 *With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field
 *in the ProofSpec is valuable to prevent this mutability. And why all trees should
 *length-prefix the data before hashing it.
 * 
* * Protobuf type {@code ics23.ExistenceProof} */ public final class ExistenceProof extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ics23.ExistenceProof) ExistenceProofOrBuilder { private static final long serialVersionUID = 0L; // Use ExistenceProof.newBuilder() to construct. private ExistenceProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExistenceProof() { key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; path_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExistenceProof( 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: { value_ = input.readBytes(); break; } case 26: { tech.confio.ics23.LeafOp.Builder subBuilder = null; if (leaf_ != null) { subBuilder = leaf_.toBuilder(); } leaf_ = input.readMessage(tech.confio.ics23.LeafOp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(leaf_); leaf_ = subBuilder.buildPartial(); } break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { path_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } path_.add( input.readMessage(tech.confio.ics23.InnerOp.parser(), extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { path_ = java.util.Collections.unmodifiableList(path_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.confio.ics23.Proofs.internal_static_ics23_ExistenceProof_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.confio.ics23.Proofs.internal_static_ics23_ExistenceProof_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.confio.ics23.ExistenceProof.class, tech.confio.ics23.ExistenceProof.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString key_; /** * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_; /** * bytes value = 2; */ public com.google.protobuf.ByteString getValue() { return value_; } public static final int LEAF_FIELD_NUMBER = 3; private tech.confio.ics23.LeafOp leaf_; /** * .ics23.LeafOp leaf = 3; */ public boolean hasLeaf() { return leaf_ != null; } /** * .ics23.LeafOp leaf = 3; */ public tech.confio.ics23.LeafOp getLeaf() { return leaf_ == null ? tech.confio.ics23.LeafOp.getDefaultInstance() : leaf_; } /** * .ics23.LeafOp leaf = 3; */ public tech.confio.ics23.LeafOpOrBuilder getLeafOrBuilder() { return getLeaf(); } public static final int PATH_FIELD_NUMBER = 4; private java.util.List path_; /** * repeated .ics23.InnerOp path = 4; */ public java.util.List getPathList() { return path_; } /** * repeated .ics23.InnerOp path = 4; */ public java.util.List getPathOrBuilderList() { return path_; } /** * repeated .ics23.InnerOp path = 4; */ public int getPathCount() { return path_.size(); } /** * repeated .ics23.InnerOp path = 4; */ public tech.confio.ics23.InnerOp getPath(int index) { return path_.get(index); } /** * repeated .ics23.InnerOp path = 4; */ public tech.confio.ics23.InnerOpOrBuilder getPathOrBuilder( int index) { return path_.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 (!key_.isEmpty()) { output.writeBytes(1, key_); } if (!value_.isEmpty()) { output.writeBytes(2, value_); } if (leaf_ != null) { output.writeMessage(3, getLeaf()); } for (int i = 0; i < path_.size(); i++) { output.writeMessage(4, path_.get(i)); } 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 (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, value_); } if (leaf_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLeaf()); } for (int i = 0; i < path_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, path_.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 tech.confio.ics23.ExistenceProof)) { return super.equals(obj); } tech.confio.ics23.ExistenceProof other = (tech.confio.ics23.ExistenceProof) obj; boolean result = true; result = result && getKey() .equals(other.getKey()); result = result && getValue() .equals(other.getValue()); result = result && (hasLeaf() == other.hasLeaf()); if (hasLeaf()) { result = result && getLeaf() .equals(other.getLeaf()); } result = result && getPathList() .equals(other.getPathList()); 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(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); if (hasLeaf()) { hash = (37 * hash) + LEAF_FIELD_NUMBER; hash = (53 * hash) + getLeaf().hashCode(); } if (getPathCount() > 0) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPathList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tech.confio.ics23.ExistenceProof parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.confio.ics23.ExistenceProof 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.ExistenceProof parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.confio.ics23.ExistenceProof 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.ExistenceProof parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.confio.ics23.ExistenceProof parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.confio.ics23.ExistenceProof parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.confio.ics23.ExistenceProof 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.ExistenceProof parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.confio.ics23.ExistenceProof 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.ExistenceProof parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.confio.ics23.ExistenceProof 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.ExistenceProof 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; } /** *
   **
   *ExistenceProof takes a key and a value and a set of steps to perform on it.
   *The result of peforming all these steps will provide a "root hash", which can
   *be compared to the value in a header.
   *Since it is computationally infeasible to produce a hash collission for any of the used
   *cryptographic hash functions, if someone can provide a series of operations to transform
   *a given key and value into a root hash that matches some trusted root, these key and values
   *must be in the referenced merkle tree.
   *The only possible issue is maliablity in LeafOp, such as providing extra prefix data,
   *which should be controlled by a spec. Eg. with lengthOp as NONE,
   *prefix = FOO, key = BAR, value = CHOICE
   *and
   *prefix = F, key = OOBAR, value = CHOICE
   *would produce the same value.
   *With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field
   *in the ProofSpec is valuable to prevent this mutability. And why all trees should
   *length-prefix the data before hashing it.
   * 
* * Protobuf type {@code ics23.ExistenceProof} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ics23.ExistenceProof) tech.confio.ics23.ExistenceProofOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.confio.ics23.Proofs.internal_static_ics23_ExistenceProof_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.confio.ics23.Proofs.internal_static_ics23_ExistenceProof_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.confio.ics23.ExistenceProof.class, tech.confio.ics23.ExistenceProof.Builder.class); } // Construct using tech.confio.ics23.ExistenceProof.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPathFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; if (leafBuilder_ == null) { leaf_ = null; } else { leaf_ = null; leafBuilder_ = null; } if (pathBuilder_ == null) { path_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { pathBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.confio.ics23.Proofs.internal_static_ics23_ExistenceProof_descriptor; } @java.lang.Override public tech.confio.ics23.ExistenceProof getDefaultInstanceForType() { return tech.confio.ics23.ExistenceProof.getDefaultInstance(); } @java.lang.Override public tech.confio.ics23.ExistenceProof build() { tech.confio.ics23.ExistenceProof result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.confio.ics23.ExistenceProof buildPartial() { tech.confio.ics23.ExistenceProof result = new tech.confio.ics23.ExistenceProof(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.key_ = key_; result.value_ = value_; if (leafBuilder_ == null) { result.leaf_ = leaf_; } else { result.leaf_ = leafBuilder_.build(); } if (pathBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { path_ = java.util.Collections.unmodifiableList(path_); bitField0_ = (bitField0_ & ~0x00000008); } result.path_ = path_; } else { result.path_ = pathBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.confio.ics23.ExistenceProof) { return mergeFrom((tech.confio.ics23.ExistenceProof)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.confio.ics23.ExistenceProof other) { if (other == tech.confio.ics23.ExistenceProof.getDefaultInstance()) return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (other.hasLeaf()) { mergeLeaf(other.getLeaf()); } if (pathBuilder_ == null) { if (!other.path_.isEmpty()) { if (path_.isEmpty()) { path_ = other.path_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePathIsMutable(); path_.addAll(other.path_); } onChanged(); } } else { if (!other.path_.isEmpty()) { if (pathBuilder_.isEmpty()) { pathBuilder_.dispose(); pathBuilder_ = null; path_ = other.path_; bitField0_ = (bitField0_ & ~0x00000008); pathBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPathFieldBuilder() : null; } else { pathBuilder_.addAllMessages(other.path_); } } } 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.ExistenceProof parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tech.confio.ics23.ExistenceProof) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 1; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 1; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 2; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 2; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 2; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private tech.confio.ics23.LeafOp leaf_ = null; private com.google.protobuf.SingleFieldBuilderV3< tech.confio.ics23.LeafOp, tech.confio.ics23.LeafOp.Builder, tech.confio.ics23.LeafOpOrBuilder> leafBuilder_; /** * .ics23.LeafOp leaf = 3; */ public boolean hasLeaf() { return leafBuilder_ != null || leaf_ != null; } /** * .ics23.LeafOp leaf = 3; */ public tech.confio.ics23.LeafOp getLeaf() { if (leafBuilder_ == null) { return leaf_ == null ? tech.confio.ics23.LeafOp.getDefaultInstance() : leaf_; } else { return leafBuilder_.getMessage(); } } /** * .ics23.LeafOp leaf = 3; */ public Builder setLeaf(tech.confio.ics23.LeafOp value) { if (leafBuilder_ == null) { if (value == null) { throw new NullPointerException(); } leaf_ = value; onChanged(); } else { leafBuilder_.setMessage(value); } return this; } /** * .ics23.LeafOp leaf = 3; */ public Builder setLeaf( tech.confio.ics23.LeafOp.Builder builderForValue) { if (leafBuilder_ == null) { leaf_ = builderForValue.build(); onChanged(); } else { leafBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ics23.LeafOp leaf = 3; */ public Builder mergeLeaf(tech.confio.ics23.LeafOp value) { if (leafBuilder_ == null) { if (leaf_ != null) { leaf_ = tech.confio.ics23.LeafOp.newBuilder(leaf_).mergeFrom(value).buildPartial(); } else { leaf_ = value; } onChanged(); } else { leafBuilder_.mergeFrom(value); } return this; } /** * .ics23.LeafOp leaf = 3; */ public Builder clearLeaf() { if (leafBuilder_ == null) { leaf_ = null; onChanged(); } else { leaf_ = null; leafBuilder_ = null; } return this; } /** * .ics23.LeafOp leaf = 3; */ public tech.confio.ics23.LeafOp.Builder getLeafBuilder() { onChanged(); return getLeafFieldBuilder().getBuilder(); } /** * .ics23.LeafOp leaf = 3; */ public tech.confio.ics23.LeafOpOrBuilder getLeafOrBuilder() { if (leafBuilder_ != null) { return leafBuilder_.getMessageOrBuilder(); } else { return leaf_ == null ? tech.confio.ics23.LeafOp.getDefaultInstance() : leaf_; } } /** * .ics23.LeafOp leaf = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.confio.ics23.LeafOp, tech.confio.ics23.LeafOp.Builder, tech.confio.ics23.LeafOpOrBuilder> getLeafFieldBuilder() { if (leafBuilder_ == null) { leafBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.confio.ics23.LeafOp, tech.confio.ics23.LeafOp.Builder, tech.confio.ics23.LeafOpOrBuilder>( getLeaf(), getParentForChildren(), isClean()); leaf_ = null; } return leafBuilder_; } private java.util.List path_ = java.util.Collections.emptyList(); private void ensurePathIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { path_ = new java.util.ArrayList(path_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.confio.ics23.InnerOp, tech.confio.ics23.InnerOp.Builder, tech.confio.ics23.InnerOpOrBuilder> pathBuilder_; /** * repeated .ics23.InnerOp path = 4; */ public java.util.List getPathList() { if (pathBuilder_ == null) { return java.util.Collections.unmodifiableList(path_); } else { return pathBuilder_.getMessageList(); } } /** * repeated .ics23.InnerOp path = 4; */ public int getPathCount() { if (pathBuilder_ == null) { return path_.size(); } else { return pathBuilder_.getCount(); } } /** * repeated .ics23.InnerOp path = 4; */ public tech.confio.ics23.InnerOp getPath(int index) { if (pathBuilder_ == null) { return path_.get(index); } else { return pathBuilder_.getMessage(index); } } /** * repeated .ics23.InnerOp path = 4; */ public Builder setPath( int index, tech.confio.ics23.InnerOp value) { if (pathBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePathIsMutable(); path_.set(index, value); onChanged(); } else { pathBuilder_.setMessage(index, value); } return this; } /** * repeated .ics23.InnerOp path = 4; */ public Builder setPath( int index, tech.confio.ics23.InnerOp.Builder builderForValue) { if (pathBuilder_ == null) { ensurePathIsMutable(); path_.set(index, builderForValue.build()); onChanged(); } else { pathBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ics23.InnerOp path = 4; */ public Builder addPath(tech.confio.ics23.InnerOp value) { if (pathBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePathIsMutable(); path_.add(value); onChanged(); } else { pathBuilder_.addMessage(value); } return this; } /** * repeated .ics23.InnerOp path = 4; */ public Builder addPath( int index, tech.confio.ics23.InnerOp value) { if (pathBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePathIsMutable(); path_.add(index, value); onChanged(); } else { pathBuilder_.addMessage(index, value); } return this; } /** * repeated .ics23.InnerOp path = 4; */ public Builder addPath( tech.confio.ics23.InnerOp.Builder builderForValue) { if (pathBuilder_ == null) { ensurePathIsMutable(); path_.add(builderForValue.build()); onChanged(); } else { pathBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ics23.InnerOp path = 4; */ public Builder addPath( int index, tech.confio.ics23.InnerOp.Builder builderForValue) { if (pathBuilder_ == null) { ensurePathIsMutable(); path_.add(index, builderForValue.build()); onChanged(); } else { pathBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ics23.InnerOp path = 4; */ public Builder addAllPath( java.lang.Iterable values) { if (pathBuilder_ == null) { ensurePathIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, path_); onChanged(); } else { pathBuilder_.addAllMessages(values); } return this; } /** * repeated .ics23.InnerOp path = 4; */ public Builder clearPath() { if (pathBuilder_ == null) { path_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { pathBuilder_.clear(); } return this; } /** * repeated .ics23.InnerOp path = 4; */ public Builder removePath(int index) { if (pathBuilder_ == null) { ensurePathIsMutable(); path_.remove(index); onChanged(); } else { pathBuilder_.remove(index); } return this; } /** * repeated .ics23.InnerOp path = 4; */ public tech.confio.ics23.InnerOp.Builder getPathBuilder( int index) { return getPathFieldBuilder().getBuilder(index); } /** * repeated .ics23.InnerOp path = 4; */ public tech.confio.ics23.InnerOpOrBuilder getPathOrBuilder( int index) { if (pathBuilder_ == null) { return path_.get(index); } else { return pathBuilder_.getMessageOrBuilder(index); } } /** * repeated .ics23.InnerOp path = 4; */ public java.util.List getPathOrBuilderList() { if (pathBuilder_ != null) { return pathBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(path_); } } /** * repeated .ics23.InnerOp path = 4; */ public tech.confio.ics23.InnerOp.Builder addPathBuilder() { return getPathFieldBuilder().addBuilder( tech.confio.ics23.InnerOp.getDefaultInstance()); } /** * repeated .ics23.InnerOp path = 4; */ public tech.confio.ics23.InnerOp.Builder addPathBuilder( int index) { return getPathFieldBuilder().addBuilder( index, tech.confio.ics23.InnerOp.getDefaultInstance()); } /** * repeated .ics23.InnerOp path = 4; */ public java.util.List getPathBuilderList() { return getPathFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.confio.ics23.InnerOp, tech.confio.ics23.InnerOp.Builder, tech.confio.ics23.InnerOpOrBuilder> getPathFieldBuilder() { if (pathBuilder_ == null) { pathBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.confio.ics23.InnerOp, tech.confio.ics23.InnerOp.Builder, tech.confio.ics23.InnerOpOrBuilder>( path_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); path_ = null; } return pathBuilder_; } @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.ExistenceProof) } // @@protoc_insertion_point(class_scope:ics23.ExistenceProof) private static final tech.confio.ics23.ExistenceProof DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.confio.ics23.ExistenceProof(); } public static tech.confio.ics23.ExistenceProof getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExistenceProof parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExistenceProof(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.ExistenceProof getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy