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.
main.org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: flow/legacy/entities/block_header.proto
package org.onflow.protobuf.legacy.entities;
public final class BlockHeaderOuterClass {
private BlockHeaderOuterClass() {}
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 BlockHeaderOrBuilder extends
// @@protoc_insertion_point(interface_extends:entities.BlockHeader)
com.google.protobuf.MessageOrBuilder {
/**
* bytes id = 1;
* @return The id.
*/
com.google.protobuf.ByteString getId();
/**
* bytes parent_id = 2;
* @return The parentId.
*/
com.google.protobuf.ByteString getParentId();
/**
* uint64 height = 3;
* @return The height.
*/
long getHeight();
/**
* .google.protobuf.Timestamp timestamp = 4;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
* .google.protobuf.Timestamp timestamp = 4;
* @return The timestamp.
*/
com.google.protobuf.Timestamp getTimestamp();
/**
* .google.protobuf.Timestamp timestamp = 4;
*/
com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();
}
/**
* Protobuf type {@code entities.BlockHeader}
*/
public static final class BlockHeader extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:entities.BlockHeader)
BlockHeaderOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockHeader.newBuilder() to construct.
private BlockHeader(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BlockHeader() {
id_ = com.google.protobuf.ByteString.EMPTY;
parentId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BlockHeader();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BlockHeader(
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: {
id_ = input.readBytes();
break;
}
case 18: {
parentId_ = input.readBytes();
break;
}
case 24: {
height_ = input.readUInt64();
break;
}
case 34: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (timestamp_ != null) {
subBuilder = timestamp_.toBuilder();
}
timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timestamp_);
timestamp_ = subBuilder.buildPartial();
}
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 org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.internal_static_entities_BlockHeader_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.internal_static_entities_BlockHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.class, org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString id_;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
public static final int PARENT_ID_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString parentId_;
/**
* bytes parent_id = 2;
* @return The parentId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getParentId() {
return parentId_;
}
public static final int HEIGHT_FIELD_NUMBER = 3;
private long height_;
/**
* uint64 height = 3;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp timestamp_;
/**
* .google.protobuf.Timestamp timestamp = 4;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return timestamp_ != null;
}
/**
* .google.protobuf.Timestamp timestamp = 4;
* @return The timestamp.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTimestamp() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
/**
* .google.protobuf.Timestamp timestamp = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
return getTimestamp();
}
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 (!id_.isEmpty()) {
output.writeBytes(1, id_);
}
if (!parentId_.isEmpty()) {
output.writeBytes(2, parentId_);
}
if (height_ != 0L) {
output.writeUInt64(3, height_);
}
if (timestamp_ != null) {
output.writeMessage(4, getTimestamp());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!id_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, id_);
}
if (!parentId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, parentId_);
}
if (height_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, height_);
}
if (timestamp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getTimestamp());
}
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 org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader other = (org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getParentId()
.equals(other.getParentId())) return false;
if (getHeight()
!= other.getHeight()) return false;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + PARENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getParentId().hashCode();
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeight());
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader 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 org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader 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 org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader 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(org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader 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 entities.BlockHeader}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:entities.BlockHeader)
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.internal_static_entities_BlockHeader_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.internal_static_entities_BlockHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.class, org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.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();
id_ = com.google.protobuf.ByteString.EMPTY;
parentId_ = com.google.protobuf.ByteString.EMPTY;
height_ = 0L;
if (timestampBuilder_ == null) {
timestamp_ = null;
} else {
timestamp_ = null;
timestampBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.internal_static_entities_BlockHeader_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader build() {
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader buildPartial() {
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader result = new org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader(this);
result.id_ = id_;
result.parentId_ = parentId_;
result.height_ = height_;
if (timestampBuilder_ == null) {
result.timestamp_ = timestamp_;
} else {
result.timestamp_ = timestampBuilder_.build();
}
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 org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader) {
return mergeFrom((org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader other) {
if (other == org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.getDefaultInstance()) return this;
if (other.getId() != com.google.protobuf.ByteString.EMPTY) {
setId(other.getId());
}
if (other.getParentId() != com.google.protobuf.ByteString.EMPTY) {
setParentId(other.getParentId());
}
if (other.getHeight() != 0L) {
setHeight(other.getHeight());
}
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
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 {
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
/**
* bytes id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* bytes id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
private com.google.protobuf.ByteString parentId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes parent_id = 2;
* @return The parentId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getParentId() {
return parentId_;
}
/**
* bytes parent_id = 2;
* @param value The parentId to set.
* @return This builder for chaining.
*/
public Builder setParentId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
parentId_ = value;
onChanged();
return this;
}
/**
* bytes parent_id = 2;
* @return This builder for chaining.
*/
public Builder clearParentId() {
parentId_ = getDefaultInstance().getParentId();
onChanged();
return this;
}
private long height_ ;
/**
* uint64 height = 3;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
/**
* uint64 height = 3;
* @param value The height to set.
* @return This builder for chaining.
*/
public Builder setHeight(long value) {
height_ = value;
onChanged();
return this;
}
/**
* uint64 height = 3;
* @return This builder for chaining.
*/
public Builder clearHeight() {
height_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Timestamp timestamp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_;
/**
* .google.protobuf.Timestamp timestamp = 4;
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
return timestampBuilder_ != null || timestamp_ != null;
}
/**
* .google.protobuf.Timestamp timestamp = 4;
* @return The timestamp.
*/
public com.google.protobuf.Timestamp getTimestamp() {
if (timestampBuilder_ == null) {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
} else {
return timestampBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp timestamp = 4;
*/
public Builder setTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
onChanged();
} else {
timestampBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 4;
*/
public Builder setTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
onChanged();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 4;
*/
public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (timestamp_ != null) {
timestamp_ =
com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial();
} else {
timestamp_ = value;
}
onChanged();
} else {
timestampBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 4;
*/
public Builder clearTimestamp() {
if (timestampBuilder_ == null) {
timestamp_ = null;
onChanged();
} else {
timestamp_ = null;
timestampBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp timestamp = 4;
*/
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp timestamp = 4;
*/
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
if (timestampBuilder_ != null) {
return timestampBuilder_.getMessageOrBuilder();
} else {
return timestamp_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
}
/**
* .google.protobuf.Timestamp timestamp = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTimestamp(),
getParentForChildren(),
isClean());
timestamp_ = null;
}
return timestampBuilder_;
}
@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:entities.BlockHeader)
}
// @@protoc_insertion_point(class_scope:entities.BlockHeader)
private static final org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader();
}
public static org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BlockHeader parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BlockHeader(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 org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_entities_BlockHeader_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_entities_BlockHeader_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\'flow/legacy/entities/block_header.prot" +
"o\022\010entities\032\037google/protobuf/timestamp.p" +
"roto\"k\n\013BlockHeader\022\n\n\002id\030\001 \001(\014\022\021\n\tparen" +
"t_id\030\002 \001(\014\022\016\n\006height\030\003 \001(\004\022-\n\ttimestamp\030" +
"\004 \001(\0132\032.google.protobuf.TimestampB^\n#org" +
".onflow.protobuf.legacy.entitiesZ7github" +
".com/onflow/flow/protobuf/go/flow/legacy" +
"/entitiesb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_entities_BlockHeader_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_entities_BlockHeader_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_entities_BlockHeader_descriptor,
new java.lang.String[] { "Id", "ParentId", "Height", "Timestamp", });
com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}