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.
*
* .tendermint.crypto.Proof proof = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.crypto.ProofOuterClass.Proof, tendermint.crypto.ProofOuterClass.Proof.Builder, tendermint.crypto.ProofOuterClass.ProofOrBuilder>
getProofFieldBuilder() {
if (proofBuilder_ == null) {
proofBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.crypto.ProofOuterClass.Proof, tendermint.crypto.ProofOuterClass.Proof.Builder, tendermint.crypto.ProofOuterClass.ProofOrBuilder>(
getProof(),
getParentForChildren(),
isClean());
proof_ = null;
}
return proofBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tendermint.crypto.ValueOp)
}
// @@protoc_insertion_point(class_scope:tendermint.crypto.ValueOp)
private static final tendermint.crypto.ProofOuterClass.ValueOp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.crypto.ProofOuterClass.ValueOp();
}
public static tendermint.crypto.ProofOuterClass.ValueOp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValueOp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ValueOp(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 tendermint.crypto.ProofOuterClass.ValueOp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DominoOpOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.crypto.DominoOp)
com.google.protobuf.MessageOrBuilder {
/**
* string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
* string key = 1;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* string input = 2;
* @return The input.
*/
java.lang.String getInput();
/**
* string input = 2;
* @return The bytes for input.
*/
com.google.protobuf.ByteString
getInputBytes();
/**
* string output = 3;
* @return The output.
*/
java.lang.String getOutput();
/**
* string output = 3;
* @return The bytes for output.
*/
com.google.protobuf.ByteString
getOutputBytes();
}
/**
* Protobuf type {@code tendermint.crypto.DominoOp}
*/
public static final class DominoOp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.crypto.DominoOp)
DominoOpOrBuilder {
private static final long serialVersionUID = 0L;
// Use DominoOp.newBuilder() to construct.
private DominoOp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DominoOp() {
key_ = "";
input_ = "";
output_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DominoOp();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DominoOp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
key_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
input_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
output_ = s;
break;
}
default: {
if (!parseUnknownField(
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 tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_DominoOp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_DominoOp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.crypto.ProofOuterClass.DominoOp.class, tendermint.crypto.ProofOuterClass.DominoOp.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
* string key = 1;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INPUT_FIELD_NUMBER = 2;
private volatile java.lang.Object input_;
/**
* string input = 2;
* @return The input.
*/
@java.lang.Override
public java.lang.String getInput() {
java.lang.Object ref = input_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
input_ = s;
return s;
}
}
/**
* string input = 2;
* @return The bytes for input.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInputBytes() {
java.lang.Object ref = input_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
input_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OUTPUT_FIELD_NUMBER = 3;
private volatile java.lang.Object output_;
/**
* string output = 3;
* @return The output.
*/
@java.lang.Override
public java.lang.String getOutput() {
java.lang.Object ref = output_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
output_ = s;
return s;
}
}
/**
* string output = 3;
* @return The bytes for output.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOutputBytes() {
java.lang.Object ref = output_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
output_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (!getInputBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, input_);
}
if (!getOutputBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, output_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (!getInputBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, input_);
}
if (!getOutputBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, output_);
}
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 tendermint.crypto.ProofOuterClass.DominoOp)) {
return super.equals(obj);
}
tendermint.crypto.ProofOuterClass.DominoOp other = (tendermint.crypto.ProofOuterClass.DominoOp) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (!getInput()
.equals(other.getInput())) return false;
if (!getOutput()
.equals(other.getOutput())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@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) + INPUT_FIELD_NUMBER;
hash = (53 * hash) + getInput().hashCode();
hash = (37 * hash) + OUTPUT_FIELD_NUMBER;
hash = (53 * hash) + getOutput().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.crypto.ProofOuterClass.DominoOp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.crypto.ProofOuterClass.DominoOp parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.crypto.ProofOuterClass.DominoOp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.crypto.ProofOuterClass.DominoOp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.crypto.ProofOuterClass.DominoOp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.crypto.ProofOuterClass.DominoOp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.crypto.ProofOuterClass.DominoOp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.crypto.ProofOuterClass.DominoOp 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 tendermint.crypto.ProofOuterClass.DominoOp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.crypto.ProofOuterClass.DominoOp 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 tendermint.crypto.ProofOuterClass.DominoOp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.crypto.ProofOuterClass.DominoOp 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(tendermint.crypto.ProofOuterClass.DominoOp 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;
}
/**
* Protobuf type {@code tendermint.crypto.DominoOp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.crypto.DominoOp)
tendermint.crypto.ProofOuterClass.DominoOpOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_DominoOp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_DominoOp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.crypto.ProofOuterClass.DominoOp.class, tendermint.crypto.ProofOuterClass.DominoOp.Builder.class);
}
// Construct using tendermint.crypto.ProofOuterClass.DominoOp.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_ = "";
input_ = "";
output_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_DominoOp_descriptor;
}
@java.lang.Override
public tendermint.crypto.ProofOuterClass.DominoOp getDefaultInstanceForType() {
return tendermint.crypto.ProofOuterClass.DominoOp.getDefaultInstance();
}
@java.lang.Override
public tendermint.crypto.ProofOuterClass.DominoOp build() {
tendermint.crypto.ProofOuterClass.DominoOp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.crypto.ProofOuterClass.DominoOp buildPartial() {
tendermint.crypto.ProofOuterClass.DominoOp result = new tendermint.crypto.ProofOuterClass.DominoOp(this);
result.key_ = key_;
result.input_ = input_;
result.output_ = output_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tendermint.crypto.ProofOuterClass.DominoOp) {
return mergeFrom((tendermint.crypto.ProofOuterClass.DominoOp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.crypto.ProofOuterClass.DominoOp other) {
if (other == tendermint.crypto.ProofOuterClass.DominoOp.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (!other.getInput().isEmpty()) {
input_ = other.input_;
onChanged();
}
if (!other.getOutput().isEmpty()) {
output_ = other.output_;
onChanged();
}
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 {
tendermint.crypto.ProofOuterClass.DominoOp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.crypto.ProofOuterClass.DominoOp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object key_ = "";
/**
* string key = 1;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
key_ = value;
onChanged();
return this;
}
private java.lang.Object input_ = "";
/**
* string input = 2;
* @return The input.
*/
public java.lang.String getInput() {
java.lang.Object ref = input_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
input_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string input = 2;
* @return The bytes for input.
*/
public com.google.protobuf.ByteString
getInputBytes() {
java.lang.Object ref = input_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
input_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string input = 2;
* @param value The input to set.
* @return This builder for chaining.
*/
public Builder setInput(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
input_ = value;
onChanged();
return this;
}
/**
* string input = 2;
* @return This builder for chaining.
*/
public Builder clearInput() {
input_ = getDefaultInstance().getInput();
onChanged();
return this;
}
/**
* string input = 2;
* @param value The bytes for input to set.
* @return This builder for chaining.
*/
public Builder setInputBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
input_ = value;
onChanged();
return this;
}
private java.lang.Object output_ = "";
/**
* string output = 3;
* @return The output.
*/
public java.lang.String getOutput() {
java.lang.Object ref = output_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
output_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string output = 3;
* @return The bytes for output.
*/
public com.google.protobuf.ByteString
getOutputBytes() {
java.lang.Object ref = output_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
output_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string output = 3;
* @param value The output to set.
* @return This builder for chaining.
*/
public Builder setOutput(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
output_ = value;
onChanged();
return this;
}
/**
* string output = 3;
* @return This builder for chaining.
*/
public Builder clearOutput() {
output_ = getDefaultInstance().getOutput();
onChanged();
return this;
}
/**
* string output = 3;
* @param value The bytes for output to set.
* @return This builder for chaining.
*/
public Builder setOutputBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
output_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tendermint.crypto.DominoOp)
}
// @@protoc_insertion_point(class_scope:tendermint.crypto.DominoOp)
private static final tendermint.crypto.ProofOuterClass.DominoOp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.crypto.ProofOuterClass.DominoOp();
}
public static tendermint.crypto.ProofOuterClass.DominoOp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DominoOp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DominoOp(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 tendermint.crypto.ProofOuterClass.DominoOp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProofOpOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.crypto.ProofOp)
com.google.protobuf.MessageOrBuilder {
/**
* string type = 1;
* @return The type.
*/
java.lang.String getType();
/**
* string type = 1;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
* bytes key = 2;
* @return The key.
*/
com.google.protobuf.ByteString getKey();
/**
* bytes data = 3;
* @return The data.
*/
com.google.protobuf.ByteString getData();
}
/**
*
* ProofOp defines an operation used for calculating Merkle root
* The data could be arbitrary format, providing nessecary data
* for example neighbouring node hash
*
*
* Protobuf type {@code tendermint.crypto.ProofOp}
*/
public static final class ProofOp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.crypto.ProofOp)
ProofOpOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProofOp.newBuilder() to construct.
private ProofOp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProofOp() {
type_ = "";
key_ = com.google.protobuf.ByteString.EMPTY;
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProofOp();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProofOp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
type_ = s;
break;
}
case 18: {
key_ = input.readBytes();
break;
}
case 26: {
data_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
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 tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.crypto.ProofOuterClass.ProofOp.class, tendermint.crypto.ProofOuterClass.ProofOp.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object type_;
/**
* string type = 1;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
}
}
/**
* string type = 1;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString key_;
/**
* bytes key = 2;
* @return The key.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKey() {
return key_;
}
public static final int DATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString data_;
/**
* bytes data = 3;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
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 (!getTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
if (!key_.isEmpty()) {
output.writeBytes(2, key_);
}
if (!data_.isEmpty()) {
output.writeBytes(3, data_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
if (!key_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, key_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, data_);
}
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 tendermint.crypto.ProofOuterClass.ProofOp)) {
return super.equals(obj);
}
tendermint.crypto.ProofOuterClass.ProofOp other = (tendermint.crypto.ProofOuterClass.ProofOp) obj;
if (!getType()
.equals(other.getType())) return false;
if (!getKey()
.equals(other.getKey())) return false;
if (!getData()
.equals(other.getData())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.crypto.ProofOuterClass.ProofOp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.crypto.ProofOuterClass.ProofOp parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.crypto.ProofOuterClass.ProofOp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.crypto.ProofOuterClass.ProofOp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.crypto.ProofOuterClass.ProofOp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.crypto.ProofOuterClass.ProofOp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.crypto.ProofOuterClass.ProofOp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.crypto.ProofOuterClass.ProofOp 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 tendermint.crypto.ProofOuterClass.ProofOp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.crypto.ProofOuterClass.ProofOp 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 tendermint.crypto.ProofOuterClass.ProofOp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.crypto.ProofOuterClass.ProofOp 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(tendermint.crypto.ProofOuterClass.ProofOp 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;
}
/**
*
* ProofOp defines an operation used for calculating Merkle root
* The data could be arbitrary format, providing nessecary data
* for example neighbouring node hash
*
*
* Protobuf type {@code tendermint.crypto.ProofOp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.crypto.ProofOp)
tendermint.crypto.ProofOuterClass.ProofOpOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.crypto.ProofOuterClass.ProofOp.class, tendermint.crypto.ProofOuterClass.ProofOp.Builder.class);
}
// Construct using tendermint.crypto.ProofOuterClass.ProofOp.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();
type_ = "";
key_ = com.google.protobuf.ByteString.EMPTY;
data_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOp_descriptor;
}
@java.lang.Override
public tendermint.crypto.ProofOuterClass.ProofOp getDefaultInstanceForType() {
return tendermint.crypto.ProofOuterClass.ProofOp.getDefaultInstance();
}
@java.lang.Override
public tendermint.crypto.ProofOuterClass.ProofOp build() {
tendermint.crypto.ProofOuterClass.ProofOp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.crypto.ProofOuterClass.ProofOp buildPartial() {
tendermint.crypto.ProofOuterClass.ProofOp result = new tendermint.crypto.ProofOuterClass.ProofOp(this);
result.type_ = type_;
result.key_ = key_;
result.data_ = data_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tendermint.crypto.ProofOuterClass.ProofOp) {
return mergeFrom((tendermint.crypto.ProofOuterClass.ProofOp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.crypto.ProofOuterClass.ProofOp other) {
if (other == tendermint.crypto.ProofOuterClass.ProofOp.getDefaultInstance()) return this;
if (!other.getType().isEmpty()) {
type_ = other.type_;
onChanged();
}
if (other.getKey() != com.google.protobuf.ByteString.EMPTY) {
setKey(other.getKey());
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
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 {
tendermint.crypto.ProofOuterClass.ProofOp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.crypto.ProofOuterClass.ProofOp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object type_ = "";
/**
* string type = 1;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string type = 1;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
* string type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
* string type = 1;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes key = 2;
* @return The key.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
* bytes key = 2;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* bytes key = 2;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes data = 3;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* bytes data = 3;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* bytes data = 3;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tendermint.crypto.ProofOp)
}
// @@protoc_insertion_point(class_scope:tendermint.crypto.ProofOp)
private static final tendermint.crypto.ProofOuterClass.ProofOp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.crypto.ProofOuterClass.ProofOp();
}
public static tendermint.crypto.ProofOuterClass.ProofOp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProofOp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProofOp(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 tendermint.crypto.ProofOuterClass.ProofOp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProofOpsOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.crypto.ProofOps)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false];
*/
java.util.List
getOpsList();
/**
* repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false];
*/
tendermint.crypto.ProofOuterClass.ProofOp getOps(int index);
/**
* repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false];
*/
int getOpsCount();
/**
* repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false];
*/
java.util.List extends tendermint.crypto.ProofOuterClass.ProofOpOrBuilder>
getOpsOrBuilderList();
/**
* repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false];
*/
tendermint.crypto.ProofOuterClass.ProofOpOrBuilder getOpsOrBuilder(
int index);
}
/**
*
* ProofOps is Merkle proof defined by the list of ProofOps
*
*
* Protobuf type {@code tendermint.crypto.ProofOps}
*/
public static final class ProofOps extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.crypto.ProofOps)
ProofOpsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProofOps.newBuilder() to construct.
private ProofOps(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProofOps() {
ops_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProofOps();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProofOps(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
ops_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
ops_.add(
input.readMessage(tendermint.crypto.ProofOuterClass.ProofOp.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
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_ & 0x00000001) != 0)) {
ops_ = java.util.Collections.unmodifiableList(ops_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOps_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.crypto.ProofOuterClass.internal_static_tendermint_crypto_ProofOps_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.crypto.ProofOuterClass.ProofOps.class, tendermint.crypto.ProofOuterClass.ProofOps.Builder.class);
}
public static final int OPS_FIELD_NUMBER = 1;
private java.util.List ops_;
/**
* repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List getOpsList() {
return ops_;
}
/**
* repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List extends tendermint.crypto.ProofOuterClass.ProofOpOrBuilder>
getOpsOrBuilderList() {
return ops_;
}
/**
* repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public int getOpsCount() {
return ops_.size();
}
/**
* repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public tendermint.crypto.ProofOuterClass.ProofOp getOps(int index) {
return ops_.get(index);
}
/**
* repeated .tendermint.crypto.ProofOp ops = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public tendermint.crypto.ProofOuterClass.ProofOpOrBuilder getOpsOrBuilder(
int index) {
return ops_.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 {
for (int i = 0; i < ops_.size(); i++) {
output.writeMessage(1, ops_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < ops_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, ops_.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 tendermint.crypto.ProofOuterClass.ProofOps)) {
return super.equals(obj);
}
tendermint.crypto.ProofOuterClass.ProofOps other = (tendermint.crypto.ProofOuterClass.ProofOps) obj;
if (!getOpsList()
.equals(other.getOpsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getOpsCount() > 0) {
hash = (37 * hash) + OPS_FIELD_NUMBER;
hash = (53 * hash) + getOpsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.crypto.ProofOuterClass.ProofOps parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.crypto.ProofOuterClass.ProofOps parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.crypto.ProofOuterClass.ProofOps parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.crypto.ProofOuterClass.ProofOps parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.crypto.ProofOuterClass.ProofOps parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.crypto.ProofOuterClass.ProofOps parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.crypto.ProofOuterClass.ProofOps parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.crypto.ProofOuterClass.ProofOps 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 tendermint.crypto.ProofOuterClass.ProofOps parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.crypto.ProofOuterClass.ProofOps 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 tendermint.crypto.ProofOuterClass.ProofOps parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.crypto.ProofOuterClass.ProofOps 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(tendermint.crypto.ProofOuterClass.ProofOps 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;
}
/**
*
* ProofOps is Merkle proof defined by the list of ProofOps
*