Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
tech.confio.ics23.BatchEntry Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: confio/proofs.proto
package tech.confio.ics23;
/**
*
* Use BatchEntry not CommitmentProof, to avoid recursion
*
*
* Protobuf type {@code ics23.BatchEntry}
*/
public final class BatchEntry extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ics23.BatchEntry)
BatchEntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchEntry.newBuilder() to construct.
private BatchEntry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchEntry() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BatchEntry(
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;
}
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_BatchEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.confio.ics23.Proofs.internal_static_ics23_BatchEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.confio.ics23.BatchEntry.class, tech.confio.ics23.BatchEntry.Builder.class);
}
private int proofCase_ = 0;
private java.lang.Object proof_;
public enum ProofCase
implements com.google.protobuf.Internal.EnumLite {
EXIST(1),
NONEXIST(2),
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 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();
}
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_);
}
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_);
}
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.BatchEntry)) {
return super.equals(obj);
}
tech.confio.ics23.BatchEntry other = (tech.confio.ics23.BatchEntry) 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 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 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.confio.ics23.BatchEntry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.confio.ics23.BatchEntry 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.BatchEntry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.confio.ics23.BatchEntry 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.BatchEntry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.confio.ics23.BatchEntry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.confio.ics23.BatchEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.confio.ics23.BatchEntry 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.BatchEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.confio.ics23.BatchEntry 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.BatchEntry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.confio.ics23.BatchEntry 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.BatchEntry 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;
}
/**
*
* Use BatchEntry not CommitmentProof, to avoid recursion
*
*
* Protobuf type {@code ics23.BatchEntry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ics23.BatchEntry)
tech.confio.ics23.BatchEntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.confio.ics23.Proofs.internal_static_ics23_BatchEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.confio.ics23.Proofs.internal_static_ics23_BatchEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.confio.ics23.BatchEntry.class, tech.confio.ics23.BatchEntry.Builder.class);
}
// Construct using tech.confio.ics23.BatchEntry.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_BatchEntry_descriptor;
}
@java.lang.Override
public tech.confio.ics23.BatchEntry getDefaultInstanceForType() {
return tech.confio.ics23.BatchEntry.getDefaultInstance();
}
@java.lang.Override
public tech.confio.ics23.BatchEntry build() {
tech.confio.ics23.BatchEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.confio.ics23.BatchEntry buildPartial() {
tech.confio.ics23.BatchEntry result = new tech.confio.ics23.BatchEntry(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();
}
}
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.BatchEntry) {
return mergeFrom((tech.confio.ics23.BatchEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.confio.ics23.BatchEntry other) {
if (other == tech.confio.ics23.BatchEntry.getDefaultInstance()) return this;
switch (other.getProofCase()) {
case EXIST: {
mergeExist(other.getExist());
break;
}
case NONEXIST: {
mergeNonexist(other.getNonexist());
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.BatchEntry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tech.confio.ics23.BatchEntry) 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_;
}
@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.BatchEntry)
}
// @@protoc_insertion_point(class_scope:ics23.BatchEntry)
private static final tech.confio.ics23.BatchEntry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.confio.ics23.BatchEntry();
}
public static tech.confio.ics23.BatchEntry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BatchEntry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BatchEntry(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.BatchEntry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}