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.
tendermint.types.BlockOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tendermint/types/block.proto
package tendermint.types;
public final class BlockOuterClass {
private BlockOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface BlockOrBuilder extends
// @@protoc_insertion_point(interface_extends:tendermint.types.Block)
com.google.protobuf.MessageOrBuilder {
/**
* .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false];
*/
boolean hasHeader();
/**
* .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false];
*/
tendermint.types.Types.Header getHeader();
/**
* .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false];
*/
tendermint.types.Types.HeaderOrBuilder getHeaderOrBuilder();
/**
* .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false];
*/
boolean hasData();
/**
* .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false];
*/
tendermint.types.Types.Data getData();
/**
* .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false];
*/
tendermint.types.Types.DataOrBuilder getDataOrBuilder();
/**
* .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false];
*/
boolean hasEvidence();
/**
* .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false];
*/
tendermint.types.EvidenceOuterClass.EvidenceList getEvidence();
/**
* .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false];
*/
tendermint.types.EvidenceOuterClass.EvidenceListOrBuilder getEvidenceOrBuilder();
/**
* .tendermint.types.Commit last_commit = 4;
*/
boolean hasLastCommit();
/**
* .tendermint.types.Commit last_commit = 4;
*/
tendermint.types.Types.Commit getLastCommit();
/**
* .tendermint.types.Commit last_commit = 4;
*/
tendermint.types.Types.CommitOrBuilder getLastCommitOrBuilder();
}
/**
* Protobuf type {@code tendermint.types.Block}
*/
public static final class Block extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tendermint.types.Block)
BlockOrBuilder {
private static final long serialVersionUID = 0L;
// Use Block.newBuilder() to construct.
private Block(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Block() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Block(
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: {
tendermint.types.Types.Header.Builder subBuilder = null;
if (header_ != null) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(tendermint.types.Types.Header.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
break;
}
case 18: {
tendermint.types.Types.Data.Builder subBuilder = null;
if (data_ != null) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(tendermint.types.Types.Data.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
break;
}
case 26: {
tendermint.types.EvidenceOuterClass.EvidenceList.Builder subBuilder = null;
if (evidence_ != null) {
subBuilder = evidence_.toBuilder();
}
evidence_ = input.readMessage(tendermint.types.EvidenceOuterClass.EvidenceList.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(evidence_);
evidence_ = subBuilder.buildPartial();
}
break;
}
case 34: {
tendermint.types.Types.Commit.Builder subBuilder = null;
if (lastCommit_ != null) {
subBuilder = lastCommit_.toBuilder();
}
lastCommit_ = input.readMessage(tendermint.types.Types.Commit.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lastCommit_);
lastCommit_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.types.BlockOuterClass.internal_static_tendermint_types_Block_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.types.BlockOuterClass.internal_static_tendermint_types_Block_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.types.BlockOuterClass.Block.class, tendermint.types.BlockOuterClass.Block.Builder.class);
}
public static final int HEADER_FIELD_NUMBER = 1;
private tendermint.types.Types.Header header_;
/**
* .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasHeader() {
return header_ != null;
}
/**
* .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false];
*/
public tendermint.types.Types.Header getHeader() {
return header_ == null ? tendermint.types.Types.Header.getDefaultInstance() : header_;
}
/**
* .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false];
*/
public tendermint.types.Types.HeaderOrBuilder getHeaderOrBuilder() {
return getHeader();
}
public static final int DATA_FIELD_NUMBER = 2;
private tendermint.types.Types.Data data_;
/**
* .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false];
*/
public boolean hasData() {
return data_ != null;
}
/**
* .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false];
*/
public tendermint.types.Types.Data getData() {
return data_ == null ? tendermint.types.Types.Data.getDefaultInstance() : data_;
}
/**
* .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false];
*/
public tendermint.types.Types.DataOrBuilder getDataOrBuilder() {
return getData();
}
public static final int EVIDENCE_FIELD_NUMBER = 3;
private tendermint.types.EvidenceOuterClass.EvidenceList evidence_;
/**
* .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false];
*/
public boolean hasEvidence() {
return evidence_ != null;
}
/**
* .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false];
*/
public tendermint.types.EvidenceOuterClass.EvidenceList getEvidence() {
return evidence_ == null ? tendermint.types.EvidenceOuterClass.EvidenceList.getDefaultInstance() : evidence_;
}
/**
* .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false];
*/
public tendermint.types.EvidenceOuterClass.EvidenceListOrBuilder getEvidenceOrBuilder() {
return getEvidence();
}
public static final int LAST_COMMIT_FIELD_NUMBER = 4;
private tendermint.types.Types.Commit lastCommit_;
/**
* .tendermint.types.Commit last_commit = 4;
*/
public boolean hasLastCommit() {
return lastCommit_ != null;
}
/**
* .tendermint.types.Commit last_commit = 4;
*/
public tendermint.types.Types.Commit getLastCommit() {
return lastCommit_ == null ? tendermint.types.Types.Commit.getDefaultInstance() : lastCommit_;
}
/**
* .tendermint.types.Commit last_commit = 4;
*/
public tendermint.types.Types.CommitOrBuilder getLastCommitOrBuilder() {
return getLastCommit();
}
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 (header_ != null) {
output.writeMessage(1, getHeader());
}
if (data_ != null) {
output.writeMessage(2, getData());
}
if (evidence_ != null) {
output.writeMessage(3, getEvidence());
}
if (lastCommit_ != null) {
output.writeMessage(4, getLastCommit());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
if (data_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getData());
}
if (evidence_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getEvidence());
}
if (lastCommit_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLastCommit());
}
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.types.BlockOuterClass.Block)) {
return super.equals(obj);
}
tendermint.types.BlockOuterClass.Block other = (tendermint.types.BlockOuterClass.Block) obj;
boolean result = true;
result = result && (hasHeader() == other.hasHeader());
if (hasHeader()) {
result = result && getHeader()
.equals(other.getHeader());
}
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
result = result && (hasEvidence() == other.hasEvidence());
if (hasEvidence()) {
result = result && getEvidence()
.equals(other.getEvidence());
}
result = result && (hasLastCommit() == other.hasLastCommit());
if (hasLastCommit()) {
result = result && getLastCommit()
.equals(other.getLastCommit());
}
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();
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (hasEvidence()) {
hash = (37 * hash) + EVIDENCE_FIELD_NUMBER;
hash = (53 * hash) + getEvidence().hashCode();
}
if (hasLastCommit()) {
hash = (37 * hash) + LAST_COMMIT_FIELD_NUMBER;
hash = (53 * hash) + getLastCommit().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tendermint.types.BlockOuterClass.Block parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.types.BlockOuterClass.Block parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.types.BlockOuterClass.Block parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.types.BlockOuterClass.Block parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.types.BlockOuterClass.Block parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tendermint.types.BlockOuterClass.Block parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tendermint.types.BlockOuterClass.Block parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.types.BlockOuterClass.Block 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.types.BlockOuterClass.Block parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tendermint.types.BlockOuterClass.Block 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.types.BlockOuterClass.Block parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tendermint.types.BlockOuterClass.Block 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.types.BlockOuterClass.Block 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.types.Block}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tendermint.types.Block)
tendermint.types.BlockOuterClass.BlockOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tendermint.types.BlockOuterClass.internal_static_tendermint_types_Block_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tendermint.types.BlockOuterClass.internal_static_tendermint_types_Block_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tendermint.types.BlockOuterClass.Block.class, tendermint.types.BlockOuterClass.Block.Builder.class);
}
// Construct using tendermint.types.BlockOuterClass.Block.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();
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
if (dataBuilder_ == null) {
data_ = null;
} else {
data_ = null;
dataBuilder_ = null;
}
if (evidenceBuilder_ == null) {
evidence_ = null;
} else {
evidence_ = null;
evidenceBuilder_ = null;
}
if (lastCommitBuilder_ == null) {
lastCommit_ = null;
} else {
lastCommit_ = null;
lastCommitBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tendermint.types.BlockOuterClass.internal_static_tendermint_types_Block_descriptor;
}
@java.lang.Override
public tendermint.types.BlockOuterClass.Block getDefaultInstanceForType() {
return tendermint.types.BlockOuterClass.Block.getDefaultInstance();
}
@java.lang.Override
public tendermint.types.BlockOuterClass.Block build() {
tendermint.types.BlockOuterClass.Block result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tendermint.types.BlockOuterClass.Block buildPartial() {
tendermint.types.BlockOuterClass.Block result = new tendermint.types.BlockOuterClass.Block(this);
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
if (evidenceBuilder_ == null) {
result.evidence_ = evidence_;
} else {
result.evidence_ = evidenceBuilder_.build();
}
if (lastCommitBuilder_ == null) {
result.lastCommit_ = lastCommit_;
} else {
result.lastCommit_ = lastCommitBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tendermint.types.BlockOuterClass.Block) {
return mergeFrom((tendermint.types.BlockOuterClass.Block)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tendermint.types.BlockOuterClass.Block other) {
if (other == tendermint.types.BlockOuterClass.Block.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasData()) {
mergeData(other.getData());
}
if (other.hasEvidence()) {
mergeEvidence(other.getEvidence());
}
if (other.hasLastCommit()) {
mergeLastCommit(other.getLastCommit());
}
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.types.BlockOuterClass.Block parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tendermint.types.BlockOuterClass.Block) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private tendermint.types.Types.Header header_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.types.Types.Header, tendermint.types.Types.Header.Builder, tendermint.types.Types.HeaderOrBuilder> headerBuilder_;
/**
* .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
* .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false];
*/
public tendermint.types.Types.Header getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? tendermint.types.Types.Header.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
* .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false];
*/
public Builder setHeader(tendermint.types.Types.Header value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
return this;
}
/**
* .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false];
*/
public Builder setHeader(
tendermint.types.Types.Header.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false];
*/
public Builder mergeHeader(tendermint.types.Types.Header value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
tendermint.types.Types.Header.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false];
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
* .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false];
*/
public tendermint.types.Types.Header.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false];
*/
public tendermint.types.Types.HeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
tendermint.types.Types.Header.getDefaultInstance() : header_;
}
}
/**
* .tendermint.types.Header header = 1 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.types.Types.Header, tendermint.types.Types.Header.Builder, tendermint.types.Types.HeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.types.Types.Header, tendermint.types.Types.Header.Builder, tendermint.types.Types.HeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private tendermint.types.Types.Data data_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.types.Types.Data, tendermint.types.Types.Data.Builder, tendermint.types.Types.DataOrBuilder> dataBuilder_;
/**
* .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false];
*/
public boolean hasData() {
return dataBuilder_ != null || data_ != null;
}
/**
* .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false];
*/
public tendermint.types.Types.Data getData() {
if (dataBuilder_ == null) {
return data_ == null ? tendermint.types.Types.Data.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
* .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false];
*/
public Builder setData(tendermint.types.Types.Data value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
return this;
}
/**
* .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false];
*/
public Builder setData(
tendermint.types.Types.Data.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false];
*/
public Builder mergeData(tendermint.types.Types.Data value) {
if (dataBuilder_ == null) {
if (data_ != null) {
data_ =
tendermint.types.Types.Data.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false];
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = null;
onChanged();
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
/**
* .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false];
*/
public tendermint.types.Types.Data.Builder getDataBuilder() {
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
* .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false];
*/
public tendermint.types.Types.DataOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
tendermint.types.Types.Data.getDefaultInstance() : data_;
}
}
/**
* .tendermint.types.Data data = 2 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.types.Types.Data, tendermint.types.Types.Data.Builder, tendermint.types.Types.DataOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.types.Types.Data, tendermint.types.Types.Data.Builder, tendermint.types.Types.DataOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private tendermint.types.EvidenceOuterClass.EvidenceList evidence_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.types.EvidenceOuterClass.EvidenceList, tendermint.types.EvidenceOuterClass.EvidenceList.Builder, tendermint.types.EvidenceOuterClass.EvidenceListOrBuilder> evidenceBuilder_;
/**
* .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false];
*/
public boolean hasEvidence() {
return evidenceBuilder_ != null || evidence_ != null;
}
/**
* .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false];
*/
public tendermint.types.EvidenceOuterClass.EvidenceList getEvidence() {
if (evidenceBuilder_ == null) {
return evidence_ == null ? tendermint.types.EvidenceOuterClass.EvidenceList.getDefaultInstance() : evidence_;
} else {
return evidenceBuilder_.getMessage();
}
}
/**
* .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false];
*/
public Builder setEvidence(tendermint.types.EvidenceOuterClass.EvidenceList value) {
if (evidenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
evidence_ = value;
onChanged();
} else {
evidenceBuilder_.setMessage(value);
}
return this;
}
/**
* .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false];
*/
public Builder setEvidence(
tendermint.types.EvidenceOuterClass.EvidenceList.Builder builderForValue) {
if (evidenceBuilder_ == null) {
evidence_ = builderForValue.build();
onChanged();
} else {
evidenceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false];
*/
public Builder mergeEvidence(tendermint.types.EvidenceOuterClass.EvidenceList value) {
if (evidenceBuilder_ == null) {
if (evidence_ != null) {
evidence_ =
tendermint.types.EvidenceOuterClass.EvidenceList.newBuilder(evidence_).mergeFrom(value).buildPartial();
} else {
evidence_ = value;
}
onChanged();
} else {
evidenceBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false];
*/
public Builder clearEvidence() {
if (evidenceBuilder_ == null) {
evidence_ = null;
onChanged();
} else {
evidence_ = null;
evidenceBuilder_ = null;
}
return this;
}
/**
* .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false];
*/
public tendermint.types.EvidenceOuterClass.EvidenceList.Builder getEvidenceBuilder() {
onChanged();
return getEvidenceFieldBuilder().getBuilder();
}
/**
* .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false];
*/
public tendermint.types.EvidenceOuterClass.EvidenceListOrBuilder getEvidenceOrBuilder() {
if (evidenceBuilder_ != null) {
return evidenceBuilder_.getMessageOrBuilder();
} else {
return evidence_ == null ?
tendermint.types.EvidenceOuterClass.EvidenceList.getDefaultInstance() : evidence_;
}
}
/**
* .tendermint.types.EvidenceList evidence = 3 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.types.EvidenceOuterClass.EvidenceList, tendermint.types.EvidenceOuterClass.EvidenceList.Builder, tendermint.types.EvidenceOuterClass.EvidenceListOrBuilder>
getEvidenceFieldBuilder() {
if (evidenceBuilder_ == null) {
evidenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.types.EvidenceOuterClass.EvidenceList, tendermint.types.EvidenceOuterClass.EvidenceList.Builder, tendermint.types.EvidenceOuterClass.EvidenceListOrBuilder>(
getEvidence(),
getParentForChildren(),
isClean());
evidence_ = null;
}
return evidenceBuilder_;
}
private tendermint.types.Types.Commit lastCommit_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.types.Types.Commit, tendermint.types.Types.Commit.Builder, tendermint.types.Types.CommitOrBuilder> lastCommitBuilder_;
/**
* .tendermint.types.Commit last_commit = 4;
*/
public boolean hasLastCommit() {
return lastCommitBuilder_ != null || lastCommit_ != null;
}
/**
* .tendermint.types.Commit last_commit = 4;
*/
public tendermint.types.Types.Commit getLastCommit() {
if (lastCommitBuilder_ == null) {
return lastCommit_ == null ? tendermint.types.Types.Commit.getDefaultInstance() : lastCommit_;
} else {
return lastCommitBuilder_.getMessage();
}
}
/**
* .tendermint.types.Commit last_commit = 4;
*/
public Builder setLastCommit(tendermint.types.Types.Commit value) {
if (lastCommitBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastCommit_ = value;
onChanged();
} else {
lastCommitBuilder_.setMessage(value);
}
return this;
}
/**
* .tendermint.types.Commit last_commit = 4;
*/
public Builder setLastCommit(
tendermint.types.Types.Commit.Builder builderForValue) {
if (lastCommitBuilder_ == null) {
lastCommit_ = builderForValue.build();
onChanged();
} else {
lastCommitBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tendermint.types.Commit last_commit = 4;
*/
public Builder mergeLastCommit(tendermint.types.Types.Commit value) {
if (lastCommitBuilder_ == null) {
if (lastCommit_ != null) {
lastCommit_ =
tendermint.types.Types.Commit.newBuilder(lastCommit_).mergeFrom(value).buildPartial();
} else {
lastCommit_ = value;
}
onChanged();
} else {
lastCommitBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tendermint.types.Commit last_commit = 4;
*/
public Builder clearLastCommit() {
if (lastCommitBuilder_ == null) {
lastCommit_ = null;
onChanged();
} else {
lastCommit_ = null;
lastCommitBuilder_ = null;
}
return this;
}
/**
* .tendermint.types.Commit last_commit = 4;
*/
public tendermint.types.Types.Commit.Builder getLastCommitBuilder() {
onChanged();
return getLastCommitFieldBuilder().getBuilder();
}
/**
* .tendermint.types.Commit last_commit = 4;
*/
public tendermint.types.Types.CommitOrBuilder getLastCommitOrBuilder() {
if (lastCommitBuilder_ != null) {
return lastCommitBuilder_.getMessageOrBuilder();
} else {
return lastCommit_ == null ?
tendermint.types.Types.Commit.getDefaultInstance() : lastCommit_;
}
}
/**
* .tendermint.types.Commit last_commit = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tendermint.types.Types.Commit, tendermint.types.Types.Commit.Builder, tendermint.types.Types.CommitOrBuilder>
getLastCommitFieldBuilder() {
if (lastCommitBuilder_ == null) {
lastCommitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tendermint.types.Types.Commit, tendermint.types.Types.Commit.Builder, tendermint.types.Types.CommitOrBuilder>(
getLastCommit(),
getParentForChildren(),
isClean());
lastCommit_ = null;
}
return lastCommitBuilder_;
}
@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:tendermint.types.Block)
}
// @@protoc_insertion_point(class_scope:tendermint.types.Block)
private static final tendermint.types.BlockOuterClass.Block DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tendermint.types.BlockOuterClass.Block();
}
public static tendermint.types.BlockOuterClass.Block getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Block parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Block(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.types.BlockOuterClass.Block getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tendermint_types_Block_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tendermint_types_Block_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\034tendermint/types/block.proto\022\020tendermi" +
"nt.types\032\024gogoproto/gogo.proto\032\034tendermi" +
"nt/types/types.proto\032\037tendermint/types/e" +
"vidence.proto\"\312\001\n\005Block\022.\n\006header\030\001 \001(\0132" +
"\030.tendermint.types.HeaderB\004\310\336\037\000\022*\n\004data\030" +
"\002 \001(\0132\026.tendermint.types.DataB\004\310\336\037\000\0226\n\010e" +
"vidence\030\003 \001(\0132\036.tendermint.types.Evidenc" +
"eListB\004\310\336\037\000\022-\n\013last_commit\030\004 \001(\0132\030.tende" +
"rmint.types.CommitB9Z7github.com/tenderm" +
"int/tendermint/proto/tendermint/typesb\006p" +
"roto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
tendermint.types.Types.getDescriptor(),
tendermint.types.EvidenceOuterClass.getDescriptor(),
}, assigner);
internal_static_tendermint_types_Block_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_tendermint_types_Block_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tendermint_types_Block_descriptor,
new java.lang.String[] { "Header", "Data", "Evidence", "LastCommit", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.nullable);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.GoGoProtos.getDescriptor();
tendermint.types.Types.getDescriptor();
tendermint.types.EvidenceOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}