main.org.onflow.protobuf.entities.BlockExecutionDataOuterClass Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: flow/entities/block_execution_data.proto
package org.onflow.protobuf.entities;
public final class BlockExecutionDataOuterClass {
private BlockExecutionDataOuterClass() {}
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 BlockExecutionDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.entities.BlockExecutionData)
com.google.protobuf.MessageOrBuilder {
/**
*
* Block ID of the block that was executed.
*
*
* bytes block_id = 1;
* @return The blockId.
*/
com.google.protobuf.ByteString getBlockId();
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
java.util.List
getChunkExecutionDataList();
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData getChunkExecutionData(int index);
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
int getChunkExecutionDataCount();
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
java.util.List extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionDataOrBuilder>
getChunkExecutionDataOrBuilderList();
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionDataOrBuilder getChunkExecutionDataOrBuilder(
int index);
}
/**
*
* BlockExecutionData represents the collection of data produced while execiting the block.
*
*
* Protobuf type {@code flow.entities.BlockExecutionData}
*/
public static final class BlockExecutionData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.entities.BlockExecutionData)
BlockExecutionDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockExecutionData.newBuilder() to construct.
private BlockExecutionData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BlockExecutionData() {
blockId_ = com.google.protobuf.ByteString.EMPTY;
chunkExecutionData_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BlockExecutionData();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BlockExecutionData(
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: {
blockId_ = input.readBytes();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
chunkExecutionData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
chunkExecutionData_.add(
input.readMessage(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.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)) {
chunkExecutionData_ = java.util.Collections.unmodifiableList(chunkExecutionData_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_BlockExecutionData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_BlockExecutionData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.class, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.Builder.class);
}
public static final int BLOCK_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString blockId_;
/**
*
* Block ID of the block that was executed.
*
*
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
public static final int CHUNK_EXECUTION_DATA_FIELD_NUMBER = 2;
private java.util.List chunkExecutionData_;
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
@java.lang.Override
public java.util.List getChunkExecutionDataList() {
return chunkExecutionData_;
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionDataOrBuilder>
getChunkExecutionDataOrBuilderList() {
return chunkExecutionData_;
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
@java.lang.Override
public int getChunkExecutionDataCount() {
return chunkExecutionData_.size();
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData getChunkExecutionData(int index) {
return chunkExecutionData_.get(index);
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionDataOrBuilder getChunkExecutionDataOrBuilder(
int index) {
return chunkExecutionData_.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 {
if (!blockId_.isEmpty()) {
output.writeBytes(1, blockId_);
}
for (int i = 0; i < chunkExecutionData_.size(); i++) {
output.writeMessage(2, chunkExecutionData_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!blockId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, blockId_);
}
for (int i = 0; i < chunkExecutionData_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, chunkExecutionData_.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 org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData)) {
return super.equals(obj);
}
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData other = (org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData) obj;
if (!getBlockId()
.equals(other.getBlockId())) return false;
if (!getChunkExecutionDataList()
.equals(other.getChunkExecutionDataList())) 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) + BLOCK_ID_FIELD_NUMBER;
hash = (53 * hash) + getBlockId().hashCode();
if (getChunkExecutionDataCount() > 0) {
hash = (37 * hash) + CHUNK_EXECUTION_DATA_FIELD_NUMBER;
hash = (53 * hash) + getChunkExecutionDataList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData 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.entities.BlockExecutionDataOuterClass.BlockExecutionData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData 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.entities.BlockExecutionDataOuterClass.BlockExecutionData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData 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.entities.BlockExecutionDataOuterClass.BlockExecutionData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData 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.entities.BlockExecutionDataOuterClass.BlockExecutionData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData 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.entities.BlockExecutionDataOuterClass.BlockExecutionData 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;
}
/**
*
* BlockExecutionData represents the collection of data produced while execiting the block.
*
*
* Protobuf type {@code flow.entities.BlockExecutionData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.entities.BlockExecutionData)
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_BlockExecutionData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_BlockExecutionData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.class, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.Builder.class);
}
// Construct using org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getChunkExecutionDataFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
blockId_ = com.google.protobuf.ByteString.EMPTY;
if (chunkExecutionDataBuilder_ == null) {
chunkExecutionData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
chunkExecutionDataBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_BlockExecutionData_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData getDefaultInstanceForType() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData build() {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData buildPartial() {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData result = new org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData(this);
int from_bitField0_ = bitField0_;
result.blockId_ = blockId_;
if (chunkExecutionDataBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
chunkExecutionData_ = java.util.Collections.unmodifiableList(chunkExecutionData_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.chunkExecutionData_ = chunkExecutionData_;
} else {
result.chunkExecutionData_ = chunkExecutionDataBuilder_.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.entities.BlockExecutionDataOuterClass.BlockExecutionData) {
return mergeFrom((org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData other) {
if (other == org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.getDefaultInstance()) return this;
if (other.getBlockId() != com.google.protobuf.ByteString.EMPTY) {
setBlockId(other.getBlockId());
}
if (chunkExecutionDataBuilder_ == null) {
if (!other.chunkExecutionData_.isEmpty()) {
if (chunkExecutionData_.isEmpty()) {
chunkExecutionData_ = other.chunkExecutionData_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureChunkExecutionDataIsMutable();
chunkExecutionData_.addAll(other.chunkExecutionData_);
}
onChanged();
}
} else {
if (!other.chunkExecutionData_.isEmpty()) {
if (chunkExecutionDataBuilder_.isEmpty()) {
chunkExecutionDataBuilder_.dispose();
chunkExecutionDataBuilder_ = null;
chunkExecutionData_ = other.chunkExecutionData_;
bitField0_ = (bitField0_ & ~0x00000001);
chunkExecutionDataBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChunkExecutionDataFieldBuilder() : null;
} else {
chunkExecutionDataBuilder_.addAllMessages(other.chunkExecutionData_);
}
}
}
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.entities.BlockExecutionDataOuterClass.BlockExecutionData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString blockId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Block ID of the block that was executed.
*
*
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
/**
*
* Block ID of the block that was executed.
*
*
* bytes block_id = 1;
* @param value The blockId to set.
* @return This builder for chaining.
*/
public Builder setBlockId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
blockId_ = value;
onChanged();
return this;
}
/**
*
* Block ID of the block that was executed.
*
*
* bytes block_id = 1;
* @return This builder for chaining.
*/
public Builder clearBlockId() {
blockId_ = getDefaultInstance().getBlockId();
onChanged();
return this;
}
private java.util.List chunkExecutionData_ =
java.util.Collections.emptyList();
private void ensureChunkExecutionDataIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
chunkExecutionData_ = new java.util.ArrayList(chunkExecutionData_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionDataOrBuilder> chunkExecutionDataBuilder_;
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public java.util.List getChunkExecutionDataList() {
if (chunkExecutionDataBuilder_ == null) {
return java.util.Collections.unmodifiableList(chunkExecutionData_);
} else {
return chunkExecutionDataBuilder_.getMessageList();
}
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public int getChunkExecutionDataCount() {
if (chunkExecutionDataBuilder_ == null) {
return chunkExecutionData_.size();
} else {
return chunkExecutionDataBuilder_.getCount();
}
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData getChunkExecutionData(int index) {
if (chunkExecutionDataBuilder_ == null) {
return chunkExecutionData_.get(index);
} else {
return chunkExecutionDataBuilder_.getMessage(index);
}
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public Builder setChunkExecutionData(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData value) {
if (chunkExecutionDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChunkExecutionDataIsMutable();
chunkExecutionData_.set(index, value);
onChanged();
} else {
chunkExecutionDataBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public Builder setChunkExecutionData(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.Builder builderForValue) {
if (chunkExecutionDataBuilder_ == null) {
ensureChunkExecutionDataIsMutable();
chunkExecutionData_.set(index, builderForValue.build());
onChanged();
} else {
chunkExecutionDataBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public Builder addChunkExecutionData(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData value) {
if (chunkExecutionDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChunkExecutionDataIsMutable();
chunkExecutionData_.add(value);
onChanged();
} else {
chunkExecutionDataBuilder_.addMessage(value);
}
return this;
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public Builder addChunkExecutionData(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData value) {
if (chunkExecutionDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChunkExecutionDataIsMutable();
chunkExecutionData_.add(index, value);
onChanged();
} else {
chunkExecutionDataBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public Builder addChunkExecutionData(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.Builder builderForValue) {
if (chunkExecutionDataBuilder_ == null) {
ensureChunkExecutionDataIsMutable();
chunkExecutionData_.add(builderForValue.build());
onChanged();
} else {
chunkExecutionDataBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public Builder addChunkExecutionData(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.Builder builderForValue) {
if (chunkExecutionDataBuilder_ == null) {
ensureChunkExecutionDataIsMutable();
chunkExecutionData_.add(index, builderForValue.build());
onChanged();
} else {
chunkExecutionDataBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public Builder addAllChunkExecutionData(
java.lang.Iterable extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData> values) {
if (chunkExecutionDataBuilder_ == null) {
ensureChunkExecutionDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, chunkExecutionData_);
onChanged();
} else {
chunkExecutionDataBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public Builder clearChunkExecutionData() {
if (chunkExecutionDataBuilder_ == null) {
chunkExecutionData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
chunkExecutionDataBuilder_.clear();
}
return this;
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public Builder removeChunkExecutionData(int index) {
if (chunkExecutionDataBuilder_ == null) {
ensureChunkExecutionDataIsMutable();
chunkExecutionData_.remove(index);
onChanged();
} else {
chunkExecutionDataBuilder_.remove(index);
}
return this;
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.Builder getChunkExecutionDataBuilder(
int index) {
return getChunkExecutionDataFieldBuilder().getBuilder(index);
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionDataOrBuilder getChunkExecutionDataOrBuilder(
int index) {
if (chunkExecutionDataBuilder_ == null) {
return chunkExecutionData_.get(index); } else {
return chunkExecutionDataBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public java.util.List extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionDataOrBuilder>
getChunkExecutionDataOrBuilderList() {
if (chunkExecutionDataBuilder_ != null) {
return chunkExecutionDataBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(chunkExecutionData_);
}
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.Builder addChunkExecutionDataBuilder() {
return getChunkExecutionDataFieldBuilder().addBuilder(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.getDefaultInstance());
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.Builder addChunkExecutionDataBuilder(
int index) {
return getChunkExecutionDataFieldBuilder().addBuilder(
index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.getDefaultInstance());
}
/**
*
* Ordered list of ChunkExecutionData produced while executing the block.
* Note: there will be one ChunkExecutionData per collection in the block, plus one for the
* service chunk. The service chunk is executed last and is always the last chunk in the list.
*
*
* repeated .flow.entities.ChunkExecutionData chunk_execution_data = 2;
*/
public java.util.List
getChunkExecutionDataBuilderList() {
return getChunkExecutionDataFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionDataOrBuilder>
getChunkExecutionDataFieldBuilder() {
if (chunkExecutionDataBuilder_ == null) {
chunkExecutionDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionDataOrBuilder>(
chunkExecutionData_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
chunkExecutionData_ = null;
}
return chunkExecutionDataBuilder_;
}
@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:flow.entities.BlockExecutionData)
}
// @@protoc_insertion_point(class_scope:flow.entities.BlockExecutionData)
private static final org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData();
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BlockExecutionData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BlockExecutionData(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.entities.BlockExecutionDataOuterClass.BlockExecutionData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ChunkExecutionDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.entities.ChunkExecutionData)
com.google.protobuf.MessageOrBuilder {
/**
*
* Ordered list of transactions included in the collection that was executed in the chunk.
*
*
* .flow.entities.ExecutionDataCollection collection = 1;
* @return Whether the collection field is set.
*/
boolean hasCollection();
/**
*
* Ordered list of transactions included in the collection that was executed in the chunk.
*
*
* .flow.entities.ExecutionDataCollection collection = 1;
* @return The collection.
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection getCollection();
/**
*
* Ordered list of transactions included in the collection that was executed in the chunk.
*
*
* .flow.entities.ExecutionDataCollection collection = 1;
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollectionOrBuilder getCollectionOrBuilder();
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
java.util.List
getEventsList();
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
org.onflow.protobuf.entities.EventOuterClass.Event getEvents(int index);
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
int getEventsCount();
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
java.util.List extends org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList();
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index);
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* .flow.entities.TrieUpdate trieUpdate = 3;
* @return Whether the trieUpdate field is set.
*/
boolean hasTrieUpdate();
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* .flow.entities.TrieUpdate trieUpdate = 3;
* @return The trieUpdate.
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate getTrieUpdate();
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* .flow.entities.TrieUpdate trieUpdate = 3;
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdateOrBuilder getTrieUpdateOrBuilder();
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
java.util.List
getTransactionResultsList();
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult getTransactionResults(int index);
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
int getTransactionResultsCount();
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
java.util.List extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResultOrBuilder>
getTransactionResultsOrBuilderList();
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResultOrBuilder getTransactionResultsOrBuilder(
int index);
}
/**
*
* ChunkExecutionData represents the collection of data produced while executing a chunk.
*
*
* Protobuf type {@code flow.entities.ChunkExecutionData}
*/
public static final class ChunkExecutionData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.entities.ChunkExecutionData)
ChunkExecutionDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use ChunkExecutionData.newBuilder() to construct.
private ChunkExecutionData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ChunkExecutionData() {
events_ = java.util.Collections.emptyList();
transactionResults_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ChunkExecutionData();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ChunkExecutionData(
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: {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.Builder subBuilder = null;
if (collection_ != null) {
subBuilder = collection_.toBuilder();
}
collection_ = input.readMessage(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(collection_);
collection_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
events_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
events_.add(
input.readMessage(org.onflow.protobuf.entities.EventOuterClass.Event.parser(), extensionRegistry));
break;
}
case 26: {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.Builder subBuilder = null;
if (trieUpdate_ != null) {
subBuilder = trieUpdate_.toBuilder();
}
trieUpdate_ = input.readMessage(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(trieUpdate_);
trieUpdate_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
transactionResults_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
transactionResults_.add(
input.readMessage(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.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)) {
events_ = java.util.Collections.unmodifiableList(events_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
transactionResults_ = java.util.Collections.unmodifiableList(transactionResults_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_ChunkExecutionData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_ChunkExecutionData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.class, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.Builder.class);
}
public static final int COLLECTION_FIELD_NUMBER = 1;
private org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection collection_;
/**
*
* Ordered list of transactions included in the collection that was executed in the chunk.
*
*
* .flow.entities.ExecutionDataCollection collection = 1;
* @return Whether the collection field is set.
*/
@java.lang.Override
public boolean hasCollection() {
return collection_ != null;
}
/**
*
* Ordered list of transactions included in the collection that was executed in the chunk.
*
*
* .flow.entities.ExecutionDataCollection collection = 1;
* @return The collection.
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection getCollection() {
return collection_ == null ? org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.getDefaultInstance() : collection_;
}
/**
*
* Ordered list of transactions included in the collection that was executed in the chunk.
*
*
* .flow.entities.ExecutionDataCollection collection = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollectionOrBuilder getCollectionOrBuilder() {
return getCollection();
}
public static final int EVENTS_FIELD_NUMBER = 2;
private java.util.List events_;
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.Event getEvents(int index) {
return events_.get(index);
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index) {
return events_.get(index);
}
public static final int TRIEUPDATE_FIELD_NUMBER = 3;
private org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate trieUpdate_;
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* .flow.entities.TrieUpdate trieUpdate = 3;
* @return Whether the trieUpdate field is set.
*/
@java.lang.Override
public boolean hasTrieUpdate() {
return trieUpdate_ != null;
}
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* .flow.entities.TrieUpdate trieUpdate = 3;
* @return The trieUpdate.
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate getTrieUpdate() {
return trieUpdate_ == null ? org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.getDefaultInstance() : trieUpdate_;
}
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* .flow.entities.TrieUpdate trieUpdate = 3;
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdateOrBuilder getTrieUpdateOrBuilder() {
return getTrieUpdate();
}
public static final int TRANSACTION_RESULTS_FIELD_NUMBER = 4;
private java.util.List transactionResults_;
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
@java.lang.Override
public java.util.List getTransactionResultsList() {
return transactionResults_;
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResultOrBuilder>
getTransactionResultsOrBuilderList() {
return transactionResults_;
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
@java.lang.Override
public int getTransactionResultsCount() {
return transactionResults_.size();
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult getTransactionResults(int index) {
return transactionResults_.get(index);
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResultOrBuilder getTransactionResultsOrBuilder(
int index) {
return transactionResults_.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 {
if (collection_ != null) {
output.writeMessage(1, getCollection());
}
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(2, events_.get(i));
}
if (trieUpdate_ != null) {
output.writeMessage(3, getTrieUpdate());
}
for (int i = 0; i < transactionResults_.size(); i++) {
output.writeMessage(4, transactionResults_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (collection_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCollection());
}
for (int i = 0; i < events_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, events_.get(i));
}
if (trieUpdate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTrieUpdate());
}
for (int i = 0; i < transactionResults_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, transactionResults_.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 org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData)) {
return super.equals(obj);
}
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData other = (org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData) obj;
if (hasCollection() != other.hasCollection()) return false;
if (hasCollection()) {
if (!getCollection()
.equals(other.getCollection())) return false;
}
if (!getEventsList()
.equals(other.getEventsList())) return false;
if (hasTrieUpdate() != other.hasTrieUpdate()) return false;
if (hasTrieUpdate()) {
if (!getTrieUpdate()
.equals(other.getTrieUpdate())) return false;
}
if (!getTransactionResultsList()
.equals(other.getTransactionResultsList())) 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 (hasCollection()) {
hash = (37 * hash) + COLLECTION_FIELD_NUMBER;
hash = (53 * hash) + getCollection().hashCode();
}
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
if (hasTrieUpdate()) {
hash = (37 * hash) + TRIEUPDATE_FIELD_NUMBER;
hash = (53 * hash) + getTrieUpdate().hashCode();
}
if (getTransactionResultsCount() > 0) {
hash = (37 * hash) + TRANSACTION_RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getTransactionResultsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData 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.entities.BlockExecutionDataOuterClass.ChunkExecutionData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData 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.entities.BlockExecutionDataOuterClass.ChunkExecutionData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData 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.entities.BlockExecutionDataOuterClass.ChunkExecutionData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData 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.entities.BlockExecutionDataOuterClass.ChunkExecutionData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData 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.entities.BlockExecutionDataOuterClass.ChunkExecutionData 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;
}
/**
*
* ChunkExecutionData represents the collection of data produced while executing a chunk.
*
*
* Protobuf type {@code flow.entities.ChunkExecutionData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.entities.ChunkExecutionData)
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_ChunkExecutionData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_ChunkExecutionData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.class, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.Builder.class);
}
// Construct using org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEventsFieldBuilder();
getTransactionResultsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (collectionBuilder_ == null) {
collection_ = null;
} else {
collection_ = null;
collectionBuilder_ = null;
}
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
eventsBuilder_.clear();
}
if (trieUpdateBuilder_ == null) {
trieUpdate_ = null;
} else {
trieUpdate_ = null;
trieUpdateBuilder_ = null;
}
if (transactionResultsBuilder_ == null) {
transactionResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
transactionResultsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_ChunkExecutionData_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData getDefaultInstanceForType() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData build() {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData buildPartial() {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData result = new org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData(this);
int from_bitField0_ = bitField0_;
if (collectionBuilder_ == null) {
result.collection_ = collection_;
} else {
result.collection_ = collectionBuilder_.build();
}
if (eventsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.events_ = events_;
} else {
result.events_ = eventsBuilder_.build();
}
if (trieUpdateBuilder_ == null) {
result.trieUpdate_ = trieUpdate_;
} else {
result.trieUpdate_ = trieUpdateBuilder_.build();
}
if (transactionResultsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
transactionResults_ = java.util.Collections.unmodifiableList(transactionResults_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.transactionResults_ = transactionResults_;
} else {
result.transactionResults_ = transactionResultsBuilder_.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.entities.BlockExecutionDataOuterClass.ChunkExecutionData) {
return mergeFrom((org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData other) {
if (other == org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData.getDefaultInstance()) return this;
if (other.hasCollection()) {
mergeCollection(other.getCollection());
}
if (eventsBuilder_ == null) {
if (!other.events_.isEmpty()) {
if (events_.isEmpty()) {
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEventsIsMutable();
events_.addAll(other.events_);
}
onChanged();
}
} else {
if (!other.events_.isEmpty()) {
if (eventsBuilder_.isEmpty()) {
eventsBuilder_.dispose();
eventsBuilder_ = null;
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
eventsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEventsFieldBuilder() : null;
} else {
eventsBuilder_.addAllMessages(other.events_);
}
}
}
if (other.hasTrieUpdate()) {
mergeTrieUpdate(other.getTrieUpdate());
}
if (transactionResultsBuilder_ == null) {
if (!other.transactionResults_.isEmpty()) {
if (transactionResults_.isEmpty()) {
transactionResults_ = other.transactionResults_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTransactionResultsIsMutable();
transactionResults_.addAll(other.transactionResults_);
}
onChanged();
}
} else {
if (!other.transactionResults_.isEmpty()) {
if (transactionResultsBuilder_.isEmpty()) {
transactionResultsBuilder_.dispose();
transactionResultsBuilder_ = null;
transactionResults_ = other.transactionResults_;
bitField0_ = (bitField0_ & ~0x00000002);
transactionResultsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTransactionResultsFieldBuilder() : null;
} else {
transactionResultsBuilder_.addAllMessages(other.transactionResults_);
}
}
}
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.entities.BlockExecutionDataOuterClass.ChunkExecutionData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection collection_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollectionOrBuilder> collectionBuilder_;
/**
*
* Ordered list of transactions included in the collection that was executed in the chunk.
*
*
* .flow.entities.ExecutionDataCollection collection = 1;
* @return Whether the collection field is set.
*/
public boolean hasCollection() {
return collectionBuilder_ != null || collection_ != null;
}
/**
*
* Ordered list of transactions included in the collection that was executed in the chunk.
*
*
* .flow.entities.ExecutionDataCollection collection = 1;
* @return The collection.
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection getCollection() {
if (collectionBuilder_ == null) {
return collection_ == null ? org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.getDefaultInstance() : collection_;
} else {
return collectionBuilder_.getMessage();
}
}
/**
*
* Ordered list of transactions included in the collection that was executed in the chunk.
*
*
* .flow.entities.ExecutionDataCollection collection = 1;
*/
public Builder setCollection(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection value) {
if (collectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collection_ = value;
onChanged();
} else {
collectionBuilder_.setMessage(value);
}
return this;
}
/**
*
* Ordered list of transactions included in the collection that was executed in the chunk.
*
*
* .flow.entities.ExecutionDataCollection collection = 1;
*/
public Builder setCollection(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.Builder builderForValue) {
if (collectionBuilder_ == null) {
collection_ = builderForValue.build();
onChanged();
} else {
collectionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Ordered list of transactions included in the collection that was executed in the chunk.
*
*
* .flow.entities.ExecutionDataCollection collection = 1;
*/
public Builder mergeCollection(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection value) {
if (collectionBuilder_ == null) {
if (collection_ != null) {
collection_ =
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.newBuilder(collection_).mergeFrom(value).buildPartial();
} else {
collection_ = value;
}
onChanged();
} else {
collectionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Ordered list of transactions included in the collection that was executed in the chunk.
*
*
* .flow.entities.ExecutionDataCollection collection = 1;
*/
public Builder clearCollection() {
if (collectionBuilder_ == null) {
collection_ = null;
onChanged();
} else {
collection_ = null;
collectionBuilder_ = null;
}
return this;
}
/**
*
* Ordered list of transactions included in the collection that was executed in the chunk.
*
*
* .flow.entities.ExecutionDataCollection collection = 1;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.Builder getCollectionBuilder() {
onChanged();
return getCollectionFieldBuilder().getBuilder();
}
/**
*
* Ordered list of transactions included in the collection that was executed in the chunk.
*
*
* .flow.entities.ExecutionDataCollection collection = 1;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollectionOrBuilder getCollectionOrBuilder() {
if (collectionBuilder_ != null) {
return collectionBuilder_.getMessageOrBuilder();
} else {
return collection_ == null ?
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.getDefaultInstance() : collection_;
}
}
/**
*
* Ordered list of transactions included in the collection that was executed in the chunk.
*
*
* .flow.entities.ExecutionDataCollection collection = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollectionOrBuilder>
getCollectionFieldBuilder() {
if (collectionBuilder_ == null) {
collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollectionOrBuilder>(
getCollection(),
getParentForChildren(),
isClean());
collection_ = null;
}
return collectionBuilder_;
}
private java.util.List events_ =
java.util.Collections.emptyList();
private void ensureEventsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
events_ = new java.util.ArrayList(events_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.EventOuterClass.Event, org.onflow.protobuf.entities.EventOuterClass.Event.Builder, org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder> eventsBuilder_;
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public java.util.List getEventsList() {
if (eventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(events_);
} else {
return eventsBuilder_.getMessageList();
}
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public org.onflow.protobuf.entities.EventOuterClass.Event getEvents(int index) {
if (eventsBuilder_ == null) {
return events_.get(index);
} else {
return eventsBuilder_.getMessage(index);
}
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public Builder setEvents(
int index, org.onflow.protobuf.entities.EventOuterClass.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.set(index, value);
onChanged();
} else {
eventsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public Builder setEvents(
int index, org.onflow.protobuf.entities.EventOuterClass.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.set(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public Builder addEvents(org.onflow.protobuf.entities.EventOuterClass.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(value);
onChanged();
} else {
eventsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public Builder addEvents(
int index, org.onflow.protobuf.entities.EventOuterClass.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(index, value);
onChanged();
} else {
eventsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public Builder addEvents(
org.onflow.protobuf.entities.EventOuterClass.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public Builder addEvents(
int index, org.onflow.protobuf.entities.EventOuterClass.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public Builder addAllEvents(
java.lang.Iterable extends org.onflow.protobuf.entities.EventOuterClass.Event> values) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, events_);
onChanged();
} else {
eventsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public Builder clearEvents() {
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
eventsBuilder_.clear();
}
return this;
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public Builder removeEvents(int index) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.remove(index);
onChanged();
} else {
eventsBuilder_.remove(index);
}
return this;
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public org.onflow.protobuf.entities.EventOuterClass.Event.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public java.util.List extends org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList() {
if (eventsBuilder_ != null) {
return eventsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(events_);
}
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public org.onflow.protobuf.entities.EventOuterClass.Event.Builder addEventsBuilder() {
return getEventsFieldBuilder().addBuilder(
org.onflow.protobuf.entities.EventOuterClass.Event.getDefaultInstance());
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public org.onflow.protobuf.entities.EventOuterClass.Event.Builder addEventsBuilder(
int index) {
return getEventsFieldBuilder().addBuilder(
index, org.onflow.protobuf.entities.EventOuterClass.Event.getDefaultInstance());
}
/**
*
* Events emitted by transactions in the collection.
* Note: events listed in the last ChunkExecutionData in the BlockExecutionData were emitted by
* the service transaction. Some, but not all, of these events are service events.
*
*
* repeated .flow.entities.Event events = 2;
*/
public java.util.List
getEventsBuilderList() {
return getEventsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.EventOuterClass.Event, org.onflow.protobuf.entities.EventOuterClass.Event.Builder, org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder>
getEventsFieldBuilder() {
if (eventsBuilder_ == null) {
eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.EventOuterClass.Event, org.onflow.protobuf.entities.EventOuterClass.Event.Builder, org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder>(
events_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
events_ = null;
}
return eventsBuilder_;
}
private org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate trieUpdate_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdateOrBuilder> trieUpdateBuilder_;
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* .flow.entities.TrieUpdate trieUpdate = 3;
* @return Whether the trieUpdate field is set.
*/
public boolean hasTrieUpdate() {
return trieUpdateBuilder_ != null || trieUpdate_ != null;
}
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* .flow.entities.TrieUpdate trieUpdate = 3;
* @return The trieUpdate.
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate getTrieUpdate() {
if (trieUpdateBuilder_ == null) {
return trieUpdate_ == null ? org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.getDefaultInstance() : trieUpdate_;
} else {
return trieUpdateBuilder_.getMessage();
}
}
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* .flow.entities.TrieUpdate trieUpdate = 3;
*/
public Builder setTrieUpdate(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate value) {
if (trieUpdateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
trieUpdate_ = value;
onChanged();
} else {
trieUpdateBuilder_.setMessage(value);
}
return this;
}
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* .flow.entities.TrieUpdate trieUpdate = 3;
*/
public Builder setTrieUpdate(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.Builder builderForValue) {
if (trieUpdateBuilder_ == null) {
trieUpdate_ = builderForValue.build();
onChanged();
} else {
trieUpdateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* .flow.entities.TrieUpdate trieUpdate = 3;
*/
public Builder mergeTrieUpdate(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate value) {
if (trieUpdateBuilder_ == null) {
if (trieUpdate_ != null) {
trieUpdate_ =
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.newBuilder(trieUpdate_).mergeFrom(value).buildPartial();
} else {
trieUpdate_ = value;
}
onChanged();
} else {
trieUpdateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* .flow.entities.TrieUpdate trieUpdate = 3;
*/
public Builder clearTrieUpdate() {
if (trieUpdateBuilder_ == null) {
trieUpdate_ = null;
onChanged();
} else {
trieUpdate_ = null;
trieUpdateBuilder_ = null;
}
return this;
}
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* .flow.entities.TrieUpdate trieUpdate = 3;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.Builder getTrieUpdateBuilder() {
onChanged();
return getTrieUpdateFieldBuilder().getBuilder();
}
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* .flow.entities.TrieUpdate trieUpdate = 3;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdateOrBuilder getTrieUpdateOrBuilder() {
if (trieUpdateBuilder_ != null) {
return trieUpdateBuilder_.getMessageOrBuilder();
} else {
return trieUpdate_ == null ?
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.getDefaultInstance() : trieUpdate_;
}
}
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* .flow.entities.TrieUpdate trieUpdate = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdateOrBuilder>
getTrieUpdateFieldBuilder() {
if (trieUpdateBuilder_ == null) {
trieUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdateOrBuilder>(
getTrieUpdate(),
getParentForChildren(),
isClean());
trieUpdate_ = null;
}
return trieUpdateBuilder_;
}
private java.util.List transactionResults_ =
java.util.Collections.emptyList();
private void ensureTransactionResultsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
transactionResults_ = new java.util.ArrayList(transactionResults_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResultOrBuilder> transactionResultsBuilder_;
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public java.util.List getTransactionResultsList() {
if (transactionResultsBuilder_ == null) {
return java.util.Collections.unmodifiableList(transactionResults_);
} else {
return transactionResultsBuilder_.getMessageList();
}
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public int getTransactionResultsCount() {
if (transactionResultsBuilder_ == null) {
return transactionResults_.size();
} else {
return transactionResultsBuilder_.getCount();
}
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult getTransactionResults(int index) {
if (transactionResultsBuilder_ == null) {
return transactionResults_.get(index);
} else {
return transactionResultsBuilder_.getMessage(index);
}
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public Builder setTransactionResults(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult value) {
if (transactionResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionResultsIsMutable();
transactionResults_.set(index, value);
onChanged();
} else {
transactionResultsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public Builder setTransactionResults(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.Builder builderForValue) {
if (transactionResultsBuilder_ == null) {
ensureTransactionResultsIsMutable();
transactionResults_.set(index, builderForValue.build());
onChanged();
} else {
transactionResultsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public Builder addTransactionResults(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult value) {
if (transactionResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionResultsIsMutable();
transactionResults_.add(value);
onChanged();
} else {
transactionResultsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public Builder addTransactionResults(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult value) {
if (transactionResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionResultsIsMutable();
transactionResults_.add(index, value);
onChanged();
} else {
transactionResultsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public Builder addTransactionResults(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.Builder builderForValue) {
if (transactionResultsBuilder_ == null) {
ensureTransactionResultsIsMutable();
transactionResults_.add(builderForValue.build());
onChanged();
} else {
transactionResultsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public Builder addTransactionResults(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.Builder builderForValue) {
if (transactionResultsBuilder_ == null) {
ensureTransactionResultsIsMutable();
transactionResults_.add(index, builderForValue.build());
onChanged();
} else {
transactionResultsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public Builder addAllTransactionResults(
java.lang.Iterable extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult> values) {
if (transactionResultsBuilder_ == null) {
ensureTransactionResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, transactionResults_);
onChanged();
} else {
transactionResultsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public Builder clearTransactionResults() {
if (transactionResultsBuilder_ == null) {
transactionResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
transactionResultsBuilder_.clear();
}
return this;
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public Builder removeTransactionResults(int index) {
if (transactionResultsBuilder_ == null) {
ensureTransactionResultsIsMutable();
transactionResults_.remove(index);
onChanged();
} else {
transactionResultsBuilder_.remove(index);
}
return this;
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.Builder getTransactionResultsBuilder(
int index) {
return getTransactionResultsFieldBuilder().getBuilder(index);
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResultOrBuilder getTransactionResultsOrBuilder(
int index) {
if (transactionResultsBuilder_ == null) {
return transactionResults_.get(index); } else {
return transactionResultsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public java.util.List extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResultOrBuilder>
getTransactionResultsOrBuilderList() {
if (transactionResultsBuilder_ != null) {
return transactionResultsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(transactionResults_);
}
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.Builder addTransactionResultsBuilder() {
return getTransactionResultsFieldBuilder().addBuilder(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.getDefaultInstance());
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.Builder addTransactionResultsBuilder(
int index) {
return getTransactionResultsFieldBuilder().addBuilder(
index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.getDefaultInstance());
}
/**
*
* Transaction results produced by executing the collection.
* Note: these are not the same type of results returned by other RPCs. These results are sepcific
* to execution data. The most notable difference is they only include a boolean value to indicate
* whether or not an error was encountered during execution, not the error itself.
*
*
* repeated .flow.entities.ExecutionDataTransactionResult transaction_results = 4;
*/
public java.util.List
getTransactionResultsBuilderList() {
return getTransactionResultsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResultOrBuilder>
getTransactionResultsFieldBuilder() {
if (transactionResultsBuilder_ == null) {
transactionResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResultOrBuilder>(
transactionResults_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
transactionResults_ = null;
}
return transactionResultsBuilder_;
}
@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:flow.entities.ChunkExecutionData)
}
// @@protoc_insertion_point(class_scope:flow.entities.ChunkExecutionData)
private static final org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData();
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ChunkExecutionData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ChunkExecutionData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ChunkExecutionData(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.entities.BlockExecutionDataOuterClass.ChunkExecutionData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecutionDataCollectionOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.entities.ExecutionDataCollection)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
java.util.List
getTransactionsList();
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
org.onflow.protobuf.entities.TransactionOuterClass.Transaction getTransactions(int index);
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
int getTransactionsCount();
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
java.util.List extends org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionsOrBuilderList();
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder getTransactionsOrBuilder(
int index);
}
/**
*
* ExecutionDataCollection represents the collection of transactions that were executed within a chunk.
* Note: this is not the same type as the entities.Collection.
*
*
* Protobuf type {@code flow.entities.ExecutionDataCollection}
*/
public static final class ExecutionDataCollection extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.entities.ExecutionDataCollection)
ExecutionDataCollectionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecutionDataCollection.newBuilder() to construct.
private ExecutionDataCollection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecutionDataCollection() {
transactions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecutionDataCollection();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecutionDataCollection(
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)) {
transactions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
transactions_.add(
input.readMessage(org.onflow.protobuf.entities.TransactionOuterClass.Transaction.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)) {
transactions_ = java.util.Collections.unmodifiableList(transactions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_ExecutionDataCollection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_ExecutionDataCollection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.class, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.Builder.class);
}
public static final int TRANSACTIONS_FIELD_NUMBER = 1;
private java.util.List transactions_;
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
@java.lang.Override
public java.util.List getTransactionsList() {
return transactions_;
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionsOrBuilderList() {
return transactions_;
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
@java.lang.Override
public int getTransactionsCount() {
return transactions_.size();
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction getTransactions(int index) {
return transactions_.get(index);
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder getTransactionsOrBuilder(
int index) {
return transactions_.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 < transactions_.size(); i++) {
output.writeMessage(1, transactions_.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 < transactions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, transactions_.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 org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection)) {
return super.equals(obj);
}
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection other = (org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection) obj;
if (!getTransactionsList()
.equals(other.getTransactionsList())) 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 (getTransactionsCount() > 0) {
hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getTransactionsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection 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.entities.BlockExecutionDataOuterClass.ExecutionDataCollection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection 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.entities.BlockExecutionDataOuterClass.ExecutionDataCollection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection 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.entities.BlockExecutionDataOuterClass.ExecutionDataCollection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection 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.entities.BlockExecutionDataOuterClass.ExecutionDataCollection parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection 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.entities.BlockExecutionDataOuterClass.ExecutionDataCollection 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;
}
/**
*
* ExecutionDataCollection represents the collection of transactions that were executed within a chunk.
* Note: this is not the same type as the entities.Collection.
*
*
* Protobuf type {@code flow.entities.ExecutionDataCollection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.entities.ExecutionDataCollection)
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_ExecutionDataCollection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_ExecutionDataCollection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.class, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.Builder.class);
}
// Construct using org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTransactionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (transactionsBuilder_ == null) {
transactions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
transactionsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_ExecutionDataCollection_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection getDefaultInstanceForType() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection build() {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection buildPartial() {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection result = new org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection(this);
int from_bitField0_ = bitField0_;
if (transactionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
transactions_ = java.util.Collections.unmodifiableList(transactions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.transactions_ = transactions_;
} else {
result.transactions_ = transactionsBuilder_.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.entities.BlockExecutionDataOuterClass.ExecutionDataCollection) {
return mergeFrom((org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection other) {
if (other == org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection.getDefaultInstance()) return this;
if (transactionsBuilder_ == null) {
if (!other.transactions_.isEmpty()) {
if (transactions_.isEmpty()) {
transactions_ = other.transactions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTransactionsIsMutable();
transactions_.addAll(other.transactions_);
}
onChanged();
}
} else {
if (!other.transactions_.isEmpty()) {
if (transactionsBuilder_.isEmpty()) {
transactionsBuilder_.dispose();
transactionsBuilder_ = null;
transactions_ = other.transactions_;
bitField0_ = (bitField0_ & ~0x00000001);
transactionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTransactionsFieldBuilder() : null;
} else {
transactionsBuilder_.addAllMessages(other.transactions_);
}
}
}
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.entities.BlockExecutionDataOuterClass.ExecutionDataCollection parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List transactions_ =
java.util.Collections.emptyList();
private void ensureTransactionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
transactions_ = new java.util.ArrayList(transactions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder> transactionsBuilder_;
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public java.util.List getTransactionsList() {
if (transactionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(transactions_);
} else {
return transactionsBuilder_.getMessageList();
}
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public int getTransactionsCount() {
if (transactionsBuilder_ == null) {
return transactions_.size();
} else {
return transactionsBuilder_.getCount();
}
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction getTransactions(int index) {
if (transactionsBuilder_ == null) {
return transactions_.get(index);
} else {
return transactionsBuilder_.getMessage(index);
}
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder setTransactions(
int index, org.onflow.protobuf.entities.TransactionOuterClass.Transaction value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.set(index, value);
onChanged();
} else {
transactionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder setTransactions(
int index, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.set(index, builderForValue.build());
onChanged();
} else {
transactionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder addTransactions(org.onflow.protobuf.entities.TransactionOuterClass.Transaction value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.add(value);
onChanged();
} else {
transactionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder addTransactions(
int index, org.onflow.protobuf.entities.TransactionOuterClass.Transaction value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.add(index, value);
onChanged();
} else {
transactionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder addTransactions(
org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.add(builderForValue.build());
onChanged();
} else {
transactionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder addTransactions(
int index, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.add(index, builderForValue.build());
onChanged();
} else {
transactionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder addAllTransactions(
java.lang.Iterable extends org.onflow.protobuf.entities.TransactionOuterClass.Transaction> values) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, transactions_);
onChanged();
} else {
transactionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder clearTransactions() {
if (transactionsBuilder_ == null) {
transactions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
transactionsBuilder_.clear();
}
return this;
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder removeTransactions(int index) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.remove(index);
onChanged();
} else {
transactionsBuilder_.remove(index);
}
return this;
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder getTransactionsBuilder(
int index) {
return getTransactionsFieldBuilder().getBuilder(index);
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder getTransactionsOrBuilder(
int index) {
if (transactionsBuilder_ == null) {
return transactions_.get(index); } else {
return transactionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public java.util.List extends org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionsOrBuilderList() {
if (transactionsBuilder_ != null) {
return transactionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(transactions_);
}
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder addTransactionsBuilder() {
return getTransactionsFieldBuilder().addBuilder(
org.onflow.protobuf.entities.TransactionOuterClass.Transaction.getDefaultInstance());
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder addTransactionsBuilder(
int index) {
return getTransactionsFieldBuilder().addBuilder(
index, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.getDefaultInstance());
}
/**
*
* List of transactions included in the collection.
*
*
* repeated .flow.entities.Transaction transactions = 1;
*/
public java.util.List
getTransactionsBuilderList() {
return getTransactionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionsFieldBuilder() {
if (transactionsBuilder_ == null) {
transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>(
transactions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
transactions_ = null;
}
return transactionsBuilder_;
}
@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:flow.entities.ExecutionDataCollection)
}
// @@protoc_insertion_point(class_scope:flow.entities.ExecutionDataCollection)
private static final org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection();
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataCollection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecutionDataCollection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecutionDataCollection(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.entities.BlockExecutionDataOuterClass.ExecutionDataCollection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TrieUpdateOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.entities.TrieUpdate)
com.google.protobuf.MessageOrBuilder {
/**
*
* RootHash is the root hash of the trie before the update is applied.
*
*
* bytes root_hash = 1;
* @return The rootHash.
*/
com.google.protobuf.ByteString getRootHash();
/**
*
* List of register paths updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated bytes paths = 2;
* @return A list containing the paths.
*/
java.util.List getPathsList();
/**
*
* List of register paths updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated bytes paths = 2;
* @return The count of paths.
*/
int getPathsCount();
/**
*
* List of register paths updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated bytes paths = 2;
* @param index The index of the element to return.
* @return The paths at the given index.
*/
com.google.protobuf.ByteString getPaths(int index);
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
java.util.List
getPayloadsList();
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload getPayloads(int index);
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
int getPayloadsCount();
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
java.util.List extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.PayloadOrBuilder>
getPayloadsOrBuilderList();
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.PayloadOrBuilder getPayloadsOrBuilder(
int index);
}
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* Protobuf type {@code flow.entities.TrieUpdate}
*/
public static final class TrieUpdate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.entities.TrieUpdate)
TrieUpdateOrBuilder {
private static final long serialVersionUID = 0L;
// Use TrieUpdate.newBuilder() to construct.
private TrieUpdate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TrieUpdate() {
rootHash_ = com.google.protobuf.ByteString.EMPTY;
paths_ = java.util.Collections.emptyList();
payloads_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TrieUpdate();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TrieUpdate(
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: {
rootHash_ = input.readBytes();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
paths_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
paths_.add(input.readBytes());
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
payloads_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
payloads_.add(
input.readMessage(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.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)) {
paths_ = java.util.Collections.unmodifiableList(paths_); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
payloads_ = java.util.Collections.unmodifiableList(payloads_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_TrieUpdate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_TrieUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.class, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.Builder.class);
}
public static final int ROOT_HASH_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString rootHash_;
/**
*
* RootHash is the root hash of the trie before the update is applied.
*
*
* bytes root_hash = 1;
* @return The rootHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRootHash() {
return rootHash_;
}
public static final int PATHS_FIELD_NUMBER = 2;
private java.util.List paths_;
/**
*
* List of register paths updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated bytes paths = 2;
* @return A list containing the paths.
*/
@java.lang.Override
public java.util.List
getPathsList() {
return paths_;
}
/**
*
* List of register paths updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated bytes paths = 2;
* @return The count of paths.
*/
public int getPathsCount() {
return paths_.size();
}
/**
*
* List of register paths updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated bytes paths = 2;
* @param index The index of the element to return.
* @return The paths at the given index.
*/
public com.google.protobuf.ByteString getPaths(int index) {
return paths_.get(index);
}
public static final int PAYLOADS_FIELD_NUMBER = 3;
private java.util.List payloads_;
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
@java.lang.Override
public java.util.List getPayloadsList() {
return payloads_;
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.PayloadOrBuilder>
getPayloadsOrBuilderList() {
return payloads_;
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
@java.lang.Override
public int getPayloadsCount() {
return payloads_.size();
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload getPayloads(int index) {
return payloads_.get(index);
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.PayloadOrBuilder getPayloadsOrBuilder(
int index) {
return payloads_.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 {
if (!rootHash_.isEmpty()) {
output.writeBytes(1, rootHash_);
}
for (int i = 0; i < paths_.size(); i++) {
output.writeBytes(2, paths_.get(i));
}
for (int i = 0; i < payloads_.size(); i++) {
output.writeMessage(3, payloads_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!rootHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, rootHash_);
}
{
int dataSize = 0;
for (int i = 0; i < paths_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(paths_.get(i));
}
size += dataSize;
size += 1 * getPathsList().size();
}
for (int i = 0; i < payloads_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, payloads_.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 org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate)) {
return super.equals(obj);
}
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate other = (org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate) obj;
if (!getRootHash()
.equals(other.getRootHash())) return false;
if (!getPathsList()
.equals(other.getPathsList())) return false;
if (!getPayloadsList()
.equals(other.getPayloadsList())) 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) + ROOT_HASH_FIELD_NUMBER;
hash = (53 * hash) + getRootHash().hashCode();
if (getPathsCount() > 0) {
hash = (37 * hash) + PATHS_FIELD_NUMBER;
hash = (53 * hash) + getPathsList().hashCode();
}
if (getPayloadsCount() > 0) {
hash = (37 * hash) + PAYLOADS_FIELD_NUMBER;
hash = (53 * hash) + getPayloadsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate 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.entities.BlockExecutionDataOuterClass.TrieUpdate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate 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.entities.BlockExecutionDataOuterClass.TrieUpdate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate 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.entities.BlockExecutionDataOuterClass.TrieUpdate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate 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.entities.BlockExecutionDataOuterClass.TrieUpdate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate 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.entities.BlockExecutionDataOuterClass.TrieUpdate 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;
}
/**
*
* TrieUpdate produced by executing the collection.
* TrieUpdates contain a list of registers that were modified during chunk execution. The value
* included is the new value of the register.
*
*
* Protobuf type {@code flow.entities.TrieUpdate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.entities.TrieUpdate)
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_TrieUpdate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_TrieUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.class, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.Builder.class);
}
// Construct using org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPayloadsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
rootHash_ = com.google.protobuf.ByteString.EMPTY;
paths_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
if (payloadsBuilder_ == null) {
payloads_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
payloadsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_TrieUpdate_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate getDefaultInstanceForType() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate build() {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate buildPartial() {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate result = new org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate(this);
int from_bitField0_ = bitField0_;
result.rootHash_ = rootHash_;
if (((bitField0_ & 0x00000001) != 0)) {
paths_ = java.util.Collections.unmodifiableList(paths_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.paths_ = paths_;
if (payloadsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
payloads_ = java.util.Collections.unmodifiableList(payloads_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.payloads_ = payloads_;
} else {
result.payloads_ = payloadsBuilder_.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.entities.BlockExecutionDataOuterClass.TrieUpdate) {
return mergeFrom((org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate other) {
if (other == org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate.getDefaultInstance()) return this;
if (other.getRootHash() != com.google.protobuf.ByteString.EMPTY) {
setRootHash(other.getRootHash());
}
if (!other.paths_.isEmpty()) {
if (paths_.isEmpty()) {
paths_ = other.paths_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePathsIsMutable();
paths_.addAll(other.paths_);
}
onChanged();
}
if (payloadsBuilder_ == null) {
if (!other.payloads_.isEmpty()) {
if (payloads_.isEmpty()) {
payloads_ = other.payloads_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePayloadsIsMutable();
payloads_.addAll(other.payloads_);
}
onChanged();
}
} else {
if (!other.payloads_.isEmpty()) {
if (payloadsBuilder_.isEmpty()) {
payloadsBuilder_.dispose();
payloadsBuilder_ = null;
payloads_ = other.payloads_;
bitField0_ = (bitField0_ & ~0x00000002);
payloadsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPayloadsFieldBuilder() : null;
} else {
payloadsBuilder_.addAllMessages(other.payloads_);
}
}
}
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.entities.BlockExecutionDataOuterClass.TrieUpdate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString rootHash_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* RootHash is the root hash of the trie before the update is applied.
*
*
* bytes root_hash = 1;
* @return The rootHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRootHash() {
return rootHash_;
}
/**
*
* RootHash is the root hash of the trie before the update is applied.
*
*
* bytes root_hash = 1;
* @param value The rootHash to set.
* @return This builder for chaining.
*/
public Builder setRootHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
rootHash_ = value;
onChanged();
return this;
}
/**
*
* RootHash is the root hash of the trie before the update is applied.
*
*
* bytes root_hash = 1;
* @return This builder for chaining.
*/
public Builder clearRootHash() {
rootHash_ = getDefaultInstance().getRootHash();
onChanged();
return this;
}
private java.util.List paths_ = java.util.Collections.emptyList();
private void ensurePathsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
paths_ = new java.util.ArrayList(paths_);
bitField0_ |= 0x00000001;
}
}
/**
*
* List of register paths updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated bytes paths = 2;
* @return A list containing the paths.
*/
public java.util.List
getPathsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(paths_) : paths_;
}
/**
*
* List of register paths updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated bytes paths = 2;
* @return The count of paths.
*/
public int getPathsCount() {
return paths_.size();
}
/**
*
* List of register paths updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated bytes paths = 2;
* @param index The index of the element to return.
* @return The paths at the given index.
*/
public com.google.protobuf.ByteString getPaths(int index) {
return paths_.get(index);
}
/**
*
* List of register paths updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated bytes paths = 2;
* @param index The index to set the value at.
* @param value The paths to set.
* @return This builder for chaining.
*/
public Builder setPaths(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePathsIsMutable();
paths_.set(index, value);
onChanged();
return this;
}
/**
*
* List of register paths updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated bytes paths = 2;
* @param value The paths to add.
* @return This builder for chaining.
*/
public Builder addPaths(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePathsIsMutable();
paths_.add(value);
onChanged();
return this;
}
/**
*
* List of register paths updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated bytes paths = 2;
* @param values The paths to add.
* @return This builder for chaining.
*/
public Builder addAllPaths(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensurePathsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, paths_);
onChanged();
return this;
}
/**
*
* List of register paths updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated bytes paths = 2;
* @return This builder for chaining.
*/
public Builder clearPaths() {
paths_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private java.util.List payloads_ =
java.util.Collections.emptyList();
private void ensurePayloadsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
payloads_ = new java.util.ArrayList(payloads_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.PayloadOrBuilder> payloadsBuilder_;
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public java.util.List getPayloadsList() {
if (payloadsBuilder_ == null) {
return java.util.Collections.unmodifiableList(payloads_);
} else {
return payloadsBuilder_.getMessageList();
}
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public int getPayloadsCount() {
if (payloadsBuilder_ == null) {
return payloads_.size();
} else {
return payloadsBuilder_.getCount();
}
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload getPayloads(int index) {
if (payloadsBuilder_ == null) {
return payloads_.get(index);
} else {
return payloadsBuilder_.getMessage(index);
}
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public Builder setPayloads(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload value) {
if (payloadsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePayloadsIsMutable();
payloads_.set(index, value);
onChanged();
} else {
payloadsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public Builder setPayloads(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.Builder builderForValue) {
if (payloadsBuilder_ == null) {
ensurePayloadsIsMutable();
payloads_.set(index, builderForValue.build());
onChanged();
} else {
payloadsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public Builder addPayloads(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload value) {
if (payloadsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePayloadsIsMutable();
payloads_.add(value);
onChanged();
} else {
payloadsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public Builder addPayloads(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload value) {
if (payloadsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePayloadsIsMutable();
payloads_.add(index, value);
onChanged();
} else {
payloadsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public Builder addPayloads(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.Builder builderForValue) {
if (payloadsBuilder_ == null) {
ensurePayloadsIsMutable();
payloads_.add(builderForValue.build());
onChanged();
} else {
payloadsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public Builder addPayloads(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.Builder builderForValue) {
if (payloadsBuilder_ == null) {
ensurePayloadsIsMutable();
payloads_.add(index, builderForValue.build());
onChanged();
} else {
payloadsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public Builder addAllPayloads(
java.lang.Iterable extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload> values) {
if (payloadsBuilder_ == null) {
ensurePayloadsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, payloads_);
onChanged();
} else {
payloadsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public Builder clearPayloads() {
if (payloadsBuilder_ == null) {
payloads_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
payloadsBuilder_.clear();
}
return this;
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public Builder removePayloads(int index) {
if (payloadsBuilder_ == null) {
ensurePayloadsIsMutable();
payloads_.remove(index);
onChanged();
} else {
payloadsBuilder_.remove(index);
}
return this;
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.Builder getPayloadsBuilder(
int index) {
return getPayloadsFieldBuilder().getBuilder(index);
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.PayloadOrBuilder getPayloadsOrBuilder(
int index) {
if (payloadsBuilder_ == null) {
return payloads_.get(index); } else {
return payloadsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public java.util.List extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.PayloadOrBuilder>
getPayloadsOrBuilderList() {
if (payloadsBuilder_ != null) {
return payloadsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(payloads_);
}
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.Builder addPayloadsBuilder() {
return getPayloadsFieldBuilder().addBuilder(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.getDefaultInstance());
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.Builder addPayloadsBuilder(
int index) {
return getPayloadsFieldBuilder().addBuilder(
index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.getDefaultInstance());
}
/**
*
* List of register values updated.
* Note: paths and payloads map 1:1 with eachother. i.e. for each element in path, the value in
* payloads at the same index is the value of the register at that path.
*
*
* repeated .flow.entities.Payload payloads = 3;
*/
public java.util.List
getPayloadsBuilderList() {
return getPayloadsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.PayloadOrBuilder>
getPayloadsFieldBuilder() {
if (payloadsBuilder_ == null) {
payloadsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.PayloadOrBuilder>(
payloads_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
payloads_ = null;
}
return payloadsBuilder_;
}
@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:flow.entities.TrieUpdate)
}
// @@protoc_insertion_point(class_scope:flow.entities.TrieUpdate)
private static final org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate();
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.TrieUpdate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TrieUpdate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TrieUpdate(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.entities.BlockExecutionDataOuterClass.TrieUpdate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PayloadOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.entities.Payload)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
java.util.List
getKeyPartList();
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart getKeyPart(int index);
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
int getKeyPartCount();
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
java.util.List extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPartOrBuilder>
getKeyPartOrBuilderList();
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPartOrBuilder getKeyPartOrBuilder(
int index);
/**
*
* Value of the register.
*
*
* bytes value = 2;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
}
/**
*
* Payload represents the key-value pair of a register.
*
*
* Protobuf type {@code flow.entities.Payload}
*/
public static final class Payload extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.entities.Payload)
PayloadOrBuilder {
private static final long serialVersionUID = 0L;
// Use Payload.newBuilder() to construct.
private Payload(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Payload() {
keyPart_ = java.util.Collections.emptyList();
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Payload();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Payload(
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)) {
keyPart_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
keyPart_.add(
input.readMessage(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.parser(), extensionRegistry));
break;
}
case 18: {
value_ = 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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
keyPart_ = java.util.Collections.unmodifiableList(keyPart_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_Payload_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_Payload_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.class, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.Builder.class);
}
public static final int KEYPART_FIELD_NUMBER = 1;
private java.util.List keyPart_;
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
@java.lang.Override
public java.util.List getKeyPartList() {
return keyPart_;
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPartOrBuilder>
getKeyPartOrBuilderList() {
return keyPart_;
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
@java.lang.Override
public int getKeyPartCount() {
return keyPart_.size();
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart getKeyPart(int index) {
return keyPart_.get(index);
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPartOrBuilder getKeyPartOrBuilder(
int index) {
return keyPart_.get(index);
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString value_;
/**
*
* Value of the register.
*
*
* bytes value = 2;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
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 < keyPart_.size(); i++) {
output.writeMessage(1, keyPart_.get(i));
}
if (!value_.isEmpty()) {
output.writeBytes(2, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < keyPart_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, keyPart_.get(i));
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, value_);
}
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.entities.BlockExecutionDataOuterClass.Payload)) {
return super.equals(obj);
}
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload other = (org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload) obj;
if (!getKeyPartList()
.equals(other.getKeyPartList())) return false;
if (!getValue()
.equals(other.getValue())) 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 (getKeyPartCount() > 0) {
hash = (37 * hash) + KEYPART_FIELD_NUMBER;
hash = (53 * hash) + getKeyPartList().hashCode();
}
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload 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.entities.BlockExecutionDataOuterClass.Payload parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload 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.entities.BlockExecutionDataOuterClass.Payload parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload 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.entities.BlockExecutionDataOuterClass.Payload parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload 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.entities.BlockExecutionDataOuterClass.Payload parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload 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.entities.BlockExecutionDataOuterClass.Payload 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;
}
/**
*
* Payload represents the key-value pair of a register.
*
*
* Protobuf type {@code flow.entities.Payload}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.entities.Payload)
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.PayloadOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_Payload_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_Payload_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.class, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.Builder.class);
}
// Construct using org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getKeyPartFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (keyPartBuilder_ == null) {
keyPart_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
keyPartBuilder_.clear();
}
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_Payload_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload getDefaultInstanceForType() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload build() {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload buildPartial() {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload result = new org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload(this);
int from_bitField0_ = bitField0_;
if (keyPartBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
keyPart_ = java.util.Collections.unmodifiableList(keyPart_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.keyPart_ = keyPart_;
} else {
result.keyPart_ = keyPartBuilder_.build();
}
result.value_ = value_;
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.entities.BlockExecutionDataOuterClass.Payload) {
return mergeFrom((org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload other) {
if (other == org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload.getDefaultInstance()) return this;
if (keyPartBuilder_ == null) {
if (!other.keyPart_.isEmpty()) {
if (keyPart_.isEmpty()) {
keyPart_ = other.keyPart_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureKeyPartIsMutable();
keyPart_.addAll(other.keyPart_);
}
onChanged();
}
} else {
if (!other.keyPart_.isEmpty()) {
if (keyPartBuilder_.isEmpty()) {
keyPartBuilder_.dispose();
keyPartBuilder_ = null;
keyPart_ = other.keyPart_;
bitField0_ = (bitField0_ & ~0x00000001);
keyPartBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getKeyPartFieldBuilder() : null;
} else {
keyPartBuilder_.addAllMessages(other.keyPart_);
}
}
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
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.entities.BlockExecutionDataOuterClass.Payload parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List keyPart_ =
java.util.Collections.emptyList();
private void ensureKeyPartIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
keyPart_ = new java.util.ArrayList(keyPart_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPartOrBuilder> keyPartBuilder_;
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public java.util.List getKeyPartList() {
if (keyPartBuilder_ == null) {
return java.util.Collections.unmodifiableList(keyPart_);
} else {
return keyPartBuilder_.getMessageList();
}
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public int getKeyPartCount() {
if (keyPartBuilder_ == null) {
return keyPart_.size();
} else {
return keyPartBuilder_.getCount();
}
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart getKeyPart(int index) {
if (keyPartBuilder_ == null) {
return keyPart_.get(index);
} else {
return keyPartBuilder_.getMessage(index);
}
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public Builder setKeyPart(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart value) {
if (keyPartBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyPartIsMutable();
keyPart_.set(index, value);
onChanged();
} else {
keyPartBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public Builder setKeyPart(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.Builder builderForValue) {
if (keyPartBuilder_ == null) {
ensureKeyPartIsMutable();
keyPart_.set(index, builderForValue.build());
onChanged();
} else {
keyPartBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public Builder addKeyPart(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart value) {
if (keyPartBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyPartIsMutable();
keyPart_.add(value);
onChanged();
} else {
keyPartBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public Builder addKeyPart(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart value) {
if (keyPartBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyPartIsMutable();
keyPart_.add(index, value);
onChanged();
} else {
keyPartBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public Builder addKeyPart(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.Builder builderForValue) {
if (keyPartBuilder_ == null) {
ensureKeyPartIsMutable();
keyPart_.add(builderForValue.build());
onChanged();
} else {
keyPartBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public Builder addKeyPart(
int index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.Builder builderForValue) {
if (keyPartBuilder_ == null) {
ensureKeyPartIsMutable();
keyPart_.add(index, builderForValue.build());
onChanged();
} else {
keyPartBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public Builder addAllKeyPart(
java.lang.Iterable extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart> values) {
if (keyPartBuilder_ == null) {
ensureKeyPartIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keyPart_);
onChanged();
} else {
keyPartBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public Builder clearKeyPart() {
if (keyPartBuilder_ == null) {
keyPart_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
keyPartBuilder_.clear();
}
return this;
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public Builder removeKeyPart(int index) {
if (keyPartBuilder_ == null) {
ensureKeyPartIsMutable();
keyPart_.remove(index);
onChanged();
} else {
keyPartBuilder_.remove(index);
}
return this;
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.Builder getKeyPartBuilder(
int index) {
return getKeyPartFieldBuilder().getBuilder(index);
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPartOrBuilder getKeyPartOrBuilder(
int index) {
if (keyPartBuilder_ == null) {
return keyPart_.get(index); } else {
return keyPartBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public java.util.List extends org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPartOrBuilder>
getKeyPartOrBuilderList() {
if (keyPartBuilder_ != null) {
return keyPartBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(keyPart_);
}
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.Builder addKeyPartBuilder() {
return getKeyPartFieldBuilder().addBuilder(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.getDefaultInstance());
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.Builder addKeyPartBuilder(
int index) {
return getKeyPartFieldBuilder().addBuilder(
index, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.getDefaultInstance());
}
/**
*
* List of key parts that make up the register key.
* Can be converted into register id.
*
*
* repeated .flow.entities.KeyPart keyPart = 1;
*/
public java.util.List
getKeyPartBuilderList() {
return getKeyPartFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPartOrBuilder>
getKeyPartFieldBuilder() {
if (keyPartBuilder_ == null) {
keyPartBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPartOrBuilder>(
keyPart_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
keyPart_ = null;
}
return keyPartBuilder_;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Value of the register.
*
*
* bytes value = 2;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
*
* Value of the register.
*
*
* bytes value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
*
* Value of the register.
*
*
* bytes value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
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:flow.entities.Payload)
}
// @@protoc_insertion_point(class_scope:flow.entities.Payload)
private static final org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload();
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.Payload getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Payload parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Payload(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.entities.BlockExecutionDataOuterClass.Payload getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface KeyPartOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.entities.KeyPart)
com.google.protobuf.MessageOrBuilder {
/**
*
* Type of the key part.
*
*
* uint32 type = 1;
* @return The type.
*/
int getType();
/**
*
* Value of the key part.
*
*
* bytes value = 2;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
}
/**
*
* KeyPart represents a part of a register key.
*
*
* Protobuf type {@code flow.entities.KeyPart}
*/
public static final class KeyPart extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.entities.KeyPart)
KeyPartOrBuilder {
private static final long serialVersionUID = 0L;
// Use KeyPart.newBuilder() to construct.
private KeyPart(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private KeyPart() {
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new KeyPart();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private KeyPart(
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 8: {
type_ = input.readUInt32();
break;
}
case 18: {
value_ = 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 org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_KeyPart_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_KeyPart_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.class, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
*
* Type of the key part.
*
*
* uint32 type = 1;
* @return The type.
*/
@java.lang.Override
public int getType() {
return type_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString value_;
/**
*
* Value of the key part.
*
*
* bytes value = 2;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
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 (type_ != 0) {
output.writeUInt32(1, type_);
}
if (!value_.isEmpty()) {
output.writeBytes(2, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, type_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, value_);
}
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.entities.BlockExecutionDataOuterClass.KeyPart)) {
return super.equals(obj);
}
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart other = (org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart) obj;
if (getType()
!= other.getType()) return false;
if (!getValue()
.equals(other.getValue())) 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();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart 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.entities.BlockExecutionDataOuterClass.KeyPart parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart 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.entities.BlockExecutionDataOuterClass.KeyPart parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart 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.entities.BlockExecutionDataOuterClass.KeyPart parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart 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.entities.BlockExecutionDataOuterClass.KeyPart parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart 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.entities.BlockExecutionDataOuterClass.KeyPart 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;
}
/**
*
* KeyPart represents a part of a register key.
*
*
* Protobuf type {@code flow.entities.KeyPart}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.entities.KeyPart)
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPartOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_KeyPart_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_KeyPart_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.class, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.Builder.class);
}
// Construct using org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.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_ = 0;
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_KeyPart_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart getDefaultInstanceForType() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart build() {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart buildPartial() {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart result = new org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart(this);
result.type_ = type_;
result.value_ = value_;
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.entities.BlockExecutionDataOuterClass.KeyPart) {
return mergeFrom((org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart other) {
if (other == org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart.getDefaultInstance()) return this;
if (other.getType() != 0) {
setType(other.getType());
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
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.entities.BlockExecutionDataOuterClass.KeyPart parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int type_ ;
/**
*
* Type of the key part.
*
*
* uint32 type = 1;
* @return The type.
*/
@java.lang.Override
public int getType() {
return type_;
}
/**
*
* Type of the key part.
*
*
* uint32 type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
* Type of the key part.
*
*
* uint32 type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Value of the key part.
*
*
* bytes value = 2;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
*
* Value of the key part.
*
*
* bytes value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
*
* Value of the key part.
*
*
* bytes value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
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:flow.entities.KeyPart)
}
// @@protoc_insertion_point(class_scope:flow.entities.KeyPart)
private static final org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart();
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.KeyPart getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public KeyPart parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new KeyPart(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.entities.BlockExecutionDataOuterClass.KeyPart getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecutionDataTransactionResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.entities.ExecutionDataTransactionResult)
com.google.protobuf.MessageOrBuilder {
/**
*
* Transaction ID of the transaction that was executed.
*
*
* bytes transaction_id = 1;
* @return The transactionId.
*/
com.google.protobuf.ByteString getTransactionId();
/**
*
* Boolean indicating whether or not the transaction's execution failed with an error.
*
*
* bool failed = 2;
* @return The failed.
*/
boolean getFailed();
/**
*
* Amount of computation used during execution.
*
*
* uint64 computation_used = 3;
* @return The computationUsed.
*/
long getComputationUsed();
}
/**
*
* ExecutionDataTransactionResult represents the result of executing a transaction.
*
*
* Protobuf type {@code flow.entities.ExecutionDataTransactionResult}
*/
public static final class ExecutionDataTransactionResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.entities.ExecutionDataTransactionResult)
ExecutionDataTransactionResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecutionDataTransactionResult.newBuilder() to construct.
private ExecutionDataTransactionResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecutionDataTransactionResult() {
transactionId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecutionDataTransactionResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecutionDataTransactionResult(
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: {
transactionId_ = input.readBytes();
break;
}
case 16: {
failed_ = input.readBool();
break;
}
case 24: {
computationUsed_ = input.readUInt64();
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.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_ExecutionDataTransactionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_ExecutionDataTransactionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.class, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.Builder.class);
}
public static final int TRANSACTION_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString transactionId_;
/**
*
* Transaction ID of the transaction that was executed.
*
*
* bytes transaction_id = 1;
* @return The transactionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTransactionId() {
return transactionId_;
}
public static final int FAILED_FIELD_NUMBER = 2;
private boolean failed_;
/**
*
* Boolean indicating whether or not the transaction's execution failed with an error.
*
*
* bool failed = 2;
* @return The failed.
*/
@java.lang.Override
public boolean getFailed() {
return failed_;
}
public static final int COMPUTATION_USED_FIELD_NUMBER = 3;
private long computationUsed_;
/**
*
* Amount of computation used during execution.
*
*
* uint64 computation_used = 3;
* @return The computationUsed.
*/
@java.lang.Override
public long getComputationUsed() {
return computationUsed_;
}
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 (!transactionId_.isEmpty()) {
output.writeBytes(1, transactionId_);
}
if (failed_ != false) {
output.writeBool(2, failed_);
}
if (computationUsed_ != 0L) {
output.writeUInt64(3, computationUsed_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!transactionId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, transactionId_);
}
if (failed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, failed_);
}
if (computationUsed_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, computationUsed_);
}
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.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult)) {
return super.equals(obj);
}
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult other = (org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult) obj;
if (!getTransactionId()
.equals(other.getTransactionId())) return false;
if (getFailed()
!= other.getFailed()) return false;
if (getComputationUsed()
!= other.getComputationUsed()) 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) + TRANSACTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getTransactionId().hashCode();
hash = (37 * hash) + FAILED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFailed());
hash = (37 * hash) + COMPUTATION_USED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getComputationUsed());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult 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.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult 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.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult 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.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult 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.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult 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.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult 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;
}
/**
*
* ExecutionDataTransactionResult represents the result of executing a transaction.
*
*
* Protobuf type {@code flow.entities.ExecutionDataTransactionResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.entities.ExecutionDataTransactionResult)
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_ExecutionDataTransactionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_ExecutionDataTransactionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.class, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.Builder.class);
}
// Construct using org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.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();
transactionId_ = com.google.protobuf.ByteString.EMPTY;
failed_ = false;
computationUsed_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.internal_static_flow_entities_ExecutionDataTransactionResult_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult getDefaultInstanceForType() {
return org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult build() {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult buildPartial() {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult result = new org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult(this);
result.transactionId_ = transactionId_;
result.failed_ = failed_;
result.computationUsed_ = computationUsed_;
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.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult) {
return mergeFrom((org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult other) {
if (other == org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult.getDefaultInstance()) return this;
if (other.getTransactionId() != com.google.protobuf.ByteString.EMPTY) {
setTransactionId(other.getTransactionId());
}
if (other.getFailed() != false) {
setFailed(other.getFailed());
}
if (other.getComputationUsed() != 0L) {
setComputationUsed(other.getComputationUsed());
}
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.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString transactionId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Transaction ID of the transaction that was executed.
*
*
* bytes transaction_id = 1;
* @return The transactionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTransactionId() {
return transactionId_;
}
/**
*
* Transaction ID of the transaction that was executed.
*
*
* bytes transaction_id = 1;
* @param value The transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
transactionId_ = value;
onChanged();
return this;
}
/**
*
* Transaction ID of the transaction that was executed.
*
*
* bytes transaction_id = 1;
* @return This builder for chaining.
*/
public Builder clearTransactionId() {
transactionId_ = getDefaultInstance().getTransactionId();
onChanged();
return this;
}
private boolean failed_ ;
/**
*
* Boolean indicating whether or not the transaction's execution failed with an error.
*
*
* bool failed = 2;
* @return The failed.
*/
@java.lang.Override
public boolean getFailed() {
return failed_;
}
/**
*
* Boolean indicating whether or not the transaction's execution failed with an error.
*
*
* bool failed = 2;
* @param value The failed to set.
* @return This builder for chaining.
*/
public Builder setFailed(boolean value) {
failed_ = value;
onChanged();
return this;
}
/**
*
* Boolean indicating whether or not the transaction's execution failed with an error.
*
*
* bool failed = 2;
* @return This builder for chaining.
*/
public Builder clearFailed() {
failed_ = false;
onChanged();
return this;
}
private long computationUsed_ ;
/**
*
* Amount of computation used during execution.
*
*
* uint64 computation_used = 3;
* @return The computationUsed.
*/
@java.lang.Override
public long getComputationUsed() {
return computationUsed_;
}
/**
*
* Amount of computation used during execution.
*
*
* uint64 computation_used = 3;
* @param value The computationUsed to set.
* @return This builder for chaining.
*/
public Builder setComputationUsed(long value) {
computationUsed_ = value;
onChanged();
return this;
}
/**
*
* Amount of computation used during execution.
*
*
* uint64 computation_used = 3;
* @return This builder for chaining.
*/
public Builder clearComputationUsed() {
computationUsed_ = 0L;
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:flow.entities.ExecutionDataTransactionResult)
}
// @@protoc_insertion_point(class_scope:flow.entities.ExecutionDataTransactionResult)
private static final org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult();
}
public static org.onflow.protobuf.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecutionDataTransactionResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecutionDataTransactionResult(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.entities.BlockExecutionDataOuterClass.ExecutionDataTransactionResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_entities_BlockExecutionData_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_entities_BlockExecutionData_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_entities_ChunkExecutionData_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_entities_ChunkExecutionData_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_entities_ExecutionDataCollection_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_entities_ExecutionDataCollection_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_entities_TrieUpdate_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_entities_TrieUpdate_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_entities_Payload_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_entities_Payload_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_entities_KeyPart_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_entities_KeyPart_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_entities_ExecutionDataTransactionResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_entities_ExecutionDataTransactionResult_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/entities/block_execution_data.pro" +
"to\022\rflow.entities\032\031flow/entities/event.p" +
"roto\032\037flow/entities/transaction.proto\"g\n" +
"\022BlockExecutionData\022\020\n\010block_id\030\001 \001(\014\022?\n" +
"\024chunk_execution_data\030\002 \003(\0132!.flow.entit" +
"ies.ChunkExecutionData\"\361\001\n\022ChunkExecutio" +
"nData\022:\n\ncollection\030\001 \001(\0132&.flow.entitie" +
"s.ExecutionDataCollection\022$\n\006events\030\002 \003(" +
"\0132\024.flow.entities.Event\022-\n\ntrieUpdate\030\003 " +
"\001(\0132\031.flow.entities.TrieUpdate\022J\n\023transa" +
"ction_results\030\004 \003(\0132-.flow.entities.Exec" +
"utionDataTransactionResult\"K\n\027ExecutionD" +
"ataCollection\0220\n\014transactions\030\001 \003(\0132\032.fl" +
"ow.entities.Transaction\"X\n\nTrieUpdate\022\021\n" +
"\troot_hash\030\001 \001(\014\022\r\n\005paths\030\002 \003(\014\022(\n\010paylo" +
"ads\030\003 \003(\0132\026.flow.entities.Payload\"A\n\007Pay" +
"load\022\'\n\007keyPart\030\001 \003(\0132\026.flow.entities.Ke" +
"yPart\022\r\n\005value\030\002 \001(\014\"&\n\007KeyPart\022\014\n\004type\030" +
"\001 \001(\r\022\r\n\005value\030\002 \001(\014\"b\n\036ExecutionDataTra" +
"nsactionResult\022\026\n\016transaction_id\030\001 \001(\014\022\016" +
"\n\006failed\030\002 \001(\010\022\030\n\020computation_used\030\003 \001(\004" +
"BP\n\034org.onflow.protobuf.entitiesZ0github" +
".com/onflow/flow/protobuf/go/flow/entiti" +
"esb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.onflow.protobuf.entities.EventOuterClass.getDescriptor(),
org.onflow.protobuf.entities.TransactionOuterClass.getDescriptor(),
});
internal_static_flow_entities_BlockExecutionData_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_flow_entities_BlockExecutionData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_entities_BlockExecutionData_descriptor,
new java.lang.String[] { "BlockId", "ChunkExecutionData", });
internal_static_flow_entities_ChunkExecutionData_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_flow_entities_ChunkExecutionData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_entities_ChunkExecutionData_descriptor,
new java.lang.String[] { "Collection", "Events", "TrieUpdate", "TransactionResults", });
internal_static_flow_entities_ExecutionDataCollection_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_flow_entities_ExecutionDataCollection_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_entities_ExecutionDataCollection_descriptor,
new java.lang.String[] { "Transactions", });
internal_static_flow_entities_TrieUpdate_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_flow_entities_TrieUpdate_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_entities_TrieUpdate_descriptor,
new java.lang.String[] { "RootHash", "Paths", "Payloads", });
internal_static_flow_entities_Payload_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_flow_entities_Payload_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_entities_Payload_descriptor,
new java.lang.String[] { "KeyPart", "Value", });
internal_static_flow_entities_KeyPart_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_flow_entities_KeyPart_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_entities_KeyPart_descriptor,
new java.lang.String[] { "Type", "Value", });
internal_static_flow_entities_ExecutionDataTransactionResult_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_flow_entities_ExecutionDataTransactionResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_entities_ExecutionDataTransactionResult_descriptor,
new java.lang.String[] { "TransactionId", "Failed", "ComputationUsed", });
org.onflow.protobuf.entities.EventOuterClass.getDescriptor();
org.onflow.protobuf.entities.TransactionOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy