![JAR search and dependency download from the Maven repository](/logo.png)
tech.confio.ics23.CommitmentProof Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: confio/proofs.proto
package tech.confio.ics23;
/**
*
*CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages
*
*
* Protobuf type {@code ics23.CommitmentProof}
*/
public final class CommitmentProof extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ics23.CommitmentProof)
CommitmentProofOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommitmentProof.newBuilder() to construct.
private CommitmentProof(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommitmentProof() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommitmentProof(
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: {
tech.confio.ics23.ExistenceProof.Builder subBuilder = null;
if (proofCase_ == 1) {
subBuilder = ((tech.confio.ics23.ExistenceProof) proof_).toBuilder();
}
proof_ =
input.readMessage(tech.confio.ics23.ExistenceProof.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tech.confio.ics23.ExistenceProof) proof_);
proof_ = subBuilder.buildPartial();
}
proofCase_ = 1;
break;
}
case 18: {
tech.confio.ics23.NonExistenceProof.Builder subBuilder = null;
if (proofCase_ == 2) {
subBuilder = ((tech.confio.ics23.NonExistenceProof) proof_).toBuilder();
}
proof_ =
input.readMessage(tech.confio.ics23.NonExistenceProof.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tech.confio.ics23.NonExistenceProof) proof_);
proof_ = subBuilder.buildPartial();
}
proofCase_ = 2;
break;
}
case 26: {
tech.confio.ics23.BatchProof.Builder subBuilder = null;
if (proofCase_ == 3) {
subBuilder = ((tech.confio.ics23.BatchProof) proof_).toBuilder();
}
proof_ =
input.readMessage(tech.confio.ics23.BatchProof.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tech.confio.ics23.BatchProof) proof_);
proof_ = subBuilder.buildPartial();
}
proofCase_ = 3;
break;
}
case 34: {
tech.confio.ics23.CompressedBatchProof.Builder subBuilder = null;
if (proofCase_ == 4) {
subBuilder = ((tech.confio.ics23.CompressedBatchProof) proof_).toBuilder();
}
proof_ =
input.readMessage(tech.confio.ics23.CompressedBatchProof.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tech.confio.ics23.CompressedBatchProof) proof_);
proof_ = subBuilder.buildPartial();
}
proofCase_ = 4;
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_CommitmentProof_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.confio.ics23.Proofs.internal_static_ics23_CommitmentProof_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.confio.ics23.CommitmentProof.class, tech.confio.ics23.CommitmentProof.Builder.class);
}
private int proofCase_ = 0;
private java.lang.Object proof_;
public enum ProofCase
implements com.google.protobuf.Internal.EnumLite {
EXIST(1),
NONEXIST(2),
BATCH(3),
COMPRESSED(4),
PROOF_NOT_SET(0);
private final int value;
private ProofCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ProofCase valueOf(int value) {
return forNumber(value);
}
public static ProofCase forNumber(int value) {
switch (value) {
case 1: return EXIST;
case 2: return NONEXIST;
case 3: return BATCH;
case 4: return COMPRESSED;
case 0: return PROOF_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ProofCase
getProofCase() {
return ProofCase.forNumber(
proofCase_);
}
public static final int EXIST_FIELD_NUMBER = 1;
/**
* .ics23.ExistenceProof exist = 1;
*/
public boolean hasExist() {
return proofCase_ == 1;
}
/**
* .ics23.ExistenceProof exist = 1;
*/
public tech.confio.ics23.ExistenceProof getExist() {
if (proofCase_ == 1) {
return (tech.confio.ics23.ExistenceProof) proof_;
}
return tech.confio.ics23.ExistenceProof.getDefaultInstance();
}
/**
* .ics23.ExistenceProof exist = 1;
*/
public tech.confio.ics23.ExistenceProofOrBuilder getExistOrBuilder() {
if (proofCase_ == 1) {
return (tech.confio.ics23.ExistenceProof) proof_;
}
return tech.confio.ics23.ExistenceProof.getDefaultInstance();
}
public static final int NONEXIST_FIELD_NUMBER = 2;
/**
* .ics23.NonExistenceProof nonexist = 2;
*/
public boolean hasNonexist() {
return proofCase_ == 2;
}
/**
* .ics23.NonExistenceProof nonexist = 2;
*/
public tech.confio.ics23.NonExistenceProof getNonexist() {
if (proofCase_ == 2) {
return (tech.confio.ics23.NonExistenceProof) proof_;
}
return tech.confio.ics23.NonExistenceProof.getDefaultInstance();
}
/**
* .ics23.NonExistenceProof nonexist = 2;
*/
public tech.confio.ics23.NonExistenceProofOrBuilder getNonexistOrBuilder() {
if (proofCase_ == 2) {
return (tech.confio.ics23.NonExistenceProof) proof_;
}
return tech.confio.ics23.NonExistenceProof.getDefaultInstance();
}
public static final int BATCH_FIELD_NUMBER = 3;
/**
* .ics23.BatchProof batch = 3;
*/
public boolean hasBatch() {
return proofCase_ == 3;
}
/**
* .ics23.BatchProof batch = 3;
*/
public tech.confio.ics23.BatchProof getBatch() {
if (proofCase_ == 3) {
return (tech.confio.ics23.BatchProof) proof_;
}
return tech.confio.ics23.BatchProof.getDefaultInstance();
}
/**
* .ics23.BatchProof batch = 3;
*/
public tech.confio.ics23.BatchProofOrBuilder getBatchOrBuilder() {
if (proofCase_ == 3) {
return (tech.confio.ics23.BatchProof) proof_;
}
return tech.confio.ics23.BatchProof.getDefaultInstance();
}
public static final int COMPRESSED_FIELD_NUMBER = 4;
/**
* .ics23.CompressedBatchProof compressed = 4;
*/
public boolean hasCompressed() {
return proofCase_ == 4;
}
/**
* .ics23.CompressedBatchProof compressed = 4;
*/
public tech.confio.ics23.CompressedBatchProof getCompressed() {
if (proofCase_ == 4) {
return (tech.confio.ics23.CompressedBatchProof) proof_;
}
return tech.confio.ics23.CompressedBatchProof.getDefaultInstance();
}
/**
* .ics23.CompressedBatchProof compressed = 4;
*/
public tech.confio.ics23.CompressedBatchProofOrBuilder getCompressedOrBuilder() {
if (proofCase_ == 4) {
return (tech.confio.ics23.CompressedBatchProof) proof_;
}
return tech.confio.ics23.CompressedBatchProof.getDefaultInstance();
}
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 (proofCase_ == 1) {
output.writeMessage(1, (tech.confio.ics23.ExistenceProof) proof_);
}
if (proofCase_ == 2) {
output.writeMessage(2, (tech.confio.ics23.NonExistenceProof) proof_);
}
if (proofCase_ == 3) {
output.writeMessage(3, (tech.confio.ics23.BatchProof) proof_);
}
if (proofCase_ == 4) {
output.writeMessage(4, (tech.confio.ics23.CompressedBatchProof) proof_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (proofCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (tech.confio.ics23.ExistenceProof) proof_);
}
if (proofCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (tech.confio.ics23.NonExistenceProof) proof_);
}
if (proofCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (tech.confio.ics23.BatchProof) proof_);
}
if (proofCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (tech.confio.ics23.CompressedBatchProof) proof_);
}
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.CommitmentProof)) {
return super.equals(obj);
}
tech.confio.ics23.CommitmentProof other = (tech.confio.ics23.CommitmentProof) obj;
boolean result = true;
result = result && getProofCase().equals(
other.getProofCase());
if (!result) return false;
switch (proofCase_) {
case 1:
result = result && getExist()
.equals(other.getExist());
break;
case 2:
result = result && getNonexist()
.equals(other.getNonexist());
break;
case 3:
result = result && getBatch()
.equals(other.getBatch());
break;
case 4:
result = result && getCompressed()
.equals(other.getCompressed());
break;
case 0:
default:
}
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();
switch (proofCase_) {
case 1:
hash = (37 * hash) + EXIST_FIELD_NUMBER;
hash = (53 * hash) + getExist().hashCode();
break;
case 2:
hash = (37 * hash) + NONEXIST_FIELD_NUMBER;
hash = (53 * hash) + getNonexist().hashCode();
break;
case 3:
hash = (37 * hash) + BATCH_FIELD_NUMBER;
hash = (53 * hash) + getBatch().hashCode();
break;
case 4:
hash = (37 * hash) + COMPRESSED_FIELD_NUMBER;
hash = (53 * hash) + getCompressed().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.confio.ics23.CommitmentProof parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.confio.ics23.CommitmentProof 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.CommitmentProof parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.confio.ics23.CommitmentProof 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.CommitmentProof parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.confio.ics23.CommitmentProof parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.confio.ics23.CommitmentProof parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.confio.ics23.CommitmentProof 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.CommitmentProof parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.confio.ics23.CommitmentProof 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.CommitmentProof parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.confio.ics23.CommitmentProof 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.CommitmentProof 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;
}
/**
*
*CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages
*
*
* Protobuf type {@code ics23.CommitmentProof}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ics23.CommitmentProof)
tech.confio.ics23.CommitmentProofOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.confio.ics23.Proofs.internal_static_ics23_CommitmentProof_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.confio.ics23.Proofs.internal_static_ics23_CommitmentProof_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.confio.ics23.CommitmentProof.class, tech.confio.ics23.CommitmentProof.Builder.class);
}
// Construct using tech.confio.ics23.CommitmentProof.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();
proofCase_ = 0;
proof_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.confio.ics23.Proofs.internal_static_ics23_CommitmentProof_descriptor;
}
@java.lang.Override
public tech.confio.ics23.CommitmentProof getDefaultInstanceForType() {
return tech.confio.ics23.CommitmentProof.getDefaultInstance();
}
@java.lang.Override
public tech.confio.ics23.CommitmentProof build() {
tech.confio.ics23.CommitmentProof result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.confio.ics23.CommitmentProof buildPartial() {
tech.confio.ics23.CommitmentProof result = new tech.confio.ics23.CommitmentProof(this);
if (proofCase_ == 1) {
if (existBuilder_ == null) {
result.proof_ = proof_;
} else {
result.proof_ = existBuilder_.build();
}
}
if (proofCase_ == 2) {
if (nonexistBuilder_ == null) {
result.proof_ = proof_;
} else {
result.proof_ = nonexistBuilder_.build();
}
}
if (proofCase_ == 3) {
if (batchBuilder_ == null) {
result.proof_ = proof_;
} else {
result.proof_ = batchBuilder_.build();
}
}
if (proofCase_ == 4) {
if (compressedBuilder_ == null) {
result.proof_ = proof_;
} else {
result.proof_ = compressedBuilder_.build();
}
}
result.proofCase_ = proofCase_;
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.CommitmentProof) {
return mergeFrom((tech.confio.ics23.CommitmentProof)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.confio.ics23.CommitmentProof other) {
if (other == tech.confio.ics23.CommitmentProof.getDefaultInstance()) return this;
switch (other.getProofCase()) {
case EXIST: {
mergeExist(other.getExist());
break;
}
case NONEXIST: {
mergeNonexist(other.getNonexist());
break;
}
case BATCH: {
mergeBatch(other.getBatch());
break;
}
case COMPRESSED: {
mergeCompressed(other.getCompressed());
break;
}
case PROOF_NOT_SET: {
break;
}
}
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.CommitmentProof parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tech.confio.ics23.CommitmentProof) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int proofCase_ = 0;
private java.lang.Object proof_;
public ProofCase
getProofCase() {
return ProofCase.forNumber(
proofCase_);
}
public Builder clearProof() {
proofCase_ = 0;
proof_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.confio.ics23.ExistenceProof, tech.confio.ics23.ExistenceProof.Builder, tech.confio.ics23.ExistenceProofOrBuilder> existBuilder_;
/**
* .ics23.ExistenceProof exist = 1;
*/
public boolean hasExist() {
return proofCase_ == 1;
}
/**
* .ics23.ExistenceProof exist = 1;
*/
public tech.confio.ics23.ExistenceProof getExist() {
if (existBuilder_ == null) {
if (proofCase_ == 1) {
return (tech.confio.ics23.ExistenceProof) proof_;
}
return tech.confio.ics23.ExistenceProof.getDefaultInstance();
} else {
if (proofCase_ == 1) {
return existBuilder_.getMessage();
}
return tech.confio.ics23.ExistenceProof.getDefaultInstance();
}
}
/**
* .ics23.ExistenceProof exist = 1;
*/
public Builder setExist(tech.confio.ics23.ExistenceProof value) {
if (existBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
proof_ = value;
onChanged();
} else {
existBuilder_.setMessage(value);
}
proofCase_ = 1;
return this;
}
/**
* .ics23.ExistenceProof exist = 1;
*/
public Builder setExist(
tech.confio.ics23.ExistenceProof.Builder builderForValue) {
if (existBuilder_ == null) {
proof_ = builderForValue.build();
onChanged();
} else {
existBuilder_.setMessage(builderForValue.build());
}
proofCase_ = 1;
return this;
}
/**
* .ics23.ExistenceProof exist = 1;
*/
public Builder mergeExist(tech.confio.ics23.ExistenceProof value) {
if (existBuilder_ == null) {
if (proofCase_ == 1 &&
proof_ != tech.confio.ics23.ExistenceProof.getDefaultInstance()) {
proof_ = tech.confio.ics23.ExistenceProof.newBuilder((tech.confio.ics23.ExistenceProof) proof_)
.mergeFrom(value).buildPartial();
} else {
proof_ = value;
}
onChanged();
} else {
if (proofCase_ == 1) {
existBuilder_.mergeFrom(value);
}
existBuilder_.setMessage(value);
}
proofCase_ = 1;
return this;
}
/**
* .ics23.ExistenceProof exist = 1;
*/
public Builder clearExist() {
if (existBuilder_ == null) {
if (proofCase_ == 1) {
proofCase_ = 0;
proof_ = null;
onChanged();
}
} else {
if (proofCase_ == 1) {
proofCase_ = 0;
proof_ = null;
}
existBuilder_.clear();
}
return this;
}
/**
* .ics23.ExistenceProof exist = 1;
*/
public tech.confio.ics23.ExistenceProof.Builder getExistBuilder() {
return getExistFieldBuilder().getBuilder();
}
/**
* .ics23.ExistenceProof exist = 1;
*/
public tech.confio.ics23.ExistenceProofOrBuilder getExistOrBuilder() {
if ((proofCase_ == 1) && (existBuilder_ != null)) {
return existBuilder_.getMessageOrBuilder();
} else {
if (proofCase_ == 1) {
return (tech.confio.ics23.ExistenceProof) proof_;
}
return tech.confio.ics23.ExistenceProof.getDefaultInstance();
}
}
/**
* .ics23.ExistenceProof exist = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.confio.ics23.ExistenceProof, tech.confio.ics23.ExistenceProof.Builder, tech.confio.ics23.ExistenceProofOrBuilder>
getExistFieldBuilder() {
if (existBuilder_ == null) {
if (!(proofCase_ == 1)) {
proof_ = tech.confio.ics23.ExistenceProof.getDefaultInstance();
}
existBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.confio.ics23.ExistenceProof, tech.confio.ics23.ExistenceProof.Builder, tech.confio.ics23.ExistenceProofOrBuilder>(
(tech.confio.ics23.ExistenceProof) proof_,
getParentForChildren(),
isClean());
proof_ = null;
}
proofCase_ = 1;
onChanged();;
return existBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.confio.ics23.NonExistenceProof, tech.confio.ics23.NonExistenceProof.Builder, tech.confio.ics23.NonExistenceProofOrBuilder> nonexistBuilder_;
/**
* .ics23.NonExistenceProof nonexist = 2;
*/
public boolean hasNonexist() {
return proofCase_ == 2;
}
/**
* .ics23.NonExistenceProof nonexist = 2;
*/
public tech.confio.ics23.NonExistenceProof getNonexist() {
if (nonexistBuilder_ == null) {
if (proofCase_ == 2) {
return (tech.confio.ics23.NonExistenceProof) proof_;
}
return tech.confio.ics23.NonExistenceProof.getDefaultInstance();
} else {
if (proofCase_ == 2) {
return nonexistBuilder_.getMessage();
}
return tech.confio.ics23.NonExistenceProof.getDefaultInstance();
}
}
/**
* .ics23.NonExistenceProof nonexist = 2;
*/
public Builder setNonexist(tech.confio.ics23.NonExistenceProof value) {
if (nonexistBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
proof_ = value;
onChanged();
} else {
nonexistBuilder_.setMessage(value);
}
proofCase_ = 2;
return this;
}
/**
* .ics23.NonExistenceProof nonexist = 2;
*/
public Builder setNonexist(
tech.confio.ics23.NonExistenceProof.Builder builderForValue) {
if (nonexistBuilder_ == null) {
proof_ = builderForValue.build();
onChanged();
} else {
nonexistBuilder_.setMessage(builderForValue.build());
}
proofCase_ = 2;
return this;
}
/**
* .ics23.NonExistenceProof nonexist = 2;
*/
public Builder mergeNonexist(tech.confio.ics23.NonExistenceProof value) {
if (nonexistBuilder_ == null) {
if (proofCase_ == 2 &&
proof_ != tech.confio.ics23.NonExistenceProof.getDefaultInstance()) {
proof_ = tech.confio.ics23.NonExistenceProof.newBuilder((tech.confio.ics23.NonExistenceProof) proof_)
.mergeFrom(value).buildPartial();
} else {
proof_ = value;
}
onChanged();
} else {
if (proofCase_ == 2) {
nonexistBuilder_.mergeFrom(value);
}
nonexistBuilder_.setMessage(value);
}
proofCase_ = 2;
return this;
}
/**
* .ics23.NonExistenceProof nonexist = 2;
*/
public Builder clearNonexist() {
if (nonexistBuilder_ == null) {
if (proofCase_ == 2) {
proofCase_ = 0;
proof_ = null;
onChanged();
}
} else {
if (proofCase_ == 2) {
proofCase_ = 0;
proof_ = null;
}
nonexistBuilder_.clear();
}
return this;
}
/**
* .ics23.NonExistenceProof nonexist = 2;
*/
public tech.confio.ics23.NonExistenceProof.Builder getNonexistBuilder() {
return getNonexistFieldBuilder().getBuilder();
}
/**
* .ics23.NonExistenceProof nonexist = 2;
*/
public tech.confio.ics23.NonExistenceProofOrBuilder getNonexistOrBuilder() {
if ((proofCase_ == 2) && (nonexistBuilder_ != null)) {
return nonexistBuilder_.getMessageOrBuilder();
} else {
if (proofCase_ == 2) {
return (tech.confio.ics23.NonExistenceProof) proof_;
}
return tech.confio.ics23.NonExistenceProof.getDefaultInstance();
}
}
/**
* .ics23.NonExistenceProof nonexist = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.confio.ics23.NonExistenceProof, tech.confio.ics23.NonExistenceProof.Builder, tech.confio.ics23.NonExistenceProofOrBuilder>
getNonexistFieldBuilder() {
if (nonexistBuilder_ == null) {
if (!(proofCase_ == 2)) {
proof_ = tech.confio.ics23.NonExistenceProof.getDefaultInstance();
}
nonexistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.confio.ics23.NonExistenceProof, tech.confio.ics23.NonExistenceProof.Builder, tech.confio.ics23.NonExistenceProofOrBuilder>(
(tech.confio.ics23.NonExistenceProof) proof_,
getParentForChildren(),
isClean());
proof_ = null;
}
proofCase_ = 2;
onChanged();;
return nonexistBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.confio.ics23.BatchProof, tech.confio.ics23.BatchProof.Builder, tech.confio.ics23.BatchProofOrBuilder> batchBuilder_;
/**
* .ics23.BatchProof batch = 3;
*/
public boolean hasBatch() {
return proofCase_ == 3;
}
/**
* .ics23.BatchProof batch = 3;
*/
public tech.confio.ics23.BatchProof getBatch() {
if (batchBuilder_ == null) {
if (proofCase_ == 3) {
return (tech.confio.ics23.BatchProof) proof_;
}
return tech.confio.ics23.BatchProof.getDefaultInstance();
} else {
if (proofCase_ == 3) {
return batchBuilder_.getMessage();
}
return tech.confio.ics23.BatchProof.getDefaultInstance();
}
}
/**
* .ics23.BatchProof batch = 3;
*/
public Builder setBatch(tech.confio.ics23.BatchProof value) {
if (batchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
proof_ = value;
onChanged();
} else {
batchBuilder_.setMessage(value);
}
proofCase_ = 3;
return this;
}
/**
* .ics23.BatchProof batch = 3;
*/
public Builder setBatch(
tech.confio.ics23.BatchProof.Builder builderForValue) {
if (batchBuilder_ == null) {
proof_ = builderForValue.build();
onChanged();
} else {
batchBuilder_.setMessage(builderForValue.build());
}
proofCase_ = 3;
return this;
}
/**
* .ics23.BatchProof batch = 3;
*/
public Builder mergeBatch(tech.confio.ics23.BatchProof value) {
if (batchBuilder_ == null) {
if (proofCase_ == 3 &&
proof_ != tech.confio.ics23.BatchProof.getDefaultInstance()) {
proof_ = tech.confio.ics23.BatchProof.newBuilder((tech.confio.ics23.BatchProof) proof_)
.mergeFrom(value).buildPartial();
} else {
proof_ = value;
}
onChanged();
} else {
if (proofCase_ == 3) {
batchBuilder_.mergeFrom(value);
}
batchBuilder_.setMessage(value);
}
proofCase_ = 3;
return this;
}
/**
* .ics23.BatchProof batch = 3;
*/
public Builder clearBatch() {
if (batchBuilder_ == null) {
if (proofCase_ == 3) {
proofCase_ = 0;
proof_ = null;
onChanged();
}
} else {
if (proofCase_ == 3) {
proofCase_ = 0;
proof_ = null;
}
batchBuilder_.clear();
}
return this;
}
/**
* .ics23.BatchProof batch = 3;
*/
public tech.confio.ics23.BatchProof.Builder getBatchBuilder() {
return getBatchFieldBuilder().getBuilder();
}
/**
* .ics23.BatchProof batch = 3;
*/
public tech.confio.ics23.BatchProofOrBuilder getBatchOrBuilder() {
if ((proofCase_ == 3) && (batchBuilder_ != null)) {
return batchBuilder_.getMessageOrBuilder();
} else {
if (proofCase_ == 3) {
return (tech.confio.ics23.BatchProof) proof_;
}
return tech.confio.ics23.BatchProof.getDefaultInstance();
}
}
/**
* .ics23.BatchProof batch = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.confio.ics23.BatchProof, tech.confio.ics23.BatchProof.Builder, tech.confio.ics23.BatchProofOrBuilder>
getBatchFieldBuilder() {
if (batchBuilder_ == null) {
if (!(proofCase_ == 3)) {
proof_ = tech.confio.ics23.BatchProof.getDefaultInstance();
}
batchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.confio.ics23.BatchProof, tech.confio.ics23.BatchProof.Builder, tech.confio.ics23.BatchProofOrBuilder>(
(tech.confio.ics23.BatchProof) proof_,
getParentForChildren(),
isClean());
proof_ = null;
}
proofCase_ = 3;
onChanged();;
return batchBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.confio.ics23.CompressedBatchProof, tech.confio.ics23.CompressedBatchProof.Builder, tech.confio.ics23.CompressedBatchProofOrBuilder> compressedBuilder_;
/**
* .ics23.CompressedBatchProof compressed = 4;
*/
public boolean hasCompressed() {
return proofCase_ == 4;
}
/**
* .ics23.CompressedBatchProof compressed = 4;
*/
public tech.confio.ics23.CompressedBatchProof getCompressed() {
if (compressedBuilder_ == null) {
if (proofCase_ == 4) {
return (tech.confio.ics23.CompressedBatchProof) proof_;
}
return tech.confio.ics23.CompressedBatchProof.getDefaultInstance();
} else {
if (proofCase_ == 4) {
return compressedBuilder_.getMessage();
}
return tech.confio.ics23.CompressedBatchProof.getDefaultInstance();
}
}
/**
* .ics23.CompressedBatchProof compressed = 4;
*/
public Builder setCompressed(tech.confio.ics23.CompressedBatchProof value) {
if (compressedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
proof_ = value;
onChanged();
} else {
compressedBuilder_.setMessage(value);
}
proofCase_ = 4;
return this;
}
/**
* .ics23.CompressedBatchProof compressed = 4;
*/
public Builder setCompressed(
tech.confio.ics23.CompressedBatchProof.Builder builderForValue) {
if (compressedBuilder_ == null) {
proof_ = builderForValue.build();
onChanged();
} else {
compressedBuilder_.setMessage(builderForValue.build());
}
proofCase_ = 4;
return this;
}
/**
* .ics23.CompressedBatchProof compressed = 4;
*/
public Builder mergeCompressed(tech.confio.ics23.CompressedBatchProof value) {
if (compressedBuilder_ == null) {
if (proofCase_ == 4 &&
proof_ != tech.confio.ics23.CompressedBatchProof.getDefaultInstance()) {
proof_ = tech.confio.ics23.CompressedBatchProof.newBuilder((tech.confio.ics23.CompressedBatchProof) proof_)
.mergeFrom(value).buildPartial();
} else {
proof_ = value;
}
onChanged();
} else {
if (proofCase_ == 4) {
compressedBuilder_.mergeFrom(value);
}
compressedBuilder_.setMessage(value);
}
proofCase_ = 4;
return this;
}
/**
* .ics23.CompressedBatchProof compressed = 4;
*/
public Builder clearCompressed() {
if (compressedBuilder_ == null) {
if (proofCase_ == 4) {
proofCase_ = 0;
proof_ = null;
onChanged();
}
} else {
if (proofCase_ == 4) {
proofCase_ = 0;
proof_ = null;
}
compressedBuilder_.clear();
}
return this;
}
/**
* .ics23.CompressedBatchProof compressed = 4;
*/
public tech.confio.ics23.CompressedBatchProof.Builder getCompressedBuilder() {
return getCompressedFieldBuilder().getBuilder();
}
/**
* .ics23.CompressedBatchProof compressed = 4;
*/
public tech.confio.ics23.CompressedBatchProofOrBuilder getCompressedOrBuilder() {
if ((proofCase_ == 4) && (compressedBuilder_ != null)) {
return compressedBuilder_.getMessageOrBuilder();
} else {
if (proofCase_ == 4) {
return (tech.confio.ics23.CompressedBatchProof) proof_;
}
return tech.confio.ics23.CompressedBatchProof.getDefaultInstance();
}
}
/**
* .ics23.CompressedBatchProof compressed = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.confio.ics23.CompressedBatchProof, tech.confio.ics23.CompressedBatchProof.Builder, tech.confio.ics23.CompressedBatchProofOrBuilder>
getCompressedFieldBuilder() {
if (compressedBuilder_ == null) {
if (!(proofCase_ == 4)) {
proof_ = tech.confio.ics23.CompressedBatchProof.getDefaultInstance();
}
compressedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.confio.ics23.CompressedBatchProof, tech.confio.ics23.CompressedBatchProof.Builder, tech.confio.ics23.CompressedBatchProofOrBuilder>(
(tech.confio.ics23.CompressedBatchProof) proof_,
getParentForChildren(),
isClean());
proof_ = null;
}
proofCase_ = 4;
onChanged();;
return compressedBuilder_;
}
@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.CommitmentProof)
}
// @@protoc_insertion_point(class_scope:ics23.CommitmentProof)
private static final tech.confio.ics23.CommitmentProof DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.confio.ics23.CommitmentProof();
}
public static tech.confio.ics23.CommitmentProof getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CommitmentProof parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommitmentProof(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.CommitmentProof getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy