
main.org.onflow.protobuf.executiondata.Executiondata Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: flow/executiondata/executiondata.proto
package org.onflow.protobuf.executiondata;
public final class Executiondata {
private Executiondata() {}
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 GetExecutionDataByBlockIDRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.GetExecutionDataByBlockIDRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Block ID of the block to get execution data for.
*
*
* bytes block_id = 1;
* @return The blockId.
*/
com.google.protobuf.ByteString getBlockId();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
*
* The request for GetExecutionDataByBlockID
*
*
* Protobuf type {@code flow.executiondata.GetExecutionDataByBlockIDRequest}
*/
public static final class GetExecutionDataByBlockIDRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.GetExecutionDataByBlockIDRequest)
GetExecutionDataByBlockIDRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetExecutionDataByBlockIDRequest.newBuilder() to construct.
private GetExecutionDataByBlockIDRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetExecutionDataByBlockIDRequest() {
blockId_ = com.google.protobuf.ByteString.EMPTY;
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetExecutionDataByBlockIDRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetExecutionDataByBlockIDRequest(
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: {
blockId_ = input.readBytes();
break;
}
case 16: {
int rawValue = input.readEnum();
eventEncodingVersion_ = rawValue;
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.executiondata.Executiondata.internal_static_flow_executiondata_GetExecutionDataByBlockIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetExecutionDataByBlockIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest.class, org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest.Builder.class);
}
public static final int BLOCK_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString blockId_;
/**
*
* Block ID of the block to get execution data for.
*
*
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 2;
private int eventEncodingVersion_;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The eventEncodingVersion.
*/
@java.lang.Override public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
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_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
output.writeEnum(2, eventEncodingVersion_);
}
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_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, eventEncodingVersion_);
}
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.executiondata.Executiondata.GetExecutionDataByBlockIDRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest other = (org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest) obj;
if (!getBlockId()
.equals(other.getBlockId())) return false;
if (eventEncodingVersion_ != other.eventEncodingVersion_) 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();
hash = (37 * hash) + EVENT_ENCODING_VERSION_FIELD_NUMBER;
hash = (53 * hash) + eventEncodingVersion_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest 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.executiondata.Executiondata.GetExecutionDataByBlockIDRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest 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.executiondata.Executiondata.GetExecutionDataByBlockIDRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest 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.executiondata.Executiondata.GetExecutionDataByBlockIDRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest 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.executiondata.Executiondata.GetExecutionDataByBlockIDRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest 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.executiondata.Executiondata.GetExecutionDataByBlockIDRequest 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;
}
/**
*
* The request for GetExecutionDataByBlockID
*
*
* Protobuf type {@code flow.executiondata.GetExecutionDataByBlockIDRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.GetExecutionDataByBlockIDRequest)
org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetExecutionDataByBlockIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetExecutionDataByBlockIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest.class, org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest.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();
blockId_ = com.google.protobuf.ByteString.EMPTY;
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetExecutionDataByBlockIDRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest build() {
org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest result = new org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest(this);
result.blockId_ = blockId_;
result.eventEncodingVersion_ = eventEncodingVersion_;
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.executiondata.Executiondata.GetExecutionDataByBlockIDRequest) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest.getDefaultInstance()) return this;
if (other.getBlockId() != com.google.protobuf.ByteString.EMPTY) {
setBlockId(other.getBlockId());
}
if (other.eventEncodingVersion_ != 0) {
setEventEncodingVersionValue(other.getEventEncodingVersionValue());
}
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.executiondata.Executiondata.GetExecutionDataByBlockIDRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString blockId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Block ID of the block to get execution data for.
*
*
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
/**
*
* Block ID of the block to get execution data for.
*
*
* 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 to get execution data for.
*
*
* bytes block_id = 1;
* @return This builder for chaining.
*/
public Builder clearBlockId() {
blockId_ = getDefaultInstance().getBlockId();
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @param value The enum numeric value on the wire for eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersionValue(int value) {
eventEncodingVersion_ = value;
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The eventEncodingVersion.
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @param value The eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersion(org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion value) {
if (value == null) {
throw new NullPointerException();
}
eventEncodingVersion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return This builder for chaining.
*/
public Builder clearEventEncodingVersion() {
eventEncodingVersion_ = 0;
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.executiondata.GetExecutionDataByBlockIDRequest)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.GetExecutionDataByBlockIDRequest)
private static final org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest();
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetExecutionDataByBlockIDRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetExecutionDataByBlockIDRequest(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.executiondata.Executiondata.GetExecutionDataByBlockIDRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetExecutionDataByBlockIDResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.GetExecutionDataByBlockIDResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* BlockExecutionData for the block.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 1;
* @return Whether the blockExecutionData field is set.
*/
boolean hasBlockExecutionData();
/**
*
* BlockExecutionData for the block.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 1;
* @return The blockExecutionData.
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData getBlockExecutionData();
/**
*
* BlockExecutionData for the block.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 1;
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionDataOrBuilder getBlockExecutionDataOrBuilder();
}
/**
*
* The response for GetExecutionDataByBlockID
*
*
* Protobuf type {@code flow.executiondata.GetExecutionDataByBlockIDResponse}
*/
public static final class GetExecutionDataByBlockIDResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.GetExecutionDataByBlockIDResponse)
GetExecutionDataByBlockIDResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetExecutionDataByBlockIDResponse.newBuilder() to construct.
private GetExecutionDataByBlockIDResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetExecutionDataByBlockIDResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetExecutionDataByBlockIDResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetExecutionDataByBlockIDResponse(
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: {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.Builder subBuilder = null;
if (blockExecutionData_ != null) {
subBuilder = blockExecutionData_.toBuilder();
}
blockExecutionData_ = input.readMessage(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(blockExecutionData_);
blockExecutionData_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetExecutionDataByBlockIDResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetExecutionDataByBlockIDResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse.class, org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse.Builder.class);
}
public static final int BLOCK_EXECUTION_DATA_FIELD_NUMBER = 1;
private org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData blockExecutionData_;
/**
*
* BlockExecutionData for the block.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 1;
* @return Whether the blockExecutionData field is set.
*/
@java.lang.Override
public boolean hasBlockExecutionData() {
return blockExecutionData_ != null;
}
/**
*
* BlockExecutionData for the block.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 1;
* @return The blockExecutionData.
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData getBlockExecutionData() {
return blockExecutionData_ == null ? org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.getDefaultInstance() : blockExecutionData_;
}
/**
*
* BlockExecutionData for the block.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionDataOrBuilder getBlockExecutionDataOrBuilder() {
return getBlockExecutionData();
}
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 (blockExecutionData_ != null) {
output.writeMessage(1, getBlockExecutionData());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (blockExecutionData_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBlockExecutionData());
}
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.executiondata.Executiondata.GetExecutionDataByBlockIDResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse other = (org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse) obj;
if (hasBlockExecutionData() != other.hasBlockExecutionData()) return false;
if (hasBlockExecutionData()) {
if (!getBlockExecutionData()
.equals(other.getBlockExecutionData())) 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 (hasBlockExecutionData()) {
hash = (37 * hash) + BLOCK_EXECUTION_DATA_FIELD_NUMBER;
hash = (53 * hash) + getBlockExecutionData().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse 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.executiondata.Executiondata.GetExecutionDataByBlockIDResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse 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.executiondata.Executiondata.GetExecutionDataByBlockIDResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse 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.executiondata.Executiondata.GetExecutionDataByBlockIDResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse 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.executiondata.Executiondata.GetExecutionDataByBlockIDResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse 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.executiondata.Executiondata.GetExecutionDataByBlockIDResponse 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;
}
/**
*
* The response for GetExecutionDataByBlockID
*
*
* Protobuf type {@code flow.executiondata.GetExecutionDataByBlockIDResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.GetExecutionDataByBlockIDResponse)
org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetExecutionDataByBlockIDResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetExecutionDataByBlockIDResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse.class, org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (blockExecutionDataBuilder_ == null) {
blockExecutionData_ = null;
} else {
blockExecutionData_ = null;
blockExecutionDataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetExecutionDataByBlockIDResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse build() {
org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse result = new org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse(this);
if (blockExecutionDataBuilder_ == null) {
result.blockExecutionData_ = blockExecutionData_;
} else {
result.blockExecutionData_ = blockExecutionDataBuilder_.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.executiondata.Executiondata.GetExecutionDataByBlockIDResponse) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse.getDefaultInstance()) return this;
if (other.hasBlockExecutionData()) {
mergeBlockExecutionData(other.getBlockExecutionData());
}
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.executiondata.Executiondata.GetExecutionDataByBlockIDResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData blockExecutionData_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionDataOrBuilder> blockExecutionDataBuilder_;
/**
*
* BlockExecutionData for the block.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 1;
* @return Whether the blockExecutionData field is set.
*/
public boolean hasBlockExecutionData() {
return blockExecutionDataBuilder_ != null || blockExecutionData_ != null;
}
/**
*
* BlockExecutionData for the block.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 1;
* @return The blockExecutionData.
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData getBlockExecutionData() {
if (blockExecutionDataBuilder_ == null) {
return blockExecutionData_ == null ? org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.getDefaultInstance() : blockExecutionData_;
} else {
return blockExecutionDataBuilder_.getMessage();
}
}
/**
*
* BlockExecutionData for the block.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 1;
*/
public Builder setBlockExecutionData(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData value) {
if (blockExecutionDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
blockExecutionData_ = value;
onChanged();
} else {
blockExecutionDataBuilder_.setMessage(value);
}
return this;
}
/**
*
* BlockExecutionData for the block.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 1;
*/
public Builder setBlockExecutionData(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.Builder builderForValue) {
if (blockExecutionDataBuilder_ == null) {
blockExecutionData_ = builderForValue.build();
onChanged();
} else {
blockExecutionDataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* BlockExecutionData for the block.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 1;
*/
public Builder mergeBlockExecutionData(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData value) {
if (blockExecutionDataBuilder_ == null) {
if (blockExecutionData_ != null) {
blockExecutionData_ =
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.newBuilder(blockExecutionData_).mergeFrom(value).buildPartial();
} else {
blockExecutionData_ = value;
}
onChanged();
} else {
blockExecutionDataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* BlockExecutionData for the block.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 1;
*/
public Builder clearBlockExecutionData() {
if (blockExecutionDataBuilder_ == null) {
blockExecutionData_ = null;
onChanged();
} else {
blockExecutionData_ = null;
blockExecutionDataBuilder_ = null;
}
return this;
}
/**
*
* BlockExecutionData for the block.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 1;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.Builder getBlockExecutionDataBuilder() {
onChanged();
return getBlockExecutionDataFieldBuilder().getBuilder();
}
/**
*
* BlockExecutionData for the block.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 1;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionDataOrBuilder getBlockExecutionDataOrBuilder() {
if (blockExecutionDataBuilder_ != null) {
return blockExecutionDataBuilder_.getMessageOrBuilder();
} else {
return blockExecutionData_ == null ?
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.getDefaultInstance() : blockExecutionData_;
}
}
/**
*
* BlockExecutionData for the block.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionDataOrBuilder>
getBlockExecutionDataFieldBuilder() {
if (blockExecutionDataBuilder_ == null) {
blockExecutionDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionDataOrBuilder>(
getBlockExecutionData(),
getParentForChildren(),
isClean());
blockExecutionData_ = null;
}
return blockExecutionDataBuilder_;
}
@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.executiondata.GetExecutionDataByBlockIDResponse)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.GetExecutionDataByBlockIDResponse)
private static final org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse();
}
public static org.onflow.protobuf.executiondata.Executiondata.GetExecutionDataByBlockIDResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetExecutionDataByBlockIDResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetExecutionDataByBlockIDResponse(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.executiondata.Executiondata.GetExecutionDataByBlockIDResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubscribeExecutionDataRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.SubscribeExecutionDataRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Block ID of the first block to get execution data for.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* bytes start_block_id = 1;
* @return The startBlockId.
*/
com.google.protobuf.ByteString getStartBlockId();
/**
*
* Block height of the first block to get execution data for.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* uint64 start_block_height = 2;
* @return The startBlockHeight.
*/
long getStartBlockHeight();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
*
* The request for SubscribeExecutionData
*
*
* Protobuf type {@code flow.executiondata.SubscribeExecutionDataRequest}
*/
public static final class SubscribeExecutionDataRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.SubscribeExecutionDataRequest)
SubscribeExecutionDataRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeExecutionDataRequest.newBuilder() to construct.
private SubscribeExecutionDataRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeExecutionDataRequest() {
startBlockId_ = com.google.protobuf.ByteString.EMPTY;
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeExecutionDataRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscribeExecutionDataRequest(
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: {
startBlockId_ = input.readBytes();
break;
}
case 16: {
startBlockHeight_ = input.readUInt64();
break;
}
case 24: {
int rawValue = input.readEnum();
eventEncodingVersion_ = rawValue;
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.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest.Builder.class);
}
public static final int START_BLOCK_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString startBlockId_;
/**
*
* Block ID of the first block to get execution data for.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* bytes start_block_id = 1;
* @return The startBlockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStartBlockId() {
return startBlockId_;
}
public static final int START_BLOCK_HEIGHT_FIELD_NUMBER = 2;
private long startBlockHeight_;
/**
*
* Block height of the first block to get execution data for.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* uint64 start_block_height = 2;
* @return The startBlockHeight.
*/
@java.lang.Override
public long getStartBlockHeight() {
return startBlockHeight_;
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 3;
private int eventEncodingVersion_;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The eventEncodingVersion.
*/
@java.lang.Override public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
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 (!startBlockId_.isEmpty()) {
output.writeBytes(1, startBlockId_);
}
if (startBlockHeight_ != 0L) {
output.writeUInt64(2, startBlockHeight_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
output.writeEnum(3, eventEncodingVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!startBlockId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, startBlockId_);
}
if (startBlockHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, startBlockHeight_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, eventEncodingVersion_);
}
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.executiondata.Executiondata.SubscribeExecutionDataRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest other = (org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest) obj;
if (!getStartBlockId()
.equals(other.getStartBlockId())) return false;
if (getStartBlockHeight()
!= other.getStartBlockHeight()) return false;
if (eventEncodingVersion_ != other.eventEncodingVersion_) 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) + START_BLOCK_ID_FIELD_NUMBER;
hash = (53 * hash) + getStartBlockId().hashCode();
hash = (37 * hash) + START_BLOCK_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartBlockHeight());
hash = (37 * hash) + EVENT_ENCODING_VERSION_FIELD_NUMBER;
hash = (53 * hash) + eventEncodingVersion_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest 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.executiondata.Executiondata.SubscribeExecutionDataRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest 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.executiondata.Executiondata.SubscribeExecutionDataRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest 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.executiondata.Executiondata.SubscribeExecutionDataRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest 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.executiondata.Executiondata.SubscribeExecutionDataRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest 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.executiondata.Executiondata.SubscribeExecutionDataRequest 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;
}
/**
*
* The request for SubscribeExecutionData
*
*
* Protobuf type {@code flow.executiondata.SubscribeExecutionDataRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.SubscribeExecutionDataRequest)
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest.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();
startBlockId_ = com.google.protobuf.ByteString.EMPTY;
startBlockHeight_ = 0L;
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest build() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest result = new org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest(this);
result.startBlockId_ = startBlockId_;
result.startBlockHeight_ = startBlockHeight_;
result.eventEncodingVersion_ = eventEncodingVersion_;
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.executiondata.Executiondata.SubscribeExecutionDataRequest) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest.getDefaultInstance()) return this;
if (other.getStartBlockId() != com.google.protobuf.ByteString.EMPTY) {
setStartBlockId(other.getStartBlockId());
}
if (other.getStartBlockHeight() != 0L) {
setStartBlockHeight(other.getStartBlockHeight());
}
if (other.eventEncodingVersion_ != 0) {
setEventEncodingVersionValue(other.getEventEncodingVersionValue());
}
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.executiondata.Executiondata.SubscribeExecutionDataRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString startBlockId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Block ID of the first block to get execution data for.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* bytes start_block_id = 1;
* @return The startBlockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStartBlockId() {
return startBlockId_;
}
/**
*
* Block ID of the first block to get execution data for.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* bytes start_block_id = 1;
* @param value The startBlockId to set.
* @return This builder for chaining.
*/
public Builder setStartBlockId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
startBlockId_ = value;
onChanged();
return this;
}
/**
*
* Block ID of the first block to get execution data for.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* bytes start_block_id = 1;
* @return This builder for chaining.
*/
public Builder clearStartBlockId() {
startBlockId_ = getDefaultInstance().getStartBlockId();
onChanged();
return this;
}
private long startBlockHeight_ ;
/**
*
* Block height of the first block to get execution data for.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* uint64 start_block_height = 2;
* @return The startBlockHeight.
*/
@java.lang.Override
public long getStartBlockHeight() {
return startBlockHeight_;
}
/**
*
* Block height of the first block to get execution data for.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* uint64 start_block_height = 2;
* @param value The startBlockHeight to set.
* @return This builder for chaining.
*/
public Builder setStartBlockHeight(long value) {
startBlockHeight_ = value;
onChanged();
return this;
}
/**
*
* Block height of the first block to get execution data for.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* uint64 start_block_height = 2;
* @return This builder for chaining.
*/
public Builder clearStartBlockHeight() {
startBlockHeight_ = 0L;
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @param value The enum numeric value on the wire for eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersionValue(int value) {
eventEncodingVersion_ = value;
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The eventEncodingVersion.
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @param value The eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersion(org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion value) {
if (value == null) {
throw new NullPointerException();
}
eventEncodingVersion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return This builder for chaining.
*/
public Builder clearEventEncodingVersion() {
eventEncodingVersion_ = 0;
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.executiondata.SubscribeExecutionDataRequest)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.SubscribeExecutionDataRequest)
private static final org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest();
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeExecutionDataRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscribeExecutionDataRequest(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.executiondata.Executiondata.SubscribeExecutionDataRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubscribeExecutionDataResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.SubscribeExecutionDataResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Block height of the block containing the execution data.
*
*
* uint64 block_height = 1;
* @return The blockHeight.
*/
long getBlockHeight();
/**
*
* BlockExecutionData for the block.
* Note: The block's ID is included within the BlockExecutionData.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 2;
* @return Whether the blockExecutionData field is set.
*/
boolean hasBlockExecutionData();
/**
*
* BlockExecutionData for the block.
* Note: The block's ID is included within the BlockExecutionData.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 2;
* @return The blockExecutionData.
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData getBlockExecutionData();
/**
*
* BlockExecutionData for the block.
* Note: The block's ID is included within the BlockExecutionData.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 2;
*/
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionDataOrBuilder getBlockExecutionDataOrBuilder();
/**
*
* Timestamp from the block containing the execution data.
*
*
* .google.protobuf.Timestamp block_timestamp = 3;
* @return Whether the blockTimestamp field is set.
*/
boolean hasBlockTimestamp();
/**
*
* Timestamp from the block containing the execution data.
*
*
* .google.protobuf.Timestamp block_timestamp = 3;
* @return The blockTimestamp.
*/
com.google.protobuf.Timestamp getBlockTimestamp();
/**
*
* Timestamp from the block containing the execution data.
*
*
* .google.protobuf.Timestamp block_timestamp = 3;
*/
com.google.protobuf.TimestampOrBuilder getBlockTimestampOrBuilder();
}
/**
*
* The response for SubscribeExecutionData
*
*
* Protobuf type {@code flow.executiondata.SubscribeExecutionDataResponse}
*/
public static final class SubscribeExecutionDataResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.SubscribeExecutionDataResponse)
SubscribeExecutionDataResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeExecutionDataResponse.newBuilder() to construct.
private SubscribeExecutionDataResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeExecutionDataResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeExecutionDataResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscribeExecutionDataResponse(
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: {
blockHeight_ = input.readUInt64();
break;
}
case 18: {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.Builder subBuilder = null;
if (blockExecutionData_ != null) {
subBuilder = blockExecutionData_.toBuilder();
}
blockExecutionData_ = input.readMessage(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(blockExecutionData_);
blockExecutionData_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (blockTimestamp_ != null) {
subBuilder = blockTimestamp_.toBuilder();
}
blockTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(blockTimestamp_);
blockTimestamp_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse.Builder.class);
}
public static final int BLOCK_HEIGHT_FIELD_NUMBER = 1;
private long blockHeight_;
/**
*
* Block height of the block containing the execution data.
*
*
* uint64 block_height = 1;
* @return The blockHeight.
*/
@java.lang.Override
public long getBlockHeight() {
return blockHeight_;
}
public static final int BLOCK_EXECUTION_DATA_FIELD_NUMBER = 2;
private org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData blockExecutionData_;
/**
*
* BlockExecutionData for the block.
* Note: The block's ID is included within the BlockExecutionData.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 2;
* @return Whether the blockExecutionData field is set.
*/
@java.lang.Override
public boolean hasBlockExecutionData() {
return blockExecutionData_ != null;
}
/**
*
* BlockExecutionData for the block.
* Note: The block's ID is included within the BlockExecutionData.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 2;
* @return The blockExecutionData.
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData getBlockExecutionData() {
return blockExecutionData_ == null ? org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.getDefaultInstance() : blockExecutionData_;
}
/**
*
* BlockExecutionData for the block.
* Note: The block's ID is included within the BlockExecutionData.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionDataOrBuilder getBlockExecutionDataOrBuilder() {
return getBlockExecutionData();
}
public static final int BLOCK_TIMESTAMP_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp blockTimestamp_;
/**
*
* Timestamp from the block containing the execution data.
*
*
* .google.protobuf.Timestamp block_timestamp = 3;
* @return Whether the blockTimestamp field is set.
*/
@java.lang.Override
public boolean hasBlockTimestamp() {
return blockTimestamp_ != null;
}
/**
*
* Timestamp from the block containing the execution data.
*
*
* .google.protobuf.Timestamp block_timestamp = 3;
* @return The blockTimestamp.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getBlockTimestamp() {
return blockTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : blockTimestamp_;
}
/**
*
* Timestamp from the block containing the execution data.
*
*
* .google.protobuf.Timestamp block_timestamp = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getBlockTimestampOrBuilder() {
return getBlockTimestamp();
}
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 (blockHeight_ != 0L) {
output.writeUInt64(1, blockHeight_);
}
if (blockExecutionData_ != null) {
output.writeMessage(2, getBlockExecutionData());
}
if (blockTimestamp_ != null) {
output.writeMessage(3, getBlockTimestamp());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (blockHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, blockHeight_);
}
if (blockExecutionData_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBlockExecutionData());
}
if (blockTimestamp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getBlockTimestamp());
}
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.executiondata.Executiondata.SubscribeExecutionDataResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse other = (org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse) obj;
if (getBlockHeight()
!= other.getBlockHeight()) return false;
if (hasBlockExecutionData() != other.hasBlockExecutionData()) return false;
if (hasBlockExecutionData()) {
if (!getBlockExecutionData()
.equals(other.getBlockExecutionData())) return false;
}
if (hasBlockTimestamp() != other.hasBlockTimestamp()) return false;
if (hasBlockTimestamp()) {
if (!getBlockTimestamp()
.equals(other.getBlockTimestamp())) 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_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockHeight());
if (hasBlockExecutionData()) {
hash = (37 * hash) + BLOCK_EXECUTION_DATA_FIELD_NUMBER;
hash = (53 * hash) + getBlockExecutionData().hashCode();
}
if (hasBlockTimestamp()) {
hash = (37 * hash) + BLOCK_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getBlockTimestamp().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse 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.executiondata.Executiondata.SubscribeExecutionDataResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse 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.executiondata.Executiondata.SubscribeExecutionDataResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse 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.executiondata.Executiondata.SubscribeExecutionDataResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse 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.executiondata.Executiondata.SubscribeExecutionDataResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse 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.executiondata.Executiondata.SubscribeExecutionDataResponse 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;
}
/**
*
* The response for SubscribeExecutionData
*
*
* Protobuf type {@code flow.executiondata.SubscribeExecutionDataResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.SubscribeExecutionDataResponse)
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse.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();
blockHeight_ = 0L;
if (blockExecutionDataBuilder_ == null) {
blockExecutionData_ = null;
} else {
blockExecutionData_ = null;
blockExecutionDataBuilder_ = null;
}
if (blockTimestampBuilder_ == null) {
blockTimestamp_ = null;
} else {
blockTimestamp_ = null;
blockTimestampBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse build() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse result = new org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse(this);
result.blockHeight_ = blockHeight_;
if (blockExecutionDataBuilder_ == null) {
result.blockExecutionData_ = blockExecutionData_;
} else {
result.blockExecutionData_ = blockExecutionDataBuilder_.build();
}
if (blockTimestampBuilder_ == null) {
result.blockTimestamp_ = blockTimestamp_;
} else {
result.blockTimestamp_ = blockTimestampBuilder_.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.executiondata.Executiondata.SubscribeExecutionDataResponse) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse.getDefaultInstance()) return this;
if (other.getBlockHeight() != 0L) {
setBlockHeight(other.getBlockHeight());
}
if (other.hasBlockExecutionData()) {
mergeBlockExecutionData(other.getBlockExecutionData());
}
if (other.hasBlockTimestamp()) {
mergeBlockTimestamp(other.getBlockTimestamp());
}
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.executiondata.Executiondata.SubscribeExecutionDataResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long blockHeight_ ;
/**
*
* Block height of the block containing the execution data.
*
*
* uint64 block_height = 1;
* @return The blockHeight.
*/
@java.lang.Override
public long getBlockHeight() {
return blockHeight_;
}
/**
*
* Block height of the block containing the execution data.
*
*
* uint64 block_height = 1;
* @param value The blockHeight to set.
* @return This builder for chaining.
*/
public Builder setBlockHeight(long value) {
blockHeight_ = value;
onChanged();
return this;
}
/**
*
* Block height of the block containing the execution data.
*
*
* uint64 block_height = 1;
* @return This builder for chaining.
*/
public Builder clearBlockHeight() {
blockHeight_ = 0L;
onChanged();
return this;
}
private org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData blockExecutionData_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionDataOrBuilder> blockExecutionDataBuilder_;
/**
*
* BlockExecutionData for the block.
* Note: The block's ID is included within the BlockExecutionData.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 2;
* @return Whether the blockExecutionData field is set.
*/
public boolean hasBlockExecutionData() {
return blockExecutionDataBuilder_ != null || blockExecutionData_ != null;
}
/**
*
* BlockExecutionData for the block.
* Note: The block's ID is included within the BlockExecutionData.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 2;
* @return The blockExecutionData.
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData getBlockExecutionData() {
if (blockExecutionDataBuilder_ == null) {
return blockExecutionData_ == null ? org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.getDefaultInstance() : blockExecutionData_;
} else {
return blockExecutionDataBuilder_.getMessage();
}
}
/**
*
* BlockExecutionData for the block.
* Note: The block's ID is included within the BlockExecutionData.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 2;
*/
public Builder setBlockExecutionData(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData value) {
if (blockExecutionDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
blockExecutionData_ = value;
onChanged();
} else {
blockExecutionDataBuilder_.setMessage(value);
}
return this;
}
/**
*
* BlockExecutionData for the block.
* Note: The block's ID is included within the BlockExecutionData.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 2;
*/
public Builder setBlockExecutionData(
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.Builder builderForValue) {
if (blockExecutionDataBuilder_ == null) {
blockExecutionData_ = builderForValue.build();
onChanged();
} else {
blockExecutionDataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* BlockExecutionData for the block.
* Note: The block's ID is included within the BlockExecutionData.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 2;
*/
public Builder mergeBlockExecutionData(org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData value) {
if (blockExecutionDataBuilder_ == null) {
if (blockExecutionData_ != null) {
blockExecutionData_ =
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.newBuilder(blockExecutionData_).mergeFrom(value).buildPartial();
} else {
blockExecutionData_ = value;
}
onChanged();
} else {
blockExecutionDataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* BlockExecutionData for the block.
* Note: The block's ID is included within the BlockExecutionData.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 2;
*/
public Builder clearBlockExecutionData() {
if (blockExecutionDataBuilder_ == null) {
blockExecutionData_ = null;
onChanged();
} else {
blockExecutionData_ = null;
blockExecutionDataBuilder_ = null;
}
return this;
}
/**
*
* BlockExecutionData for the block.
* Note: The block's ID is included within the BlockExecutionData.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 2;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.Builder getBlockExecutionDataBuilder() {
onChanged();
return getBlockExecutionDataFieldBuilder().getBuilder();
}
/**
*
* BlockExecutionData for the block.
* Note: The block's ID is included within the BlockExecutionData.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 2;
*/
public org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionDataOrBuilder getBlockExecutionDataOrBuilder() {
if (blockExecutionDataBuilder_ != null) {
return blockExecutionDataBuilder_.getMessageOrBuilder();
} else {
return blockExecutionData_ == null ?
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.getDefaultInstance() : blockExecutionData_;
}
}
/**
*
* BlockExecutionData for the block.
* Note: The block's ID is included within the BlockExecutionData.
*
*
* .flow.entities.BlockExecutionData block_execution_data = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionDataOrBuilder>
getBlockExecutionDataFieldBuilder() {
if (blockExecutionDataBuilder_ == null) {
blockExecutionDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionData.Builder, org.onflow.protobuf.entities.BlockExecutionDataOuterClass.BlockExecutionDataOrBuilder>(
getBlockExecutionData(),
getParentForChildren(),
isClean());
blockExecutionData_ = null;
}
return blockExecutionDataBuilder_;
}
private com.google.protobuf.Timestamp blockTimestamp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> blockTimestampBuilder_;
/**
*
* Timestamp from the block containing the execution data.
*
*
* .google.protobuf.Timestamp block_timestamp = 3;
* @return Whether the blockTimestamp field is set.
*/
public boolean hasBlockTimestamp() {
return blockTimestampBuilder_ != null || blockTimestamp_ != null;
}
/**
*
* Timestamp from the block containing the execution data.
*
*
* .google.protobuf.Timestamp block_timestamp = 3;
* @return The blockTimestamp.
*/
public com.google.protobuf.Timestamp getBlockTimestamp() {
if (blockTimestampBuilder_ == null) {
return blockTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : blockTimestamp_;
} else {
return blockTimestampBuilder_.getMessage();
}
}
/**
*
* Timestamp from the block containing the execution data.
*
*
* .google.protobuf.Timestamp block_timestamp = 3;
*/
public Builder setBlockTimestamp(com.google.protobuf.Timestamp value) {
if (blockTimestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
blockTimestamp_ = value;
onChanged();
} else {
blockTimestampBuilder_.setMessage(value);
}
return this;
}
/**
*
* Timestamp from the block containing the execution data.
*
*
* .google.protobuf.Timestamp block_timestamp = 3;
*/
public Builder setBlockTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (blockTimestampBuilder_ == null) {
blockTimestamp_ = builderForValue.build();
onChanged();
} else {
blockTimestampBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Timestamp from the block containing the execution data.
*
*
* .google.protobuf.Timestamp block_timestamp = 3;
*/
public Builder mergeBlockTimestamp(com.google.protobuf.Timestamp value) {
if (blockTimestampBuilder_ == null) {
if (blockTimestamp_ != null) {
blockTimestamp_ =
com.google.protobuf.Timestamp.newBuilder(blockTimestamp_).mergeFrom(value).buildPartial();
} else {
blockTimestamp_ = value;
}
onChanged();
} else {
blockTimestampBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Timestamp from the block containing the execution data.
*
*
* .google.protobuf.Timestamp block_timestamp = 3;
*/
public Builder clearBlockTimestamp() {
if (blockTimestampBuilder_ == null) {
blockTimestamp_ = null;
onChanged();
} else {
blockTimestamp_ = null;
blockTimestampBuilder_ = null;
}
return this;
}
/**
*
* Timestamp from the block containing the execution data.
*
*
* .google.protobuf.Timestamp block_timestamp = 3;
*/
public com.google.protobuf.Timestamp.Builder getBlockTimestampBuilder() {
onChanged();
return getBlockTimestampFieldBuilder().getBuilder();
}
/**
*
* Timestamp from the block containing the execution data.
*
*
* .google.protobuf.Timestamp block_timestamp = 3;
*/
public com.google.protobuf.TimestampOrBuilder getBlockTimestampOrBuilder() {
if (blockTimestampBuilder_ != null) {
return blockTimestampBuilder_.getMessageOrBuilder();
} else {
return blockTimestamp_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : blockTimestamp_;
}
}
/**
*
* Timestamp from the block containing the execution data.
*
*
* .google.protobuf.Timestamp block_timestamp = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getBlockTimestampFieldBuilder() {
if (blockTimestampBuilder_ == null) {
blockTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getBlockTimestamp(),
getParentForChildren(),
isClean());
blockTimestamp_ = null;
}
return blockTimestampBuilder_;
}
@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.executiondata.SubscribeExecutionDataResponse)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.SubscribeExecutionDataResponse)
private static final org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse();
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeExecutionDataResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscribeExecutionDataResponse(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.executiondata.Executiondata.SubscribeExecutionDataResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubscribeExecutionDataFromStartBlockIDRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.SubscribeExecutionDataFromStartBlockIDRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Block ID of the first block to get execution data for.
*
*
* bytes start_block_id = 1;
* @return The startBlockId.
*/
com.google.protobuf.ByteString getStartBlockId();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
*
* The request for SubscribeExecutionDataFromStartBlockIDRequest
*
*
* Protobuf type {@code flow.executiondata.SubscribeExecutionDataFromStartBlockIDRequest}
*/
public static final class SubscribeExecutionDataFromStartBlockIDRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.SubscribeExecutionDataFromStartBlockIDRequest)
SubscribeExecutionDataFromStartBlockIDRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeExecutionDataFromStartBlockIDRequest.newBuilder() to construct.
private SubscribeExecutionDataFromStartBlockIDRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeExecutionDataFromStartBlockIDRequest() {
startBlockId_ = com.google.protobuf.ByteString.EMPTY;
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeExecutionDataFromStartBlockIDRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscribeExecutionDataFromStartBlockIDRequest(
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: {
startBlockId_ = input.readBytes();
break;
}
case 16: {
int rawValue = input.readEnum();
eventEncodingVersion_ = rawValue;
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.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest.Builder.class);
}
public static final int START_BLOCK_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString startBlockId_;
/**
*
* Block ID of the first block to get execution data for.
*
*
* bytes start_block_id = 1;
* @return The startBlockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStartBlockId() {
return startBlockId_;
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 2;
private int eventEncodingVersion_;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The eventEncodingVersion.
*/
@java.lang.Override public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
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 (!startBlockId_.isEmpty()) {
output.writeBytes(1, startBlockId_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
output.writeEnum(2, eventEncodingVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!startBlockId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, startBlockId_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, eventEncodingVersion_);
}
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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest other = (org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest) obj;
if (!getStartBlockId()
.equals(other.getStartBlockId())) return false;
if (eventEncodingVersion_ != other.eventEncodingVersion_) 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) + START_BLOCK_ID_FIELD_NUMBER;
hash = (53 * hash) + getStartBlockId().hashCode();
hash = (37 * hash) + EVENT_ENCODING_VERSION_FIELD_NUMBER;
hash = (53 * hash) + eventEncodingVersion_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest 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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest 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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest 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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest 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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest 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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest 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;
}
/**
*
* The request for SubscribeExecutionDataFromStartBlockIDRequest
*
*
* Protobuf type {@code flow.executiondata.SubscribeExecutionDataFromStartBlockIDRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.SubscribeExecutionDataFromStartBlockIDRequest)
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest.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();
startBlockId_ = com.google.protobuf.ByteString.EMPTY;
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockIDRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest build() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest result = new org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest(this);
result.startBlockId_ = startBlockId_;
result.eventEncodingVersion_ = eventEncodingVersion_;
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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest.getDefaultInstance()) return this;
if (other.getStartBlockId() != com.google.protobuf.ByteString.EMPTY) {
setStartBlockId(other.getStartBlockId());
}
if (other.eventEncodingVersion_ != 0) {
setEventEncodingVersionValue(other.getEventEncodingVersionValue());
}
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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString startBlockId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Block ID of the first block to get execution data for.
*
*
* bytes start_block_id = 1;
* @return The startBlockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStartBlockId() {
return startBlockId_;
}
/**
*
* Block ID of the first block to get execution data for.
*
*
* bytes start_block_id = 1;
* @param value The startBlockId to set.
* @return This builder for chaining.
*/
public Builder setStartBlockId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
startBlockId_ = value;
onChanged();
return this;
}
/**
*
* Block ID of the first block to get execution data for.
*
*
* bytes start_block_id = 1;
* @return This builder for chaining.
*/
public Builder clearStartBlockId() {
startBlockId_ = getDefaultInstance().getStartBlockId();
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @param value The enum numeric value on the wire for eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersionValue(int value) {
eventEncodingVersion_ = value;
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The eventEncodingVersion.
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @param value The eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersion(org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion value) {
if (value == null) {
throw new NullPointerException();
}
eventEncodingVersion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return This builder for chaining.
*/
public Builder clearEventEncodingVersion() {
eventEncodingVersion_ = 0;
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.executiondata.SubscribeExecutionDataFromStartBlockIDRequest)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.SubscribeExecutionDataFromStartBlockIDRequest)
private static final org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest();
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeExecutionDataFromStartBlockIDRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscribeExecutionDataFromStartBlockIDRequest(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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockIDRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubscribeExecutionDataFromStartBlockHeightRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.SubscribeExecutionDataFromStartBlockHeightRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Block height of the first block to get execution data for.
*
*
* uint64 start_block_height = 1;
* @return The startBlockHeight.
*/
long getStartBlockHeight();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
*
* The request for SubscribeExecutionDataFromStartBlockHeightRequest
*
*
* Protobuf type {@code flow.executiondata.SubscribeExecutionDataFromStartBlockHeightRequest}
*/
public static final class SubscribeExecutionDataFromStartBlockHeightRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.SubscribeExecutionDataFromStartBlockHeightRequest)
SubscribeExecutionDataFromStartBlockHeightRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeExecutionDataFromStartBlockHeightRequest.newBuilder() to construct.
private SubscribeExecutionDataFromStartBlockHeightRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeExecutionDataFromStartBlockHeightRequest() {
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeExecutionDataFromStartBlockHeightRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscribeExecutionDataFromStartBlockHeightRequest(
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: {
startBlockHeight_ = input.readUInt64();
break;
}
case 16: {
int rawValue = input.readEnum();
eventEncodingVersion_ = rawValue;
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.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest.Builder.class);
}
public static final int START_BLOCK_HEIGHT_FIELD_NUMBER = 1;
private long startBlockHeight_;
/**
*
* Block height of the first block to get execution data for.
*
*
* uint64 start_block_height = 1;
* @return The startBlockHeight.
*/
@java.lang.Override
public long getStartBlockHeight() {
return startBlockHeight_;
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 2;
private int eventEncodingVersion_;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The eventEncodingVersion.
*/
@java.lang.Override public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
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 (startBlockHeight_ != 0L) {
output.writeUInt64(1, startBlockHeight_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
output.writeEnum(2, eventEncodingVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (startBlockHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, startBlockHeight_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, eventEncodingVersion_);
}
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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest other = (org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest) obj;
if (getStartBlockHeight()
!= other.getStartBlockHeight()) return false;
if (eventEncodingVersion_ != other.eventEncodingVersion_) 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) + START_BLOCK_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartBlockHeight());
hash = (37 * hash) + EVENT_ENCODING_VERSION_FIELD_NUMBER;
hash = (53 * hash) + eventEncodingVersion_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest 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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest 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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest 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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest 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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest 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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest 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;
}
/**
*
* The request for SubscribeExecutionDataFromStartBlockHeightRequest
*
*
* Protobuf type {@code flow.executiondata.SubscribeExecutionDataFromStartBlockHeightRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.SubscribeExecutionDataFromStartBlockHeightRequest)
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest.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();
startBlockHeight_ = 0L;
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockHeightRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest build() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest result = new org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest(this);
result.startBlockHeight_ = startBlockHeight_;
result.eventEncodingVersion_ = eventEncodingVersion_;
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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest.getDefaultInstance()) return this;
if (other.getStartBlockHeight() != 0L) {
setStartBlockHeight(other.getStartBlockHeight());
}
if (other.eventEncodingVersion_ != 0) {
setEventEncodingVersionValue(other.getEventEncodingVersionValue());
}
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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long startBlockHeight_ ;
/**
*
* Block height of the first block to get execution data for.
*
*
* uint64 start_block_height = 1;
* @return The startBlockHeight.
*/
@java.lang.Override
public long getStartBlockHeight() {
return startBlockHeight_;
}
/**
*
* Block height of the first block to get execution data for.
*
*
* uint64 start_block_height = 1;
* @param value The startBlockHeight to set.
* @return This builder for chaining.
*/
public Builder setStartBlockHeight(long value) {
startBlockHeight_ = value;
onChanged();
return this;
}
/**
*
* Block height of the first block to get execution data for.
*
*
* uint64 start_block_height = 1;
* @return This builder for chaining.
*/
public Builder clearStartBlockHeight() {
startBlockHeight_ = 0L;
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @param value The enum numeric value on the wire for eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersionValue(int value) {
eventEncodingVersion_ = value;
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The eventEncodingVersion.
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @param value The eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersion(org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion value) {
if (value == null) {
throw new NullPointerException();
}
eventEncodingVersion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return This builder for chaining.
*/
public Builder clearEventEncodingVersion() {
eventEncodingVersion_ = 0;
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.executiondata.SubscribeExecutionDataFromStartBlockHeightRequest)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.SubscribeExecutionDataFromStartBlockHeightRequest)
private static final org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest();
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeExecutionDataFromStartBlockHeightRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscribeExecutionDataFromStartBlockHeightRequest(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.executiondata.Executiondata.SubscribeExecutionDataFromStartBlockHeightRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubscribeExecutionDataFromLatestRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.SubscribeExecutionDataFromLatestRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 1;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 1;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
*
* The request for SubscribeExecutionDataFromLatestRequest
*
*
* Protobuf type {@code flow.executiondata.SubscribeExecutionDataFromLatestRequest}
*/
public static final class SubscribeExecutionDataFromLatestRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.SubscribeExecutionDataFromLatestRequest)
SubscribeExecutionDataFromLatestRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeExecutionDataFromLatestRequest.newBuilder() to construct.
private SubscribeExecutionDataFromLatestRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeExecutionDataFromLatestRequest() {
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeExecutionDataFromLatestRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscribeExecutionDataFromLatestRequest(
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: {
int rawValue = input.readEnum();
eventEncodingVersion_ = rawValue;
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.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataFromLatestRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataFromLatestRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest.Builder.class);
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 1;
private int eventEncodingVersion_;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 1;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 1;
* @return The eventEncodingVersion.
*/
@java.lang.Override public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
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 (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
output.writeEnum(1, eventEncodingVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, eventEncodingVersion_);
}
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.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest other = (org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest) obj;
if (eventEncodingVersion_ != other.eventEncodingVersion_) 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) + EVENT_ENCODING_VERSION_FIELD_NUMBER;
hash = (53 * hash) + eventEncodingVersion_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest 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.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest 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.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest 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.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest 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.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest 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.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest 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;
}
/**
*
* The request for SubscribeExecutionDataFromLatestRequest
*
*
* Protobuf type {@code flow.executiondata.SubscribeExecutionDataFromLatestRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.SubscribeExecutionDataFromLatestRequest)
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataFromLatestRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataFromLatestRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest.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();
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeExecutionDataFromLatestRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest build() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest result = new org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest(this);
result.eventEncodingVersion_ = eventEncodingVersion_;
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.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest.getDefaultInstance()) return this;
if (other.eventEncodingVersion_ != 0) {
setEventEncodingVersionValue(other.getEventEncodingVersionValue());
}
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.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int eventEncodingVersion_ = 0;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 1;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 1;
* @param value The enum numeric value on the wire for eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersionValue(int value) {
eventEncodingVersion_ = value;
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 1;
* @return The eventEncodingVersion.
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 1;
* @param value The eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersion(org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion value) {
if (value == null) {
throw new NullPointerException();
}
eventEncodingVersion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 1;
* @return This builder for chaining.
*/
public Builder clearEventEncodingVersion() {
eventEncodingVersion_ = 0;
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.executiondata.SubscribeExecutionDataFromLatestRequest)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.SubscribeExecutionDataFromLatestRequest)
private static final org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest();
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeExecutionDataFromLatestRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscribeExecutionDataFromLatestRequest(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.executiondata.Executiondata.SubscribeExecutionDataFromLatestRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubscribeEventsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.SubscribeEventsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Block ID of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* bytes start_block_id = 1;
* @return The startBlockId.
*/
com.google.protobuf.ByteString getStartBlockId();
/**
*
* Block height of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* uint64 start_block_height = 2;
* @return The startBlockHeight.
*/
long getStartBlockHeight();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 3;
* @return Whether the filter field is set.
*/
boolean hasFilter();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 3;
* @return The filter.
*/
org.onflow.protobuf.executiondata.Executiondata.EventFilter getFilter();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 3;
*/
org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder getFilterOrBuilder();
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 4;
* @return The heartbeatInterval.
*/
long getHeartbeatInterval();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 5;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 5;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
*
* The request for SubscribeEvents
*
*
* Protobuf type {@code flow.executiondata.SubscribeEventsRequest}
*/
public static final class SubscribeEventsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.SubscribeEventsRequest)
SubscribeEventsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeEventsRequest.newBuilder() to construct.
private SubscribeEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeEventsRequest() {
startBlockId_ = com.google.protobuf.ByteString.EMPTY;
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeEventsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscribeEventsRequest(
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: {
startBlockId_ = input.readBytes();
break;
}
case 16: {
startBlockHeight_ = input.readUInt64();
break;
}
case 26: {
org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder subBuilder = null;
if (filter_ != null) {
subBuilder = filter_.toBuilder();
}
filter_ = input.readMessage(org.onflow.protobuf.executiondata.Executiondata.EventFilter.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(filter_);
filter_ = subBuilder.buildPartial();
}
break;
}
case 32: {
heartbeatInterval_ = input.readUInt64();
break;
}
case 40: {
int rawValue = input.readEnum();
eventEncodingVersion_ = rawValue;
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.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest.Builder.class);
}
public static final int START_BLOCK_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString startBlockId_;
/**
*
* Block ID of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* bytes start_block_id = 1;
* @return The startBlockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStartBlockId() {
return startBlockId_;
}
public static final int START_BLOCK_HEIGHT_FIELD_NUMBER = 2;
private long startBlockHeight_;
/**
*
* Block height of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* uint64 start_block_height = 2;
* @return The startBlockHeight.
*/
@java.lang.Override
public long getStartBlockHeight() {
return startBlockHeight_;
}
public static final int FILTER_FIELD_NUMBER = 3;
private org.onflow.protobuf.executiondata.Executiondata.EventFilter filter_;
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 3;
* @return Whether the filter field is set.
*/
@java.lang.Override
public boolean hasFilter() {
return filter_ != null;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 3;
* @return The filter.
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.EventFilter getFilter() {
return filter_ == null ? org.onflow.protobuf.executiondata.Executiondata.EventFilter.getDefaultInstance() : filter_;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 3;
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder getFilterOrBuilder() {
return getFilter();
}
public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER = 4;
private long heartbeatInterval_;
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 4;
* @return The heartbeatInterval.
*/
@java.lang.Override
public long getHeartbeatInterval() {
return heartbeatInterval_;
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 5;
private int eventEncodingVersion_;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 5;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 5;
* @return The eventEncodingVersion.
*/
@java.lang.Override public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
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 (!startBlockId_.isEmpty()) {
output.writeBytes(1, startBlockId_);
}
if (startBlockHeight_ != 0L) {
output.writeUInt64(2, startBlockHeight_);
}
if (filter_ != null) {
output.writeMessage(3, getFilter());
}
if (heartbeatInterval_ != 0L) {
output.writeUInt64(4, heartbeatInterval_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
output.writeEnum(5, eventEncodingVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!startBlockId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, startBlockId_);
}
if (startBlockHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, startBlockHeight_);
}
if (filter_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getFilter());
}
if (heartbeatInterval_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, heartbeatInterval_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, eventEncodingVersion_);
}
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.executiondata.Executiondata.SubscribeEventsRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest other = (org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest) obj;
if (!getStartBlockId()
.equals(other.getStartBlockId())) return false;
if (getStartBlockHeight()
!= other.getStartBlockHeight()) return false;
if (hasFilter() != other.hasFilter()) return false;
if (hasFilter()) {
if (!getFilter()
.equals(other.getFilter())) return false;
}
if (getHeartbeatInterval()
!= other.getHeartbeatInterval()) return false;
if (eventEncodingVersion_ != other.eventEncodingVersion_) 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) + START_BLOCK_ID_FIELD_NUMBER;
hash = (53 * hash) + getStartBlockId().hashCode();
hash = (37 * hash) + START_BLOCK_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartBlockHeight());
if (hasFilter()) {
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
}
hash = (37 * hash) + HEARTBEAT_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeartbeatInterval());
hash = (37 * hash) + EVENT_ENCODING_VERSION_FIELD_NUMBER;
hash = (53 * hash) + eventEncodingVersion_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest 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.executiondata.Executiondata.SubscribeEventsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest 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.executiondata.Executiondata.SubscribeEventsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest 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.executiondata.Executiondata.SubscribeEventsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest 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.executiondata.Executiondata.SubscribeEventsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest 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.executiondata.Executiondata.SubscribeEventsRequest 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;
}
/**
*
* The request for SubscribeEvents
*
*
* Protobuf type {@code flow.executiondata.SubscribeEventsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.SubscribeEventsRequest)
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest.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();
startBlockId_ = com.google.protobuf.ByteString.EMPTY;
startBlockHeight_ = 0L;
if (filterBuilder_ == null) {
filter_ = null;
} else {
filter_ = null;
filterBuilder_ = null;
}
heartbeatInterval_ = 0L;
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest build() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest result = new org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest(this);
result.startBlockId_ = startBlockId_;
result.startBlockHeight_ = startBlockHeight_;
if (filterBuilder_ == null) {
result.filter_ = filter_;
} else {
result.filter_ = filterBuilder_.build();
}
result.heartbeatInterval_ = heartbeatInterval_;
result.eventEncodingVersion_ = eventEncodingVersion_;
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.executiondata.Executiondata.SubscribeEventsRequest) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest.getDefaultInstance()) return this;
if (other.getStartBlockId() != com.google.protobuf.ByteString.EMPTY) {
setStartBlockId(other.getStartBlockId());
}
if (other.getStartBlockHeight() != 0L) {
setStartBlockHeight(other.getStartBlockHeight());
}
if (other.hasFilter()) {
mergeFilter(other.getFilter());
}
if (other.getHeartbeatInterval() != 0L) {
setHeartbeatInterval(other.getHeartbeatInterval());
}
if (other.eventEncodingVersion_ != 0) {
setEventEncodingVersionValue(other.getEventEncodingVersionValue());
}
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.executiondata.Executiondata.SubscribeEventsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString startBlockId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Block ID of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* bytes start_block_id = 1;
* @return The startBlockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStartBlockId() {
return startBlockId_;
}
/**
*
* Block ID of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* bytes start_block_id = 1;
* @param value The startBlockId to set.
* @return This builder for chaining.
*/
public Builder setStartBlockId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
startBlockId_ = value;
onChanged();
return this;
}
/**
*
* Block ID of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* bytes start_block_id = 1;
* @return This builder for chaining.
*/
public Builder clearStartBlockId() {
startBlockId_ = getDefaultInstance().getStartBlockId();
onChanged();
return this;
}
private long startBlockHeight_ ;
/**
*
* Block height of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* uint64 start_block_height = 2;
* @return The startBlockHeight.
*/
@java.lang.Override
public long getStartBlockHeight() {
return startBlockHeight_;
}
/**
*
* Block height of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* uint64 start_block_height = 2;
* @param value The startBlockHeight to set.
* @return This builder for chaining.
*/
public Builder setStartBlockHeight(long value) {
startBlockHeight_ = value;
onChanged();
return this;
}
/**
*
* Block height of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* uint64 start_block_height = 2;
* @return This builder for chaining.
*/
public Builder clearStartBlockHeight() {
startBlockHeight_ = 0L;
onChanged();
return this;
}
private org.onflow.protobuf.executiondata.Executiondata.EventFilter filter_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.EventFilter, org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder> filterBuilder_;
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 3;
* @return Whether the filter field is set.
*/
public boolean hasFilter() {
return filterBuilder_ != null || filter_ != null;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 3;
* @return The filter.
*/
public org.onflow.protobuf.executiondata.Executiondata.EventFilter getFilter() {
if (filterBuilder_ == null) {
return filter_ == null ? org.onflow.protobuf.executiondata.Executiondata.EventFilter.getDefaultInstance() : filter_;
} else {
return filterBuilder_.getMessage();
}
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 3;
*/
public Builder setFilter(org.onflow.protobuf.executiondata.Executiondata.EventFilter value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
} else {
filterBuilder_.setMessage(value);
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 3;
*/
public Builder setFilter(
org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder builderForValue) {
if (filterBuilder_ == null) {
filter_ = builderForValue.build();
onChanged();
} else {
filterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 3;
*/
public Builder mergeFilter(org.onflow.protobuf.executiondata.Executiondata.EventFilter value) {
if (filterBuilder_ == null) {
if (filter_ != null) {
filter_ =
org.onflow.protobuf.executiondata.Executiondata.EventFilter.newBuilder(filter_).mergeFrom(value).buildPartial();
} else {
filter_ = value;
}
onChanged();
} else {
filterBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 3;
*/
public Builder clearFilter() {
if (filterBuilder_ == null) {
filter_ = null;
onChanged();
} else {
filter_ = null;
filterBuilder_ = null;
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 3;
*/
public org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder getFilterBuilder() {
onChanged();
return getFilterFieldBuilder().getBuilder();
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 3;
*/
public org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder getFilterOrBuilder() {
if (filterBuilder_ != null) {
return filterBuilder_.getMessageOrBuilder();
} else {
return filter_ == null ?
org.onflow.protobuf.executiondata.Executiondata.EventFilter.getDefaultInstance() : filter_;
}
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.EventFilter, org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.EventFilter, org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder>(
getFilter(),
getParentForChildren(),
isClean());
filter_ = null;
}
return filterBuilder_;
}
private long heartbeatInterval_ ;
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 4;
* @return The heartbeatInterval.
*/
@java.lang.Override
public long getHeartbeatInterval() {
return heartbeatInterval_;
}
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 4;
* @param value The heartbeatInterval to set.
* @return This builder for chaining.
*/
public Builder setHeartbeatInterval(long value) {
heartbeatInterval_ = value;
onChanged();
return this;
}
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 4;
* @return This builder for chaining.
*/
public Builder clearHeartbeatInterval() {
heartbeatInterval_ = 0L;
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 5;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 5;
* @param value The enum numeric value on the wire for eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersionValue(int value) {
eventEncodingVersion_ = value;
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 5;
* @return The eventEncodingVersion.
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 5;
* @param value The eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersion(org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion value) {
if (value == null) {
throw new NullPointerException();
}
eventEncodingVersion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 5;
* @return This builder for chaining.
*/
public Builder clearEventEncodingVersion() {
eventEncodingVersion_ = 0;
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.executiondata.SubscribeEventsRequest)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.SubscribeEventsRequest)
private static final org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest();
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeEventsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscribeEventsRequest(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.executiondata.Executiondata.SubscribeEventsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubscribeEventsFromStartBlockIDRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.SubscribeEventsFromStartBlockIDRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Block ID of the first block to search for events.
*
*
* bytes start_block_id = 1;
* @return The startBlockId.
*/
com.google.protobuf.ByteString getStartBlockId();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
* @return Whether the filter field is set.
*/
boolean hasFilter();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
* @return The filter.
*/
org.onflow.protobuf.executiondata.Executiondata.EventFilter getFilter();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder getFilterOrBuilder();
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return The heartbeatInterval.
*/
long getHeartbeatInterval();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
*
* The request for SubscribeEventsFromStartBlockID
*
*
* Protobuf type {@code flow.executiondata.SubscribeEventsFromStartBlockIDRequest}
*/
public static final class SubscribeEventsFromStartBlockIDRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.SubscribeEventsFromStartBlockIDRequest)
SubscribeEventsFromStartBlockIDRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeEventsFromStartBlockIDRequest.newBuilder() to construct.
private SubscribeEventsFromStartBlockIDRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeEventsFromStartBlockIDRequest() {
startBlockId_ = com.google.protobuf.ByteString.EMPTY;
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeEventsFromStartBlockIDRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscribeEventsFromStartBlockIDRequest(
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: {
startBlockId_ = input.readBytes();
break;
}
case 18: {
org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder subBuilder = null;
if (filter_ != null) {
subBuilder = filter_.toBuilder();
}
filter_ = input.readMessage(org.onflow.protobuf.executiondata.Executiondata.EventFilter.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(filter_);
filter_ = subBuilder.buildPartial();
}
break;
}
case 24: {
heartbeatInterval_ = input.readUInt64();
break;
}
case 32: {
int rawValue = input.readEnum();
eventEncodingVersion_ = rawValue;
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.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsFromStartBlockIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsFromStartBlockIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest.Builder.class);
}
public static final int START_BLOCK_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString startBlockId_;
/**
*
* Block ID of the first block to search for events.
*
*
* bytes start_block_id = 1;
* @return The startBlockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStartBlockId() {
return startBlockId_;
}
public static final int FILTER_FIELD_NUMBER = 2;
private org.onflow.protobuf.executiondata.Executiondata.EventFilter filter_;
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
* @return Whether the filter field is set.
*/
@java.lang.Override
public boolean hasFilter() {
return filter_ != null;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
* @return The filter.
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.EventFilter getFilter() {
return filter_ == null ? org.onflow.protobuf.executiondata.Executiondata.EventFilter.getDefaultInstance() : filter_;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder getFilterOrBuilder() {
return getFilter();
}
public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER = 3;
private long heartbeatInterval_;
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return The heartbeatInterval.
*/
@java.lang.Override
public long getHeartbeatInterval() {
return heartbeatInterval_;
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 4;
private int eventEncodingVersion_;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The eventEncodingVersion.
*/
@java.lang.Override public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
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 (!startBlockId_.isEmpty()) {
output.writeBytes(1, startBlockId_);
}
if (filter_ != null) {
output.writeMessage(2, getFilter());
}
if (heartbeatInterval_ != 0L) {
output.writeUInt64(3, heartbeatInterval_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
output.writeEnum(4, eventEncodingVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!startBlockId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, startBlockId_);
}
if (filter_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFilter());
}
if (heartbeatInterval_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, heartbeatInterval_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, eventEncodingVersion_);
}
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.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest other = (org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest) obj;
if (!getStartBlockId()
.equals(other.getStartBlockId())) return false;
if (hasFilter() != other.hasFilter()) return false;
if (hasFilter()) {
if (!getFilter()
.equals(other.getFilter())) return false;
}
if (getHeartbeatInterval()
!= other.getHeartbeatInterval()) return false;
if (eventEncodingVersion_ != other.eventEncodingVersion_) 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) + START_BLOCK_ID_FIELD_NUMBER;
hash = (53 * hash) + getStartBlockId().hashCode();
if (hasFilter()) {
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
}
hash = (37 * hash) + HEARTBEAT_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeartbeatInterval());
hash = (37 * hash) + EVENT_ENCODING_VERSION_FIELD_NUMBER;
hash = (53 * hash) + eventEncodingVersion_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest 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.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest 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.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest 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.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest 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.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest 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.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest 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;
}
/**
*
* The request for SubscribeEventsFromStartBlockID
*
*
* Protobuf type {@code flow.executiondata.SubscribeEventsFromStartBlockIDRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.SubscribeEventsFromStartBlockIDRequest)
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsFromStartBlockIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsFromStartBlockIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest.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();
startBlockId_ = com.google.protobuf.ByteString.EMPTY;
if (filterBuilder_ == null) {
filter_ = null;
} else {
filter_ = null;
filterBuilder_ = null;
}
heartbeatInterval_ = 0L;
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsFromStartBlockIDRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest build() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest result = new org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest(this);
result.startBlockId_ = startBlockId_;
if (filterBuilder_ == null) {
result.filter_ = filter_;
} else {
result.filter_ = filterBuilder_.build();
}
result.heartbeatInterval_ = heartbeatInterval_;
result.eventEncodingVersion_ = eventEncodingVersion_;
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.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest.getDefaultInstance()) return this;
if (other.getStartBlockId() != com.google.protobuf.ByteString.EMPTY) {
setStartBlockId(other.getStartBlockId());
}
if (other.hasFilter()) {
mergeFilter(other.getFilter());
}
if (other.getHeartbeatInterval() != 0L) {
setHeartbeatInterval(other.getHeartbeatInterval());
}
if (other.eventEncodingVersion_ != 0) {
setEventEncodingVersionValue(other.getEventEncodingVersionValue());
}
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.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString startBlockId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Block ID of the first block to search for events.
*
*
* bytes start_block_id = 1;
* @return The startBlockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStartBlockId() {
return startBlockId_;
}
/**
*
* Block ID of the first block to search for events.
*
*
* bytes start_block_id = 1;
* @param value The startBlockId to set.
* @return This builder for chaining.
*/
public Builder setStartBlockId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
startBlockId_ = value;
onChanged();
return this;
}
/**
*
* Block ID of the first block to search for events.
*
*
* bytes start_block_id = 1;
* @return This builder for chaining.
*/
public Builder clearStartBlockId() {
startBlockId_ = getDefaultInstance().getStartBlockId();
onChanged();
return this;
}
private org.onflow.protobuf.executiondata.Executiondata.EventFilter filter_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.EventFilter, org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder> filterBuilder_;
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
* @return Whether the filter field is set.
*/
public boolean hasFilter() {
return filterBuilder_ != null || filter_ != null;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
* @return The filter.
*/
public org.onflow.protobuf.executiondata.Executiondata.EventFilter getFilter() {
if (filterBuilder_ == null) {
return filter_ == null ? org.onflow.protobuf.executiondata.Executiondata.EventFilter.getDefaultInstance() : filter_;
} else {
return filterBuilder_.getMessage();
}
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
public Builder setFilter(org.onflow.protobuf.executiondata.Executiondata.EventFilter value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
} else {
filterBuilder_.setMessage(value);
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
public Builder setFilter(
org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder builderForValue) {
if (filterBuilder_ == null) {
filter_ = builderForValue.build();
onChanged();
} else {
filterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
public Builder mergeFilter(org.onflow.protobuf.executiondata.Executiondata.EventFilter value) {
if (filterBuilder_ == null) {
if (filter_ != null) {
filter_ =
org.onflow.protobuf.executiondata.Executiondata.EventFilter.newBuilder(filter_).mergeFrom(value).buildPartial();
} else {
filter_ = value;
}
onChanged();
} else {
filterBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
public Builder clearFilter() {
if (filterBuilder_ == null) {
filter_ = null;
onChanged();
} else {
filter_ = null;
filterBuilder_ = null;
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
public org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder getFilterBuilder() {
onChanged();
return getFilterFieldBuilder().getBuilder();
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
public org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder getFilterOrBuilder() {
if (filterBuilder_ != null) {
return filterBuilder_.getMessageOrBuilder();
} else {
return filter_ == null ?
org.onflow.protobuf.executiondata.Executiondata.EventFilter.getDefaultInstance() : filter_;
}
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.EventFilter, org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.EventFilter, org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder>(
getFilter(),
getParentForChildren(),
isClean());
filter_ = null;
}
return filterBuilder_;
}
private long heartbeatInterval_ ;
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return The heartbeatInterval.
*/
@java.lang.Override
public long getHeartbeatInterval() {
return heartbeatInterval_;
}
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @param value The heartbeatInterval to set.
* @return This builder for chaining.
*/
public Builder setHeartbeatInterval(long value) {
heartbeatInterval_ = value;
onChanged();
return this;
}
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return This builder for chaining.
*/
public Builder clearHeartbeatInterval() {
heartbeatInterval_ = 0L;
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @param value The enum numeric value on the wire for eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersionValue(int value) {
eventEncodingVersion_ = value;
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The eventEncodingVersion.
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @param value The eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersion(org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion value) {
if (value == null) {
throw new NullPointerException();
}
eventEncodingVersion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return This builder for chaining.
*/
public Builder clearEventEncodingVersion() {
eventEncodingVersion_ = 0;
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.executiondata.SubscribeEventsFromStartBlockIDRequest)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.SubscribeEventsFromStartBlockIDRequest)
private static final org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest();
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeEventsFromStartBlockIDRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscribeEventsFromStartBlockIDRequest(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.executiondata.Executiondata.SubscribeEventsFromStartBlockIDRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubscribeEventsFromStartHeightRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.SubscribeEventsFromStartHeightRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Block height of the first block to search for events.
*
*
* uint64 start_block_height = 1;
* @return The startBlockHeight.
*/
long getStartBlockHeight();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
* @return Whether the filter field is set.
*/
boolean hasFilter();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
* @return The filter.
*/
org.onflow.protobuf.executiondata.Executiondata.EventFilter getFilter();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder getFilterOrBuilder();
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return The heartbeatInterval.
*/
long getHeartbeatInterval();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
*
* The request for SubscribeEventsFromStartHeight
*
*
* Protobuf type {@code flow.executiondata.SubscribeEventsFromStartHeightRequest}
*/
public static final class SubscribeEventsFromStartHeightRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.SubscribeEventsFromStartHeightRequest)
SubscribeEventsFromStartHeightRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeEventsFromStartHeightRequest.newBuilder() to construct.
private SubscribeEventsFromStartHeightRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeEventsFromStartHeightRequest() {
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeEventsFromStartHeightRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscribeEventsFromStartHeightRequest(
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: {
startBlockHeight_ = input.readUInt64();
break;
}
case 18: {
org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder subBuilder = null;
if (filter_ != null) {
subBuilder = filter_.toBuilder();
}
filter_ = input.readMessage(org.onflow.protobuf.executiondata.Executiondata.EventFilter.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(filter_);
filter_ = subBuilder.buildPartial();
}
break;
}
case 24: {
heartbeatInterval_ = input.readUInt64();
break;
}
case 32: {
int rawValue = input.readEnum();
eventEncodingVersion_ = rawValue;
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.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsFromStartHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsFromStartHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest.Builder.class);
}
public static final int START_BLOCK_HEIGHT_FIELD_NUMBER = 1;
private long startBlockHeight_;
/**
*
* Block height of the first block to search for events.
*
*
* uint64 start_block_height = 1;
* @return The startBlockHeight.
*/
@java.lang.Override
public long getStartBlockHeight() {
return startBlockHeight_;
}
public static final int FILTER_FIELD_NUMBER = 2;
private org.onflow.protobuf.executiondata.Executiondata.EventFilter filter_;
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
* @return Whether the filter field is set.
*/
@java.lang.Override
public boolean hasFilter() {
return filter_ != null;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
* @return The filter.
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.EventFilter getFilter() {
return filter_ == null ? org.onflow.protobuf.executiondata.Executiondata.EventFilter.getDefaultInstance() : filter_;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder getFilterOrBuilder() {
return getFilter();
}
public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER = 3;
private long heartbeatInterval_;
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return The heartbeatInterval.
*/
@java.lang.Override
public long getHeartbeatInterval() {
return heartbeatInterval_;
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 4;
private int eventEncodingVersion_;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The eventEncodingVersion.
*/
@java.lang.Override public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
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 (startBlockHeight_ != 0L) {
output.writeUInt64(1, startBlockHeight_);
}
if (filter_ != null) {
output.writeMessage(2, getFilter());
}
if (heartbeatInterval_ != 0L) {
output.writeUInt64(3, heartbeatInterval_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
output.writeEnum(4, eventEncodingVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (startBlockHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, startBlockHeight_);
}
if (filter_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFilter());
}
if (heartbeatInterval_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, heartbeatInterval_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, eventEncodingVersion_);
}
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.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest other = (org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest) obj;
if (getStartBlockHeight()
!= other.getStartBlockHeight()) return false;
if (hasFilter() != other.hasFilter()) return false;
if (hasFilter()) {
if (!getFilter()
.equals(other.getFilter())) return false;
}
if (getHeartbeatInterval()
!= other.getHeartbeatInterval()) return false;
if (eventEncodingVersion_ != other.eventEncodingVersion_) 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) + START_BLOCK_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartBlockHeight());
if (hasFilter()) {
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
}
hash = (37 * hash) + HEARTBEAT_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeartbeatInterval());
hash = (37 * hash) + EVENT_ENCODING_VERSION_FIELD_NUMBER;
hash = (53 * hash) + eventEncodingVersion_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest 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.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest 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.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest 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.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest 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.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest 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.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest 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;
}
/**
*
* The request for SubscribeEventsFromStartHeight
*
*
* Protobuf type {@code flow.executiondata.SubscribeEventsFromStartHeightRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.SubscribeEventsFromStartHeightRequest)
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsFromStartHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsFromStartHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest.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();
startBlockHeight_ = 0L;
if (filterBuilder_ == null) {
filter_ = null;
} else {
filter_ = null;
filterBuilder_ = null;
}
heartbeatInterval_ = 0L;
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsFromStartHeightRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest build() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest result = new org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest(this);
result.startBlockHeight_ = startBlockHeight_;
if (filterBuilder_ == null) {
result.filter_ = filter_;
} else {
result.filter_ = filterBuilder_.build();
}
result.heartbeatInterval_ = heartbeatInterval_;
result.eventEncodingVersion_ = eventEncodingVersion_;
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.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest.getDefaultInstance()) return this;
if (other.getStartBlockHeight() != 0L) {
setStartBlockHeight(other.getStartBlockHeight());
}
if (other.hasFilter()) {
mergeFilter(other.getFilter());
}
if (other.getHeartbeatInterval() != 0L) {
setHeartbeatInterval(other.getHeartbeatInterval());
}
if (other.eventEncodingVersion_ != 0) {
setEventEncodingVersionValue(other.getEventEncodingVersionValue());
}
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.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long startBlockHeight_ ;
/**
*
* Block height of the first block to search for events.
*
*
* uint64 start_block_height = 1;
* @return The startBlockHeight.
*/
@java.lang.Override
public long getStartBlockHeight() {
return startBlockHeight_;
}
/**
*
* Block height of the first block to search for events.
*
*
* uint64 start_block_height = 1;
* @param value The startBlockHeight to set.
* @return This builder for chaining.
*/
public Builder setStartBlockHeight(long value) {
startBlockHeight_ = value;
onChanged();
return this;
}
/**
*
* Block height of the first block to search for events.
*
*
* uint64 start_block_height = 1;
* @return This builder for chaining.
*/
public Builder clearStartBlockHeight() {
startBlockHeight_ = 0L;
onChanged();
return this;
}
private org.onflow.protobuf.executiondata.Executiondata.EventFilter filter_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.EventFilter, org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder> filterBuilder_;
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
* @return Whether the filter field is set.
*/
public boolean hasFilter() {
return filterBuilder_ != null || filter_ != null;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
* @return The filter.
*/
public org.onflow.protobuf.executiondata.Executiondata.EventFilter getFilter() {
if (filterBuilder_ == null) {
return filter_ == null ? org.onflow.protobuf.executiondata.Executiondata.EventFilter.getDefaultInstance() : filter_;
} else {
return filterBuilder_.getMessage();
}
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
public Builder setFilter(org.onflow.protobuf.executiondata.Executiondata.EventFilter value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
} else {
filterBuilder_.setMessage(value);
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
public Builder setFilter(
org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder builderForValue) {
if (filterBuilder_ == null) {
filter_ = builderForValue.build();
onChanged();
} else {
filterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
public Builder mergeFilter(org.onflow.protobuf.executiondata.Executiondata.EventFilter value) {
if (filterBuilder_ == null) {
if (filter_ != null) {
filter_ =
org.onflow.protobuf.executiondata.Executiondata.EventFilter.newBuilder(filter_).mergeFrom(value).buildPartial();
} else {
filter_ = value;
}
onChanged();
} else {
filterBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
public Builder clearFilter() {
if (filterBuilder_ == null) {
filter_ = null;
onChanged();
} else {
filter_ = null;
filterBuilder_ = null;
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
public org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder getFilterBuilder() {
onChanged();
return getFilterFieldBuilder().getBuilder();
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
public org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder getFilterOrBuilder() {
if (filterBuilder_ != null) {
return filterBuilder_.getMessageOrBuilder();
} else {
return filter_ == null ?
org.onflow.protobuf.executiondata.Executiondata.EventFilter.getDefaultInstance() : filter_;
}
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.EventFilter, org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.EventFilter, org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder>(
getFilter(),
getParentForChildren(),
isClean());
filter_ = null;
}
return filterBuilder_;
}
private long heartbeatInterval_ ;
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return The heartbeatInterval.
*/
@java.lang.Override
public long getHeartbeatInterval() {
return heartbeatInterval_;
}
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @param value The heartbeatInterval to set.
* @return This builder for chaining.
*/
public Builder setHeartbeatInterval(long value) {
heartbeatInterval_ = value;
onChanged();
return this;
}
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return This builder for chaining.
*/
public Builder clearHeartbeatInterval() {
heartbeatInterval_ = 0L;
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @param value The enum numeric value on the wire for eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersionValue(int value) {
eventEncodingVersion_ = value;
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The eventEncodingVersion.
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @param value The eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersion(org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion value) {
if (value == null) {
throw new NullPointerException();
}
eventEncodingVersion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return This builder for chaining.
*/
public Builder clearEventEncodingVersion() {
eventEncodingVersion_ = 0;
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.executiondata.SubscribeEventsFromStartHeightRequest)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.SubscribeEventsFromStartHeightRequest)
private static final org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest();
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeEventsFromStartHeightRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscribeEventsFromStartHeightRequest(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.executiondata.Executiondata.SubscribeEventsFromStartHeightRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubscribeEventsFromLatestRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.SubscribeEventsFromLatestRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 1;
* @return Whether the filter field is set.
*/
boolean hasFilter();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 1;
* @return The filter.
*/
org.onflow.protobuf.executiondata.Executiondata.EventFilter getFilter();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 1;
*/
org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder getFilterOrBuilder();
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 2;
* @return The heartbeatInterval.
*/
long getHeartbeatInterval();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
*
* The request for SubscribeEventsFromLatest
*
*
* Protobuf type {@code flow.executiondata.SubscribeEventsFromLatestRequest}
*/
public static final class SubscribeEventsFromLatestRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.SubscribeEventsFromLatestRequest)
SubscribeEventsFromLatestRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeEventsFromLatestRequest.newBuilder() to construct.
private SubscribeEventsFromLatestRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeEventsFromLatestRequest() {
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeEventsFromLatestRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscribeEventsFromLatestRequest(
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: {
org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder subBuilder = null;
if (filter_ != null) {
subBuilder = filter_.toBuilder();
}
filter_ = input.readMessage(org.onflow.protobuf.executiondata.Executiondata.EventFilter.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(filter_);
filter_ = subBuilder.buildPartial();
}
break;
}
case 16: {
heartbeatInterval_ = input.readUInt64();
break;
}
case 24: {
int rawValue = input.readEnum();
eventEncodingVersion_ = rawValue;
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.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsFromLatestRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsFromLatestRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest.Builder.class);
}
public static final int FILTER_FIELD_NUMBER = 1;
private org.onflow.protobuf.executiondata.Executiondata.EventFilter filter_;
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 1;
* @return Whether the filter field is set.
*/
@java.lang.Override
public boolean hasFilter() {
return filter_ != null;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 1;
* @return The filter.
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.EventFilter getFilter() {
return filter_ == null ? org.onflow.protobuf.executiondata.Executiondata.EventFilter.getDefaultInstance() : filter_;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 1;
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder getFilterOrBuilder() {
return getFilter();
}
public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER = 2;
private long heartbeatInterval_;
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 2;
* @return The heartbeatInterval.
*/
@java.lang.Override
public long getHeartbeatInterval() {
return heartbeatInterval_;
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 3;
private int eventEncodingVersion_;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The eventEncodingVersion.
*/
@java.lang.Override public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
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 (filter_ != null) {
output.writeMessage(1, getFilter());
}
if (heartbeatInterval_ != 0L) {
output.writeUInt64(2, heartbeatInterval_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
output.writeEnum(3, eventEncodingVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (filter_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getFilter());
}
if (heartbeatInterval_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, heartbeatInterval_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, eventEncodingVersion_);
}
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.executiondata.Executiondata.SubscribeEventsFromLatestRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest other = (org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest) obj;
if (hasFilter() != other.hasFilter()) return false;
if (hasFilter()) {
if (!getFilter()
.equals(other.getFilter())) return false;
}
if (getHeartbeatInterval()
!= other.getHeartbeatInterval()) return false;
if (eventEncodingVersion_ != other.eventEncodingVersion_) 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 (hasFilter()) {
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
}
hash = (37 * hash) + HEARTBEAT_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeartbeatInterval());
hash = (37 * hash) + EVENT_ENCODING_VERSION_FIELD_NUMBER;
hash = (53 * hash) + eventEncodingVersion_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest 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.executiondata.Executiondata.SubscribeEventsFromLatestRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest 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.executiondata.Executiondata.SubscribeEventsFromLatestRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest 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.executiondata.Executiondata.SubscribeEventsFromLatestRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest 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.executiondata.Executiondata.SubscribeEventsFromLatestRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest 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.executiondata.Executiondata.SubscribeEventsFromLatestRequest 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;
}
/**
*
* The request for SubscribeEventsFromLatest
*
*
* Protobuf type {@code flow.executiondata.SubscribeEventsFromLatestRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.SubscribeEventsFromLatestRequest)
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsFromLatestRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsFromLatestRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (filterBuilder_ == null) {
filter_ = null;
} else {
filter_ = null;
filterBuilder_ = null;
}
heartbeatInterval_ = 0L;
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsFromLatestRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest build() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest result = new org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest(this);
if (filterBuilder_ == null) {
result.filter_ = filter_;
} else {
result.filter_ = filterBuilder_.build();
}
result.heartbeatInterval_ = heartbeatInterval_;
result.eventEncodingVersion_ = eventEncodingVersion_;
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.executiondata.Executiondata.SubscribeEventsFromLatestRequest) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest.getDefaultInstance()) return this;
if (other.hasFilter()) {
mergeFilter(other.getFilter());
}
if (other.getHeartbeatInterval() != 0L) {
setHeartbeatInterval(other.getHeartbeatInterval());
}
if (other.eventEncodingVersion_ != 0) {
setEventEncodingVersionValue(other.getEventEncodingVersionValue());
}
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.executiondata.Executiondata.SubscribeEventsFromLatestRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.executiondata.Executiondata.EventFilter filter_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.EventFilter, org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder> filterBuilder_;
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 1;
* @return Whether the filter field is set.
*/
public boolean hasFilter() {
return filterBuilder_ != null || filter_ != null;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 1;
* @return The filter.
*/
public org.onflow.protobuf.executiondata.Executiondata.EventFilter getFilter() {
if (filterBuilder_ == null) {
return filter_ == null ? org.onflow.protobuf.executiondata.Executiondata.EventFilter.getDefaultInstance() : filter_;
} else {
return filterBuilder_.getMessage();
}
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 1;
*/
public Builder setFilter(org.onflow.protobuf.executiondata.Executiondata.EventFilter value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
} else {
filterBuilder_.setMessage(value);
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 1;
*/
public Builder setFilter(
org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder builderForValue) {
if (filterBuilder_ == null) {
filter_ = builderForValue.build();
onChanged();
} else {
filterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 1;
*/
public Builder mergeFilter(org.onflow.protobuf.executiondata.Executiondata.EventFilter value) {
if (filterBuilder_ == null) {
if (filter_ != null) {
filter_ =
org.onflow.protobuf.executiondata.Executiondata.EventFilter.newBuilder(filter_).mergeFrom(value).buildPartial();
} else {
filter_ = value;
}
onChanged();
} else {
filterBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 1;
*/
public Builder clearFilter() {
if (filterBuilder_ == null) {
filter_ = null;
onChanged();
} else {
filter_ = null;
filterBuilder_ = null;
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 1;
*/
public org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder getFilterBuilder() {
onChanged();
return getFilterFieldBuilder().getBuilder();
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 1;
*/
public org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder getFilterOrBuilder() {
if (filterBuilder_ != null) {
return filterBuilder_.getMessageOrBuilder();
} else {
return filter_ == null ?
org.onflow.protobuf.executiondata.Executiondata.EventFilter.getDefaultInstance() : filter_;
}
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all events are returned.
*
*
* .flow.executiondata.EventFilter filter = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.EventFilter, org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.EventFilter, org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder>(
getFilter(),
getParentForChildren(),
isClean());
filter_ = null;
}
return filterBuilder_;
}
private long heartbeatInterval_ ;
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 2;
* @return The heartbeatInterval.
*/
@java.lang.Override
public long getHeartbeatInterval() {
return heartbeatInterval_;
}
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 2;
* @param value The heartbeatInterval to set.
* @return This builder for chaining.
*/
public Builder setHeartbeatInterval(long value) {
heartbeatInterval_ = value;
onChanged();
return this;
}
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeEventsResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 2;
* @return This builder for chaining.
*/
public Builder clearHeartbeatInterval() {
heartbeatInterval_ = 0L;
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @param value The enum numeric value on the wire for eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersionValue(int value) {
eventEncodingVersion_ = value;
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The eventEncodingVersion.
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @param value The eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersion(org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion value) {
if (value == null) {
throw new NullPointerException();
}
eventEncodingVersion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return This builder for chaining.
*/
public Builder clearEventEncodingVersion() {
eventEncodingVersion_ = 0;
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.executiondata.SubscribeEventsFromLatestRequest)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.SubscribeEventsFromLatestRequest)
private static final org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest();
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsFromLatestRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeEventsFromLatestRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscribeEventsFromLatestRequest(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.executiondata.Executiondata.SubscribeEventsFromLatestRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubscribeEventsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.SubscribeEventsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Block ID of the block containing the events.
*
*
* bytes block_id = 1;
* @return The blockId.
*/
com.google.protobuf.ByteString getBlockId();
/**
*
* Block height of the block containing the events.
*
*
* uint64 block_height = 2;
* @return The blockHeight.
*/
long getBlockHeight();
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
java.util.List
getEventsList();
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
org.onflow.protobuf.entities.EventOuterClass.Event getEvents(int index);
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
int getEventsCount();
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
java.util.List extends org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList();
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index);
/**
*
* Timestamp from the block containing the events.
*
*
* .google.protobuf.Timestamp block_timestamp = 4;
* @return Whether the blockTimestamp field is set.
*/
boolean hasBlockTimestamp();
/**
*
* Timestamp from the block containing the events.
*
*
* .google.protobuf.Timestamp block_timestamp = 4;
* @return The blockTimestamp.
*/
com.google.protobuf.Timestamp getBlockTimestamp();
/**
*
* Timestamp from the block containing the events.
*
*
* .google.protobuf.Timestamp block_timestamp = 4;
*/
com.google.protobuf.TimestampOrBuilder getBlockTimestampOrBuilder();
/**
*
* The message index of the response message. Used by the client to ensure they received all messages. Starts from "1".
*
*
* uint64 message_index = 5;
* @return The messageIndex.
*/
long getMessageIndex();
}
/**
*
* The response for SubscribeEvents
*
*
* Protobuf type {@code flow.executiondata.SubscribeEventsResponse}
*/
public static final class SubscribeEventsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.SubscribeEventsResponse)
SubscribeEventsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeEventsResponse.newBuilder() to construct.
private SubscribeEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeEventsResponse() {
blockId_ = com.google.protobuf.ByteString.EMPTY;
events_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeEventsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscribeEventsResponse(
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 16: {
blockHeight_ = input.readUInt64();
break;
}
case 26: {
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 34: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (blockTimestamp_ != null) {
subBuilder = blockTimestamp_.toBuilder();
}
blockTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(blockTimestamp_);
blockTimestamp_ = subBuilder.buildPartial();
}
break;
}
case 40: {
messageIndex_ = 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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse.Builder.class);
}
public static final int BLOCK_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString blockId_;
/**
*
* Block ID of the block containing the events.
*
*
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
public static final int BLOCK_HEIGHT_FIELD_NUMBER = 2;
private long blockHeight_;
/**
*
* Block height of the block containing the events.
*
*
* uint64 block_height = 2;
* @return The blockHeight.
*/
@java.lang.Override
public long getBlockHeight() {
return blockHeight_;
}
public static final int EVENTS_FIELD_NUMBER = 3;
private java.util.List events_;
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.Event getEvents(int index) {
return events_.get(index);
}
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index) {
return events_.get(index);
}
public static final int BLOCK_TIMESTAMP_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp blockTimestamp_;
/**
*
* Timestamp from the block containing the events.
*
*
* .google.protobuf.Timestamp block_timestamp = 4;
* @return Whether the blockTimestamp field is set.
*/
@java.lang.Override
public boolean hasBlockTimestamp() {
return blockTimestamp_ != null;
}
/**
*
* Timestamp from the block containing the events.
*
*
* .google.protobuf.Timestamp block_timestamp = 4;
* @return The blockTimestamp.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getBlockTimestamp() {
return blockTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : blockTimestamp_;
}
/**
*
* Timestamp from the block containing the events.
*
*
* .google.protobuf.Timestamp block_timestamp = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getBlockTimestampOrBuilder() {
return getBlockTimestamp();
}
public static final int MESSAGE_INDEX_FIELD_NUMBER = 5;
private long messageIndex_;
/**
*
* The message index of the response message. Used by the client to ensure they received all messages. Starts from "1".
*
*
* uint64 message_index = 5;
* @return The messageIndex.
*/
@java.lang.Override
public long getMessageIndex() {
return messageIndex_;
}
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_);
}
if (blockHeight_ != 0L) {
output.writeUInt64(2, blockHeight_);
}
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(3, events_.get(i));
}
if (blockTimestamp_ != null) {
output.writeMessage(4, getBlockTimestamp());
}
if (messageIndex_ != 0L) {
output.writeUInt64(5, messageIndex_);
}
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_);
}
if (blockHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, blockHeight_);
}
for (int i = 0; i < events_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, events_.get(i));
}
if (blockTimestamp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getBlockTimestamp());
}
if (messageIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, messageIndex_);
}
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.executiondata.Executiondata.SubscribeEventsResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse other = (org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse) obj;
if (!getBlockId()
.equals(other.getBlockId())) return false;
if (getBlockHeight()
!= other.getBlockHeight()) return false;
if (!getEventsList()
.equals(other.getEventsList())) return false;
if (hasBlockTimestamp() != other.hasBlockTimestamp()) return false;
if (hasBlockTimestamp()) {
if (!getBlockTimestamp()
.equals(other.getBlockTimestamp())) return false;
}
if (getMessageIndex()
!= other.getMessageIndex()) 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();
hash = (37 * hash) + BLOCK_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockHeight());
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
if (hasBlockTimestamp()) {
hash = (37 * hash) + BLOCK_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getBlockTimestamp().hashCode();
}
hash = (37 * hash) + MESSAGE_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMessageIndex());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse 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.executiondata.Executiondata.SubscribeEventsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse 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.executiondata.Executiondata.SubscribeEventsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse 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.executiondata.Executiondata.SubscribeEventsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse 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.executiondata.Executiondata.SubscribeEventsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse 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.executiondata.Executiondata.SubscribeEventsResponse 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;
}
/**
*
* The response for SubscribeEvents
*
*
* Protobuf type {@code flow.executiondata.SubscribeEventsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.SubscribeEventsResponse)
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse.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();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
blockId_ = com.google.protobuf.ByteString.EMPTY;
blockHeight_ = 0L;
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
eventsBuilder_.clear();
}
if (blockTimestampBuilder_ == null) {
blockTimestamp_ = null;
} else {
blockTimestamp_ = null;
blockTimestampBuilder_ = null;
}
messageIndex_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeEventsResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse build() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse result = new org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse(this);
int from_bitField0_ = bitField0_;
result.blockId_ = blockId_;
result.blockHeight_ = blockHeight_;
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 (blockTimestampBuilder_ == null) {
result.blockTimestamp_ = blockTimestamp_;
} else {
result.blockTimestamp_ = blockTimestampBuilder_.build();
}
result.messageIndex_ = messageIndex_;
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.executiondata.Executiondata.SubscribeEventsResponse) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse.getDefaultInstance()) return this;
if (other.getBlockId() != com.google.protobuf.ByteString.EMPTY) {
setBlockId(other.getBlockId());
}
if (other.getBlockHeight() != 0L) {
setBlockHeight(other.getBlockHeight());
}
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.hasBlockTimestamp()) {
mergeBlockTimestamp(other.getBlockTimestamp());
}
if (other.getMessageIndex() != 0L) {
setMessageIndex(other.getMessageIndex());
}
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.executiondata.Executiondata.SubscribeEventsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse) 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 containing the events.
*
*
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
/**
*
* Block ID of the block containing the events.
*
*
* 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 containing the events.
*
*
* bytes block_id = 1;
* @return This builder for chaining.
*/
public Builder clearBlockId() {
blockId_ = getDefaultInstance().getBlockId();
onChanged();
return this;
}
private long blockHeight_ ;
/**
*
* Block height of the block containing the events.
*
*
* uint64 block_height = 2;
* @return The blockHeight.
*/
@java.lang.Override
public long getBlockHeight() {
return blockHeight_;
}
/**
*
* Block height of the block containing the events.
*
*
* uint64 block_height = 2;
* @param value The blockHeight to set.
* @return This builder for chaining.
*/
public Builder setBlockHeight(long value) {
blockHeight_ = value;
onChanged();
return this;
}
/**
*
* Block height of the block containing the events.
*
*
* uint64 block_height = 2;
* @return This builder for chaining.
*/
public Builder clearBlockHeight() {
blockHeight_ = 0L;
onChanged();
return this;
}
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 matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
public java.util.List getEventsList() {
if (eventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(events_);
} else {
return eventsBuilder_.getMessageList();
}
}
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
public org.onflow.protobuf.entities.EventOuterClass.Event getEvents(int index) {
if (eventsBuilder_ == null) {
return events_.get(index);
} else {
return eventsBuilder_.getMessage(index);
}
}
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
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 matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
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 matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
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 matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
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 matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
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 matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
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 matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
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 matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
public Builder clearEvents() {
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
eventsBuilder_.clear();
}
return this;
}
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
public Builder removeEvents(int index) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.remove(index);
onChanged();
} else {
eventsBuilder_.remove(index);
}
return this;
}
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
public org.onflow.protobuf.entities.EventOuterClass.Event.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
public org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
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 matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
public org.onflow.protobuf.entities.EventOuterClass.Event.Builder addEventsBuilder() {
return getEventsFieldBuilder().addBuilder(
org.onflow.protobuf.entities.EventOuterClass.Event.getDefaultInstance());
}
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
public org.onflow.protobuf.entities.EventOuterClass.Event.Builder addEventsBuilder(
int index) {
return getEventsFieldBuilder().addBuilder(
index, org.onflow.protobuf.entities.EventOuterClass.Event.getDefaultInstance());
}
/**
*
* Events matching the EventFilter in the request.
* The API may return no events which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.entities.Event events = 3;
*/
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 com.google.protobuf.Timestamp blockTimestamp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> blockTimestampBuilder_;
/**
*
* Timestamp from the block containing the events.
*
*
* .google.protobuf.Timestamp block_timestamp = 4;
* @return Whether the blockTimestamp field is set.
*/
public boolean hasBlockTimestamp() {
return blockTimestampBuilder_ != null || blockTimestamp_ != null;
}
/**
*
* Timestamp from the block containing the events.
*
*
* .google.protobuf.Timestamp block_timestamp = 4;
* @return The blockTimestamp.
*/
public com.google.protobuf.Timestamp getBlockTimestamp() {
if (blockTimestampBuilder_ == null) {
return blockTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : blockTimestamp_;
} else {
return blockTimestampBuilder_.getMessage();
}
}
/**
*
* Timestamp from the block containing the events.
*
*
* .google.protobuf.Timestamp block_timestamp = 4;
*/
public Builder setBlockTimestamp(com.google.protobuf.Timestamp value) {
if (blockTimestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
blockTimestamp_ = value;
onChanged();
} else {
blockTimestampBuilder_.setMessage(value);
}
return this;
}
/**
*
* Timestamp from the block containing the events.
*
*
* .google.protobuf.Timestamp block_timestamp = 4;
*/
public Builder setBlockTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (blockTimestampBuilder_ == null) {
blockTimestamp_ = builderForValue.build();
onChanged();
} else {
blockTimestampBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Timestamp from the block containing the events.
*
*
* .google.protobuf.Timestamp block_timestamp = 4;
*/
public Builder mergeBlockTimestamp(com.google.protobuf.Timestamp value) {
if (blockTimestampBuilder_ == null) {
if (blockTimestamp_ != null) {
blockTimestamp_ =
com.google.protobuf.Timestamp.newBuilder(blockTimestamp_).mergeFrom(value).buildPartial();
} else {
blockTimestamp_ = value;
}
onChanged();
} else {
blockTimestampBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Timestamp from the block containing the events.
*
*
* .google.protobuf.Timestamp block_timestamp = 4;
*/
public Builder clearBlockTimestamp() {
if (blockTimestampBuilder_ == null) {
blockTimestamp_ = null;
onChanged();
} else {
blockTimestamp_ = null;
blockTimestampBuilder_ = null;
}
return this;
}
/**
*
* Timestamp from the block containing the events.
*
*
* .google.protobuf.Timestamp block_timestamp = 4;
*/
public com.google.protobuf.Timestamp.Builder getBlockTimestampBuilder() {
onChanged();
return getBlockTimestampFieldBuilder().getBuilder();
}
/**
*
* Timestamp from the block containing the events.
*
*
* .google.protobuf.Timestamp block_timestamp = 4;
*/
public com.google.protobuf.TimestampOrBuilder getBlockTimestampOrBuilder() {
if (blockTimestampBuilder_ != null) {
return blockTimestampBuilder_.getMessageOrBuilder();
} else {
return blockTimestamp_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : blockTimestamp_;
}
}
/**
*
* Timestamp from the block containing the events.
*
*
* .google.protobuf.Timestamp block_timestamp = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getBlockTimestampFieldBuilder() {
if (blockTimestampBuilder_ == null) {
blockTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getBlockTimestamp(),
getParentForChildren(),
isClean());
blockTimestamp_ = null;
}
return blockTimestampBuilder_;
}
private long messageIndex_ ;
/**
*
* The message index of the response message. Used by the client to ensure they received all messages. Starts from "1".
*
*
* uint64 message_index = 5;
* @return The messageIndex.
*/
@java.lang.Override
public long getMessageIndex() {
return messageIndex_;
}
/**
*
* The message index of the response message. Used by the client to ensure they received all messages. Starts from "1".
*
*
* uint64 message_index = 5;
* @param value The messageIndex to set.
* @return This builder for chaining.
*/
public Builder setMessageIndex(long value) {
messageIndex_ = value;
onChanged();
return this;
}
/**
*
* The message index of the response message. Used by the client to ensure they received all messages. Starts from "1".
*
*
* uint64 message_index = 5;
* @return This builder for chaining.
*/
public Builder clearMessageIndex() {
messageIndex_ = 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.executiondata.SubscribeEventsResponse)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.SubscribeEventsResponse)
private static final org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse();
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeEventsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeEventsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscribeEventsResponse(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.executiondata.Executiondata.SubscribeEventsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EventFilterOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.EventFilter)
com.google.protobuf.MessageOrBuilder {
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @return A list containing the eventType.
*/
java.util.List
getEventTypeList();
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @return The count of eventType.
*/
int getEventTypeCount();
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @param index The index of the element to return.
* @return The eventType at the given index.
*/
java.lang.String getEventType(int index);
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @param index The index of the value to return.
* @return The bytes of the eventType at the given index.
*/
com.google.protobuf.ByteString
getEventTypeBytes(int index);
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @return A list containing the contract.
*/
java.util.List
getContractList();
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @return The count of contract.
*/
int getContractCount();
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @param index The index of the element to return.
* @return The contract at the given index.
*/
java.lang.String getContract(int index);
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @param index The index of the value to return.
* @return The bytes of the contract at the given index.
*/
com.google.protobuf.ByteString
getContractBytes(int index);
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @return A list containing the address.
*/
java.util.List
getAddressList();
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @return The count of address.
*/
int getAddressCount();
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param index The index of the element to return.
* @return The address at the given index.
*/
java.lang.String getAddress(int index);
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param index The index of the value to return.
* @return The bytes of the address at the given index.
*/
com.google.protobuf.ByteString
getAddressBytes(int index);
}
/**
*
* EventFilter defines the filter to apply to block events.
* Filters are applied as an OR operation, i.e. any event matching any of the
* filters is returned. If no filters are provided, all events are returned. If
* there are any invalid filters, the API will return an InvalidArgument error.
*
*
* Protobuf type {@code flow.executiondata.EventFilter}
*/
public static final class EventFilter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.EventFilter)
EventFilterOrBuilder {
private static final long serialVersionUID = 0L;
// Use EventFilter.newBuilder() to construct.
private EventFilter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EventFilter() {
eventType_ = com.google.protobuf.LazyStringArrayList.EMPTY;
contract_ = com.google.protobuf.LazyStringArrayList.EMPTY;
address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EventFilter();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EventFilter(
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: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
eventType_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
eventType_.add(s);
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
contract_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
contract_.add(s);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
address_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
address_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
eventType_ = eventType_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
contract_ = contract_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
address_ = address_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_EventFilter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_EventFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.EventFilter.class, org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder.class);
}
public static final int EVENT_TYPE_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList eventType_;
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @return A list containing the eventType.
*/
public com.google.protobuf.ProtocolStringList
getEventTypeList() {
return eventType_;
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @return The count of eventType.
*/
public int getEventTypeCount() {
return eventType_.size();
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @param index The index of the element to return.
* @return The eventType at the given index.
*/
public java.lang.String getEventType(int index) {
return eventType_.get(index);
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @param index The index of the value to return.
* @return The bytes of the eventType at the given index.
*/
public com.google.protobuf.ByteString
getEventTypeBytes(int index) {
return eventType_.getByteString(index);
}
public static final int CONTRACT_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList contract_;
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @return A list containing the contract.
*/
public com.google.protobuf.ProtocolStringList
getContractList() {
return contract_;
}
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @return The count of contract.
*/
public int getContractCount() {
return contract_.size();
}
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @param index The index of the element to return.
* @return The contract at the given index.
*/
public java.lang.String getContract(int index) {
return contract_.get(index);
}
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @param index The index of the value to return.
* @return The bytes of the contract at the given index.
*/
public com.google.protobuf.ByteString
getContractBytes(int index) {
return contract_.getByteString(index);
}
public static final int ADDRESS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList address_;
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @return A list containing the address.
*/
public com.google.protobuf.ProtocolStringList
getAddressList() {
return address_;
}
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @return The count of address.
*/
public int getAddressCount() {
return address_.size();
}
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param index The index of the element to return.
* @return The address at the given index.
*/
public java.lang.String getAddress(int index) {
return address_.get(index);
}
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param index The index of the value to return.
* @return The bytes of the address at the given index.
*/
public com.google.protobuf.ByteString
getAddressBytes(int index) {
return address_.getByteString(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 < eventType_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventType_.getRaw(i));
}
for (int i = 0; i < contract_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contract_.getRaw(i));
}
for (int i = 0; i < address_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, address_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < eventType_.size(); i++) {
dataSize += computeStringSizeNoTag(eventType_.getRaw(i));
}
size += dataSize;
size += 1 * getEventTypeList().size();
}
{
int dataSize = 0;
for (int i = 0; i < contract_.size(); i++) {
dataSize += computeStringSizeNoTag(contract_.getRaw(i));
}
size += dataSize;
size += 1 * getContractList().size();
}
{
int dataSize = 0;
for (int i = 0; i < address_.size(); i++) {
dataSize += computeStringSizeNoTag(address_.getRaw(i));
}
size += dataSize;
size += 1 * getAddressList().size();
}
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.executiondata.Executiondata.EventFilter)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.EventFilter other = (org.onflow.protobuf.executiondata.Executiondata.EventFilter) obj;
if (!getEventTypeList()
.equals(other.getEventTypeList())) return false;
if (!getContractList()
.equals(other.getContractList())) return false;
if (!getAddressList()
.equals(other.getAddressList())) 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 (getEventTypeCount() > 0) {
hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getEventTypeList().hashCode();
}
if (getContractCount() > 0) {
hash = (37 * hash) + CONTRACT_FIELD_NUMBER;
hash = (53 * hash) + getContractList().hashCode();
}
if (getAddressCount() > 0) {
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddressList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.EventFilter parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.EventFilter 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.executiondata.Executiondata.EventFilter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.EventFilter 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.executiondata.Executiondata.EventFilter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.EventFilter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.EventFilter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.EventFilter 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.executiondata.Executiondata.EventFilter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.EventFilter 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.executiondata.Executiondata.EventFilter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.EventFilter 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.executiondata.Executiondata.EventFilter 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;
}
/**
*
* EventFilter defines the filter to apply to block events.
* Filters are applied as an OR operation, i.e. any event matching any of the
* filters is returned. If no filters are provided, all events are returned. If
* there are any invalid filters, the API will return an InvalidArgument error.
*
*
* Protobuf type {@code flow.executiondata.EventFilter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.EventFilter)
org.onflow.protobuf.executiondata.Executiondata.EventFilterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_EventFilter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_EventFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.EventFilter.class, org.onflow.protobuf.executiondata.Executiondata.EventFilter.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.EventFilter.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();
eventType_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
contract_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_EventFilter_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.EventFilter getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.EventFilter.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.EventFilter build() {
org.onflow.protobuf.executiondata.Executiondata.EventFilter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.EventFilter buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.EventFilter result = new org.onflow.protobuf.executiondata.Executiondata.EventFilter(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
eventType_ = eventType_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.eventType_ = eventType_;
if (((bitField0_ & 0x00000002) != 0)) {
contract_ = contract_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.contract_ = contract_;
if (((bitField0_ & 0x00000004) != 0)) {
address_ = address_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.address_ = address_;
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.executiondata.Executiondata.EventFilter) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.EventFilter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.EventFilter other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.EventFilter.getDefaultInstance()) return this;
if (!other.eventType_.isEmpty()) {
if (eventType_.isEmpty()) {
eventType_ = other.eventType_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEventTypeIsMutable();
eventType_.addAll(other.eventType_);
}
onChanged();
}
if (!other.contract_.isEmpty()) {
if (contract_.isEmpty()) {
contract_ = other.contract_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureContractIsMutable();
contract_.addAll(other.contract_);
}
onChanged();
}
if (!other.address_.isEmpty()) {
if (address_.isEmpty()) {
address_ = other.address_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureAddressIsMutable();
address_.addAll(other.address_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.onflow.protobuf.executiondata.Executiondata.EventFilter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.EventFilter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList eventType_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureEventTypeIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
eventType_ = new com.google.protobuf.LazyStringArrayList(eventType_);
bitField0_ |= 0x00000001;
}
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @return A list containing the eventType.
*/
public com.google.protobuf.ProtocolStringList
getEventTypeList() {
return eventType_.getUnmodifiableView();
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @return The count of eventType.
*/
public int getEventTypeCount() {
return eventType_.size();
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @param index The index of the element to return.
* @return The eventType at the given index.
*/
public java.lang.String getEventType(int index) {
return eventType_.get(index);
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @param index The index of the value to return.
* @return The bytes of the eventType at the given index.
*/
public com.google.protobuf.ByteString
getEventTypeBytes(int index) {
return eventType_.getByteString(index);
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @param index The index to set the value at.
* @param value The eventType to set.
* @return This builder for chaining.
*/
public Builder setEventType(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEventTypeIsMutable();
eventType_.set(index, value);
onChanged();
return this;
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @param value The eventType to add.
* @return This builder for chaining.
*/
public Builder addEventType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEventTypeIsMutable();
eventType_.add(value);
onChanged();
return this;
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @param values The eventType to add.
* @return This builder for chaining.
*/
public Builder addAllEventType(
java.lang.Iterable values) {
ensureEventTypeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, eventType_);
onChanged();
return this;
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @return This builder for chaining.
*/
public Builder clearEventType() {
eventType_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types have 2 formats:
* - Protocol events:
* flow.[event name]
* - Smart contract events:
* A.[contract address].[contract name].[event name]
*
*
* repeated string event_type = 1;
* @param value The bytes of the eventType to add.
* @return This builder for chaining.
*/
public Builder addEventTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureEventTypeIsMutable();
eventType_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList contract_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureContractIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
contract_ = new com.google.protobuf.LazyStringArrayList(contract_);
bitField0_ |= 0x00000002;
}
}
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @return A list containing the contract.
*/
public com.google.protobuf.ProtocolStringList
getContractList() {
return contract_.getUnmodifiableView();
}
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @return The count of contract.
*/
public int getContractCount() {
return contract_.size();
}
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @param index The index of the element to return.
* @return The contract at the given index.
*/
public java.lang.String getContract(int index) {
return contract_.get(index);
}
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @param index The index of the value to return.
* @return The bytes of the contract at the given index.
*/
public com.google.protobuf.ByteString
getContractBytes(int index) {
return contract_.getByteString(index);
}
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @param index The index to set the value at.
* @param value The contract to set.
* @return This builder for chaining.
*/
public Builder setContract(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureContractIsMutable();
contract_.set(index, value);
onChanged();
return this;
}
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @param value The contract to add.
* @return This builder for chaining.
*/
public Builder addContract(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureContractIsMutable();
contract_.add(value);
onChanged();
return this;
}
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @param values The contract to add.
* @return This builder for chaining.
*/
public Builder addAllContract(
java.lang.Iterable values) {
ensureContractIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contract_);
onChanged();
return this;
}
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @return This builder for chaining.
*/
public Builder clearContract() {
contract_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* A list of contracts who's events should be included.
* All events emitted by any of the provided contracts will be returned.
* Contracts have the following name formats:
* - Protocol events:
* flow
* - Smart contract events:
* A.[contract address].[contract name]
* This filter matches on the full contract including its address, not just
* the contract's name.
*
*
* repeated string contract = 2;
* @param value The bytes of the contract to add.
* @return This builder for chaining.
*/
public Builder addContractBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureContractIsMutable();
contract_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAddressIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
address_ = new com.google.protobuf.LazyStringArrayList(address_);
bitField0_ |= 0x00000004;
}
}
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @return A list containing the address.
*/
public com.google.protobuf.ProtocolStringList
getAddressList() {
return address_.getUnmodifiableView();
}
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @return The count of address.
*/
public int getAddressCount() {
return address_.size();
}
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param index The index of the element to return.
* @return The address at the given index.
*/
public java.lang.String getAddress(int index) {
return address_.get(index);
}
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param index The index of the value to return.
* @return The bytes of the address at the given index.
*/
public com.google.protobuf.ByteString
getAddressBytes(int index) {
return address_.getByteString(index);
}
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param index The index to set the value at.
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAddressIsMutable();
address_.set(index, value);
onChanged();
return this;
}
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param value The address to add.
* @return This builder for chaining.
*/
public Builder addAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAddressIsMutable();
address_.add(value);
onChanged();
return this;
}
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param values The address to add.
* @return This builder for chaining.
*/
public Builder addAllAddress(
java.lang.Iterable values) {
ensureAddressIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, address_);
onChanged();
return this;
}
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* A list of addresses who's events should be included.
* All events emitted by any contract held by any of the provided addresses
* will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param value The bytes of the address to add.
* @return This builder for chaining.
*/
public Builder addAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAddressIsMutable();
address_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:flow.executiondata.EventFilter)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.EventFilter)
private static final org.onflow.protobuf.executiondata.Executiondata.EventFilter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.EventFilter();
}
public static org.onflow.protobuf.executiondata.Executiondata.EventFilter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EventFilter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EventFilter(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.executiondata.Executiondata.EventFilter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetRegisterValuesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.GetRegisterValuesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Block height of the execution state being queried.
*
*
* uint64 block_height = 1;
* @return The blockHeight.
*/
long getBlockHeight();
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
java.util.List
getRegisterIdsList();
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
org.onflow.protobuf.entities.Register.RegisterID getRegisterIds(int index);
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
int getRegisterIdsCount();
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
java.util.List extends org.onflow.protobuf.entities.Register.RegisterIDOrBuilder>
getRegisterIdsOrBuilderList();
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
org.onflow.protobuf.entities.Register.RegisterIDOrBuilder getRegisterIdsOrBuilder(
int index);
}
/**
*
* request for GetRegisterValues
*
*
* Protobuf type {@code flow.executiondata.GetRegisterValuesRequest}
*/
public static final class GetRegisterValuesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.GetRegisterValuesRequest)
GetRegisterValuesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetRegisterValuesRequest.newBuilder() to construct.
private GetRegisterValuesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetRegisterValuesRequest() {
registerIds_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetRegisterValuesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetRegisterValuesRequest(
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 8: {
blockHeight_ = input.readUInt64();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
registerIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
registerIds_.add(
input.readMessage(org.onflow.protobuf.entities.Register.RegisterID.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)) {
registerIds_ = java.util.Collections.unmodifiableList(registerIds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetRegisterValuesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetRegisterValuesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest.class, org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest.Builder.class);
}
public static final int BLOCK_HEIGHT_FIELD_NUMBER = 1;
private long blockHeight_;
/**
*
* Block height of the execution state being queried.
*
*
* uint64 block_height = 1;
* @return The blockHeight.
*/
@java.lang.Override
public long getBlockHeight() {
return blockHeight_;
}
public static final int REGISTER_IDS_FIELD_NUMBER = 2;
private java.util.List registerIds_;
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
@java.lang.Override
public java.util.List getRegisterIdsList() {
return registerIds_;
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.entities.Register.RegisterIDOrBuilder>
getRegisterIdsOrBuilderList() {
return registerIds_;
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
@java.lang.Override
public int getRegisterIdsCount() {
return registerIds_.size();
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.Register.RegisterID getRegisterIds(int index) {
return registerIds_.get(index);
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.Register.RegisterIDOrBuilder getRegisterIdsOrBuilder(
int index) {
return registerIds_.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 (blockHeight_ != 0L) {
output.writeUInt64(1, blockHeight_);
}
for (int i = 0; i < registerIds_.size(); i++) {
output.writeMessage(2, registerIds_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (blockHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, blockHeight_);
}
for (int i = 0; i < registerIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, registerIds_.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.executiondata.Executiondata.GetRegisterValuesRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest other = (org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest) obj;
if (getBlockHeight()
!= other.getBlockHeight()) return false;
if (!getRegisterIdsList()
.equals(other.getRegisterIdsList())) 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_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockHeight());
if (getRegisterIdsCount() > 0) {
hash = (37 * hash) + REGISTER_IDS_FIELD_NUMBER;
hash = (53 * hash) + getRegisterIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest 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.executiondata.Executiondata.GetRegisterValuesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest 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.executiondata.Executiondata.GetRegisterValuesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest 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.executiondata.Executiondata.GetRegisterValuesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest 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.executiondata.Executiondata.GetRegisterValuesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest 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.executiondata.Executiondata.GetRegisterValuesRequest 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;
}
/**
*
* request for GetRegisterValues
*
*
* Protobuf type {@code flow.executiondata.GetRegisterValuesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.GetRegisterValuesRequest)
org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetRegisterValuesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetRegisterValuesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest.class, org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRegisterIdsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
blockHeight_ = 0L;
if (registerIdsBuilder_ == null) {
registerIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
registerIdsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetRegisterValuesRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest build() {
org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest result = new org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest(this);
int from_bitField0_ = bitField0_;
result.blockHeight_ = blockHeight_;
if (registerIdsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
registerIds_ = java.util.Collections.unmodifiableList(registerIds_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.registerIds_ = registerIds_;
} else {
result.registerIds_ = registerIdsBuilder_.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.executiondata.Executiondata.GetRegisterValuesRequest) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest.getDefaultInstance()) return this;
if (other.getBlockHeight() != 0L) {
setBlockHeight(other.getBlockHeight());
}
if (registerIdsBuilder_ == null) {
if (!other.registerIds_.isEmpty()) {
if (registerIds_.isEmpty()) {
registerIds_ = other.registerIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRegisterIdsIsMutable();
registerIds_.addAll(other.registerIds_);
}
onChanged();
}
} else {
if (!other.registerIds_.isEmpty()) {
if (registerIdsBuilder_.isEmpty()) {
registerIdsBuilder_.dispose();
registerIdsBuilder_ = null;
registerIds_ = other.registerIds_;
bitField0_ = (bitField0_ & ~0x00000001);
registerIdsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRegisterIdsFieldBuilder() : null;
} else {
registerIdsBuilder_.addAllMessages(other.registerIds_);
}
}
}
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.executiondata.Executiondata.GetRegisterValuesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long blockHeight_ ;
/**
*
* Block height of the execution state being queried.
*
*
* uint64 block_height = 1;
* @return The blockHeight.
*/
@java.lang.Override
public long getBlockHeight() {
return blockHeight_;
}
/**
*
* Block height of the execution state being queried.
*
*
* uint64 block_height = 1;
* @param value The blockHeight to set.
* @return This builder for chaining.
*/
public Builder setBlockHeight(long value) {
blockHeight_ = value;
onChanged();
return this;
}
/**
*
* Block height of the execution state being queried.
*
*
* uint64 block_height = 1;
* @return This builder for chaining.
*/
public Builder clearBlockHeight() {
blockHeight_ = 0L;
onChanged();
return this;
}
private java.util.List registerIds_ =
java.util.Collections.emptyList();
private void ensureRegisterIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
registerIds_ = new java.util.ArrayList(registerIds_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.Register.RegisterID, org.onflow.protobuf.entities.Register.RegisterID.Builder, org.onflow.protobuf.entities.Register.RegisterIDOrBuilder> registerIdsBuilder_;
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public java.util.List getRegisterIdsList() {
if (registerIdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(registerIds_);
} else {
return registerIdsBuilder_.getMessageList();
}
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public int getRegisterIdsCount() {
if (registerIdsBuilder_ == null) {
return registerIds_.size();
} else {
return registerIdsBuilder_.getCount();
}
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public org.onflow.protobuf.entities.Register.RegisterID getRegisterIds(int index) {
if (registerIdsBuilder_ == null) {
return registerIds_.get(index);
} else {
return registerIdsBuilder_.getMessage(index);
}
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public Builder setRegisterIds(
int index, org.onflow.protobuf.entities.Register.RegisterID value) {
if (registerIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegisterIdsIsMutable();
registerIds_.set(index, value);
onChanged();
} else {
registerIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public Builder setRegisterIds(
int index, org.onflow.protobuf.entities.Register.RegisterID.Builder builderForValue) {
if (registerIdsBuilder_ == null) {
ensureRegisterIdsIsMutable();
registerIds_.set(index, builderForValue.build());
onChanged();
} else {
registerIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public Builder addRegisterIds(org.onflow.protobuf.entities.Register.RegisterID value) {
if (registerIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegisterIdsIsMutable();
registerIds_.add(value);
onChanged();
} else {
registerIdsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public Builder addRegisterIds(
int index, org.onflow.protobuf.entities.Register.RegisterID value) {
if (registerIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegisterIdsIsMutable();
registerIds_.add(index, value);
onChanged();
} else {
registerIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public Builder addRegisterIds(
org.onflow.protobuf.entities.Register.RegisterID.Builder builderForValue) {
if (registerIdsBuilder_ == null) {
ensureRegisterIdsIsMutable();
registerIds_.add(builderForValue.build());
onChanged();
} else {
registerIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public Builder addRegisterIds(
int index, org.onflow.protobuf.entities.Register.RegisterID.Builder builderForValue) {
if (registerIdsBuilder_ == null) {
ensureRegisterIdsIsMutable();
registerIds_.add(index, builderForValue.build());
onChanged();
} else {
registerIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public Builder addAllRegisterIds(
java.lang.Iterable extends org.onflow.protobuf.entities.Register.RegisterID> values) {
if (registerIdsBuilder_ == null) {
ensureRegisterIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, registerIds_);
onChanged();
} else {
registerIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public Builder clearRegisterIds() {
if (registerIdsBuilder_ == null) {
registerIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
registerIdsBuilder_.clear();
}
return this;
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public Builder removeRegisterIds(int index) {
if (registerIdsBuilder_ == null) {
ensureRegisterIdsIsMutable();
registerIds_.remove(index);
onChanged();
} else {
registerIdsBuilder_.remove(index);
}
return this;
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public org.onflow.protobuf.entities.Register.RegisterID.Builder getRegisterIdsBuilder(
int index) {
return getRegisterIdsFieldBuilder().getBuilder(index);
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public org.onflow.protobuf.entities.Register.RegisterIDOrBuilder getRegisterIdsOrBuilder(
int index) {
if (registerIdsBuilder_ == null) {
return registerIds_.get(index); } else {
return registerIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public java.util.List extends org.onflow.protobuf.entities.Register.RegisterIDOrBuilder>
getRegisterIdsOrBuilderList() {
if (registerIdsBuilder_ != null) {
return registerIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(registerIds_);
}
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public org.onflow.protobuf.entities.Register.RegisterID.Builder addRegisterIdsBuilder() {
return getRegisterIdsFieldBuilder().addBuilder(
org.onflow.protobuf.entities.Register.RegisterID.getDefaultInstance());
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public org.onflow.protobuf.entities.Register.RegisterID.Builder addRegisterIdsBuilder(
int index) {
return getRegisterIdsFieldBuilder().addBuilder(
index, org.onflow.protobuf.entities.Register.RegisterID.getDefaultInstance());
}
/**
*
* Register IDs of the Ledger.RegisterID format with an owner and key.
*
*
* repeated .flow.entities.RegisterID register_ids = 2;
*/
public java.util.List
getRegisterIdsBuilderList() {
return getRegisterIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.Register.RegisterID, org.onflow.protobuf.entities.Register.RegisterID.Builder, org.onflow.protobuf.entities.Register.RegisterIDOrBuilder>
getRegisterIdsFieldBuilder() {
if (registerIdsBuilder_ == null) {
registerIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.Register.RegisterID, org.onflow.protobuf.entities.Register.RegisterID.Builder, org.onflow.protobuf.entities.Register.RegisterIDOrBuilder>(
registerIds_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
registerIds_ = null;
}
return registerIdsBuilder_;
}
@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.executiondata.GetRegisterValuesRequest)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.GetRegisterValuesRequest)
private static final org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest();
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetRegisterValuesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetRegisterValuesRequest(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.executiondata.Executiondata.GetRegisterValuesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetRegisterValuesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.GetRegisterValuesResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* raw register values at the given height.
*
*
* repeated bytes values = 1;
* @return A list containing the values.
*/
java.util.List getValuesList();
/**
*
* raw register values at the given height.
*
*
* repeated bytes values = 1;
* @return The count of values.
*/
int getValuesCount();
/**
*
* raw register values at the given height.
*
*
* repeated bytes values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
com.google.protobuf.ByteString getValues(int index);
}
/**
*
* response for GetRegisterValues
*
*
* Protobuf type {@code flow.executiondata.GetRegisterValuesResponse}
*/
public static final class GetRegisterValuesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.GetRegisterValuesResponse)
GetRegisterValuesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetRegisterValuesResponse.newBuilder() to construct.
private GetRegisterValuesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetRegisterValuesResponse() {
values_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetRegisterValuesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetRegisterValuesResponse(
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)) {
values_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
values_.add(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)) {
values_ = java.util.Collections.unmodifiableList(values_); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetRegisterValuesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetRegisterValuesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse.class, org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
private java.util.List values_;
/**
*
* raw register values at the given height.
*
*
* repeated bytes values = 1;
* @return A list containing the values.
*/
@java.lang.Override
public java.util.List
getValuesList() {
return values_;
}
/**
*
* raw register values at the given height.
*
*
* repeated bytes values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
*
* raw register values at the given height.
*
*
* repeated bytes values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public com.google.protobuf.ByteString getValues(int index) {
return values_.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 < values_.size(); i++) {
output.writeBytes(1, values_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < values_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(values_.get(i));
}
size += dataSize;
size += 1 * getValuesList().size();
}
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.executiondata.Executiondata.GetRegisterValuesResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse other = (org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse) obj;
if (!getValuesList()
.equals(other.getValuesList())) 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 (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse 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.executiondata.Executiondata.GetRegisterValuesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse 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.executiondata.Executiondata.GetRegisterValuesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse 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.executiondata.Executiondata.GetRegisterValuesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse 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.executiondata.Executiondata.GetRegisterValuesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse 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.executiondata.Executiondata.GetRegisterValuesResponse 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;
}
/**
*
* response for GetRegisterValues
*
*
* Protobuf type {@code flow.executiondata.GetRegisterValuesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.GetRegisterValuesResponse)
org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetRegisterValuesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetRegisterValuesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse.class, org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse.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();
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_GetRegisterValuesResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse build() {
org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse result = new org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
values_ = java.util.Collections.unmodifiableList(values_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
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.executiondata.Executiondata.GetRegisterValuesResponse) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse.getDefaultInstance()) return this;
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List values_ = java.util.Collections.emptyList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = new java.util.ArrayList(values_);
bitField0_ |= 0x00000001;
}
}
/**
*
* raw register values at the given height.
*
*
* repeated bytes values = 1;
* @return A list containing the values.
*/
public java.util.List
getValuesList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(values_) : values_;
}
/**
*
* raw register values at the given height.
*
*
* repeated bytes values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
*
* raw register values at the given height.
*
*
* repeated bytes values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public com.google.protobuf.ByteString getValues(int index) {
return values_.get(index);
}
/**
*
* raw register values at the given height.
*
*
* repeated bytes values = 1;
* @param index The index to set the value at.
* @param value The values to set.
* @return This builder for chaining.
*/
public Builder setValues(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
return this;
}
/**
*
* raw register values at the given height.
*
*
* repeated bytes values = 1;
* @param value The values to add.
* @return This builder for chaining.
*/
public Builder addValues(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
return this;
}
/**
*
* raw register values at the given height.
*
*
* repeated bytes values = 1;
* @param values The values to add.
* @return This builder for chaining.
*/
public Builder addAllValues(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
return this;
}
/**
*
* raw register values at the given height.
*
*
* repeated bytes values = 1;
* @return This builder for chaining.
*/
public Builder clearValues() {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
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.executiondata.GetRegisterValuesResponse)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.GetRegisterValuesResponse)
private static final org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse();
}
public static org.onflow.protobuf.executiondata.Executiondata.GetRegisterValuesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetRegisterValuesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetRegisterValuesResponse(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.executiondata.Executiondata.GetRegisterValuesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubscribeAccountStatusesFromStartBlockIDRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.SubscribeAccountStatusesFromStartBlockIDRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Block ID of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* bytes start_block_id = 1;
* @return The startBlockId.
*/
com.google.protobuf.ByteString getStartBlockId();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
* @return Whether the filter field is set.
*/
boolean hasFilter();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
* @return The filter.
*/
org.onflow.protobuf.executiondata.Executiondata.StatusFilter getFilter();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder getFilterOrBuilder();
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return The heartbeatInterval.
*/
long getHeartbeatInterval();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
*
* The request for SubscribeAccountStatusesFromStartBlockID
*
*
* Protobuf type {@code flow.executiondata.SubscribeAccountStatusesFromStartBlockIDRequest}
*/
public static final class SubscribeAccountStatusesFromStartBlockIDRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.SubscribeAccountStatusesFromStartBlockIDRequest)
SubscribeAccountStatusesFromStartBlockIDRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeAccountStatusesFromStartBlockIDRequest.newBuilder() to construct.
private SubscribeAccountStatusesFromStartBlockIDRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeAccountStatusesFromStartBlockIDRequest() {
startBlockId_ = com.google.protobuf.ByteString.EMPTY;
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeAccountStatusesFromStartBlockIDRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscribeAccountStatusesFromStartBlockIDRequest(
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: {
startBlockId_ = input.readBytes();
break;
}
case 18: {
org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder subBuilder = null;
if (filter_ != null) {
subBuilder = filter_.toBuilder();
}
filter_ = input.readMessage(org.onflow.protobuf.executiondata.Executiondata.StatusFilter.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(filter_);
filter_ = subBuilder.buildPartial();
}
break;
}
case 24: {
heartbeatInterval_ = input.readUInt64();
break;
}
case 32: {
int rawValue = input.readEnum();
eventEncodingVersion_ = rawValue;
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.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesFromStartBlockIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesFromStartBlockIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest.Builder.class);
}
public static final int START_BLOCK_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString startBlockId_;
/**
*
* Block ID of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* bytes start_block_id = 1;
* @return The startBlockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStartBlockId() {
return startBlockId_;
}
public static final int FILTER_FIELD_NUMBER = 2;
private org.onflow.protobuf.executiondata.Executiondata.StatusFilter filter_;
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
* @return Whether the filter field is set.
*/
@java.lang.Override
public boolean hasFilter() {
return filter_ != null;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
* @return The filter.
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.StatusFilter getFilter() {
return filter_ == null ? org.onflow.protobuf.executiondata.Executiondata.StatusFilter.getDefaultInstance() : filter_;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder getFilterOrBuilder() {
return getFilter();
}
public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER = 3;
private long heartbeatInterval_;
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return The heartbeatInterval.
*/
@java.lang.Override
public long getHeartbeatInterval() {
return heartbeatInterval_;
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 4;
private int eventEncodingVersion_;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The eventEncodingVersion.
*/
@java.lang.Override public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
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 (!startBlockId_.isEmpty()) {
output.writeBytes(1, startBlockId_);
}
if (filter_ != null) {
output.writeMessage(2, getFilter());
}
if (heartbeatInterval_ != 0L) {
output.writeUInt64(3, heartbeatInterval_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
output.writeEnum(4, eventEncodingVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!startBlockId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, startBlockId_);
}
if (filter_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFilter());
}
if (heartbeatInterval_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, heartbeatInterval_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, eventEncodingVersion_);
}
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.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest other = (org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest) obj;
if (!getStartBlockId()
.equals(other.getStartBlockId())) return false;
if (hasFilter() != other.hasFilter()) return false;
if (hasFilter()) {
if (!getFilter()
.equals(other.getFilter())) return false;
}
if (getHeartbeatInterval()
!= other.getHeartbeatInterval()) return false;
if (eventEncodingVersion_ != other.eventEncodingVersion_) 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) + START_BLOCK_ID_FIELD_NUMBER;
hash = (53 * hash) + getStartBlockId().hashCode();
if (hasFilter()) {
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
}
hash = (37 * hash) + HEARTBEAT_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeartbeatInterval());
hash = (37 * hash) + EVENT_ENCODING_VERSION_FIELD_NUMBER;
hash = (53 * hash) + eventEncodingVersion_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest 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.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest 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.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest 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.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest 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.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest 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.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest 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;
}
/**
*
* The request for SubscribeAccountStatusesFromStartBlockID
*
*
* Protobuf type {@code flow.executiondata.SubscribeAccountStatusesFromStartBlockIDRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.SubscribeAccountStatusesFromStartBlockIDRequest)
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesFromStartBlockIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesFromStartBlockIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest.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();
startBlockId_ = com.google.protobuf.ByteString.EMPTY;
if (filterBuilder_ == null) {
filter_ = null;
} else {
filter_ = null;
filterBuilder_ = null;
}
heartbeatInterval_ = 0L;
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesFromStartBlockIDRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest build() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest result = new org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest(this);
result.startBlockId_ = startBlockId_;
if (filterBuilder_ == null) {
result.filter_ = filter_;
} else {
result.filter_ = filterBuilder_.build();
}
result.heartbeatInterval_ = heartbeatInterval_;
result.eventEncodingVersion_ = eventEncodingVersion_;
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.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest.getDefaultInstance()) return this;
if (other.getStartBlockId() != com.google.protobuf.ByteString.EMPTY) {
setStartBlockId(other.getStartBlockId());
}
if (other.hasFilter()) {
mergeFilter(other.getFilter());
}
if (other.getHeartbeatInterval() != 0L) {
setHeartbeatInterval(other.getHeartbeatInterval());
}
if (other.eventEncodingVersion_ != 0) {
setEventEncodingVersionValue(other.getEventEncodingVersionValue());
}
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.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString startBlockId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Block ID of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* bytes start_block_id = 1;
* @return The startBlockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStartBlockId() {
return startBlockId_;
}
/**
*
* Block ID of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* bytes start_block_id = 1;
* @param value The startBlockId to set.
* @return This builder for chaining.
*/
public Builder setStartBlockId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
startBlockId_ = value;
onChanged();
return this;
}
/**
*
* Block ID of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* bytes start_block_id = 1;
* @return This builder for chaining.
*/
public Builder clearStartBlockId() {
startBlockId_ = getDefaultInstance().getStartBlockId();
onChanged();
return this;
}
private org.onflow.protobuf.executiondata.Executiondata.StatusFilter filter_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.StatusFilter, org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder> filterBuilder_;
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
* @return Whether the filter field is set.
*/
public boolean hasFilter() {
return filterBuilder_ != null || filter_ != null;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
* @return The filter.
*/
public org.onflow.protobuf.executiondata.Executiondata.StatusFilter getFilter() {
if (filterBuilder_ == null) {
return filter_ == null ? org.onflow.protobuf.executiondata.Executiondata.StatusFilter.getDefaultInstance() : filter_;
} else {
return filterBuilder_.getMessage();
}
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
public Builder setFilter(org.onflow.protobuf.executiondata.Executiondata.StatusFilter value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
} else {
filterBuilder_.setMessage(value);
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
public Builder setFilter(
org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder builderForValue) {
if (filterBuilder_ == null) {
filter_ = builderForValue.build();
onChanged();
} else {
filterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
public Builder mergeFilter(org.onflow.protobuf.executiondata.Executiondata.StatusFilter value) {
if (filterBuilder_ == null) {
if (filter_ != null) {
filter_ =
org.onflow.protobuf.executiondata.Executiondata.StatusFilter.newBuilder(filter_).mergeFrom(value).buildPartial();
} else {
filter_ = value;
}
onChanged();
} else {
filterBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
public Builder clearFilter() {
if (filterBuilder_ == null) {
filter_ = null;
onChanged();
} else {
filter_ = null;
filterBuilder_ = null;
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
public org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder getFilterBuilder() {
onChanged();
return getFilterFieldBuilder().getBuilder();
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
public org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder getFilterOrBuilder() {
if (filterBuilder_ != null) {
return filterBuilder_.getMessageOrBuilder();
} else {
return filter_ == null ?
org.onflow.protobuf.executiondata.Executiondata.StatusFilter.getDefaultInstance() : filter_;
}
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.StatusFilter, org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.StatusFilter, org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder>(
getFilter(),
getParentForChildren(),
isClean());
filter_ = null;
}
return filterBuilder_;
}
private long heartbeatInterval_ ;
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return The heartbeatInterval.
*/
@java.lang.Override
public long getHeartbeatInterval() {
return heartbeatInterval_;
}
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @param value The heartbeatInterval to set.
* @return This builder for chaining.
*/
public Builder setHeartbeatInterval(long value) {
heartbeatInterval_ = value;
onChanged();
return this;
}
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return This builder for chaining.
*/
public Builder clearHeartbeatInterval() {
heartbeatInterval_ = 0L;
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @param value The enum numeric value on the wire for eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersionValue(int value) {
eventEncodingVersion_ = value;
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The eventEncodingVersion.
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @param value The eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersion(org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion value) {
if (value == null) {
throw new NullPointerException();
}
eventEncodingVersion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return This builder for chaining.
*/
public Builder clearEventEncodingVersion() {
eventEncodingVersion_ = 0;
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.executiondata.SubscribeAccountStatusesFromStartBlockIDRequest)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.SubscribeAccountStatusesFromStartBlockIDRequest)
private static final org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest();
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeAccountStatusesFromStartBlockIDRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscribeAccountStatusesFromStartBlockIDRequest(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.executiondata.Executiondata.SubscribeAccountStatusesFromStartBlockIDRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubscribeAccountStatusesFromStartHeightRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.SubscribeAccountStatusesFromStartHeightRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Block height of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* uint64 start_block_height = 1;
* @return The startBlockHeight.
*/
long getStartBlockHeight();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
* @return Whether the filter field is set.
*/
boolean hasFilter();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
* @return The filter.
*/
org.onflow.protobuf.executiondata.Executiondata.StatusFilter getFilter();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder getFilterOrBuilder();
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return The heartbeatInterval.
*/
long getHeartbeatInterval();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
*
* The request for SubscribeAccountStatusesFromStartHeight
*
*
* Protobuf type {@code flow.executiondata.SubscribeAccountStatusesFromStartHeightRequest}
*/
public static final class SubscribeAccountStatusesFromStartHeightRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.SubscribeAccountStatusesFromStartHeightRequest)
SubscribeAccountStatusesFromStartHeightRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeAccountStatusesFromStartHeightRequest.newBuilder() to construct.
private SubscribeAccountStatusesFromStartHeightRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeAccountStatusesFromStartHeightRequest() {
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeAccountStatusesFromStartHeightRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscribeAccountStatusesFromStartHeightRequest(
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: {
startBlockHeight_ = input.readUInt64();
break;
}
case 18: {
org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder subBuilder = null;
if (filter_ != null) {
subBuilder = filter_.toBuilder();
}
filter_ = input.readMessage(org.onflow.protobuf.executiondata.Executiondata.StatusFilter.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(filter_);
filter_ = subBuilder.buildPartial();
}
break;
}
case 24: {
heartbeatInterval_ = input.readUInt64();
break;
}
case 32: {
int rawValue = input.readEnum();
eventEncodingVersion_ = rawValue;
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.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesFromStartHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesFromStartHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest.Builder.class);
}
public static final int START_BLOCK_HEIGHT_FIELD_NUMBER = 1;
private long startBlockHeight_;
/**
*
* Block height of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* uint64 start_block_height = 1;
* @return The startBlockHeight.
*/
@java.lang.Override
public long getStartBlockHeight() {
return startBlockHeight_;
}
public static final int FILTER_FIELD_NUMBER = 2;
private org.onflow.protobuf.executiondata.Executiondata.StatusFilter filter_;
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
* @return Whether the filter field is set.
*/
@java.lang.Override
public boolean hasFilter() {
return filter_ != null;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
* @return The filter.
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.StatusFilter getFilter() {
return filter_ == null ? org.onflow.protobuf.executiondata.Executiondata.StatusFilter.getDefaultInstance() : filter_;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder getFilterOrBuilder() {
return getFilter();
}
public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER = 3;
private long heartbeatInterval_;
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return The heartbeatInterval.
*/
@java.lang.Override
public long getHeartbeatInterval() {
return heartbeatInterval_;
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 4;
private int eventEncodingVersion_;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The eventEncodingVersion.
*/
@java.lang.Override public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
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 (startBlockHeight_ != 0L) {
output.writeUInt64(1, startBlockHeight_);
}
if (filter_ != null) {
output.writeMessage(2, getFilter());
}
if (heartbeatInterval_ != 0L) {
output.writeUInt64(3, heartbeatInterval_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
output.writeEnum(4, eventEncodingVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (startBlockHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, startBlockHeight_);
}
if (filter_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFilter());
}
if (heartbeatInterval_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, heartbeatInterval_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, eventEncodingVersion_);
}
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.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest other = (org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest) obj;
if (getStartBlockHeight()
!= other.getStartBlockHeight()) return false;
if (hasFilter() != other.hasFilter()) return false;
if (hasFilter()) {
if (!getFilter()
.equals(other.getFilter())) return false;
}
if (getHeartbeatInterval()
!= other.getHeartbeatInterval()) return false;
if (eventEncodingVersion_ != other.eventEncodingVersion_) 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) + START_BLOCK_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartBlockHeight());
if (hasFilter()) {
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
}
hash = (37 * hash) + HEARTBEAT_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeartbeatInterval());
hash = (37 * hash) + EVENT_ENCODING_VERSION_FIELD_NUMBER;
hash = (53 * hash) + eventEncodingVersion_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest 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.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest 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.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest 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.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest 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.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest 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.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest 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;
}
/**
*
* The request for SubscribeAccountStatusesFromStartHeight
*
*
* Protobuf type {@code flow.executiondata.SubscribeAccountStatusesFromStartHeightRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.SubscribeAccountStatusesFromStartHeightRequest)
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesFromStartHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesFromStartHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest.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();
startBlockHeight_ = 0L;
if (filterBuilder_ == null) {
filter_ = null;
} else {
filter_ = null;
filterBuilder_ = null;
}
heartbeatInterval_ = 0L;
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesFromStartHeightRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest build() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest result = new org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest(this);
result.startBlockHeight_ = startBlockHeight_;
if (filterBuilder_ == null) {
result.filter_ = filter_;
} else {
result.filter_ = filterBuilder_.build();
}
result.heartbeatInterval_ = heartbeatInterval_;
result.eventEncodingVersion_ = eventEncodingVersion_;
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.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest.getDefaultInstance()) return this;
if (other.getStartBlockHeight() != 0L) {
setStartBlockHeight(other.getStartBlockHeight());
}
if (other.hasFilter()) {
mergeFilter(other.getFilter());
}
if (other.getHeartbeatInterval() != 0L) {
setHeartbeatInterval(other.getHeartbeatInterval());
}
if (other.eventEncodingVersion_ != 0) {
setEventEncodingVersionValue(other.getEventEncodingVersionValue());
}
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.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long startBlockHeight_ ;
/**
*
* Block height of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* uint64 start_block_height = 1;
* @return The startBlockHeight.
*/
@java.lang.Override
public long getStartBlockHeight() {
return startBlockHeight_;
}
/**
*
* Block height of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* uint64 start_block_height = 1;
* @param value The startBlockHeight to set.
* @return This builder for chaining.
*/
public Builder setStartBlockHeight(long value) {
startBlockHeight_ = value;
onChanged();
return this;
}
/**
*
* Block height of the first block to search for events.
* Only one of start_block_id and start_block_height may be provided,
* otherwise an InvalidArgument error is returned. If neither are provided,
* the latest sealed block is used.
*
*
* uint64 start_block_height = 1;
* @return This builder for chaining.
*/
public Builder clearStartBlockHeight() {
startBlockHeight_ = 0L;
onChanged();
return this;
}
private org.onflow.protobuf.executiondata.Executiondata.StatusFilter filter_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.StatusFilter, org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder> filterBuilder_;
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
* @return Whether the filter field is set.
*/
public boolean hasFilter() {
return filterBuilder_ != null || filter_ != null;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
* @return The filter.
*/
public org.onflow.protobuf.executiondata.Executiondata.StatusFilter getFilter() {
if (filterBuilder_ == null) {
return filter_ == null ? org.onflow.protobuf.executiondata.Executiondata.StatusFilter.getDefaultInstance() : filter_;
} else {
return filterBuilder_.getMessage();
}
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
public Builder setFilter(org.onflow.protobuf.executiondata.Executiondata.StatusFilter value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
} else {
filterBuilder_.setMessage(value);
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
public Builder setFilter(
org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder builderForValue) {
if (filterBuilder_ == null) {
filter_ = builderForValue.build();
onChanged();
} else {
filterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
public Builder mergeFilter(org.onflow.protobuf.executiondata.Executiondata.StatusFilter value) {
if (filterBuilder_ == null) {
if (filter_ != null) {
filter_ =
org.onflow.protobuf.executiondata.Executiondata.StatusFilter.newBuilder(filter_).mergeFrom(value).buildPartial();
} else {
filter_ = value;
}
onChanged();
} else {
filterBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
public Builder clearFilter() {
if (filterBuilder_ == null) {
filter_ = null;
onChanged();
} else {
filter_ = null;
filterBuilder_ = null;
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
public org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder getFilterBuilder() {
onChanged();
return getFilterFieldBuilder().getBuilder();
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
public org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder getFilterOrBuilder() {
if (filterBuilder_ != null) {
return filterBuilder_.getMessageOrBuilder();
} else {
return filter_ == null ?
org.onflow.protobuf.executiondata.Executiondata.StatusFilter.getDefaultInstance() : filter_;
}
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.StatusFilter, org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.StatusFilter, org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder>(
getFilter(),
getParentForChildren(),
isClean());
filter_ = null;
}
return filterBuilder_;
}
private long heartbeatInterval_ ;
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return The heartbeatInterval.
*/
@java.lang.Override
public long getHeartbeatInterval() {
return heartbeatInterval_;
}
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @param value The heartbeatInterval to set.
* @return This builder for chaining.
*/
public Builder setHeartbeatInterval(long value) {
heartbeatInterval_ = value;
onChanged();
return this;
}
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 3;
* @return This builder for chaining.
*/
public Builder clearHeartbeatInterval() {
heartbeatInterval_ = 0L;
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @param value The enum numeric value on the wire for eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersionValue(int value) {
eventEncodingVersion_ = value;
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The eventEncodingVersion.
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @param value The eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersion(org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion value) {
if (value == null) {
throw new NullPointerException();
}
eventEncodingVersion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return This builder for chaining.
*/
public Builder clearEventEncodingVersion() {
eventEncodingVersion_ = 0;
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.executiondata.SubscribeAccountStatusesFromStartHeightRequest)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.SubscribeAccountStatusesFromStartHeightRequest)
private static final org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest();
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeAccountStatusesFromStartHeightRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscribeAccountStatusesFromStartHeightRequest(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.executiondata.Executiondata.SubscribeAccountStatusesFromStartHeightRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubscribeAccountStatusesFromLatestBlockRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.SubscribeAccountStatusesFromLatestBlockRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 1;
* @return Whether the filter field is set.
*/
boolean hasFilter();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 1;
* @return The filter.
*/
org.onflow.protobuf.executiondata.Executiondata.StatusFilter getFilter();
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 1;
*/
org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder getFilterOrBuilder();
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 2;
* @return The heartbeatInterval.
*/
long getHeartbeatInterval();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
*
* The request for SubscribeAccountStatusesFromLatestBlock
*
*
* Protobuf type {@code flow.executiondata.SubscribeAccountStatusesFromLatestBlockRequest}
*/
public static final class SubscribeAccountStatusesFromLatestBlockRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.SubscribeAccountStatusesFromLatestBlockRequest)
SubscribeAccountStatusesFromLatestBlockRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeAccountStatusesFromLatestBlockRequest.newBuilder() to construct.
private SubscribeAccountStatusesFromLatestBlockRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeAccountStatusesFromLatestBlockRequest() {
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeAccountStatusesFromLatestBlockRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscribeAccountStatusesFromLatestBlockRequest(
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: {
org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder subBuilder = null;
if (filter_ != null) {
subBuilder = filter_.toBuilder();
}
filter_ = input.readMessage(org.onflow.protobuf.executiondata.Executiondata.StatusFilter.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(filter_);
filter_ = subBuilder.buildPartial();
}
break;
}
case 16: {
heartbeatInterval_ = input.readUInt64();
break;
}
case 24: {
int rawValue = input.readEnum();
eventEncodingVersion_ = rawValue;
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.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesFromLatestBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesFromLatestBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest.Builder.class);
}
public static final int FILTER_FIELD_NUMBER = 1;
private org.onflow.protobuf.executiondata.Executiondata.StatusFilter filter_;
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 1;
* @return Whether the filter field is set.
*/
@java.lang.Override
public boolean hasFilter() {
return filter_ != null;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 1;
* @return The filter.
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.StatusFilter getFilter() {
return filter_ == null ? org.onflow.protobuf.executiondata.Executiondata.StatusFilter.getDefaultInstance() : filter_;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 1;
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder getFilterOrBuilder() {
return getFilter();
}
public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER = 2;
private long heartbeatInterval_;
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 2;
* @return The heartbeatInterval.
*/
@java.lang.Override
public long getHeartbeatInterval() {
return heartbeatInterval_;
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 3;
private int eventEncodingVersion_;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The eventEncodingVersion.
*/
@java.lang.Override public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
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 (filter_ != null) {
output.writeMessage(1, getFilter());
}
if (heartbeatInterval_ != 0L) {
output.writeUInt64(2, heartbeatInterval_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
output.writeEnum(3, eventEncodingVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (filter_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getFilter());
}
if (heartbeatInterval_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, heartbeatInterval_);
}
if (eventEncodingVersion_ != org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.JSON_CDC_V0.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, eventEncodingVersion_);
}
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.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest other = (org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest) obj;
if (hasFilter() != other.hasFilter()) return false;
if (hasFilter()) {
if (!getFilter()
.equals(other.getFilter())) return false;
}
if (getHeartbeatInterval()
!= other.getHeartbeatInterval()) return false;
if (eventEncodingVersion_ != other.eventEncodingVersion_) 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 (hasFilter()) {
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
}
hash = (37 * hash) + HEARTBEAT_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeartbeatInterval());
hash = (37 * hash) + EVENT_ENCODING_VERSION_FIELD_NUMBER;
hash = (53 * hash) + eventEncodingVersion_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest 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.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest 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.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest 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.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest 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.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest 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.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest 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;
}
/**
*
* The request for SubscribeAccountStatusesFromLatestBlock
*
*
* Protobuf type {@code flow.executiondata.SubscribeAccountStatusesFromLatestBlockRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.SubscribeAccountStatusesFromLatestBlockRequest)
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesFromLatestBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesFromLatestBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (filterBuilder_ == null) {
filter_ = null;
} else {
filter_ = null;
filterBuilder_ = null;
}
heartbeatInterval_ = 0L;
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesFromLatestBlockRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest build() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest result = new org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest(this);
if (filterBuilder_ == null) {
result.filter_ = filter_;
} else {
result.filter_ = filterBuilder_.build();
}
result.heartbeatInterval_ = heartbeatInterval_;
result.eventEncodingVersion_ = eventEncodingVersion_;
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.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest.getDefaultInstance()) return this;
if (other.hasFilter()) {
mergeFilter(other.getFilter());
}
if (other.getHeartbeatInterval() != 0L) {
setHeartbeatInterval(other.getHeartbeatInterval());
}
if (other.eventEncodingVersion_ != 0) {
setEventEncodingVersionValue(other.getEventEncodingVersionValue());
}
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.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.executiondata.Executiondata.StatusFilter filter_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.StatusFilter, org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder> filterBuilder_;
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 1;
* @return Whether the filter field is set.
*/
public boolean hasFilter() {
return filterBuilder_ != null || filter_ != null;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 1;
* @return The filter.
*/
public org.onflow.protobuf.executiondata.Executiondata.StatusFilter getFilter() {
if (filterBuilder_ == null) {
return filter_ == null ? org.onflow.protobuf.executiondata.Executiondata.StatusFilter.getDefaultInstance() : filter_;
} else {
return filterBuilder_.getMessage();
}
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 1;
*/
public Builder setFilter(org.onflow.protobuf.executiondata.Executiondata.StatusFilter value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
} else {
filterBuilder_.setMessage(value);
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 1;
*/
public Builder setFilter(
org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder builderForValue) {
if (filterBuilder_ == null) {
filter_ = builderForValue.build();
onChanged();
} else {
filterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 1;
*/
public Builder mergeFilter(org.onflow.protobuf.executiondata.Executiondata.StatusFilter value) {
if (filterBuilder_ == null) {
if (filter_ != null) {
filter_ =
org.onflow.protobuf.executiondata.Executiondata.StatusFilter.newBuilder(filter_).mergeFrom(value).buildPartial();
} else {
filter_ = value;
}
onChanged();
} else {
filterBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 1;
*/
public Builder clearFilter() {
if (filterBuilder_ == null) {
filter_ = null;
onChanged();
} else {
filter_ = null;
filterBuilder_ = null;
}
return this;
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 1;
*/
public org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder getFilterBuilder() {
onChanged();
return getFilterFieldBuilder().getBuilder();
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 1;
*/
public org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder getFilterOrBuilder() {
if (filterBuilder_ != null) {
return filterBuilder_.getMessageOrBuilder();
} else {
return filter_ == null ?
org.onflow.protobuf.executiondata.Executiondata.StatusFilter.getDefaultInstance() : filter_;
}
}
/**
*
* Filter to apply to events for each block searched.
* If no filter is provided, all statuses are returned.
*
*
* .flow.executiondata.StatusFilter filter = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.StatusFilter, org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.StatusFilter, org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder, org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder>(
getFilter(),
getParentForChildren(),
isClean());
filter_ = null;
}
return filterBuilder_;
}
private long heartbeatInterval_ ;
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 2;
* @return The heartbeatInterval.
*/
@java.lang.Override
public long getHeartbeatInterval() {
return heartbeatInterval_;
}
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 2;
* @param value The heartbeatInterval to set.
* @return This builder for chaining.
*/
public Builder setHeartbeatInterval(long value) {
heartbeatInterval_ = value;
onChanged();
return this;
}
/**
*
* Interval in block heights at which the server should return a heartbeat
* message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse
* with no events, and allows clients to track which blocks were searched.
* Clients can use this information to determine which block to start from
* when reconnecting.
* The interval is calculated from the last response returned, which could be
* either another heartbeat or a response containing events.
*
*
* uint64 heartbeat_interval = 2;
* @return This builder for chaining.
*/
public Builder clearHeartbeatInterval() {
heartbeatInterval_ = 0L;
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
@java.lang.Override public int getEventEncodingVersionValue() {
return eventEncodingVersion_;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @param value The enum numeric value on the wire for eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersionValue(int value) {
eventEncodingVersion_ = value;
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The eventEncodingVersion.
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion result = org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.valueOf(eventEncodingVersion_);
return result == null ? org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion.UNRECOGNIZED : result;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @param value The eventEncodingVersion to set.
* @return This builder for chaining.
*/
public Builder setEventEncodingVersion(org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion value) {
if (value == null) {
throw new NullPointerException();
}
eventEncodingVersion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Preferred event encoding version of the block events payload.
* Possible variants:
* 1. CCF
* 2. JSON-CDC
*
*
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return This builder for chaining.
*/
public Builder clearEventEncodingVersion() {
eventEncodingVersion_ = 0;
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.executiondata.SubscribeAccountStatusesFromLatestBlockRequest)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.SubscribeAccountStatusesFromLatestBlockRequest)
private static final org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest();
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeAccountStatusesFromLatestBlockRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscribeAccountStatusesFromLatestBlockRequest(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.executiondata.Executiondata.SubscribeAccountStatusesFromLatestBlockRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubscribeAccountStatusesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.SubscribeAccountStatusesResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Block ID of the block containing the events.
*
*
* bytes block_id = 1;
* @return The blockId.
*/
com.google.protobuf.ByteString getBlockId();
/**
*
* Block height of the block containing the events.
*
*
* uint64 block_height = 2;
* @return The blockHeight.
*/
long getBlockHeight();
/**
*
* The message index of the response message. Used by the client to ensure they received all messages. Starts from "1".
*
*
* uint64 message_index = 3;
* @return The messageIndex.
*/
long getMessageIndex();
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
java.util.List
getResultsList();
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result getResults(int index);
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
int getResultsCount();
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
java.util.List extends org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.ResultOrBuilder>
getResultsOrBuilderList();
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.ResultOrBuilder getResultsOrBuilder(
int index);
}
/**
*
* The response for SubscribeAccountStatuses
*
*
* Protobuf type {@code flow.executiondata.SubscribeAccountStatusesResponse}
*/
public static final class SubscribeAccountStatusesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.SubscribeAccountStatusesResponse)
SubscribeAccountStatusesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeAccountStatusesResponse.newBuilder() to construct.
private SubscribeAccountStatusesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeAccountStatusesResponse() {
blockId_ = com.google.protobuf.ByteString.EMPTY;
results_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeAccountStatusesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscribeAccountStatusesResponse(
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 16: {
blockHeight_ = input.readUInt64();
break;
}
case 24: {
messageIndex_ = input.readUInt64();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
results_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
results_.add(
input.readMessage(org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.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)) {
results_ = java.util.Collections.unmodifiableList(results_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Builder.class);
}
public interface ResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.SubscribeAccountStatusesResponse.Result)
com.google.protobuf.MessageOrBuilder {
/**
*
* Unique identifier for the account being streamed
*
*
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
/**
*
* Events matching the StatusFilter in the request.
*
*
* repeated .flow.entities.Event events = 2;
*/
java.util.List
getEventsList();
/**
*
* Events matching the StatusFilter in the request.
*
*
* repeated .flow.entities.Event events = 2;
*/
org.onflow.protobuf.entities.EventOuterClass.Event getEvents(int index);
/**
*
* Events matching the StatusFilter in the request.
*
*
* repeated .flow.entities.Event events = 2;
*/
int getEventsCount();
/**
*
* Events matching the StatusFilter in the request.
*
*
* repeated .flow.entities.Event events = 2;
*/
java.util.List extends org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList();
/**
*
* Events matching the StatusFilter in the request.
*
*
* repeated .flow.entities.Event events = 2;
*/
org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index);
}
/**
* Protobuf type {@code flow.executiondata.SubscribeAccountStatusesResponse.Result}
*/
public static final class Result extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.SubscribeAccountStatusesResponse.Result)
ResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use Result.newBuilder() to construct.
private Result(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Result() {
address_ = com.google.protobuf.ByteString.EMPTY;
events_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Result();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Result(
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: {
address_ = input.readBytes();
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;
}
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_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesResponse_Result_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesResponse_Result_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString address_;
/**
*
* Unique identifier for the account being streamed
*
*
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
public static final int EVENTS_FIELD_NUMBER = 2;
private java.util.List events_;
/**
*
* Events matching the StatusFilter in the request.
*
*
* repeated .flow.entities.Event events = 2;
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
*
* Events matching the StatusFilter in the request.
*
*
* repeated .flow.entities.Event events = 2;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
*
* Events matching the StatusFilter in the request.
*
*
* repeated .flow.entities.Event events = 2;
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
*
* Events matching the StatusFilter in the request.
*
*
* repeated .flow.entities.Event events = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.Event getEvents(int index) {
return events_.get(index);
}
/**
*
* Events matching the StatusFilter in the request.
*
*
* repeated .flow.entities.Event events = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index) {
return events_.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 (!address_.isEmpty()) {
output.writeBytes(1, address_);
}
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(2, events_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, address_);
}
for (int i = 0; i < events_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, events_.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.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result other = (org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getEventsList()
.equals(other.getEventsList())) 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) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result 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.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result 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.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result 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.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result 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.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result 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.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code flow.executiondata.SubscribeAccountStatusesResponse.Result}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.SubscribeAccountStatusesResponse.Result)
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.ResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesResponse_Result_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesResponse_Result_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.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();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
address_ = com.google.protobuf.ByteString.EMPTY;
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
eventsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesResponse_Result_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result build() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result result = new org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result(this);
int from_bitField0_ = bitField0_;
result.address_ = address_;
if (eventsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.events_ = events_;
} else {
result.events_ = eventsBuilder_.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.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
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_);
}
}
}
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.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Unique identifier for the account being streamed
*
*
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
*
* Unique identifier for the account being streamed
*
*
* bytes address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
*
* Unique identifier for the account being streamed
*
*
* bytes address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
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 matching the StatusFilter in the request.
*
*
* 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 matching the StatusFilter in the request.
*
*
* repeated .flow.entities.Event events = 2;
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
*
* Events matching the StatusFilter in the request.
*
*
* 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 matching the StatusFilter in the request.
*
*
* 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 matching the StatusFilter in the request.
*
*
* 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 matching the StatusFilter in the request.
*
*
* 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 matching the StatusFilter in the request.
*
*
* 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 matching the StatusFilter in the request.
*
*
* 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 matching the StatusFilter in the request.
*
*
* 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 matching the StatusFilter in the request.
*
*
* 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 matching the StatusFilter in the request.
*
*
* 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 matching the StatusFilter in the request.
*
*
* 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 matching the StatusFilter in the request.
*
*
* repeated .flow.entities.Event events = 2;
*/
public org.onflow.protobuf.entities.EventOuterClass.Event.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
*
* Events matching the StatusFilter in the request.
*
*
* 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 matching the StatusFilter in the request.
*
*
* 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 matching the StatusFilter in the request.
*
*
* 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 matching the StatusFilter in the request.
*
*
* 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 matching the StatusFilter in the request.
*
*
* 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_;
}
@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.executiondata.SubscribeAccountStatusesResponse.Result)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.SubscribeAccountStatusesResponse.Result)
private static final org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result();
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Result parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Result(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.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int BLOCK_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString blockId_;
/**
*
* Block ID of the block containing the events.
*
*
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
public static final int BLOCK_HEIGHT_FIELD_NUMBER = 2;
private long blockHeight_;
/**
*
* Block height of the block containing the events.
*
*
* uint64 block_height = 2;
* @return The blockHeight.
*/
@java.lang.Override
public long getBlockHeight() {
return blockHeight_;
}
public static final int MESSAGE_INDEX_FIELD_NUMBER = 3;
private long messageIndex_;
/**
*
* The message index of the response message. Used by the client to ensure they received all messages. Starts from "1".
*
*
* uint64 message_index = 3;
* @return The messageIndex.
*/
@java.lang.Override
public long getMessageIndex() {
return messageIndex_;
}
public static final int RESULTS_FIELD_NUMBER = 4;
private java.util.List results_;
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
@java.lang.Override
public java.util.List getResultsList() {
return results_;
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.ResultOrBuilder>
getResultsOrBuilderList() {
return results_;
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
@java.lang.Override
public int getResultsCount() {
return results_.size();
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result getResults(int index) {
return results_.get(index);
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.ResultOrBuilder getResultsOrBuilder(
int index) {
return results_.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_);
}
if (blockHeight_ != 0L) {
output.writeUInt64(2, blockHeight_);
}
if (messageIndex_ != 0L) {
output.writeUInt64(3, messageIndex_);
}
for (int i = 0; i < results_.size(); i++) {
output.writeMessage(4, results_.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_);
}
if (blockHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, blockHeight_);
}
if (messageIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, messageIndex_);
}
for (int i = 0; i < results_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, results_.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.executiondata.Executiondata.SubscribeAccountStatusesResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse other = (org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse) obj;
if (!getBlockId()
.equals(other.getBlockId())) return false;
if (getBlockHeight()
!= other.getBlockHeight()) return false;
if (getMessageIndex()
!= other.getMessageIndex()) return false;
if (!getResultsList()
.equals(other.getResultsList())) 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();
hash = (37 * hash) + BLOCK_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockHeight());
hash = (37 * hash) + MESSAGE_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMessageIndex());
if (getResultsCount() > 0) {
hash = (37 * hash) + RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getResultsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse 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.executiondata.Executiondata.SubscribeAccountStatusesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse 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.executiondata.Executiondata.SubscribeAccountStatusesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse 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.executiondata.Executiondata.SubscribeAccountStatusesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse 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.executiondata.Executiondata.SubscribeAccountStatusesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse 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.executiondata.Executiondata.SubscribeAccountStatusesResponse 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;
}
/**
*
* The response for SubscribeAccountStatuses
*
*
* Protobuf type {@code flow.executiondata.SubscribeAccountStatusesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.SubscribeAccountStatusesResponse)
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.class, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResultsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
blockId_ = com.google.protobuf.ByteString.EMPTY;
blockHeight_ = 0L;
messageIndex_ = 0L;
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
resultsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_SubscribeAccountStatusesResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse build() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse result = new org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse(this);
int from_bitField0_ = bitField0_;
result.blockId_ = blockId_;
result.blockHeight_ = blockHeight_;
result.messageIndex_ = messageIndex_;
if (resultsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
results_ = java.util.Collections.unmodifiableList(results_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.results_ = results_;
} else {
result.results_ = resultsBuilder_.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.executiondata.Executiondata.SubscribeAccountStatusesResponse) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.getDefaultInstance()) return this;
if (other.getBlockId() != com.google.protobuf.ByteString.EMPTY) {
setBlockId(other.getBlockId());
}
if (other.getBlockHeight() != 0L) {
setBlockHeight(other.getBlockHeight());
}
if (other.getMessageIndex() != 0L) {
setMessageIndex(other.getMessageIndex());
}
if (resultsBuilder_ == null) {
if (!other.results_.isEmpty()) {
if (results_.isEmpty()) {
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResultsIsMutable();
results_.addAll(other.results_);
}
onChanged();
}
} else {
if (!other.results_.isEmpty()) {
if (resultsBuilder_.isEmpty()) {
resultsBuilder_.dispose();
resultsBuilder_ = null;
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000001);
resultsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResultsFieldBuilder() : null;
} else {
resultsBuilder_.addAllMessages(other.results_);
}
}
}
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.executiondata.Executiondata.SubscribeAccountStatusesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse) 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 containing the events.
*
*
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
/**
*
* Block ID of the block containing the events.
*
*
* 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 containing the events.
*
*
* bytes block_id = 1;
* @return This builder for chaining.
*/
public Builder clearBlockId() {
blockId_ = getDefaultInstance().getBlockId();
onChanged();
return this;
}
private long blockHeight_ ;
/**
*
* Block height of the block containing the events.
*
*
* uint64 block_height = 2;
* @return The blockHeight.
*/
@java.lang.Override
public long getBlockHeight() {
return blockHeight_;
}
/**
*
* Block height of the block containing the events.
*
*
* uint64 block_height = 2;
* @param value The blockHeight to set.
* @return This builder for chaining.
*/
public Builder setBlockHeight(long value) {
blockHeight_ = value;
onChanged();
return this;
}
/**
*
* Block height of the block containing the events.
*
*
* uint64 block_height = 2;
* @return This builder for chaining.
*/
public Builder clearBlockHeight() {
blockHeight_ = 0L;
onChanged();
return this;
}
private long messageIndex_ ;
/**
*
* The message index of the response message. Used by the client to ensure they received all messages. Starts from "1".
*
*
* uint64 message_index = 3;
* @return The messageIndex.
*/
@java.lang.Override
public long getMessageIndex() {
return messageIndex_;
}
/**
*
* The message index of the response message. Used by the client to ensure they received all messages. Starts from "1".
*
*
* uint64 message_index = 3;
* @param value The messageIndex to set.
* @return This builder for chaining.
*/
public Builder setMessageIndex(long value) {
messageIndex_ = value;
onChanged();
return this;
}
/**
*
* The message index of the response message. Used by the client to ensure they received all messages. Starts from "1".
*
*
* uint64 message_index = 3;
* @return This builder for chaining.
*/
public Builder clearMessageIndex() {
messageIndex_ = 0L;
onChanged();
return this;
}
private java.util.List results_ =
java.util.Collections.emptyList();
private void ensureResultsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
results_ = new java.util.ArrayList(results_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.Builder, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.ResultOrBuilder> resultsBuilder_;
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public java.util.List getResultsList() {
if (resultsBuilder_ == null) {
return java.util.Collections.unmodifiableList(results_);
} else {
return resultsBuilder_.getMessageList();
}
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public int getResultsCount() {
if (resultsBuilder_ == null) {
return results_.size();
} else {
return resultsBuilder_.getCount();
}
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result getResults(int index) {
if (resultsBuilder_ == null) {
return results_.get(index);
} else {
return resultsBuilder_.getMessage(index);
}
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public Builder setResults(
int index, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.set(index, value);
onChanged();
} else {
resultsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public Builder setResults(
int index, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.set(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public Builder addResults(org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(value);
onChanged();
} else {
resultsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public Builder addResults(
int index, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(index, value);
onChanged();
} else {
resultsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public Builder addResults(
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public Builder addResults(
int index, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public Builder addAllResults(
java.lang.Iterable extends org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result> values) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, results_);
onChanged();
} else {
resultsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public Builder clearResults() {
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
resultsBuilder_.clear();
}
return this;
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public Builder removeResults(int index) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.remove(index);
onChanged();
} else {
resultsBuilder_.remove(index);
}
return this;
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.Builder getResultsBuilder(
int index) {
return getResultsFieldBuilder().getBuilder(index);
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.ResultOrBuilder getResultsOrBuilder(
int index) {
if (resultsBuilder_ == null) {
return results_.get(index); } else {
return resultsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public java.util.List extends org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.ResultOrBuilder>
getResultsOrBuilderList() {
if (resultsBuilder_ != null) {
return resultsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(results_);
}
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.Builder addResultsBuilder() {
return getResultsFieldBuilder().addBuilder(
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.getDefaultInstance());
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.Builder addResultsBuilder(
int index) {
return getResultsFieldBuilder().addBuilder(
index, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.getDefaultInstance());
}
/**
*
* The API may return no results which signals a periodic heartbeat. This
* allows clients to track which blocks were searched. Client can use this
* information to determine which block to start from when reconnecting.
*
*
* repeated .flow.executiondata.SubscribeAccountStatusesResponse.Result results = 4;
*/
public java.util.List
getResultsBuilderList() {
return getResultsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.Builder, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.ResultOrBuilder>
getResultsFieldBuilder() {
if (resultsBuilder_ == null) {
resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.Result.Builder, org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse.ResultOrBuilder>(
results_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
results_ = null;
}
return resultsBuilder_;
}
@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.executiondata.SubscribeAccountStatusesResponse)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.SubscribeAccountStatusesResponse)
private static final org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse();
}
public static org.onflow.protobuf.executiondata.Executiondata.SubscribeAccountStatusesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeAccountStatusesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscribeAccountStatusesResponse(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.executiondata.Executiondata.SubscribeAccountStatusesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StatusFilterOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.executiondata.StatusFilter)
com.google.protobuf.MessageOrBuilder {
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @return A list containing the eventType.
*/
java.util.List
getEventTypeList();
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @return The count of eventType.
*/
int getEventTypeCount();
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @param index The index of the element to return.
* @return The eventType at the given index.
*/
java.lang.String getEventType(int index);
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @param index The index of the value to return.
* @return The bytes of the eventType at the given index.
*/
com.google.protobuf.ByteString
getEventTypeBytes(int index);
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @return A list containing the address.
*/
java.util.List
getAddressList();
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @return The count of address.
*/
int getAddressCount();
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param index The index of the element to return.
* @return The address at the given index.
*/
java.lang.String getAddress(int index);
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param index The index of the value to return.
* @return The bytes of the address at the given index.
*/
com.google.protobuf.ByteString
getAddressBytes(int index);
}
/**
*
* StatusesFilter defines the filter to apply to block events.
* Filters match for events with types in the included event_type list, that are
* related to at least one address from the provided address list. An event who's
* type matches but address does not is ignored, and vice versa.
* If no event_types are provided, all account related protocol event types are matched.
* If no addresses are provided, any address matches.
* If there are any invalid filters, the API will return an InvalidArgument error.
*
*
* Protobuf type {@code flow.executiondata.StatusFilter}
*/
public static final class StatusFilter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.executiondata.StatusFilter)
StatusFilterOrBuilder {
private static final long serialVersionUID = 0L;
// Use StatusFilter.newBuilder() to construct.
private StatusFilter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatusFilter() {
eventType_ = com.google.protobuf.LazyStringArrayList.EMPTY;
address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StatusFilter();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StatusFilter(
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: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
eventType_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
eventType_.add(s);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
address_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
address_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
eventType_ = eventType_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
address_ = address_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_StatusFilter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_StatusFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.StatusFilter.class, org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder.class);
}
public static final int EVENT_TYPE_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList eventType_;
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @return A list containing the eventType.
*/
public com.google.protobuf.ProtocolStringList
getEventTypeList() {
return eventType_;
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @return The count of eventType.
*/
public int getEventTypeCount() {
return eventType_.size();
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @param index The index of the element to return.
* @return The eventType at the given index.
*/
public java.lang.String getEventType(int index) {
return eventType_.get(index);
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @param index The index of the value to return.
* @return The bytes of the eventType at the given index.
*/
public com.google.protobuf.ByteString
getEventTypeBytes(int index) {
return eventType_.getByteString(index);
}
public static final int ADDRESS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList address_;
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @return A list containing the address.
*/
public com.google.protobuf.ProtocolStringList
getAddressList() {
return address_;
}
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @return The count of address.
*/
public int getAddressCount() {
return address_.size();
}
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param index The index of the element to return.
* @return The address at the given index.
*/
public java.lang.String getAddress(int index) {
return address_.get(index);
}
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param index The index of the value to return.
* @return The bytes of the address at the given index.
*/
public com.google.protobuf.ByteString
getAddressBytes(int index) {
return address_.getByteString(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 < eventType_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventType_.getRaw(i));
}
for (int i = 0; i < address_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, address_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < eventType_.size(); i++) {
dataSize += computeStringSizeNoTag(eventType_.getRaw(i));
}
size += dataSize;
size += 1 * getEventTypeList().size();
}
{
int dataSize = 0;
for (int i = 0; i < address_.size(); i++) {
dataSize += computeStringSizeNoTag(address_.getRaw(i));
}
size += dataSize;
size += 1 * getAddressList().size();
}
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.executiondata.Executiondata.StatusFilter)) {
return super.equals(obj);
}
org.onflow.protobuf.executiondata.Executiondata.StatusFilter other = (org.onflow.protobuf.executiondata.Executiondata.StatusFilter) obj;
if (!getEventTypeList()
.equals(other.getEventTypeList())) return false;
if (!getAddressList()
.equals(other.getAddressList())) 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 (getEventTypeCount() > 0) {
hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getEventTypeList().hashCode();
}
if (getAddressCount() > 0) {
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddressList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.executiondata.Executiondata.StatusFilter parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.StatusFilter 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.executiondata.Executiondata.StatusFilter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.StatusFilter 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.executiondata.Executiondata.StatusFilter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.executiondata.Executiondata.StatusFilter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.executiondata.Executiondata.StatusFilter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.StatusFilter 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.executiondata.Executiondata.StatusFilter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.StatusFilter 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.executiondata.Executiondata.StatusFilter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.executiondata.Executiondata.StatusFilter 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.executiondata.Executiondata.StatusFilter 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;
}
/**
*
* StatusesFilter defines the filter to apply to block events.
* Filters match for events with types in the included event_type list, that are
* related to at least one address from the provided address list. An event who's
* type matches but address does not is ignored, and vice versa.
* If no event_types are provided, all account related protocol event types are matched.
* If no addresses are provided, any address matches.
* If there are any invalid filters, the API will return an InvalidArgument error.
*
*
* Protobuf type {@code flow.executiondata.StatusFilter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.executiondata.StatusFilter)
org.onflow.protobuf.executiondata.Executiondata.StatusFilterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_StatusFilter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_StatusFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.executiondata.Executiondata.StatusFilter.class, org.onflow.protobuf.executiondata.Executiondata.StatusFilter.Builder.class);
}
// Construct using org.onflow.protobuf.executiondata.Executiondata.StatusFilter.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();
eventType_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.executiondata.Executiondata.internal_static_flow_executiondata_StatusFilter_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.StatusFilter getDefaultInstanceForType() {
return org.onflow.protobuf.executiondata.Executiondata.StatusFilter.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.StatusFilter build() {
org.onflow.protobuf.executiondata.Executiondata.StatusFilter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.executiondata.Executiondata.StatusFilter buildPartial() {
org.onflow.protobuf.executiondata.Executiondata.StatusFilter result = new org.onflow.protobuf.executiondata.Executiondata.StatusFilter(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
eventType_ = eventType_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.eventType_ = eventType_;
if (((bitField0_ & 0x00000002) != 0)) {
address_ = address_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.address_ = address_;
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.executiondata.Executiondata.StatusFilter) {
return mergeFrom((org.onflow.protobuf.executiondata.Executiondata.StatusFilter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.executiondata.Executiondata.StatusFilter other) {
if (other == org.onflow.protobuf.executiondata.Executiondata.StatusFilter.getDefaultInstance()) return this;
if (!other.eventType_.isEmpty()) {
if (eventType_.isEmpty()) {
eventType_ = other.eventType_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEventTypeIsMutable();
eventType_.addAll(other.eventType_);
}
onChanged();
}
if (!other.address_.isEmpty()) {
if (address_.isEmpty()) {
address_ = other.address_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAddressIsMutable();
address_.addAll(other.address_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.onflow.protobuf.executiondata.Executiondata.StatusFilter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.executiondata.Executiondata.StatusFilter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList eventType_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureEventTypeIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
eventType_ = new com.google.protobuf.LazyStringArrayList(eventType_);
bitField0_ |= 0x00000001;
}
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @return A list containing the eventType.
*/
public com.google.protobuf.ProtocolStringList
getEventTypeList() {
return eventType_.getUnmodifiableView();
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @return The count of eventType.
*/
public int getEventTypeCount() {
return eventType_.size();
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @param index The index of the element to return.
* @return The eventType at the given index.
*/
public java.lang.String getEventType(int index) {
return eventType_.get(index);
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @param index The index of the value to return.
* @return The bytes of the eventType at the given index.
*/
public com.google.protobuf.ByteString
getEventTypeBytes(int index) {
return eventType_.getByteString(index);
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @param index The index to set the value at.
* @param value The eventType to set.
* @return This builder for chaining.
*/
public Builder setEventType(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEventTypeIsMutable();
eventType_.set(index, value);
onChanged();
return this;
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @param value The eventType to add.
* @return This builder for chaining.
*/
public Builder addEventType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEventTypeIsMutable();
eventType_.add(value);
onChanged();
return this;
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @param values The eventType to add.
* @return This builder for chaining.
*/
public Builder addAllEventType(
java.lang.Iterable values) {
ensureEventTypeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, eventType_);
onChanged();
return this;
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @return This builder for chaining.
*/
public Builder clearEventType() {
eventType_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* A list of full event types to include.
* All events exactly matching any of the provided event types will be
* returned.
* Event types must be protocol events. e.g.
* flow.[event name]
*
*
* repeated string event_type = 1;
* @param value The bytes of the eventType to add.
* @return This builder for chaining.
*/
public Builder addEventTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureEventTypeIsMutable();
eventType_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAddressIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
address_ = new com.google.protobuf.LazyStringArrayList(address_);
bitField0_ |= 0x00000002;
}
}
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @return A list containing the address.
*/
public com.google.protobuf.ProtocolStringList
getAddressList() {
return address_.getUnmodifiableView();
}
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @return The count of address.
*/
public int getAddressCount() {
return address_.size();
}
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param index The index of the element to return.
* @return The address at the given index.
*/
public java.lang.String getAddress(int index) {
return address_.get(index);
}
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param index The index of the value to return.
* @return The bytes of the address at the given index.
*/
public com.google.protobuf.ByteString
getAddressBytes(int index) {
return address_.getByteString(index);
}
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param index The index to set the value at.
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAddressIsMutable();
address_.set(index, value);
onChanged();
return this;
}
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param value The address to add.
* @return This builder for chaining.
*/
public Builder addAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAddressIsMutable();
address_.add(value);
onChanged();
return this;
}
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param values The address to add.
* @return This builder for chaining.
*/
public Builder addAllAddress(
java.lang.Iterable values) {
ensureAddressIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, address_);
onChanged();
return this;
}
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* A list of addresses who's events should be included.
* All events matching the provided event_types that are related to any of the provided addresses
* will be returned. If no addresses are provided, all events matching event_types will be returned.
* Addresses must be Flow account addresses in hex format and valid for the
* network the node is connected to. i.e. only a mainnet address is valid for
* a mainnet node. Addresses may optionally include the 0x prefix.
*
*
* repeated string address = 3;
* @param value The bytes of the address to add.
* @return This builder for chaining.
*/
public Builder addAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAddressIsMutable();
address_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:flow.executiondata.StatusFilter)
}
// @@protoc_insertion_point(class_scope:flow.executiondata.StatusFilter)
private static final org.onflow.protobuf.executiondata.Executiondata.StatusFilter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.executiondata.Executiondata.StatusFilter();
}
public static org.onflow.protobuf.executiondata.Executiondata.StatusFilter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StatusFilter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StatusFilter(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.executiondata.Executiondata.StatusFilter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_GetExecutionDataByBlockIDRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_GetExecutionDataByBlockIDRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_GetExecutionDataByBlockIDResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_GetExecutionDataByBlockIDResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_SubscribeExecutionDataRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_SubscribeExecutionDataRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_SubscribeExecutionDataResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_SubscribeExecutionDataResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockIDRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockIDRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockHeightRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockHeightRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_SubscribeExecutionDataFromLatestRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_SubscribeExecutionDataFromLatestRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_SubscribeEventsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_SubscribeEventsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_SubscribeEventsFromStartBlockIDRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_SubscribeEventsFromStartBlockIDRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_SubscribeEventsFromStartHeightRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_SubscribeEventsFromStartHeightRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_SubscribeEventsFromLatestRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_SubscribeEventsFromLatestRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_SubscribeEventsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_SubscribeEventsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_EventFilter_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_EventFilter_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_GetRegisterValuesRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_GetRegisterValuesRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_GetRegisterValuesResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_GetRegisterValuesResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_SubscribeAccountStatusesFromStartBlockIDRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_SubscribeAccountStatusesFromStartBlockIDRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_SubscribeAccountStatusesFromStartHeightRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_SubscribeAccountStatusesFromStartHeightRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_SubscribeAccountStatusesFromLatestBlockRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_SubscribeAccountStatusesFromLatestBlockRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_SubscribeAccountStatusesResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_SubscribeAccountStatusesResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_SubscribeAccountStatusesResponse_Result_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_SubscribeAccountStatusesResponse_Result_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flow_executiondata_StatusFilter_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flow_executiondata_StatusFilter_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/executiondata/executiondata.proto" +
"\022\022flow.executiondata\032(flow/entities/bloc" +
"k_execution_data.proto\032\031flow/entities/ev" +
"ent.proto\032\034flow/entities/register.proto\032" +
"\037google/protobuf/timestamp.proto\"y\n GetE" +
"xecutionDataByBlockIDRequest\022\020\n\010block_id" +
"\030\001 \001(\014\022C\n\026event_encoding_version\030\002 \001(\0162#" +
".flow.entities.EventEncodingVersion\"d\n!G" +
"etExecutionDataByBlockIDResponse\022?\n\024bloc" +
"k_execution_data\030\001 \001(\0132!.flow.entities.B" +
"lockExecutionData\"\230\001\n\035SubscribeExecution" +
"DataRequest\022\026\n\016start_block_id\030\001 \001(\014\022\032\n\022s" +
"tart_block_height\030\002 \001(\004\022C\n\026event_encodin" +
"g_version\030\003 \001(\0162#.flow.entities.EventEnc" +
"odingVersion\"\254\001\n\036SubscribeExecutionDataR" +
"esponse\022\024\n\014block_height\030\001 \001(\004\022?\n\024block_e" +
"xecution_data\030\002 \001(\0132!.flow.entities.Bloc" +
"kExecutionData\0223\n\017block_timestamp\030\003 \001(\0132" +
"\032.google.protobuf.Timestamp\"\214\001\n-Subscrib" +
"eExecutionDataFromStartBlockIDRequest\022\026\n" +
"\016start_block_id\030\001 \001(\014\022C\n\026event_encoding_" +
"version\030\002 \001(\0162#.flow.entities.EventEncod" +
"ingVersion\"\224\001\n1SubscribeExecutionDataFro" +
"mStartBlockHeightRequest\022\032\n\022start_block_" +
"height\030\001 \001(\004\022C\n\026event_encoding_version\030\002" +
" \001(\0162#.flow.entities.EventEncodingVersio" +
"n\"n\n\'SubscribeExecutionDataFromLatestReq" +
"uest\022C\n\026event_encoding_version\030\001 \001(\0162#.f" +
"low.entities.EventEncodingVersion\"\336\001\n\026Su" +
"bscribeEventsRequest\022\026\n\016start_block_id\030\001" +
" \001(\014\022\032\n\022start_block_height\030\002 \001(\004\022/\n\006filt" +
"er\030\003 \001(\0132\037.flow.executiondata.EventFilte" +
"r\022\032\n\022heartbeat_interval\030\004 \001(\004\022C\n\026event_e" +
"ncoding_version\030\005 \001(\0162#.flow.entities.Ev" +
"entEncodingVersion\"\322\001\n&SubscribeEventsFr" +
"omStartBlockIDRequest\022\026\n\016start_block_id\030" +
"\001 \001(\014\022/\n\006filter\030\002 \001(\0132\037.flow.executionda" +
"ta.EventFilter\022\032\n\022heartbeat_interval\030\003 \001" +
"(\004\022C\n\026event_encoding_version\030\004 \001(\0162#.flo" +
"w.entities.EventEncodingVersion\"\325\001\n%Subs" +
"cribeEventsFromStartHeightRequest\022\032\n\022sta" +
"rt_block_height\030\001 \001(\004\022/\n\006filter\030\002 \001(\0132\037." +
"flow.executiondata.EventFilter\022\032\n\022heartb" +
"eat_interval\030\003 \001(\004\022C\n\026event_encoding_ver" +
"sion\030\004 \001(\0162#.flow.entities.EventEncoding" +
"Version\"\264\001\n SubscribeEventsFromLatestReq" +
"uest\022/\n\006filter\030\001 \001(\0132\037.flow.executiondat" +
"a.EventFilter\022\032\n\022heartbeat_interval\030\002 \001(" +
"\004\022C\n\026event_encoding_version\030\003 \001(\0162#.flow" +
".entities.EventEncodingVersion\"\263\001\n\027Subsc" +
"ribeEventsResponse\022\020\n\010block_id\030\001 \001(\014\022\024\n\014" +
"block_height\030\002 \001(\004\022$\n\006events\030\003 \003(\0132\024.flo" +
"w.entities.Event\0223\n\017block_timestamp\030\004 \001(" +
"\0132\032.google.protobuf.Timestamp\022\025\n\rmessage" +
"_index\030\005 \001(\004\"D\n\013EventFilter\022\022\n\nevent_typ" +
"e\030\001 \003(\t\022\020\n\010contract\030\002 \003(\t\022\017\n\007address\030\003 \003" +
"(\t\"a\n\030GetRegisterValuesRequest\022\024\n\014block_" +
"height\030\001 \001(\004\022/\n\014register_ids\030\002 \003(\0132\031.flo" +
"w.entities.RegisterID\"+\n\031GetRegisterValu" +
"esResponse\022\016\n\006values\030\001 \003(\014\"\334\001\n/Subscribe" +
"AccountStatusesFromStartBlockIDRequest\022\026" +
"\n\016start_block_id\030\001 \001(\014\0220\n\006filter\030\002 \001(\0132 " +
".flow.executiondata.StatusFilter\022\032\n\022hear" +
"tbeat_interval\030\003 \001(\004\022C\n\026event_encoding_v" +
"ersion\030\004 \001(\0162#.flow.entities.EventEncodi" +
"ngVersion\"\337\001\n.SubscribeAccountStatusesFr" +
"omStartHeightRequest\022\032\n\022start_block_heig" +
"ht\030\001 \001(\004\0220\n\006filter\030\002 \001(\0132 .flow.executio" +
"ndata.StatusFilter\022\032\n\022heartbeat_interval" +
"\030\003 \001(\004\022C\n\026event_encoding_version\030\004 \001(\0162#" +
".flow.entities.EventEncodingVersion\"\303\001\n." +
"SubscribeAccountStatusesFromLatestBlockR" +
"equest\0220\n\006filter\030\001 \001(\0132 .flow.executiond" +
"ata.StatusFilter\022\032\n\022heartbeat_interval\030\002" +
" \001(\004\022C\n\026event_encoding_version\030\003 \001(\0162#.f" +
"low.entities.EventEncodingVersion\"\360\001\n Su" +
"bscribeAccountStatusesResponse\022\020\n\010block_" +
"id\030\001 \001(\014\022\024\n\014block_height\030\002 \001(\004\022\025\n\rmessag" +
"e_index\030\003 \001(\004\022L\n\007results\030\004 \003(\0132;.flow.ex" +
"ecutiondata.SubscribeAccountStatusesResp" +
"onse.Result\032?\n\006Result\022\017\n\007address\030\001 \001(\014\022$" +
"\n\006events\030\002 \003(\0132\024.flow.entities.Event\"3\n\014" +
"StatusFilter\022\022\n\nevent_type\030\001 \003(\t\022\017\n\007addr" +
"ess\030\003 \003(\t2\214\017\n\020ExecutionDataAPI\022\210\001\n\031GetEx" +
"ecutionDataByBlockID\0224.flow.executiondat" +
"a.GetExecutionDataByBlockIDRequest\0325.flo" +
"w.executiondata.GetExecutionDataByBlockI" +
"DResponse\022\206\001\n\026SubscribeExecutionData\0221.f" +
"low.executiondata.SubscribeExecutionData" +
"Request\0322.flow.executiondata.SubscribeEx" +
"ecutionDataResponse\"\003\210\002\0010\001\022\241\001\n&Subscribe" +
"ExecutionDataFromStartBlockID\022A.flow.exe" +
"cutiondata.SubscribeExecutionDataFromSta" +
"rtBlockIDRequest\0322.flow.executiondata.Su" +
"bscribeExecutionDataResponse0\001\022\251\001\n*Subsc" +
"ribeExecutionDataFromStartBlockHeight\022E." +
"flow.executiondata.SubscribeExecutionDat" +
"aFromStartBlockHeightRequest\0322.flow.exec" +
"utiondata.SubscribeExecutionDataResponse" +
"0\001\022\225\001\n SubscribeExecutionDataFromLatest\022" +
";.flow.executiondata.SubscribeExecutionD" +
"ataFromLatestRequest\0322.flow.executiondat" +
"a.SubscribeExecutionDataResponse0\001\022q\n\017Su" +
"bscribeEvents\022*.flow.executiondata.Subsc" +
"ribeEventsRequest\032+.flow.executiondata.S" +
"ubscribeEventsResponse\"\003\210\002\0010\001\022\214\001\n\037Subscr" +
"ibeEventsFromStartBlockID\022:.flow.executi" +
"ondata.SubscribeEventsFromStartBlockIDRe" +
"quest\032+.flow.executiondata.SubscribeEven" +
"tsResponse0\001\022\212\001\n\036SubscribeEventsFromStar" +
"tHeight\0229.flow.executiondata.SubscribeEv" +
"entsFromStartHeightRequest\032+.flow.execut" +
"iondata.SubscribeEventsResponse0\001\022\200\001\n\031Su" +
"bscribeEventsFromLatest\0224.flow.execution" +
"data.SubscribeEventsFromLatestRequest\032+." +
"flow.executiondata.SubscribeEventsRespon" +
"se0\001\022p\n\021GetRegisterValues\022,.flow.executi" +
"ondata.GetRegisterValuesRequest\032-.flow.e" +
"xecutiondata.GetRegisterValuesResponse\022\247" +
"\001\n(SubscribeAccountStatusesFromStartBloc" +
"kID\022C.flow.executiondata.SubscribeAccoun" +
"tStatusesFromStartBlockIDRequest\0324.flow." +
"executiondata.SubscribeAccountStatusesRe" +
"sponse0\001\022\245\001\n\'SubscribeAccountStatusesFro" +
"mStartHeight\022B.flow.executiondata.Subscr" +
"ibeAccountStatusesFromStartHeightRequest" +
"\0324.flow.executiondata.SubscribeAccountSt" +
"atusesResponse0\001\022\245\001\n\'SubscribeAccountSta" +
"tusesFromLatestBlock\022B.flow.executiondat" +
"a.SubscribeAccountStatusesFromLatestBloc" +
"kRequest\0324.flow.executiondata.SubscribeA" +
"ccountStatusesResponse0\001BZ\n!org.onflow.p" +
"rotobuf.executiondataZ5github.com/onflow" +
"/flow/protobuf/go/flow/executiondatab\006pr" +
"oto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.getDescriptor(),
org.onflow.protobuf.entities.EventOuterClass.getDescriptor(),
org.onflow.protobuf.entities.Register.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_flow_executiondata_GetExecutionDataByBlockIDRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_flow_executiondata_GetExecutionDataByBlockIDRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_GetExecutionDataByBlockIDRequest_descriptor,
new java.lang.String[] { "BlockId", "EventEncodingVersion", });
internal_static_flow_executiondata_GetExecutionDataByBlockIDResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_flow_executiondata_GetExecutionDataByBlockIDResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_GetExecutionDataByBlockIDResponse_descriptor,
new java.lang.String[] { "BlockExecutionData", });
internal_static_flow_executiondata_SubscribeExecutionDataRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_flow_executiondata_SubscribeExecutionDataRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_SubscribeExecutionDataRequest_descriptor,
new java.lang.String[] { "StartBlockId", "StartBlockHeight", "EventEncodingVersion", });
internal_static_flow_executiondata_SubscribeExecutionDataResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_flow_executiondata_SubscribeExecutionDataResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_SubscribeExecutionDataResponse_descriptor,
new java.lang.String[] { "BlockHeight", "BlockExecutionData", "BlockTimestamp", });
internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockIDRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockIDRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockIDRequest_descriptor,
new java.lang.String[] { "StartBlockId", "EventEncodingVersion", });
internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockHeightRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockHeightRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_SubscribeExecutionDataFromStartBlockHeightRequest_descriptor,
new java.lang.String[] { "StartBlockHeight", "EventEncodingVersion", });
internal_static_flow_executiondata_SubscribeExecutionDataFromLatestRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_flow_executiondata_SubscribeExecutionDataFromLatestRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_SubscribeExecutionDataFromLatestRequest_descriptor,
new java.lang.String[] { "EventEncodingVersion", });
internal_static_flow_executiondata_SubscribeEventsRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_flow_executiondata_SubscribeEventsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_SubscribeEventsRequest_descriptor,
new java.lang.String[] { "StartBlockId", "StartBlockHeight", "Filter", "HeartbeatInterval", "EventEncodingVersion", });
internal_static_flow_executiondata_SubscribeEventsFromStartBlockIDRequest_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_flow_executiondata_SubscribeEventsFromStartBlockIDRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_SubscribeEventsFromStartBlockIDRequest_descriptor,
new java.lang.String[] { "StartBlockId", "Filter", "HeartbeatInterval", "EventEncodingVersion", });
internal_static_flow_executiondata_SubscribeEventsFromStartHeightRequest_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_flow_executiondata_SubscribeEventsFromStartHeightRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_SubscribeEventsFromStartHeightRequest_descriptor,
new java.lang.String[] { "StartBlockHeight", "Filter", "HeartbeatInterval", "EventEncodingVersion", });
internal_static_flow_executiondata_SubscribeEventsFromLatestRequest_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_flow_executiondata_SubscribeEventsFromLatestRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_SubscribeEventsFromLatestRequest_descriptor,
new java.lang.String[] { "Filter", "HeartbeatInterval", "EventEncodingVersion", });
internal_static_flow_executiondata_SubscribeEventsResponse_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_flow_executiondata_SubscribeEventsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_SubscribeEventsResponse_descriptor,
new java.lang.String[] { "BlockId", "BlockHeight", "Events", "BlockTimestamp", "MessageIndex", });
internal_static_flow_executiondata_EventFilter_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_flow_executiondata_EventFilter_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_EventFilter_descriptor,
new java.lang.String[] { "EventType", "Contract", "Address", });
internal_static_flow_executiondata_GetRegisterValuesRequest_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_flow_executiondata_GetRegisterValuesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_GetRegisterValuesRequest_descriptor,
new java.lang.String[] { "BlockHeight", "RegisterIds", });
internal_static_flow_executiondata_GetRegisterValuesResponse_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_flow_executiondata_GetRegisterValuesResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_GetRegisterValuesResponse_descriptor,
new java.lang.String[] { "Values", });
internal_static_flow_executiondata_SubscribeAccountStatusesFromStartBlockIDRequest_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_flow_executiondata_SubscribeAccountStatusesFromStartBlockIDRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_SubscribeAccountStatusesFromStartBlockIDRequest_descriptor,
new java.lang.String[] { "StartBlockId", "Filter", "HeartbeatInterval", "EventEncodingVersion", });
internal_static_flow_executiondata_SubscribeAccountStatusesFromStartHeightRequest_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_flow_executiondata_SubscribeAccountStatusesFromStartHeightRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_SubscribeAccountStatusesFromStartHeightRequest_descriptor,
new java.lang.String[] { "StartBlockHeight", "Filter", "HeartbeatInterval", "EventEncodingVersion", });
internal_static_flow_executiondata_SubscribeAccountStatusesFromLatestBlockRequest_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_flow_executiondata_SubscribeAccountStatusesFromLatestBlockRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_SubscribeAccountStatusesFromLatestBlockRequest_descriptor,
new java.lang.String[] { "Filter", "HeartbeatInterval", "EventEncodingVersion", });
internal_static_flow_executiondata_SubscribeAccountStatusesResponse_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_flow_executiondata_SubscribeAccountStatusesResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_SubscribeAccountStatusesResponse_descriptor,
new java.lang.String[] { "BlockId", "BlockHeight", "MessageIndex", "Results", });
internal_static_flow_executiondata_SubscribeAccountStatusesResponse_Result_descriptor =
internal_static_flow_executiondata_SubscribeAccountStatusesResponse_descriptor.getNestedTypes().get(0);
internal_static_flow_executiondata_SubscribeAccountStatusesResponse_Result_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_SubscribeAccountStatusesResponse_Result_descriptor,
new java.lang.String[] { "Address", "Events", });
internal_static_flow_executiondata_StatusFilter_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_flow_executiondata_StatusFilter_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flow_executiondata_StatusFilter_descriptor,
new java.lang.String[] { "EventType", "Address", });
org.onflow.protobuf.entities.BlockExecutionDataOuterClass.getDescriptor();
org.onflow.protobuf.entities.EventOuterClass.getDescriptor();
org.onflow.protobuf.entities.Register.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy