Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
main.org.onflow.protobuf.access.Access Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: flow/access/access.proto
package org.onflow.protobuf.access;
public final class Access {
private Access() {}
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 PingRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.PingRequest)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code flow.access.PingRequest}
*/
public static final class PingRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.PingRequest)
PingRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PingRequest.newBuilder() to construct.
private PingRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PingRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PingRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PingRequest(
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;
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.access.Access.internal_static_flow_access_PingRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_PingRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.PingRequest.class, org.onflow.protobuf.access.Access.PingRequest.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.access.Access.PingRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.PingRequest other = (org.onflow.protobuf.access.Access.PingRequest) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.PingRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.PingRequest 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.access.Access.PingRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.PingRequest 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.access.Access.PingRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.PingRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.PingRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.PingRequest 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.access.Access.PingRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.PingRequest 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.access.Access.PingRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.PingRequest 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.access.Access.PingRequest 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.access.PingRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.PingRequest)
org.onflow.protobuf.access.Access.PingRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_PingRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_PingRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.PingRequest.class, org.onflow.protobuf.access.Access.PingRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.PingRequest.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_PingRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.PingRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.PingRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.PingRequest build() {
org.onflow.protobuf.access.Access.PingRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.PingRequest buildPartial() {
org.onflow.protobuf.access.Access.PingRequest result = new org.onflow.protobuf.access.Access.PingRequest(this);
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.access.Access.PingRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.PingRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.PingRequest other) {
if (other == org.onflow.protobuf.access.Access.PingRequest.getDefaultInstance()) return this;
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.access.Access.PingRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.PingRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.access.PingRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.PingRequest)
private static final org.onflow.protobuf.access.Access.PingRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.PingRequest();
}
public static org.onflow.protobuf.access.Access.PingRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PingRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PingRequest(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.access.Access.PingRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PingResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.PingResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code flow.access.PingResponse}
*/
public static final class PingResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.PingResponse)
PingResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use PingResponse.newBuilder() to construct.
private PingResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PingResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PingResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PingResponse(
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;
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.access.Access.internal_static_flow_access_PingResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_PingResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.PingResponse.class, org.onflow.protobuf.access.Access.PingResponse.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.access.Access.PingResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.PingResponse other = (org.onflow.protobuf.access.Access.PingResponse) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.PingResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.PingResponse 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.access.Access.PingResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.PingResponse 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.access.Access.PingResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.PingResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.PingResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.PingResponse 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.access.Access.PingResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.PingResponse 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.access.Access.PingResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.PingResponse 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.access.Access.PingResponse 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.access.PingResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.PingResponse)
org.onflow.protobuf.access.Access.PingResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_PingResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_PingResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.PingResponse.class, org.onflow.protobuf.access.Access.PingResponse.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.PingResponse.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_PingResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.PingResponse getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.PingResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.PingResponse build() {
org.onflow.protobuf.access.Access.PingResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.PingResponse buildPartial() {
org.onflow.protobuf.access.Access.PingResponse result = new org.onflow.protobuf.access.Access.PingResponse(this);
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.access.Access.PingResponse) {
return mergeFrom((org.onflow.protobuf.access.Access.PingResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.PingResponse other) {
if (other == org.onflow.protobuf.access.Access.PingResponse.getDefaultInstance()) return this;
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.access.Access.PingResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.PingResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.access.PingResponse)
}
// @@protoc_insertion_point(class_scope:flow.access.PingResponse)
private static final org.onflow.protobuf.access.Access.PingResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.PingResponse();
}
public static org.onflow.protobuf.access.Access.PingResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PingResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PingResponse(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.access.Access.PingResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetNodeVersionInfoRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetNodeVersionInfoRequest)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code flow.access.GetNodeVersionInfoRequest}
*/
public static final class GetNodeVersionInfoRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetNodeVersionInfoRequest)
GetNodeVersionInfoRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetNodeVersionInfoRequest.newBuilder() to construct.
private GetNodeVersionInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetNodeVersionInfoRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetNodeVersionInfoRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetNodeVersionInfoRequest(
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;
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.access.Access.internal_static_flow_access_GetNodeVersionInfoRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetNodeVersionInfoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest.class, org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.access.Access.GetNodeVersionInfoRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest other = (org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest 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.access.Access.GetNodeVersionInfoRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest 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.access.Access.GetNodeVersionInfoRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest 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.access.Access.GetNodeVersionInfoRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest 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.access.Access.GetNodeVersionInfoRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest 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.access.Access.GetNodeVersionInfoRequest 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.access.GetNodeVersionInfoRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetNodeVersionInfoRequest)
org.onflow.protobuf.access.Access.GetNodeVersionInfoRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetNodeVersionInfoRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetNodeVersionInfoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest.class, org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetNodeVersionInfoRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest build() {
org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest buildPartial() {
org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest result = new org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest(this);
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.access.Access.GetNodeVersionInfoRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest other) {
if (other == org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest.getDefaultInstance()) return this;
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.access.Access.GetNodeVersionInfoRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.access.GetNodeVersionInfoRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetNodeVersionInfoRequest)
private static final org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest();
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetNodeVersionInfoRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetNodeVersionInfoRequest(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.access.Access.GetNodeVersionInfoRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetNodeVersionInfoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetNodeVersionInfoResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .flow.entities.NodeVersionInfo info = 1;
* @return Whether the info field is set.
*/
boolean hasInfo();
/**
* .flow.entities.NodeVersionInfo info = 1;
* @return The info.
*/
org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo getInfo();
/**
* .flow.entities.NodeVersionInfo info = 1;
*/
org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfoOrBuilder getInfoOrBuilder();
}
/**
* Protobuf type {@code flow.access.GetNodeVersionInfoResponse}
*/
public static final class GetNodeVersionInfoResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetNodeVersionInfoResponse)
GetNodeVersionInfoResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetNodeVersionInfoResponse.newBuilder() to construct.
private GetNodeVersionInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetNodeVersionInfoResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetNodeVersionInfoResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetNodeVersionInfoResponse(
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.NodeVersionInfoOuterClass.NodeVersionInfo.Builder subBuilder = null;
if (info_ != null) {
subBuilder = info_.toBuilder();
}
info_ = input.readMessage(org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(info_);
info_ = 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.access.Access.internal_static_flow_access_GetNodeVersionInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetNodeVersionInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse.class, org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse.Builder.class);
}
public static final int INFO_FIELD_NUMBER = 1;
private org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo info_;
/**
* .flow.entities.NodeVersionInfo info = 1;
* @return Whether the info field is set.
*/
@java.lang.Override
public boolean hasInfo() {
return info_ != null;
}
/**
* .flow.entities.NodeVersionInfo info = 1;
* @return The info.
*/
@java.lang.Override
public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo getInfo() {
return info_ == null ? org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.getDefaultInstance() : info_;
}
/**
* .flow.entities.NodeVersionInfo info = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfoOrBuilder getInfoOrBuilder() {
return getInfo();
}
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 (info_ != null) {
output.writeMessage(1, getInfo());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (info_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getInfo());
}
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.access.Access.GetNodeVersionInfoResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse other = (org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse) obj;
if (hasInfo() != other.hasInfo()) return false;
if (hasInfo()) {
if (!getInfo()
.equals(other.getInfo())) 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 (hasInfo()) {
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse 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.access.Access.GetNodeVersionInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse 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.access.Access.GetNodeVersionInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse 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.access.Access.GetNodeVersionInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse 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.access.Access.GetNodeVersionInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse 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.access.Access.GetNodeVersionInfoResponse 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.access.GetNodeVersionInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetNodeVersionInfoResponse)
org.onflow.protobuf.access.Access.GetNodeVersionInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetNodeVersionInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetNodeVersionInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse.class, org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse.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 (infoBuilder_ == null) {
info_ = null;
} else {
info_ = null;
infoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetNodeVersionInfoResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse build() {
org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse buildPartial() {
org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse result = new org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse(this);
if (infoBuilder_ == null) {
result.info_ = info_;
} else {
result.info_ = infoBuilder_.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.access.Access.GetNodeVersionInfoResponse) {
return mergeFrom((org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse other) {
if (other == org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse.getDefaultInstance()) return this;
if (other.hasInfo()) {
mergeInfo(other.getInfo());
}
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.access.Access.GetNodeVersionInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo info_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.Builder, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfoOrBuilder> infoBuilder_;
/**
* .flow.entities.NodeVersionInfo info = 1;
* @return Whether the info field is set.
*/
public boolean hasInfo() {
return infoBuilder_ != null || info_ != null;
}
/**
* .flow.entities.NodeVersionInfo info = 1;
* @return The info.
*/
public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo getInfo() {
if (infoBuilder_ == null) {
return info_ == null ? org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.getDefaultInstance() : info_;
} else {
return infoBuilder_.getMessage();
}
}
/**
* .flow.entities.NodeVersionInfo info = 1;
*/
public Builder setInfo(org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo value) {
if (infoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
info_ = value;
onChanged();
} else {
infoBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.NodeVersionInfo info = 1;
*/
public Builder setInfo(
org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.Builder builderForValue) {
if (infoBuilder_ == null) {
info_ = builderForValue.build();
onChanged();
} else {
infoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.NodeVersionInfo info = 1;
*/
public Builder mergeInfo(org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo value) {
if (infoBuilder_ == null) {
if (info_ != null) {
info_ =
org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.newBuilder(info_).mergeFrom(value).buildPartial();
} else {
info_ = value;
}
onChanged();
} else {
infoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.NodeVersionInfo info = 1;
*/
public Builder clearInfo() {
if (infoBuilder_ == null) {
info_ = null;
onChanged();
} else {
info_ = null;
infoBuilder_ = null;
}
return this;
}
/**
* .flow.entities.NodeVersionInfo info = 1;
*/
public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.Builder getInfoBuilder() {
onChanged();
return getInfoFieldBuilder().getBuilder();
}
/**
* .flow.entities.NodeVersionInfo info = 1;
*/
public org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfoOrBuilder getInfoOrBuilder() {
if (infoBuilder_ != null) {
return infoBuilder_.getMessageOrBuilder();
} else {
return info_ == null ?
org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.getDefaultInstance() : info_;
}
}
/**
* .flow.entities.NodeVersionInfo info = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.Builder, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfoOrBuilder>
getInfoFieldBuilder() {
if (infoBuilder_ == null) {
infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfo.Builder, org.onflow.protobuf.entities.NodeVersionInfoOuterClass.NodeVersionInfoOrBuilder>(
getInfo(),
getParentForChildren(),
isClean());
info_ = null;
}
return infoBuilder_;
}
@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.access.GetNodeVersionInfoResponse)
}
// @@protoc_insertion_point(class_scope:flow.access.GetNodeVersionInfoResponse)
private static final org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse();
}
public static org.onflow.protobuf.access.Access.GetNodeVersionInfoResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetNodeVersionInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetNodeVersionInfoResponse(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.access.Access.GetNodeVersionInfoResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetLatestBlockHeaderRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetLatestBlockHeaderRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bool is_sealed = 1;
* @return The isSealed.
*/
boolean getIsSealed();
}
/**
* Protobuf type {@code flow.access.GetLatestBlockHeaderRequest}
*/
public static final class GetLatestBlockHeaderRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetLatestBlockHeaderRequest)
GetLatestBlockHeaderRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetLatestBlockHeaderRequest.newBuilder() to construct.
private GetLatestBlockHeaderRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetLatestBlockHeaderRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetLatestBlockHeaderRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetLatestBlockHeaderRequest(
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: {
isSealed_ = input.readBool();
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.access.Access.internal_static_flow_access_GetLatestBlockHeaderRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetLatestBlockHeaderRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest.class, org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest.Builder.class);
}
public static final int IS_SEALED_FIELD_NUMBER = 1;
private boolean isSealed_;
/**
* bool is_sealed = 1;
* @return The isSealed.
*/
@java.lang.Override
public boolean getIsSealed() {
return isSealed_;
}
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 (isSealed_ != false) {
output.writeBool(1, isSealed_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (isSealed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, isSealed_);
}
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.access.Access.GetLatestBlockHeaderRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest other = (org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest) obj;
if (getIsSealed()
!= other.getIsSealed()) 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) + IS_SEALED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsSealed());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest 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.access.Access.GetLatestBlockHeaderRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest 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.access.Access.GetLatestBlockHeaderRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest 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.access.Access.GetLatestBlockHeaderRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest 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.access.Access.GetLatestBlockHeaderRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest 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.access.Access.GetLatestBlockHeaderRequest 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.access.GetLatestBlockHeaderRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetLatestBlockHeaderRequest)
org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetLatestBlockHeaderRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetLatestBlockHeaderRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest.class, org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest.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();
isSealed_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetLatestBlockHeaderRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest build() {
org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest buildPartial() {
org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest result = new org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest(this);
result.isSealed_ = isSealed_;
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.access.Access.GetLatestBlockHeaderRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest other) {
if (other == org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest.getDefaultInstance()) return this;
if (other.getIsSealed() != false) {
setIsSealed(other.getIsSealed());
}
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.access.Access.GetLatestBlockHeaderRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean isSealed_ ;
/**
* bool is_sealed = 1;
* @return The isSealed.
*/
@java.lang.Override
public boolean getIsSealed() {
return isSealed_;
}
/**
* bool is_sealed = 1;
* @param value The isSealed to set.
* @return This builder for chaining.
*/
public Builder setIsSealed(boolean value) {
isSealed_ = value;
onChanged();
return this;
}
/**
* bool is_sealed = 1;
* @return This builder for chaining.
*/
public Builder clearIsSealed() {
isSealed_ = false;
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.access.GetLatestBlockHeaderRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetLatestBlockHeaderRequest)
private static final org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest();
}
public static org.onflow.protobuf.access.Access.GetLatestBlockHeaderRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetLatestBlockHeaderRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetLatestBlockHeaderRequest(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.access.Access.GetLatestBlockHeaderRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetBlockHeaderByIDRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetBlockHeaderByIDRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes id = 1;
* @return The id.
*/
com.google.protobuf.ByteString getId();
}
/**
* Protobuf type {@code flow.access.GetBlockHeaderByIDRequest}
*/
public static final class GetBlockHeaderByIDRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetBlockHeaderByIDRequest)
GetBlockHeaderByIDRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetBlockHeaderByIDRequest.newBuilder() to construct.
private GetBlockHeaderByIDRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetBlockHeaderByIDRequest() {
id_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetBlockHeaderByIDRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetBlockHeaderByIDRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
id_ = input.readBytes();
break;
}
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.access.Access.internal_static_flow_access_GetBlockHeaderByIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockHeaderByIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest.class, org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString id_;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!id_.isEmpty()) {
output.writeBytes(1, id_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!id_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, id_);
}
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.access.Access.GetBlockHeaderByIDRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest other = (org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest) obj;
if (!getId()
.equals(other.getId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest 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.access.Access.GetBlockHeaderByIDRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest 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.access.Access.GetBlockHeaderByIDRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest 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.access.Access.GetBlockHeaderByIDRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest 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.access.Access.GetBlockHeaderByIDRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest 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.access.Access.GetBlockHeaderByIDRequest 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.access.GetBlockHeaderByIDRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetBlockHeaderByIDRequest)
org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockHeaderByIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockHeaderByIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest.class, org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockHeaderByIDRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest build() {
org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest buildPartial() {
org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest result = new org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest(this);
result.id_ = id_;
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.access.Access.GetBlockHeaderByIDRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest other) {
if (other == org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest.getDefaultInstance()) return this;
if (other.getId() != com.google.protobuf.ByteString.EMPTY) {
setId(other.getId());
}
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.access.Access.GetBlockHeaderByIDRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
/**
* bytes id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* bytes id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
@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.access.GetBlockHeaderByIDRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetBlockHeaderByIDRequest)
private static final org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest();
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByIDRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetBlockHeaderByIDRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetBlockHeaderByIDRequest(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.access.Access.GetBlockHeaderByIDRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetBlockHeaderByHeightRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetBlockHeaderByHeightRequest)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 height = 1;
* @return The height.
*/
long getHeight();
}
/**
* Protobuf type {@code flow.access.GetBlockHeaderByHeightRequest}
*/
public static final class GetBlockHeaderByHeightRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetBlockHeaderByHeightRequest)
GetBlockHeaderByHeightRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetBlockHeaderByHeightRequest.newBuilder() to construct.
private GetBlockHeaderByHeightRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetBlockHeaderByHeightRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetBlockHeaderByHeightRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetBlockHeaderByHeightRequest(
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: {
height_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockHeaderByHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockHeaderByHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest.class, org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest.Builder.class);
}
public static final int HEIGHT_FIELD_NUMBER = 1;
private long height_;
/**
* uint64 height = 1;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
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 (height_ != 0L) {
output.writeUInt64(1, height_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (height_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, height_);
}
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.access.Access.GetBlockHeaderByHeightRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest other = (org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest) obj;
if (getHeight()
!= other.getHeight()) 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) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeight());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest 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.access.Access.GetBlockHeaderByHeightRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest 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.access.Access.GetBlockHeaderByHeightRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest 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.access.Access.GetBlockHeaderByHeightRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest 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.access.Access.GetBlockHeaderByHeightRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest 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.access.Access.GetBlockHeaderByHeightRequest 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.access.GetBlockHeaderByHeightRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetBlockHeaderByHeightRequest)
org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockHeaderByHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockHeaderByHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest.class, org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest.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();
height_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockHeaderByHeightRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest build() {
org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest buildPartial() {
org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest result = new org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest(this);
result.height_ = height_;
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.access.Access.GetBlockHeaderByHeightRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest other) {
if (other == org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest.getDefaultInstance()) return this;
if (other.getHeight() != 0L) {
setHeight(other.getHeight());
}
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.access.Access.GetBlockHeaderByHeightRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long height_ ;
/**
* uint64 height = 1;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
/**
* uint64 height = 1;
* @param value The height to set.
* @return This builder for chaining.
*/
public Builder setHeight(long value) {
height_ = value;
onChanged();
return this;
}
/**
* uint64 height = 1;
* @return This builder for chaining.
*/
public Builder clearHeight() {
height_ = 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.access.GetBlockHeaderByHeightRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetBlockHeaderByHeightRequest)
private static final org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest();
}
public static org.onflow.protobuf.access.Access.GetBlockHeaderByHeightRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetBlockHeaderByHeightRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetBlockHeaderByHeightRequest(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.access.Access.GetBlockHeaderByHeightRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BlockHeaderResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.BlockHeaderResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .flow.entities.BlockHeader block = 1;
* @return Whether the block field is set.
*/
boolean hasBlock();
/**
* .flow.entities.BlockHeader block = 1;
* @return The block.
*/
org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader getBlock();
/**
* .flow.entities.BlockHeader block = 1;
*/
org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeaderOrBuilder getBlockOrBuilder();
/**
* .flow.entities.BlockStatus block_status = 2;
* @return The enum numeric value on the wire for blockStatus.
*/
int getBlockStatusValue();
/**
* .flow.entities.BlockStatus block_status = 2;
* @return The blockStatus.
*/
org.onflow.protobuf.entities.BlockOuterClass.BlockStatus getBlockStatus();
/**
* .flow.entities.Metadata metadata = 3;
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
* .flow.entities.Metadata metadata = 3;
* @return The metadata.
*/
org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata();
/**
* .flow.entities.Metadata metadata = 3;
*/
org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code flow.access.BlockHeaderResponse}
*/
public static final class BlockHeaderResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.BlockHeaderResponse)
BlockHeaderResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockHeaderResponse.newBuilder() to construct.
private BlockHeaderResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BlockHeaderResponse() {
blockStatus_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BlockHeaderResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BlockHeaderResponse(
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.BlockHeaderOuterClass.BlockHeader.Builder subBuilder = null;
if (block_ != null) {
subBuilder = block_.toBuilder();
}
block_ = input.readMessage(org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(block_);
block_ = subBuilder.buildPartial();
}
break;
}
case 16: {
int rawValue = input.readEnum();
blockStatus_ = rawValue;
break;
}
case 26: {
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.onflow.protobuf.entities.MetadataOuterClass.Metadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.access.Access.internal_static_flow_access_BlockHeaderResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_BlockHeaderResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.BlockHeaderResponse.class, org.onflow.protobuf.access.Access.BlockHeaderResponse.Builder.class);
}
public static final int BLOCK_FIELD_NUMBER = 1;
private org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader block_;
/**
* .flow.entities.BlockHeader block = 1;
* @return Whether the block field is set.
*/
@java.lang.Override
public boolean hasBlock() {
return block_ != null;
}
/**
* .flow.entities.BlockHeader block = 1;
* @return The block.
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader getBlock() {
return block_ == null ? org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.getDefaultInstance() : block_;
}
/**
* .flow.entities.BlockHeader block = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeaderOrBuilder getBlockOrBuilder() {
return getBlock();
}
public static final int BLOCK_STATUS_FIELD_NUMBER = 2;
private int blockStatus_;
/**
* .flow.entities.BlockStatus block_status = 2;
* @return The enum numeric value on the wire for blockStatus.
*/
@java.lang.Override public int getBlockStatusValue() {
return blockStatus_;
}
/**
* .flow.entities.BlockStatus block_status = 2;
* @return The blockStatus.
*/
@java.lang.Override public org.onflow.protobuf.entities.BlockOuterClass.BlockStatus getBlockStatus() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.BlockOuterClass.BlockStatus result = org.onflow.protobuf.entities.BlockOuterClass.BlockStatus.valueOf(blockStatus_);
return result == null ? org.onflow.protobuf.entities.BlockOuterClass.BlockStatus.UNRECOGNIZED : result;
}
public static final int METADATA_FIELD_NUMBER = 3;
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
/**
* .flow.entities.Metadata metadata = 3;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 3;
* @return The metadata.
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
/**
* .flow.entities.Metadata metadata = 3;
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 (block_ != null) {
output.writeMessage(1, getBlock());
}
if (blockStatus_ != org.onflow.protobuf.entities.BlockOuterClass.BlockStatus.BLOCK_UNKNOWN.getNumber()) {
output.writeEnum(2, blockStatus_);
}
if (metadata_ != null) {
output.writeMessage(3, getMetadata());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (block_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBlock());
}
if (blockStatus_ != org.onflow.protobuf.entities.BlockOuterClass.BlockStatus.BLOCK_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, blockStatus_);
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMetadata());
}
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.access.Access.BlockHeaderResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.BlockHeaderResponse other = (org.onflow.protobuf.access.Access.BlockHeaderResponse) obj;
if (hasBlock() != other.hasBlock()) return false;
if (hasBlock()) {
if (!getBlock()
.equals(other.getBlock())) return false;
}
if (blockStatus_ != other.blockStatus_) return false;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) 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 (hasBlock()) {
hash = (37 * hash) + BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getBlock().hashCode();
}
hash = (37 * hash) + BLOCK_STATUS_FIELD_NUMBER;
hash = (53 * hash) + blockStatus_;
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.BlockHeaderResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.BlockHeaderResponse 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.access.Access.BlockHeaderResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.BlockHeaderResponse 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.access.Access.BlockHeaderResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.BlockHeaderResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.BlockHeaderResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.BlockHeaderResponse 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.access.Access.BlockHeaderResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.BlockHeaderResponse 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.access.Access.BlockHeaderResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.BlockHeaderResponse 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.access.Access.BlockHeaderResponse 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.access.BlockHeaderResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.BlockHeaderResponse)
org.onflow.protobuf.access.Access.BlockHeaderResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_BlockHeaderResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_BlockHeaderResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.BlockHeaderResponse.class, org.onflow.protobuf.access.Access.BlockHeaderResponse.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.BlockHeaderResponse.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 (blockBuilder_ == null) {
block_ = null;
} else {
block_ = null;
blockBuilder_ = null;
}
blockStatus_ = 0;
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_BlockHeaderResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.BlockHeaderResponse getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.BlockHeaderResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.BlockHeaderResponse build() {
org.onflow.protobuf.access.Access.BlockHeaderResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.BlockHeaderResponse buildPartial() {
org.onflow.protobuf.access.Access.BlockHeaderResponse result = new org.onflow.protobuf.access.Access.BlockHeaderResponse(this);
if (blockBuilder_ == null) {
result.block_ = block_;
} else {
result.block_ = blockBuilder_.build();
}
result.blockStatus_ = blockStatus_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.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.access.Access.BlockHeaderResponse) {
return mergeFrom((org.onflow.protobuf.access.Access.BlockHeaderResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.BlockHeaderResponse other) {
if (other == org.onflow.protobuf.access.Access.BlockHeaderResponse.getDefaultInstance()) return this;
if (other.hasBlock()) {
mergeBlock(other.getBlock());
}
if (other.blockStatus_ != 0) {
setBlockStatusValue(other.getBlockStatusValue());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.access.Access.BlockHeaderResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.BlockHeaderResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader block_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader, org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.Builder, org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeaderOrBuilder> blockBuilder_;
/**
* .flow.entities.BlockHeader block = 1;
* @return Whether the block field is set.
*/
public boolean hasBlock() {
return blockBuilder_ != null || block_ != null;
}
/**
* .flow.entities.BlockHeader block = 1;
* @return The block.
*/
public org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader getBlock() {
if (blockBuilder_ == null) {
return block_ == null ? org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.getDefaultInstance() : block_;
} else {
return blockBuilder_.getMessage();
}
}
/**
* .flow.entities.BlockHeader block = 1;
*/
public Builder setBlock(org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader value) {
if (blockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
block_ = value;
onChanged();
} else {
blockBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.BlockHeader block = 1;
*/
public Builder setBlock(
org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.Builder builderForValue) {
if (blockBuilder_ == null) {
block_ = builderForValue.build();
onChanged();
} else {
blockBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.BlockHeader block = 1;
*/
public Builder mergeBlock(org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader value) {
if (blockBuilder_ == null) {
if (block_ != null) {
block_ =
org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.newBuilder(block_).mergeFrom(value).buildPartial();
} else {
block_ = value;
}
onChanged();
} else {
blockBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.BlockHeader block = 1;
*/
public Builder clearBlock() {
if (blockBuilder_ == null) {
block_ = null;
onChanged();
} else {
block_ = null;
blockBuilder_ = null;
}
return this;
}
/**
* .flow.entities.BlockHeader block = 1;
*/
public org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.Builder getBlockBuilder() {
onChanged();
return getBlockFieldBuilder().getBuilder();
}
/**
* .flow.entities.BlockHeader block = 1;
*/
public org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeaderOrBuilder getBlockOrBuilder() {
if (blockBuilder_ != null) {
return blockBuilder_.getMessageOrBuilder();
} else {
return block_ == null ?
org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.getDefaultInstance() : block_;
}
}
/**
* .flow.entities.BlockHeader block = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader, org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.Builder, org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeaderOrBuilder>
getBlockFieldBuilder() {
if (blockBuilder_ == null) {
blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader, org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeader.Builder, org.onflow.protobuf.entities.BlockHeaderOuterClass.BlockHeaderOrBuilder>(
getBlock(),
getParentForChildren(),
isClean());
block_ = null;
}
return blockBuilder_;
}
private int blockStatus_ = 0;
/**
* .flow.entities.BlockStatus block_status = 2;
* @return The enum numeric value on the wire for blockStatus.
*/
@java.lang.Override public int getBlockStatusValue() {
return blockStatus_;
}
/**
* .flow.entities.BlockStatus block_status = 2;
* @param value The enum numeric value on the wire for blockStatus to set.
* @return This builder for chaining.
*/
public Builder setBlockStatusValue(int value) {
blockStatus_ = value;
onChanged();
return this;
}
/**
* .flow.entities.BlockStatus block_status = 2;
* @return The blockStatus.
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockOuterClass.BlockStatus getBlockStatus() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.BlockOuterClass.BlockStatus result = org.onflow.protobuf.entities.BlockOuterClass.BlockStatus.valueOf(blockStatus_);
return result == null ? org.onflow.protobuf.entities.BlockOuterClass.BlockStatus.UNRECOGNIZED : result;
}
/**
* .flow.entities.BlockStatus block_status = 2;
* @param value The blockStatus to set.
* @return This builder for chaining.
*/
public Builder setBlockStatus(org.onflow.protobuf.entities.BlockOuterClass.BlockStatus value) {
if (value == null) {
throw new NullPointerException();
}
blockStatus_ = value.getNumber();
onChanged();
return this;
}
/**
* .flow.entities.BlockStatus block_status = 2;
* @return This builder for chaining.
*/
public Builder clearBlockStatus() {
blockStatus_ = 0;
onChanged();
return this;
}
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder> metadataBuilder_;
/**
* .flow.entities.Metadata metadata = 3;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 3;
* @return The metadata.
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* .flow.entities.Metadata metadata = 3;
*/
public Builder setMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 3;
*/
public Builder setMetadata(
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Metadata metadata = 3;
*/
public Builder mergeMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 3;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Metadata metadata = 3;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* .flow.entities.Metadata metadata = 3;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
}
/**
* .flow.entities.Metadata metadata = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
@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.access.BlockHeaderResponse)
}
// @@protoc_insertion_point(class_scope:flow.access.BlockHeaderResponse)
private static final org.onflow.protobuf.access.Access.BlockHeaderResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.BlockHeaderResponse();
}
public static org.onflow.protobuf.access.Access.BlockHeaderResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BlockHeaderResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BlockHeaderResponse(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.access.Access.BlockHeaderResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetLatestBlockRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetLatestBlockRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bool is_sealed = 1;
* @return The isSealed.
*/
boolean getIsSealed();
/**
* bool full_block_response = 2;
* @return The fullBlockResponse.
*/
boolean getFullBlockResponse();
}
/**
* Protobuf type {@code flow.access.GetLatestBlockRequest}
*/
public static final class GetLatestBlockRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetLatestBlockRequest)
GetLatestBlockRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetLatestBlockRequest.newBuilder() to construct.
private GetLatestBlockRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetLatestBlockRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetLatestBlockRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetLatestBlockRequest(
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: {
isSealed_ = input.readBool();
break;
}
case 16: {
fullBlockResponse_ = input.readBool();
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.access.Access.internal_static_flow_access_GetLatestBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetLatestBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetLatestBlockRequest.class, org.onflow.protobuf.access.Access.GetLatestBlockRequest.Builder.class);
}
public static final int IS_SEALED_FIELD_NUMBER = 1;
private boolean isSealed_;
/**
* bool is_sealed = 1;
* @return The isSealed.
*/
@java.lang.Override
public boolean getIsSealed() {
return isSealed_;
}
public static final int FULL_BLOCK_RESPONSE_FIELD_NUMBER = 2;
private boolean fullBlockResponse_;
/**
* bool full_block_response = 2;
* @return The fullBlockResponse.
*/
@java.lang.Override
public boolean getFullBlockResponse() {
return fullBlockResponse_;
}
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 (isSealed_ != false) {
output.writeBool(1, isSealed_);
}
if (fullBlockResponse_ != false) {
output.writeBool(2, fullBlockResponse_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (isSealed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, isSealed_);
}
if (fullBlockResponse_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, fullBlockResponse_);
}
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.access.Access.GetLatestBlockRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetLatestBlockRequest other = (org.onflow.protobuf.access.Access.GetLatestBlockRequest) obj;
if (getIsSealed()
!= other.getIsSealed()) return false;
if (getFullBlockResponse()
!= other.getFullBlockResponse()) 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) + IS_SEALED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsSealed());
hash = (37 * hash) + FULL_BLOCK_RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFullBlockResponse());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.GetLatestBlockRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetLatestBlockRequest 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.access.Access.GetLatestBlockRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetLatestBlockRequest 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.access.Access.GetLatestBlockRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetLatestBlockRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetLatestBlockRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetLatestBlockRequest 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.access.Access.GetLatestBlockRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetLatestBlockRequest 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.access.Access.GetLatestBlockRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetLatestBlockRequest 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.access.Access.GetLatestBlockRequest 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.access.GetLatestBlockRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetLatestBlockRequest)
org.onflow.protobuf.access.Access.GetLatestBlockRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetLatestBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetLatestBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetLatestBlockRequest.class, org.onflow.protobuf.access.Access.GetLatestBlockRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetLatestBlockRequest.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();
isSealed_ = false;
fullBlockResponse_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetLatestBlockRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetLatestBlockRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetLatestBlockRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetLatestBlockRequest build() {
org.onflow.protobuf.access.Access.GetLatestBlockRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetLatestBlockRequest buildPartial() {
org.onflow.protobuf.access.Access.GetLatestBlockRequest result = new org.onflow.protobuf.access.Access.GetLatestBlockRequest(this);
result.isSealed_ = isSealed_;
result.fullBlockResponse_ = fullBlockResponse_;
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.access.Access.GetLatestBlockRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetLatestBlockRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetLatestBlockRequest other) {
if (other == org.onflow.protobuf.access.Access.GetLatestBlockRequest.getDefaultInstance()) return this;
if (other.getIsSealed() != false) {
setIsSealed(other.getIsSealed());
}
if (other.getFullBlockResponse() != false) {
setFullBlockResponse(other.getFullBlockResponse());
}
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.access.Access.GetLatestBlockRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetLatestBlockRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean isSealed_ ;
/**
* bool is_sealed = 1;
* @return The isSealed.
*/
@java.lang.Override
public boolean getIsSealed() {
return isSealed_;
}
/**
* bool is_sealed = 1;
* @param value The isSealed to set.
* @return This builder for chaining.
*/
public Builder setIsSealed(boolean value) {
isSealed_ = value;
onChanged();
return this;
}
/**
* bool is_sealed = 1;
* @return This builder for chaining.
*/
public Builder clearIsSealed() {
isSealed_ = false;
onChanged();
return this;
}
private boolean fullBlockResponse_ ;
/**
* bool full_block_response = 2;
* @return The fullBlockResponse.
*/
@java.lang.Override
public boolean getFullBlockResponse() {
return fullBlockResponse_;
}
/**
* bool full_block_response = 2;
* @param value The fullBlockResponse to set.
* @return This builder for chaining.
*/
public Builder setFullBlockResponse(boolean value) {
fullBlockResponse_ = value;
onChanged();
return this;
}
/**
* bool full_block_response = 2;
* @return This builder for chaining.
*/
public Builder clearFullBlockResponse() {
fullBlockResponse_ = false;
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.access.GetLatestBlockRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetLatestBlockRequest)
private static final org.onflow.protobuf.access.Access.GetLatestBlockRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetLatestBlockRequest();
}
public static org.onflow.protobuf.access.Access.GetLatestBlockRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetLatestBlockRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetLatestBlockRequest(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.access.Access.GetLatestBlockRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetBlockByIDRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetBlockByIDRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes id = 1;
* @return The id.
*/
com.google.protobuf.ByteString getId();
/**
* bool full_block_response = 2;
* @return The fullBlockResponse.
*/
boolean getFullBlockResponse();
}
/**
* Protobuf type {@code flow.access.GetBlockByIDRequest}
*/
public static final class GetBlockByIDRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetBlockByIDRequest)
GetBlockByIDRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetBlockByIDRequest.newBuilder() to construct.
private GetBlockByIDRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetBlockByIDRequest() {
id_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetBlockByIDRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetBlockByIDRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
id_ = input.readBytes();
break;
}
case 16: {
fullBlockResponse_ = input.readBool();
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.access.Access.internal_static_flow_access_GetBlockByIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockByIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetBlockByIDRequest.class, org.onflow.protobuf.access.Access.GetBlockByIDRequest.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString id_;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
public static final int FULL_BLOCK_RESPONSE_FIELD_NUMBER = 2;
private boolean fullBlockResponse_;
/**
* bool full_block_response = 2;
* @return The fullBlockResponse.
*/
@java.lang.Override
public boolean getFullBlockResponse() {
return fullBlockResponse_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!id_.isEmpty()) {
output.writeBytes(1, id_);
}
if (fullBlockResponse_ != false) {
output.writeBool(2, fullBlockResponse_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!id_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, id_);
}
if (fullBlockResponse_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, fullBlockResponse_);
}
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.access.Access.GetBlockByIDRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetBlockByIDRequest other = (org.onflow.protobuf.access.Access.GetBlockByIDRequest) obj;
if (!getId()
.equals(other.getId())) return false;
if (getFullBlockResponse()
!= other.getFullBlockResponse()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + FULL_BLOCK_RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFullBlockResponse());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.GetBlockByIDRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetBlockByIDRequest 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.access.Access.GetBlockByIDRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetBlockByIDRequest 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.access.Access.GetBlockByIDRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetBlockByIDRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetBlockByIDRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetBlockByIDRequest 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.access.Access.GetBlockByIDRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetBlockByIDRequest 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.access.Access.GetBlockByIDRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetBlockByIDRequest 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.access.Access.GetBlockByIDRequest 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.access.GetBlockByIDRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetBlockByIDRequest)
org.onflow.protobuf.access.Access.GetBlockByIDRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockByIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockByIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetBlockByIDRequest.class, org.onflow.protobuf.access.Access.GetBlockByIDRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetBlockByIDRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = com.google.protobuf.ByteString.EMPTY;
fullBlockResponse_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockByIDRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetBlockByIDRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetBlockByIDRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetBlockByIDRequest build() {
org.onflow.protobuf.access.Access.GetBlockByIDRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetBlockByIDRequest buildPartial() {
org.onflow.protobuf.access.Access.GetBlockByIDRequest result = new org.onflow.protobuf.access.Access.GetBlockByIDRequest(this);
result.id_ = id_;
result.fullBlockResponse_ = fullBlockResponse_;
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.access.Access.GetBlockByIDRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetBlockByIDRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetBlockByIDRequest other) {
if (other == org.onflow.protobuf.access.Access.GetBlockByIDRequest.getDefaultInstance()) return this;
if (other.getId() != com.google.protobuf.ByteString.EMPTY) {
setId(other.getId());
}
if (other.getFullBlockResponse() != false) {
setFullBlockResponse(other.getFullBlockResponse());
}
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.access.Access.GetBlockByIDRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetBlockByIDRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
/**
* bytes id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* bytes id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
private boolean fullBlockResponse_ ;
/**
* bool full_block_response = 2;
* @return The fullBlockResponse.
*/
@java.lang.Override
public boolean getFullBlockResponse() {
return fullBlockResponse_;
}
/**
* bool full_block_response = 2;
* @param value The fullBlockResponse to set.
* @return This builder for chaining.
*/
public Builder setFullBlockResponse(boolean value) {
fullBlockResponse_ = value;
onChanged();
return this;
}
/**
* bool full_block_response = 2;
* @return This builder for chaining.
*/
public Builder clearFullBlockResponse() {
fullBlockResponse_ = false;
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.access.GetBlockByIDRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetBlockByIDRequest)
private static final org.onflow.protobuf.access.Access.GetBlockByIDRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetBlockByIDRequest();
}
public static org.onflow.protobuf.access.Access.GetBlockByIDRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetBlockByIDRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetBlockByIDRequest(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.access.Access.GetBlockByIDRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetBlockByHeightRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetBlockByHeightRequest)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 height = 1;
* @return The height.
*/
long getHeight();
/**
* bool full_block_response = 2;
* @return The fullBlockResponse.
*/
boolean getFullBlockResponse();
}
/**
* Protobuf type {@code flow.access.GetBlockByHeightRequest}
*/
public static final class GetBlockByHeightRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetBlockByHeightRequest)
GetBlockByHeightRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetBlockByHeightRequest.newBuilder() to construct.
private GetBlockByHeightRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetBlockByHeightRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetBlockByHeightRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetBlockByHeightRequest(
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: {
height_ = input.readUInt64();
break;
}
case 16: {
fullBlockResponse_ = input.readBool();
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.access.Access.internal_static_flow_access_GetBlockByHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockByHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetBlockByHeightRequest.class, org.onflow.protobuf.access.Access.GetBlockByHeightRequest.Builder.class);
}
public static final int HEIGHT_FIELD_NUMBER = 1;
private long height_;
/**
* uint64 height = 1;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
public static final int FULL_BLOCK_RESPONSE_FIELD_NUMBER = 2;
private boolean fullBlockResponse_;
/**
* bool full_block_response = 2;
* @return The fullBlockResponse.
*/
@java.lang.Override
public boolean getFullBlockResponse() {
return fullBlockResponse_;
}
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 (height_ != 0L) {
output.writeUInt64(1, height_);
}
if (fullBlockResponse_ != false) {
output.writeBool(2, fullBlockResponse_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (height_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, height_);
}
if (fullBlockResponse_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, fullBlockResponse_);
}
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.access.Access.GetBlockByHeightRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetBlockByHeightRequest other = (org.onflow.protobuf.access.Access.GetBlockByHeightRequest) obj;
if (getHeight()
!= other.getHeight()) return false;
if (getFullBlockResponse()
!= other.getFullBlockResponse()) 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) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeight());
hash = (37 * hash) + FULL_BLOCK_RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFullBlockResponse());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.GetBlockByHeightRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetBlockByHeightRequest 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.access.Access.GetBlockByHeightRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetBlockByHeightRequest 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.access.Access.GetBlockByHeightRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetBlockByHeightRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetBlockByHeightRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetBlockByHeightRequest 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.access.Access.GetBlockByHeightRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetBlockByHeightRequest 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.access.Access.GetBlockByHeightRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetBlockByHeightRequest 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.access.Access.GetBlockByHeightRequest 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.access.GetBlockByHeightRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetBlockByHeightRequest)
org.onflow.protobuf.access.Access.GetBlockByHeightRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockByHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockByHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetBlockByHeightRequest.class, org.onflow.protobuf.access.Access.GetBlockByHeightRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetBlockByHeightRequest.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();
height_ = 0L;
fullBlockResponse_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetBlockByHeightRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetBlockByHeightRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetBlockByHeightRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetBlockByHeightRequest build() {
org.onflow.protobuf.access.Access.GetBlockByHeightRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetBlockByHeightRequest buildPartial() {
org.onflow.protobuf.access.Access.GetBlockByHeightRequest result = new org.onflow.protobuf.access.Access.GetBlockByHeightRequest(this);
result.height_ = height_;
result.fullBlockResponse_ = fullBlockResponse_;
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.access.Access.GetBlockByHeightRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetBlockByHeightRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetBlockByHeightRequest other) {
if (other == org.onflow.protobuf.access.Access.GetBlockByHeightRequest.getDefaultInstance()) return this;
if (other.getHeight() != 0L) {
setHeight(other.getHeight());
}
if (other.getFullBlockResponse() != false) {
setFullBlockResponse(other.getFullBlockResponse());
}
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.access.Access.GetBlockByHeightRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetBlockByHeightRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long height_ ;
/**
* uint64 height = 1;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
/**
* uint64 height = 1;
* @param value The height to set.
* @return This builder for chaining.
*/
public Builder setHeight(long value) {
height_ = value;
onChanged();
return this;
}
/**
* uint64 height = 1;
* @return This builder for chaining.
*/
public Builder clearHeight() {
height_ = 0L;
onChanged();
return this;
}
private boolean fullBlockResponse_ ;
/**
* bool full_block_response = 2;
* @return The fullBlockResponse.
*/
@java.lang.Override
public boolean getFullBlockResponse() {
return fullBlockResponse_;
}
/**
* bool full_block_response = 2;
* @param value The fullBlockResponse to set.
* @return This builder for chaining.
*/
public Builder setFullBlockResponse(boolean value) {
fullBlockResponse_ = value;
onChanged();
return this;
}
/**
* bool full_block_response = 2;
* @return This builder for chaining.
*/
public Builder clearFullBlockResponse() {
fullBlockResponse_ = false;
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.access.GetBlockByHeightRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetBlockByHeightRequest)
private static final org.onflow.protobuf.access.Access.GetBlockByHeightRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetBlockByHeightRequest();
}
public static org.onflow.protobuf.access.Access.GetBlockByHeightRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetBlockByHeightRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetBlockByHeightRequest(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.access.Access.GetBlockByHeightRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BlockResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.BlockResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .flow.entities.Block block = 1;
* @return Whether the block field is set.
*/
boolean hasBlock();
/**
* .flow.entities.Block block = 1;
* @return The block.
*/
org.onflow.protobuf.entities.BlockOuterClass.Block getBlock();
/**
* .flow.entities.Block block = 1;
*/
org.onflow.protobuf.entities.BlockOuterClass.BlockOrBuilder getBlockOrBuilder();
/**
* .flow.entities.BlockStatus block_status = 2;
* @return The enum numeric value on the wire for blockStatus.
*/
int getBlockStatusValue();
/**
* .flow.entities.BlockStatus block_status = 2;
* @return The blockStatus.
*/
org.onflow.protobuf.entities.BlockOuterClass.BlockStatus getBlockStatus();
/**
* .flow.entities.Metadata metadata = 3;
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
* .flow.entities.Metadata metadata = 3;
* @return The metadata.
*/
org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata();
/**
* .flow.entities.Metadata metadata = 3;
*/
org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code flow.access.BlockResponse}
*/
public static final class BlockResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.BlockResponse)
BlockResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockResponse.newBuilder() to construct.
private BlockResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BlockResponse() {
blockStatus_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BlockResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BlockResponse(
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.BlockOuterClass.Block.Builder subBuilder = null;
if (block_ != null) {
subBuilder = block_.toBuilder();
}
block_ = input.readMessage(org.onflow.protobuf.entities.BlockOuterClass.Block.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(block_);
block_ = subBuilder.buildPartial();
}
break;
}
case 16: {
int rawValue = input.readEnum();
blockStatus_ = rawValue;
break;
}
case 26: {
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.onflow.protobuf.entities.MetadataOuterClass.Metadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.access.Access.internal_static_flow_access_BlockResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_BlockResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.BlockResponse.class, org.onflow.protobuf.access.Access.BlockResponse.Builder.class);
}
public static final int BLOCK_FIELD_NUMBER = 1;
private org.onflow.protobuf.entities.BlockOuterClass.Block block_;
/**
* .flow.entities.Block block = 1;
* @return Whether the block field is set.
*/
@java.lang.Override
public boolean hasBlock() {
return block_ != null;
}
/**
* .flow.entities.Block block = 1;
* @return The block.
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockOuterClass.Block getBlock() {
return block_ == null ? org.onflow.protobuf.entities.BlockOuterClass.Block.getDefaultInstance() : block_;
}
/**
* .flow.entities.Block block = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockOuterClass.BlockOrBuilder getBlockOrBuilder() {
return getBlock();
}
public static final int BLOCK_STATUS_FIELD_NUMBER = 2;
private int blockStatus_;
/**
* .flow.entities.BlockStatus block_status = 2;
* @return The enum numeric value on the wire for blockStatus.
*/
@java.lang.Override public int getBlockStatusValue() {
return blockStatus_;
}
/**
* .flow.entities.BlockStatus block_status = 2;
* @return The blockStatus.
*/
@java.lang.Override public org.onflow.protobuf.entities.BlockOuterClass.BlockStatus getBlockStatus() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.BlockOuterClass.BlockStatus result = org.onflow.protobuf.entities.BlockOuterClass.BlockStatus.valueOf(blockStatus_);
return result == null ? org.onflow.protobuf.entities.BlockOuterClass.BlockStatus.UNRECOGNIZED : result;
}
public static final int METADATA_FIELD_NUMBER = 3;
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
/**
* .flow.entities.Metadata metadata = 3;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 3;
* @return The metadata.
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
/**
* .flow.entities.Metadata metadata = 3;
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 (block_ != null) {
output.writeMessage(1, getBlock());
}
if (blockStatus_ != org.onflow.protobuf.entities.BlockOuterClass.BlockStatus.BLOCK_UNKNOWN.getNumber()) {
output.writeEnum(2, blockStatus_);
}
if (metadata_ != null) {
output.writeMessage(3, getMetadata());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (block_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBlock());
}
if (blockStatus_ != org.onflow.protobuf.entities.BlockOuterClass.BlockStatus.BLOCK_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, blockStatus_);
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMetadata());
}
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.access.Access.BlockResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.BlockResponse other = (org.onflow.protobuf.access.Access.BlockResponse) obj;
if (hasBlock() != other.hasBlock()) return false;
if (hasBlock()) {
if (!getBlock()
.equals(other.getBlock())) return false;
}
if (blockStatus_ != other.blockStatus_) return false;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) 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 (hasBlock()) {
hash = (37 * hash) + BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getBlock().hashCode();
}
hash = (37 * hash) + BLOCK_STATUS_FIELD_NUMBER;
hash = (53 * hash) + blockStatus_;
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.BlockResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.BlockResponse 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.access.Access.BlockResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.BlockResponse 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.access.Access.BlockResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.BlockResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.BlockResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.BlockResponse 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.access.Access.BlockResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.BlockResponse 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.access.Access.BlockResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.BlockResponse 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.access.Access.BlockResponse 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.access.BlockResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.BlockResponse)
org.onflow.protobuf.access.Access.BlockResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_BlockResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_BlockResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.BlockResponse.class, org.onflow.protobuf.access.Access.BlockResponse.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.BlockResponse.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 (blockBuilder_ == null) {
block_ = null;
} else {
block_ = null;
blockBuilder_ = null;
}
blockStatus_ = 0;
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_BlockResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.BlockResponse getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.BlockResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.BlockResponse build() {
org.onflow.protobuf.access.Access.BlockResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.BlockResponse buildPartial() {
org.onflow.protobuf.access.Access.BlockResponse result = new org.onflow.protobuf.access.Access.BlockResponse(this);
if (blockBuilder_ == null) {
result.block_ = block_;
} else {
result.block_ = blockBuilder_.build();
}
result.blockStatus_ = blockStatus_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.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.access.Access.BlockResponse) {
return mergeFrom((org.onflow.protobuf.access.Access.BlockResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.BlockResponse other) {
if (other == org.onflow.protobuf.access.Access.BlockResponse.getDefaultInstance()) return this;
if (other.hasBlock()) {
mergeBlock(other.getBlock());
}
if (other.blockStatus_ != 0) {
setBlockStatusValue(other.getBlockStatusValue());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.access.Access.BlockResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.BlockResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.entities.BlockOuterClass.Block block_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockOuterClass.Block, org.onflow.protobuf.entities.BlockOuterClass.Block.Builder, org.onflow.protobuf.entities.BlockOuterClass.BlockOrBuilder> blockBuilder_;
/**
* .flow.entities.Block block = 1;
* @return Whether the block field is set.
*/
public boolean hasBlock() {
return blockBuilder_ != null || block_ != null;
}
/**
* .flow.entities.Block block = 1;
* @return The block.
*/
public org.onflow.protobuf.entities.BlockOuterClass.Block getBlock() {
if (blockBuilder_ == null) {
return block_ == null ? org.onflow.protobuf.entities.BlockOuterClass.Block.getDefaultInstance() : block_;
} else {
return blockBuilder_.getMessage();
}
}
/**
* .flow.entities.Block block = 1;
*/
public Builder setBlock(org.onflow.protobuf.entities.BlockOuterClass.Block value) {
if (blockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
block_ = value;
onChanged();
} else {
blockBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Block block = 1;
*/
public Builder setBlock(
org.onflow.protobuf.entities.BlockOuterClass.Block.Builder builderForValue) {
if (blockBuilder_ == null) {
block_ = builderForValue.build();
onChanged();
} else {
blockBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Block block = 1;
*/
public Builder mergeBlock(org.onflow.protobuf.entities.BlockOuterClass.Block value) {
if (blockBuilder_ == null) {
if (block_ != null) {
block_ =
org.onflow.protobuf.entities.BlockOuterClass.Block.newBuilder(block_).mergeFrom(value).buildPartial();
} else {
block_ = value;
}
onChanged();
} else {
blockBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Block block = 1;
*/
public Builder clearBlock() {
if (blockBuilder_ == null) {
block_ = null;
onChanged();
} else {
block_ = null;
blockBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Block block = 1;
*/
public org.onflow.protobuf.entities.BlockOuterClass.Block.Builder getBlockBuilder() {
onChanged();
return getBlockFieldBuilder().getBuilder();
}
/**
* .flow.entities.Block block = 1;
*/
public org.onflow.protobuf.entities.BlockOuterClass.BlockOrBuilder getBlockOrBuilder() {
if (blockBuilder_ != null) {
return blockBuilder_.getMessageOrBuilder();
} else {
return block_ == null ?
org.onflow.protobuf.entities.BlockOuterClass.Block.getDefaultInstance() : block_;
}
}
/**
* .flow.entities.Block block = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockOuterClass.Block, org.onflow.protobuf.entities.BlockOuterClass.Block.Builder, org.onflow.protobuf.entities.BlockOuterClass.BlockOrBuilder>
getBlockFieldBuilder() {
if (blockBuilder_ == null) {
blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.BlockOuterClass.Block, org.onflow.protobuf.entities.BlockOuterClass.Block.Builder, org.onflow.protobuf.entities.BlockOuterClass.BlockOrBuilder>(
getBlock(),
getParentForChildren(),
isClean());
block_ = null;
}
return blockBuilder_;
}
private int blockStatus_ = 0;
/**
* .flow.entities.BlockStatus block_status = 2;
* @return The enum numeric value on the wire for blockStatus.
*/
@java.lang.Override public int getBlockStatusValue() {
return blockStatus_;
}
/**
* .flow.entities.BlockStatus block_status = 2;
* @param value The enum numeric value on the wire for blockStatus to set.
* @return This builder for chaining.
*/
public Builder setBlockStatusValue(int value) {
blockStatus_ = value;
onChanged();
return this;
}
/**
* .flow.entities.BlockStatus block_status = 2;
* @return The blockStatus.
*/
@java.lang.Override
public org.onflow.protobuf.entities.BlockOuterClass.BlockStatus getBlockStatus() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.BlockOuterClass.BlockStatus result = org.onflow.protobuf.entities.BlockOuterClass.BlockStatus.valueOf(blockStatus_);
return result == null ? org.onflow.protobuf.entities.BlockOuterClass.BlockStatus.UNRECOGNIZED : result;
}
/**
* .flow.entities.BlockStatus block_status = 2;
* @param value The blockStatus to set.
* @return This builder for chaining.
*/
public Builder setBlockStatus(org.onflow.protobuf.entities.BlockOuterClass.BlockStatus value) {
if (value == null) {
throw new NullPointerException();
}
blockStatus_ = value.getNumber();
onChanged();
return this;
}
/**
* .flow.entities.BlockStatus block_status = 2;
* @return This builder for chaining.
*/
public Builder clearBlockStatus() {
blockStatus_ = 0;
onChanged();
return this;
}
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder> metadataBuilder_;
/**
* .flow.entities.Metadata metadata = 3;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 3;
* @return The metadata.
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* .flow.entities.Metadata metadata = 3;
*/
public Builder setMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 3;
*/
public Builder setMetadata(
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Metadata metadata = 3;
*/
public Builder mergeMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 3;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Metadata metadata = 3;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* .flow.entities.Metadata metadata = 3;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
}
/**
* .flow.entities.Metadata metadata = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
@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.access.BlockResponse)
}
// @@protoc_insertion_point(class_scope:flow.access.BlockResponse)
private static final org.onflow.protobuf.access.Access.BlockResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.BlockResponse();
}
public static org.onflow.protobuf.access.Access.BlockResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BlockResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BlockResponse(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.access.Access.BlockResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetCollectionByIDRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetCollectionByIDRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes id = 1;
* @return The id.
*/
com.google.protobuf.ByteString getId();
}
/**
* Protobuf type {@code flow.access.GetCollectionByIDRequest}
*/
public static final class GetCollectionByIDRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetCollectionByIDRequest)
GetCollectionByIDRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetCollectionByIDRequest.newBuilder() to construct.
private GetCollectionByIDRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetCollectionByIDRequest() {
id_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetCollectionByIDRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetCollectionByIDRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
id_ = input.readBytes();
break;
}
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.access.Access.internal_static_flow_access_GetCollectionByIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetCollectionByIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetCollectionByIDRequest.class, org.onflow.protobuf.access.Access.GetCollectionByIDRequest.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString id_;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!id_.isEmpty()) {
output.writeBytes(1, id_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!id_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, id_);
}
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.access.Access.GetCollectionByIDRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetCollectionByIDRequest other = (org.onflow.protobuf.access.Access.GetCollectionByIDRequest) obj;
if (!getId()
.equals(other.getId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.GetCollectionByIDRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetCollectionByIDRequest 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.access.Access.GetCollectionByIDRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetCollectionByIDRequest 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.access.Access.GetCollectionByIDRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetCollectionByIDRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetCollectionByIDRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetCollectionByIDRequest 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.access.Access.GetCollectionByIDRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetCollectionByIDRequest 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.access.Access.GetCollectionByIDRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetCollectionByIDRequest 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.access.Access.GetCollectionByIDRequest 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.access.GetCollectionByIDRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetCollectionByIDRequest)
org.onflow.protobuf.access.Access.GetCollectionByIDRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetCollectionByIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetCollectionByIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetCollectionByIDRequest.class, org.onflow.protobuf.access.Access.GetCollectionByIDRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetCollectionByIDRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetCollectionByIDRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetCollectionByIDRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetCollectionByIDRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetCollectionByIDRequest build() {
org.onflow.protobuf.access.Access.GetCollectionByIDRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetCollectionByIDRequest buildPartial() {
org.onflow.protobuf.access.Access.GetCollectionByIDRequest result = new org.onflow.protobuf.access.Access.GetCollectionByIDRequest(this);
result.id_ = id_;
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.access.Access.GetCollectionByIDRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetCollectionByIDRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetCollectionByIDRequest other) {
if (other == org.onflow.protobuf.access.Access.GetCollectionByIDRequest.getDefaultInstance()) return this;
if (other.getId() != com.google.protobuf.ByteString.EMPTY) {
setId(other.getId());
}
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.access.Access.GetCollectionByIDRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetCollectionByIDRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
/**
* bytes id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* bytes id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
@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.access.GetCollectionByIDRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetCollectionByIDRequest)
private static final org.onflow.protobuf.access.Access.GetCollectionByIDRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetCollectionByIDRequest();
}
public static org.onflow.protobuf.access.Access.GetCollectionByIDRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetCollectionByIDRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetCollectionByIDRequest(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.access.Access.GetCollectionByIDRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetFullCollectionByIDRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetFullCollectionByIDRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes id = 1;
* @return The id.
*/
com.google.protobuf.ByteString getId();
}
/**
* Protobuf type {@code flow.access.GetFullCollectionByIDRequest}
*/
public static final class GetFullCollectionByIDRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetFullCollectionByIDRequest)
GetFullCollectionByIDRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetFullCollectionByIDRequest.newBuilder() to construct.
private GetFullCollectionByIDRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetFullCollectionByIDRequest() {
id_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetFullCollectionByIDRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetFullCollectionByIDRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
id_ = input.readBytes();
break;
}
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.access.Access.internal_static_flow_access_GetFullCollectionByIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetFullCollectionByIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest.class, org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString id_;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!id_.isEmpty()) {
output.writeBytes(1, id_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!id_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, id_);
}
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.access.Access.GetFullCollectionByIDRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest other = (org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest) obj;
if (!getId()
.equals(other.getId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest 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.access.Access.GetFullCollectionByIDRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest 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.access.Access.GetFullCollectionByIDRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest 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.access.Access.GetFullCollectionByIDRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest 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.access.Access.GetFullCollectionByIDRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest 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.access.Access.GetFullCollectionByIDRequest 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.access.GetFullCollectionByIDRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetFullCollectionByIDRequest)
org.onflow.protobuf.access.Access.GetFullCollectionByIDRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetFullCollectionByIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetFullCollectionByIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest.class, org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetFullCollectionByIDRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest build() {
org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest buildPartial() {
org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest result = new org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest(this);
result.id_ = id_;
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.access.Access.GetFullCollectionByIDRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest other) {
if (other == org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest.getDefaultInstance()) return this;
if (other.getId() != com.google.protobuf.ByteString.EMPTY) {
setId(other.getId());
}
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.access.Access.GetFullCollectionByIDRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
/**
* bytes id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* bytes id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
@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.access.GetFullCollectionByIDRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetFullCollectionByIDRequest)
private static final org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest();
}
public static org.onflow.protobuf.access.Access.GetFullCollectionByIDRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetFullCollectionByIDRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetFullCollectionByIDRequest(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.access.Access.GetFullCollectionByIDRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CollectionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.CollectionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .flow.entities.Collection collection = 1;
* @return Whether the collection field is set.
*/
boolean hasCollection();
/**
* .flow.entities.Collection collection = 1;
* @return The collection.
*/
org.onflow.protobuf.entities.CollectionOuterClass.Collection getCollection();
/**
* .flow.entities.Collection collection = 1;
*/
org.onflow.protobuf.entities.CollectionOuterClass.CollectionOrBuilder getCollectionOrBuilder();
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata();
/**
* .flow.entities.Metadata metadata = 2;
*/
org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code flow.access.CollectionResponse}
*/
public static final class CollectionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.CollectionResponse)
CollectionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CollectionResponse.newBuilder() to construct.
private CollectionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CollectionResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CollectionResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CollectionResponse(
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.CollectionOuterClass.Collection.Builder subBuilder = null;
if (collection_ != null) {
subBuilder = collection_.toBuilder();
}
collection_ = input.readMessage(org.onflow.protobuf.entities.CollectionOuterClass.Collection.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(collection_);
collection_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.onflow.protobuf.entities.MetadataOuterClass.Metadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.access.Access.internal_static_flow_access_CollectionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_CollectionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.CollectionResponse.class, org.onflow.protobuf.access.Access.CollectionResponse.Builder.class);
}
public static final int COLLECTION_FIELD_NUMBER = 1;
private org.onflow.protobuf.entities.CollectionOuterClass.Collection collection_;
/**
* .flow.entities.Collection collection = 1;
* @return Whether the collection field is set.
*/
@java.lang.Override
public boolean hasCollection() {
return collection_ != null;
}
/**
* .flow.entities.Collection collection = 1;
* @return The collection.
*/
@java.lang.Override
public org.onflow.protobuf.entities.CollectionOuterClass.Collection getCollection() {
return collection_ == null ? org.onflow.protobuf.entities.CollectionOuterClass.Collection.getDefaultInstance() : collection_;
}
/**
* .flow.entities.Collection collection = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.CollectionOuterClass.CollectionOrBuilder getCollectionOrBuilder() {
return getCollection();
}
public static final int METADATA_FIELD_NUMBER = 2;
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (collection_ != null) {
output.writeMessage(1, getCollection());
}
if (metadata_ != null) {
output.writeMessage(2, getMetadata());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (collection_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCollection());
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetadata());
}
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.access.Access.CollectionResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.CollectionResponse other = (org.onflow.protobuf.access.Access.CollectionResponse) obj;
if (hasCollection() != other.hasCollection()) return false;
if (hasCollection()) {
if (!getCollection()
.equals(other.getCollection())) return false;
}
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCollection()) {
hash = (37 * hash) + COLLECTION_FIELD_NUMBER;
hash = (53 * hash) + getCollection().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.CollectionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.CollectionResponse 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.access.Access.CollectionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.CollectionResponse 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.access.Access.CollectionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.CollectionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.CollectionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.CollectionResponse 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.access.Access.CollectionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.CollectionResponse 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.access.Access.CollectionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.CollectionResponse 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.access.Access.CollectionResponse 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.access.CollectionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.CollectionResponse)
org.onflow.protobuf.access.Access.CollectionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_CollectionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_CollectionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.CollectionResponse.class, org.onflow.protobuf.access.Access.CollectionResponse.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.CollectionResponse.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 (collectionBuilder_ == null) {
collection_ = null;
} else {
collection_ = null;
collectionBuilder_ = null;
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_CollectionResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.CollectionResponse getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.CollectionResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.CollectionResponse build() {
org.onflow.protobuf.access.Access.CollectionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.CollectionResponse buildPartial() {
org.onflow.protobuf.access.Access.CollectionResponse result = new org.onflow.protobuf.access.Access.CollectionResponse(this);
if (collectionBuilder_ == null) {
result.collection_ = collection_;
} else {
result.collection_ = collectionBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.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.access.Access.CollectionResponse) {
return mergeFrom((org.onflow.protobuf.access.Access.CollectionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.CollectionResponse other) {
if (other == org.onflow.protobuf.access.Access.CollectionResponse.getDefaultInstance()) return this;
if (other.hasCollection()) {
mergeCollection(other.getCollection());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.access.Access.CollectionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.CollectionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.entities.CollectionOuterClass.Collection collection_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.CollectionOuterClass.Collection, org.onflow.protobuf.entities.CollectionOuterClass.Collection.Builder, org.onflow.protobuf.entities.CollectionOuterClass.CollectionOrBuilder> collectionBuilder_;
/**
* .flow.entities.Collection collection = 1;
* @return Whether the collection field is set.
*/
public boolean hasCollection() {
return collectionBuilder_ != null || collection_ != null;
}
/**
* .flow.entities.Collection collection = 1;
* @return The collection.
*/
public org.onflow.protobuf.entities.CollectionOuterClass.Collection getCollection() {
if (collectionBuilder_ == null) {
return collection_ == null ? org.onflow.protobuf.entities.CollectionOuterClass.Collection.getDefaultInstance() : collection_;
} else {
return collectionBuilder_.getMessage();
}
}
/**
* .flow.entities.Collection collection = 1;
*/
public Builder setCollection(org.onflow.protobuf.entities.CollectionOuterClass.Collection value) {
if (collectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collection_ = value;
onChanged();
} else {
collectionBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Collection collection = 1;
*/
public Builder setCollection(
org.onflow.protobuf.entities.CollectionOuterClass.Collection.Builder builderForValue) {
if (collectionBuilder_ == null) {
collection_ = builderForValue.build();
onChanged();
} else {
collectionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Collection collection = 1;
*/
public Builder mergeCollection(org.onflow.protobuf.entities.CollectionOuterClass.Collection value) {
if (collectionBuilder_ == null) {
if (collection_ != null) {
collection_ =
org.onflow.protobuf.entities.CollectionOuterClass.Collection.newBuilder(collection_).mergeFrom(value).buildPartial();
} else {
collection_ = value;
}
onChanged();
} else {
collectionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Collection collection = 1;
*/
public Builder clearCollection() {
if (collectionBuilder_ == null) {
collection_ = null;
onChanged();
} else {
collection_ = null;
collectionBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Collection collection = 1;
*/
public org.onflow.protobuf.entities.CollectionOuterClass.Collection.Builder getCollectionBuilder() {
onChanged();
return getCollectionFieldBuilder().getBuilder();
}
/**
* .flow.entities.Collection collection = 1;
*/
public org.onflow.protobuf.entities.CollectionOuterClass.CollectionOrBuilder getCollectionOrBuilder() {
if (collectionBuilder_ != null) {
return collectionBuilder_.getMessageOrBuilder();
} else {
return collection_ == null ?
org.onflow.protobuf.entities.CollectionOuterClass.Collection.getDefaultInstance() : collection_;
}
}
/**
* .flow.entities.Collection collection = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.CollectionOuterClass.Collection, org.onflow.protobuf.entities.CollectionOuterClass.Collection.Builder, org.onflow.protobuf.entities.CollectionOuterClass.CollectionOrBuilder>
getCollectionFieldBuilder() {
if (collectionBuilder_ == null) {
collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.CollectionOuterClass.Collection, org.onflow.protobuf.entities.CollectionOuterClass.Collection.Builder, org.onflow.protobuf.entities.CollectionOuterClass.CollectionOrBuilder>(
getCollection(),
getParentForChildren(),
isClean());
collection_ = null;
}
return collectionBuilder_;
}
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder> metadataBuilder_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder mergeMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
@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.access.CollectionResponse)
}
// @@protoc_insertion_point(class_scope:flow.access.CollectionResponse)
private static final org.onflow.protobuf.access.Access.CollectionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.CollectionResponse();
}
public static org.onflow.protobuf.access.Access.CollectionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CollectionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CollectionResponse(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.access.Access.CollectionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FullCollectionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.FullCollectionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
java.util.List
getTransactionsList();
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
org.onflow.protobuf.entities.TransactionOuterClass.Transaction getTransactions(int index);
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
int getTransactionsCount();
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
java.util.List extends org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionsOrBuilderList();
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder getTransactionsOrBuilder(
int index);
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata();
/**
* .flow.entities.Metadata metadata = 2;
*/
org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code flow.access.FullCollectionResponse}
*/
public static final class FullCollectionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.FullCollectionResponse)
FullCollectionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use FullCollectionResponse.newBuilder() to construct.
private FullCollectionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FullCollectionResponse() {
transactions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FullCollectionResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FullCollectionResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
transactions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
transactions_.add(
input.readMessage(org.onflow.protobuf.entities.TransactionOuterClass.Transaction.parser(), extensionRegistry));
break;
}
case 18: {
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.onflow.protobuf.entities.MetadataOuterClass.Metadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
transactions_ = java.util.Collections.unmodifiableList(transactions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_FullCollectionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_FullCollectionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.FullCollectionResponse.class, org.onflow.protobuf.access.Access.FullCollectionResponse.Builder.class);
}
public static final int TRANSACTIONS_FIELD_NUMBER = 1;
private java.util.List transactions_;
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
@java.lang.Override
public java.util.List getTransactionsList() {
return transactions_;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionsOrBuilderList() {
return transactions_;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
@java.lang.Override
public int getTransactionsCount() {
return transactions_.size();
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction getTransactions(int index) {
return transactions_.get(index);
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder getTransactionsOrBuilder(
int index) {
return transactions_.get(index);
}
public static final int METADATA_FIELD_NUMBER = 2;
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < transactions_.size(); i++) {
output.writeMessage(1, transactions_.get(i));
}
if (metadata_ != null) {
output.writeMessage(2, getMetadata());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < transactions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, transactions_.get(i));
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetadata());
}
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.access.Access.FullCollectionResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.FullCollectionResponse other = (org.onflow.protobuf.access.Access.FullCollectionResponse) obj;
if (!getTransactionsList()
.equals(other.getTransactionsList())) return false;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getTransactionsCount() > 0) {
hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getTransactionsList().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.FullCollectionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.FullCollectionResponse 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.access.Access.FullCollectionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.FullCollectionResponse 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.access.Access.FullCollectionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.FullCollectionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.FullCollectionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.FullCollectionResponse 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.access.Access.FullCollectionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.FullCollectionResponse 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.access.Access.FullCollectionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.FullCollectionResponse 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.access.Access.FullCollectionResponse 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.access.FullCollectionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.FullCollectionResponse)
org.onflow.protobuf.access.Access.FullCollectionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_FullCollectionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_FullCollectionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.FullCollectionResponse.class, org.onflow.protobuf.access.Access.FullCollectionResponse.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.FullCollectionResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTransactionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (transactionsBuilder_ == null) {
transactions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
transactionsBuilder_.clear();
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_FullCollectionResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.FullCollectionResponse getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.FullCollectionResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.FullCollectionResponse build() {
org.onflow.protobuf.access.Access.FullCollectionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.FullCollectionResponse buildPartial() {
org.onflow.protobuf.access.Access.FullCollectionResponse result = new org.onflow.protobuf.access.Access.FullCollectionResponse(this);
int from_bitField0_ = bitField0_;
if (transactionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
transactions_ = java.util.Collections.unmodifiableList(transactions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.transactions_ = transactions_;
} else {
result.transactions_ = transactionsBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.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.access.Access.FullCollectionResponse) {
return mergeFrom((org.onflow.protobuf.access.Access.FullCollectionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.FullCollectionResponse other) {
if (other == org.onflow.protobuf.access.Access.FullCollectionResponse.getDefaultInstance()) return this;
if (transactionsBuilder_ == null) {
if (!other.transactions_.isEmpty()) {
if (transactions_.isEmpty()) {
transactions_ = other.transactions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTransactionsIsMutable();
transactions_.addAll(other.transactions_);
}
onChanged();
}
} else {
if (!other.transactions_.isEmpty()) {
if (transactionsBuilder_.isEmpty()) {
transactionsBuilder_.dispose();
transactionsBuilder_ = null;
transactions_ = other.transactions_;
bitField0_ = (bitField0_ & ~0x00000001);
transactionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTransactionsFieldBuilder() : null;
} else {
transactionsBuilder_.addAllMessages(other.transactions_);
}
}
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.access.Access.FullCollectionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.FullCollectionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List transactions_ =
java.util.Collections.emptyList();
private void ensureTransactionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
transactions_ = new java.util.ArrayList(transactions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder> transactionsBuilder_;
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public java.util.List getTransactionsList() {
if (transactionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(transactions_);
} else {
return transactionsBuilder_.getMessageList();
}
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public int getTransactionsCount() {
if (transactionsBuilder_ == null) {
return transactions_.size();
} else {
return transactionsBuilder_.getCount();
}
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction getTransactions(int index) {
if (transactionsBuilder_ == null) {
return transactions_.get(index);
} else {
return transactionsBuilder_.getMessage(index);
}
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder setTransactions(
int index, org.onflow.protobuf.entities.TransactionOuterClass.Transaction value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.set(index, value);
onChanged();
} else {
transactionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder setTransactions(
int index, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.set(index, builderForValue.build());
onChanged();
} else {
transactionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder addTransactions(org.onflow.protobuf.entities.TransactionOuterClass.Transaction value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.add(value);
onChanged();
} else {
transactionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder addTransactions(
int index, org.onflow.protobuf.entities.TransactionOuterClass.Transaction value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.add(index, value);
onChanged();
} else {
transactionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder addTransactions(
org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.add(builderForValue.build());
onChanged();
} else {
transactionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder addTransactions(
int index, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.add(index, builderForValue.build());
onChanged();
} else {
transactionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder addAllTransactions(
java.lang.Iterable extends org.onflow.protobuf.entities.TransactionOuterClass.Transaction> values) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, transactions_);
onChanged();
} else {
transactionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder clearTransactions() {
if (transactionsBuilder_ == null) {
transactions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
transactionsBuilder_.clear();
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder removeTransactions(int index) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.remove(index);
onChanged();
} else {
transactionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder getTransactionsBuilder(
int index) {
return getTransactionsFieldBuilder().getBuilder(index);
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder getTransactionsOrBuilder(
int index) {
if (transactionsBuilder_ == null) {
return transactions_.get(index); } else {
return transactionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public java.util.List extends org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionsOrBuilderList() {
if (transactionsBuilder_ != null) {
return transactionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(transactions_);
}
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder addTransactionsBuilder() {
return getTransactionsFieldBuilder().addBuilder(
org.onflow.protobuf.entities.TransactionOuterClass.Transaction.getDefaultInstance());
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder addTransactionsBuilder(
int index) {
return getTransactionsFieldBuilder().addBuilder(
index, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.getDefaultInstance());
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public java.util.List
getTransactionsBuilderList() {
return getTransactionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionsFieldBuilder() {
if (transactionsBuilder_ == null) {
transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>(
transactions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
transactions_ = null;
}
return transactionsBuilder_;
}
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder> metadataBuilder_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder mergeMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
@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.access.FullCollectionResponse)
}
// @@protoc_insertion_point(class_scope:flow.access.FullCollectionResponse)
private static final org.onflow.protobuf.access.Access.FullCollectionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.FullCollectionResponse();
}
public static org.onflow.protobuf.access.Access.FullCollectionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FullCollectionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FullCollectionResponse(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.access.Access.FullCollectionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SendTransactionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.SendTransactionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .flow.entities.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
boolean hasTransaction();
/**
* .flow.entities.Transaction transaction = 1;
* @return The transaction.
*/
org.onflow.protobuf.entities.TransactionOuterClass.Transaction getTransaction();
/**
* .flow.entities.Transaction transaction = 1;
*/
org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder getTransactionOrBuilder();
}
/**
* Protobuf type {@code flow.access.SendTransactionRequest}
*/
public static final class SendTransactionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.SendTransactionRequest)
SendTransactionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SendTransactionRequest.newBuilder() to construct.
private SendTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SendTransactionRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SendTransactionRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SendTransactionRequest(
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.TransactionOuterClass.Transaction.Builder subBuilder = null;
if (transaction_ != null) {
subBuilder = transaction_.toBuilder();
}
transaction_ = input.readMessage(org.onflow.protobuf.entities.TransactionOuterClass.Transaction.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(transaction_);
transaction_ = 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.access.Access.internal_static_flow_access_SendTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_SendTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.SendTransactionRequest.class, org.onflow.protobuf.access.Access.SendTransactionRequest.Builder.class);
}
public static final int TRANSACTION_FIELD_NUMBER = 1;
private org.onflow.protobuf.entities.TransactionOuterClass.Transaction transaction_;
/**
* .flow.entities.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
@java.lang.Override
public boolean hasTransaction() {
return transaction_ != null;
}
/**
* .flow.entities.Transaction transaction = 1;
* @return The transaction.
*/
@java.lang.Override
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction getTransaction() {
return transaction_ == null ? org.onflow.protobuf.entities.TransactionOuterClass.Transaction.getDefaultInstance() : transaction_;
}
/**
* .flow.entities.Transaction transaction = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder getTransactionOrBuilder() {
return getTransaction();
}
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 (transaction_ != null) {
output.writeMessage(1, getTransaction());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (transaction_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTransaction());
}
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.access.Access.SendTransactionRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.SendTransactionRequest other = (org.onflow.protobuf.access.Access.SendTransactionRequest) obj;
if (hasTransaction() != other.hasTransaction()) return false;
if (hasTransaction()) {
if (!getTransaction()
.equals(other.getTransaction())) 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 (hasTransaction()) {
hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getTransaction().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.SendTransactionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.SendTransactionRequest 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.access.Access.SendTransactionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.SendTransactionRequest 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.access.Access.SendTransactionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.SendTransactionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.SendTransactionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.SendTransactionRequest 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.access.Access.SendTransactionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.SendTransactionRequest 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.access.Access.SendTransactionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.SendTransactionRequest 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.access.Access.SendTransactionRequest 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.access.SendTransactionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.SendTransactionRequest)
org.onflow.protobuf.access.Access.SendTransactionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_SendTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_SendTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.SendTransactionRequest.class, org.onflow.protobuf.access.Access.SendTransactionRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.SendTransactionRequest.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 (transactionBuilder_ == null) {
transaction_ = null;
} else {
transaction_ = null;
transactionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_SendTransactionRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.SendTransactionRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.SendTransactionRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.SendTransactionRequest build() {
org.onflow.protobuf.access.Access.SendTransactionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.SendTransactionRequest buildPartial() {
org.onflow.protobuf.access.Access.SendTransactionRequest result = new org.onflow.protobuf.access.Access.SendTransactionRequest(this);
if (transactionBuilder_ == null) {
result.transaction_ = transaction_;
} else {
result.transaction_ = transactionBuilder_.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.access.Access.SendTransactionRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.SendTransactionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.SendTransactionRequest other) {
if (other == org.onflow.protobuf.access.Access.SendTransactionRequest.getDefaultInstance()) return this;
if (other.hasTransaction()) {
mergeTransaction(other.getTransaction());
}
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.access.Access.SendTransactionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.SendTransactionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.entities.TransactionOuterClass.Transaction transaction_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder> transactionBuilder_;
/**
* .flow.entities.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
public boolean hasTransaction() {
return transactionBuilder_ != null || transaction_ != null;
}
/**
* .flow.entities.Transaction transaction = 1;
* @return The transaction.
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction getTransaction() {
if (transactionBuilder_ == null) {
return transaction_ == null ? org.onflow.protobuf.entities.TransactionOuterClass.Transaction.getDefaultInstance() : transaction_;
} else {
return transactionBuilder_.getMessage();
}
}
/**
* .flow.entities.Transaction transaction = 1;
*/
public Builder setTransaction(org.onflow.protobuf.entities.TransactionOuterClass.Transaction value) {
if (transactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transaction_ = value;
onChanged();
} else {
transactionBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Transaction transaction = 1;
*/
public Builder setTransaction(
org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder builderForValue) {
if (transactionBuilder_ == null) {
transaction_ = builderForValue.build();
onChanged();
} else {
transactionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Transaction transaction = 1;
*/
public Builder mergeTransaction(org.onflow.protobuf.entities.TransactionOuterClass.Transaction value) {
if (transactionBuilder_ == null) {
if (transaction_ != null) {
transaction_ =
org.onflow.protobuf.entities.TransactionOuterClass.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
} else {
transaction_ = value;
}
onChanged();
} else {
transactionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Transaction transaction = 1;
*/
public Builder clearTransaction() {
if (transactionBuilder_ == null) {
transaction_ = null;
onChanged();
} else {
transaction_ = null;
transactionBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Transaction transaction = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder getTransactionBuilder() {
onChanged();
return getTransactionFieldBuilder().getBuilder();
}
/**
* .flow.entities.Transaction transaction = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder getTransactionOrBuilder() {
if (transactionBuilder_ != null) {
return transactionBuilder_.getMessageOrBuilder();
} else {
return transaction_ == null ?
org.onflow.protobuf.entities.TransactionOuterClass.Transaction.getDefaultInstance() : transaction_;
}
}
/**
* .flow.entities.Transaction transaction = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionFieldBuilder() {
if (transactionBuilder_ == null) {
transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>(
getTransaction(),
getParentForChildren(),
isClean());
transaction_ = null;
}
return transactionBuilder_;
}
@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.access.SendTransactionRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.SendTransactionRequest)
private static final org.onflow.protobuf.access.Access.SendTransactionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.SendTransactionRequest();
}
public static org.onflow.protobuf.access.Access.SendTransactionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SendTransactionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SendTransactionRequest(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.access.Access.SendTransactionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SendTransactionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.SendTransactionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* bytes id = 1;
* @return The id.
*/
com.google.protobuf.ByteString getId();
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata();
/**
* .flow.entities.Metadata metadata = 2;
*/
org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code flow.access.SendTransactionResponse}
*/
public static final class SendTransactionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.SendTransactionResponse)
SendTransactionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SendTransactionResponse.newBuilder() to construct.
private SendTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SendTransactionResponse() {
id_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SendTransactionResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SendTransactionResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
id_ = input.readBytes();
break;
}
case 18: {
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.onflow.protobuf.entities.MetadataOuterClass.Metadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.access.Access.internal_static_flow_access_SendTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_SendTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.SendTransactionResponse.class, org.onflow.protobuf.access.Access.SendTransactionResponse.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString id_;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
public static final int METADATA_FIELD_NUMBER = 2;
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!id_.isEmpty()) {
output.writeBytes(1, id_);
}
if (metadata_ != null) {
output.writeMessage(2, getMetadata());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!id_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, id_);
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetadata());
}
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.access.Access.SendTransactionResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.SendTransactionResponse other = (org.onflow.protobuf.access.Access.SendTransactionResponse) obj;
if (!getId()
.equals(other.getId())) return false;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.SendTransactionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.SendTransactionResponse 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.access.Access.SendTransactionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.SendTransactionResponse 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.access.Access.SendTransactionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.SendTransactionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.SendTransactionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.SendTransactionResponse 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.access.Access.SendTransactionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.SendTransactionResponse 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.access.Access.SendTransactionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.SendTransactionResponse 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.access.Access.SendTransactionResponse 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.access.SendTransactionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.SendTransactionResponse)
org.onflow.protobuf.access.Access.SendTransactionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_SendTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_SendTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.SendTransactionResponse.class, org.onflow.protobuf.access.Access.SendTransactionResponse.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.SendTransactionResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = com.google.protobuf.ByteString.EMPTY;
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_SendTransactionResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.SendTransactionResponse getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.SendTransactionResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.SendTransactionResponse build() {
org.onflow.protobuf.access.Access.SendTransactionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.SendTransactionResponse buildPartial() {
org.onflow.protobuf.access.Access.SendTransactionResponse result = new org.onflow.protobuf.access.Access.SendTransactionResponse(this);
result.id_ = id_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.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.access.Access.SendTransactionResponse) {
return mergeFrom((org.onflow.protobuf.access.Access.SendTransactionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.SendTransactionResponse other) {
if (other == org.onflow.protobuf.access.Access.SendTransactionResponse.getDefaultInstance()) return this;
if (other.getId() != com.google.protobuf.ByteString.EMPTY) {
setId(other.getId());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.access.Access.SendTransactionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.SendTransactionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
/**
* bytes id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* bytes id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder> metadataBuilder_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder mergeMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
@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.access.SendTransactionResponse)
}
// @@protoc_insertion_point(class_scope:flow.access.SendTransactionResponse)
private static final org.onflow.protobuf.access.Access.SendTransactionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.SendTransactionResponse();
}
public static org.onflow.protobuf.access.Access.SendTransactionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SendTransactionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SendTransactionResponse(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.access.Access.SendTransactionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetTransactionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetTransactionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes id = 1;
* @return The id.
*/
com.google.protobuf.ByteString getId();
/**
* bytes block_id = 2;
* @return The blockId.
*/
com.google.protobuf.ByteString getBlockId();
/**
* bytes collection_id = 3;
* @return The collectionId.
*/
com.google.protobuf.ByteString getCollectionId();
/**
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
* Protobuf type {@code flow.access.GetTransactionRequest}
*/
public static final class GetTransactionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetTransactionRequest)
GetTransactionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetTransactionRequest.newBuilder() to construct.
private GetTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetTransactionRequest() {
id_ = com.google.protobuf.ByteString.EMPTY;
blockId_ = com.google.protobuf.ByteString.EMPTY;
collectionId_ = com.google.protobuf.ByteString.EMPTY;
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetTransactionRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetTransactionRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
id_ = input.readBytes();
break;
}
case 18: {
blockId_ = input.readBytes();
break;
}
case 26: {
collectionId_ = input.readBytes();
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.access.Access.internal_static_flow_access_GetTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetTransactionRequest.class, org.onflow.protobuf.access.Access.GetTransactionRequest.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString id_;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
public static final int BLOCK_ID_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString blockId_;
/**
* bytes block_id = 2;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
public static final int COLLECTION_ID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString collectionId_;
/**
* bytes collection_id = 3;
* @return The collectionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCollectionId() {
return collectionId_;
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 4;
private int eventEncodingVersion_;
/**
* .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_;
}
/**
* .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 (!id_.isEmpty()) {
output.writeBytes(1, id_);
}
if (!blockId_.isEmpty()) {
output.writeBytes(2, blockId_);
}
if (!collectionId_.isEmpty()) {
output.writeBytes(3, collectionId_);
}
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 (!id_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, id_);
}
if (!blockId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, blockId_);
}
if (!collectionId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, collectionId_);
}
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.access.Access.GetTransactionRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetTransactionRequest other = (org.onflow.protobuf.access.Access.GetTransactionRequest) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getBlockId()
.equals(other.getBlockId())) return false;
if (!getCollectionId()
.equals(other.getCollectionId())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER;
hash = (53 * hash) + getBlockId().hashCode();
hash = (37 * hash) + COLLECTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getCollectionId().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.access.Access.GetTransactionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetTransactionRequest 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.access.Access.GetTransactionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetTransactionRequest 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.access.Access.GetTransactionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetTransactionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetTransactionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetTransactionRequest 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.access.Access.GetTransactionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetTransactionRequest 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.access.Access.GetTransactionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetTransactionRequest 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.access.Access.GetTransactionRequest 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.access.GetTransactionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetTransactionRequest)
org.onflow.protobuf.access.Access.GetTransactionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetTransactionRequest.class, org.onflow.protobuf.access.Access.GetTransactionRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetTransactionRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = com.google.protobuf.ByteString.EMPTY;
blockId_ = com.google.protobuf.ByteString.EMPTY;
collectionId_ = com.google.protobuf.ByteString.EMPTY;
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetTransactionRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetTransactionRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetTransactionRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetTransactionRequest build() {
org.onflow.protobuf.access.Access.GetTransactionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetTransactionRequest buildPartial() {
org.onflow.protobuf.access.Access.GetTransactionRequest result = new org.onflow.protobuf.access.Access.GetTransactionRequest(this);
result.id_ = id_;
result.blockId_ = blockId_;
result.collectionId_ = collectionId_;
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.access.Access.GetTransactionRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetTransactionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetTransactionRequest other) {
if (other == org.onflow.protobuf.access.Access.GetTransactionRequest.getDefaultInstance()) return this;
if (other.getId() != com.google.protobuf.ByteString.EMPTY) {
setId(other.getId());
}
if (other.getBlockId() != com.google.protobuf.ByteString.EMPTY) {
setBlockId(other.getBlockId());
}
if (other.getCollectionId() != com.google.protobuf.ByteString.EMPTY) {
setCollectionId(other.getCollectionId());
}
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.access.Access.GetTransactionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetTransactionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
/**
* bytes id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* bytes id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
private com.google.protobuf.ByteString blockId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes block_id = 2;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
/**
* bytes block_id = 2;
* @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;
}
/**
* bytes block_id = 2;
* @return This builder for chaining.
*/
public Builder clearBlockId() {
blockId_ = getDefaultInstance().getBlockId();
onChanged();
return this;
}
private com.google.protobuf.ByteString collectionId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes collection_id = 3;
* @return The collectionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCollectionId() {
return collectionId_;
}
/**
* bytes collection_id = 3;
* @param value The collectionId to set.
* @return This builder for chaining.
*/
public Builder setCollectionId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
collectionId_ = value;
onChanged();
return this;
}
/**
* bytes collection_id = 3;
* @return This builder for chaining.
*/
public Builder clearCollectionId() {
collectionId_ = getDefaultInstance().getCollectionId();
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
* .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_;
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .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.access.GetTransactionRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetTransactionRequest)
private static final org.onflow.protobuf.access.Access.GetTransactionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetTransactionRequest();
}
public static org.onflow.protobuf.access.Access.GetTransactionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetTransactionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetTransactionRequest(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.access.Access.GetTransactionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetSystemTransactionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetSystemTransactionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes block_id = 1;
* @return The blockId.
*/
com.google.protobuf.ByteString getBlockId();
}
/**
* Protobuf type {@code flow.access.GetSystemTransactionRequest}
*/
public static final class GetSystemTransactionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetSystemTransactionRequest)
GetSystemTransactionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetSystemTransactionRequest.newBuilder() to construct.
private GetSystemTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetSystemTransactionRequest() {
blockId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetSystemTransactionRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetSystemTransactionRequest(
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;
}
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.access.Access.internal_static_flow_access_GetSystemTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetSystemTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetSystemTransactionRequest.class, org.onflow.protobuf.access.Access.GetSystemTransactionRequest.Builder.class);
}
public static final int BLOCK_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString blockId_;
/**
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
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_);
}
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_);
}
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.access.Access.GetSystemTransactionRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetSystemTransactionRequest other = (org.onflow.protobuf.access.Access.GetSystemTransactionRequest) obj;
if (!getBlockId()
.equals(other.getBlockId())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionRequest 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.access.Access.GetSystemTransactionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionRequest 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.access.Access.GetSystemTransactionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionRequest 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.access.Access.GetSystemTransactionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionRequest 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.access.Access.GetSystemTransactionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionRequest 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.access.Access.GetSystemTransactionRequest 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.access.GetSystemTransactionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetSystemTransactionRequest)
org.onflow.protobuf.access.Access.GetSystemTransactionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetSystemTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetSystemTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetSystemTransactionRequest.class, org.onflow.protobuf.access.Access.GetSystemTransactionRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetSystemTransactionRequest.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;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetSystemTransactionRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetSystemTransactionRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetSystemTransactionRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetSystemTransactionRequest build() {
org.onflow.protobuf.access.Access.GetSystemTransactionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetSystemTransactionRequest buildPartial() {
org.onflow.protobuf.access.Access.GetSystemTransactionRequest result = new org.onflow.protobuf.access.Access.GetSystemTransactionRequest(this);
result.blockId_ = blockId_;
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.access.Access.GetSystemTransactionRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetSystemTransactionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetSystemTransactionRequest other) {
if (other == org.onflow.protobuf.access.Access.GetSystemTransactionRequest.getDefaultInstance()) return this;
if (other.getBlockId() != com.google.protobuf.ByteString.EMPTY) {
setBlockId(other.getBlockId());
}
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.access.Access.GetSystemTransactionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetSystemTransactionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString blockId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
/**
* 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;
}
/**
* bytes block_id = 1;
* @return This builder for chaining.
*/
public Builder clearBlockId() {
blockId_ = getDefaultInstance().getBlockId();
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.access.GetSystemTransactionRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetSystemTransactionRequest)
private static final org.onflow.protobuf.access.Access.GetSystemTransactionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetSystemTransactionRequest();
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetSystemTransactionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetSystemTransactionRequest(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.access.Access.GetSystemTransactionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetSystemTransactionResultRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetSystemTransactionResultRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes block_id = 1;
* @return The blockId.
*/
com.google.protobuf.ByteString getBlockId();
/**
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
* Protobuf type {@code flow.access.GetSystemTransactionResultRequest}
*/
public static final class GetSystemTransactionResultRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetSystemTransactionResultRequest)
GetSystemTransactionResultRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetSystemTransactionResultRequest.newBuilder() to construct.
private GetSystemTransactionResultRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetSystemTransactionResultRequest() {
blockId_ = com.google.protobuf.ByteString.EMPTY;
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetSystemTransactionResultRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetSystemTransactionResultRequest(
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.access.Access.internal_static_flow_access_GetSystemTransactionResultRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetSystemTransactionResultRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest.class, org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest.Builder.class);
}
public static final int BLOCK_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString blockId_;
/**
* 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_;
/**
* .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_;
}
/**
* .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.access.Access.GetSystemTransactionResultRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest other = (org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest) 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.access.Access.GetSystemTransactionResultRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest 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.access.Access.GetSystemTransactionResultRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest 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.access.Access.GetSystemTransactionResultRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest 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.access.Access.GetSystemTransactionResultRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest 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.access.Access.GetSystemTransactionResultRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest 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.access.Access.GetSystemTransactionResultRequest 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.access.GetSystemTransactionResultRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetSystemTransactionResultRequest)
org.onflow.protobuf.access.Access.GetSystemTransactionResultRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetSystemTransactionResultRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetSystemTransactionResultRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest.class, org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest.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.access.Access.internal_static_flow_access_GetSystemTransactionResultRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest build() {
org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest buildPartial() {
org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest result = new org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest(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.access.Access.GetSystemTransactionResultRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest other) {
if (other == org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest.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.access.Access.GetSystemTransactionResultRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString blockId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
/**
* 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;
}
/**
* bytes block_id = 1;
* @return This builder for chaining.
*/
public Builder clearBlockId() {
blockId_ = getDefaultInstance().getBlockId();
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
* .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_;
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .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.access.GetSystemTransactionResultRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetSystemTransactionResultRequest)
private static final org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest();
}
public static org.onflow.protobuf.access.Access.GetSystemTransactionResultRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetSystemTransactionResultRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetSystemTransactionResultRequest(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.access.Access.GetSystemTransactionResultRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetTransactionByIndexRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetTransactionByIndexRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes block_id = 1;
* @return The blockId.
*/
com.google.protobuf.ByteString getBlockId();
/**
* uint32 index = 2;
* @return The index.
*/
int getIndex();
/**
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
* Protobuf type {@code flow.access.GetTransactionByIndexRequest}
*/
public static final class GetTransactionByIndexRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetTransactionByIndexRequest)
GetTransactionByIndexRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetTransactionByIndexRequest.newBuilder() to construct.
private GetTransactionByIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetTransactionByIndexRequest() {
blockId_ = com.google.protobuf.ByteString.EMPTY;
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetTransactionByIndexRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetTransactionByIndexRequest(
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: {
index_ = input.readUInt32();
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.access.Access.internal_static_flow_access_GetTransactionByIndexRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetTransactionByIndexRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetTransactionByIndexRequest.class, org.onflow.protobuf.access.Access.GetTransactionByIndexRequest.Builder.class);
}
public static final int BLOCK_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString blockId_;
/**
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
public static final int INDEX_FIELD_NUMBER = 2;
private int index_;
/**
* uint32 index = 2;
* @return The index.
*/
@java.lang.Override
public int getIndex() {
return index_;
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 3;
private int eventEncodingVersion_;
/**
* .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_;
}
/**
* .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 (!blockId_.isEmpty()) {
output.writeBytes(1, blockId_);
}
if (index_ != 0) {
output.writeUInt32(2, index_);
}
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 (!blockId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, blockId_);
}
if (index_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, index_);
}
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.access.Access.GetTransactionByIndexRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetTransactionByIndexRequest other = (org.onflow.protobuf.access.Access.GetTransactionByIndexRequest) obj;
if (!getBlockId()
.equals(other.getBlockId())) return false;
if (getIndex()
!= other.getIndex()) 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) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + getIndex();
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.access.Access.GetTransactionByIndexRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetTransactionByIndexRequest 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.access.Access.GetTransactionByIndexRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetTransactionByIndexRequest 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.access.Access.GetTransactionByIndexRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetTransactionByIndexRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetTransactionByIndexRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetTransactionByIndexRequest 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.access.Access.GetTransactionByIndexRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetTransactionByIndexRequest 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.access.Access.GetTransactionByIndexRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetTransactionByIndexRequest 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.access.Access.GetTransactionByIndexRequest 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.access.GetTransactionByIndexRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetTransactionByIndexRequest)
org.onflow.protobuf.access.Access.GetTransactionByIndexRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetTransactionByIndexRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetTransactionByIndexRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetTransactionByIndexRequest.class, org.onflow.protobuf.access.Access.GetTransactionByIndexRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetTransactionByIndexRequest.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;
index_ = 0;
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetTransactionByIndexRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetTransactionByIndexRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetTransactionByIndexRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetTransactionByIndexRequest build() {
org.onflow.protobuf.access.Access.GetTransactionByIndexRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetTransactionByIndexRequest buildPartial() {
org.onflow.protobuf.access.Access.GetTransactionByIndexRequest result = new org.onflow.protobuf.access.Access.GetTransactionByIndexRequest(this);
result.blockId_ = blockId_;
result.index_ = index_;
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.access.Access.GetTransactionByIndexRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetTransactionByIndexRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetTransactionByIndexRequest other) {
if (other == org.onflow.protobuf.access.Access.GetTransactionByIndexRequest.getDefaultInstance()) return this;
if (other.getBlockId() != com.google.protobuf.ByteString.EMPTY) {
setBlockId(other.getBlockId());
}
if (other.getIndex() != 0) {
setIndex(other.getIndex());
}
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.access.Access.GetTransactionByIndexRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetTransactionByIndexRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString blockId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
/**
* 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;
}
/**
* bytes block_id = 1;
* @return This builder for chaining.
*/
public Builder clearBlockId() {
blockId_ = getDefaultInstance().getBlockId();
onChanged();
return this;
}
private int index_ ;
/**
* uint32 index = 2;
* @return The index.
*/
@java.lang.Override
public int getIndex() {
return index_;
}
/**
* uint32 index = 2;
* @param value The index to set.
* @return This builder for chaining.
*/
public Builder setIndex(int value) {
index_ = value;
onChanged();
return this;
}
/**
* uint32 index = 2;
* @return This builder for chaining.
*/
public Builder clearIndex() {
index_ = 0;
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
* .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_;
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .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.access.GetTransactionByIndexRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetTransactionByIndexRequest)
private static final org.onflow.protobuf.access.Access.GetTransactionByIndexRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetTransactionByIndexRequest();
}
public static org.onflow.protobuf.access.Access.GetTransactionByIndexRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetTransactionByIndexRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetTransactionByIndexRequest(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.access.Access.GetTransactionByIndexRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetTransactionsByBlockIDRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetTransactionsByBlockIDRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes block_id = 1;
* @return The blockId.
*/
com.google.protobuf.ByteString getBlockId();
/**
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
* .flow.entities.EventEncodingVersion event_encoding_version = 2;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
* Protobuf type {@code flow.access.GetTransactionsByBlockIDRequest}
*/
public static final class GetTransactionsByBlockIDRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetTransactionsByBlockIDRequest)
GetTransactionsByBlockIDRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetTransactionsByBlockIDRequest.newBuilder() to construct.
private GetTransactionsByBlockIDRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetTransactionsByBlockIDRequest() {
blockId_ = com.google.protobuf.ByteString.EMPTY;
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetTransactionsByBlockIDRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetTransactionsByBlockIDRequest(
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.access.Access.internal_static_flow_access_GetTransactionsByBlockIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetTransactionsByBlockIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest.class, org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest.Builder.class);
}
public static final int BLOCK_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString blockId_;
/**
* 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_;
/**
* .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_;
}
/**
* .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.access.Access.GetTransactionsByBlockIDRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest other = (org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest) 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.access.Access.GetTransactionsByBlockIDRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest 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.access.Access.GetTransactionsByBlockIDRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest 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.access.Access.GetTransactionsByBlockIDRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest 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.access.Access.GetTransactionsByBlockIDRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest 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.access.Access.GetTransactionsByBlockIDRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest 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.access.Access.GetTransactionsByBlockIDRequest 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.access.GetTransactionsByBlockIDRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetTransactionsByBlockIDRequest)
org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetTransactionsByBlockIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetTransactionsByBlockIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest.class, org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest.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.access.Access.internal_static_flow_access_GetTransactionsByBlockIDRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest build() {
org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest buildPartial() {
org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest result = new org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest(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.access.Access.GetTransactionsByBlockIDRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest other) {
if (other == org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest.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.access.Access.GetTransactionsByBlockIDRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString blockId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
/**
* 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;
}
/**
* bytes block_id = 1;
* @return This builder for chaining.
*/
public Builder clearBlockId() {
blockId_ = getDefaultInstance().getBlockId();
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
* .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_;
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .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.access.GetTransactionsByBlockIDRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetTransactionsByBlockIDRequest)
private static final org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest();
}
public static org.onflow.protobuf.access.Access.GetTransactionsByBlockIDRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetTransactionsByBlockIDRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetTransactionsByBlockIDRequest(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.access.Access.GetTransactionsByBlockIDRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionResultsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.TransactionResultsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
java.util.List
getTransactionResultsList();
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
org.onflow.protobuf.access.Access.TransactionResultResponse getTransactionResults(int index);
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
int getTransactionResultsCount();
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
java.util.List extends org.onflow.protobuf.access.Access.TransactionResultResponseOrBuilder>
getTransactionResultsOrBuilderList();
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
org.onflow.protobuf.access.Access.TransactionResultResponseOrBuilder getTransactionResultsOrBuilder(
int index);
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata();
/**
* .flow.entities.Metadata metadata = 2;
*/
org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code flow.access.TransactionResultsResponse}
*/
public static final class TransactionResultsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.TransactionResultsResponse)
TransactionResultsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionResultsResponse.newBuilder() to construct.
private TransactionResultsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionResultsResponse() {
transactionResults_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionResultsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionResultsResponse(
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)) {
transactionResults_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
transactionResults_.add(
input.readMessage(org.onflow.protobuf.access.Access.TransactionResultResponse.parser(), extensionRegistry));
break;
}
case 18: {
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.onflow.protobuf.entities.MetadataOuterClass.Metadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
transactionResults_ = java.util.Collections.unmodifiableList(transactionResults_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionResultsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionResultsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.TransactionResultsResponse.class, org.onflow.protobuf.access.Access.TransactionResultsResponse.Builder.class);
}
public static final int TRANSACTION_RESULTS_FIELD_NUMBER = 1;
private java.util.List transactionResults_;
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
@java.lang.Override
public java.util.List getTransactionResultsList() {
return transactionResults_;
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.access.Access.TransactionResultResponseOrBuilder>
getTransactionResultsOrBuilderList() {
return transactionResults_;
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
@java.lang.Override
public int getTransactionResultsCount() {
return transactionResults_.size();
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
@java.lang.Override
public org.onflow.protobuf.access.Access.TransactionResultResponse getTransactionResults(int index) {
return transactionResults_.get(index);
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
@java.lang.Override
public org.onflow.protobuf.access.Access.TransactionResultResponseOrBuilder getTransactionResultsOrBuilder(
int index) {
return transactionResults_.get(index);
}
public static final int METADATA_FIELD_NUMBER = 2;
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 < transactionResults_.size(); i++) {
output.writeMessage(1, transactionResults_.get(i));
}
if (metadata_ != null) {
output.writeMessage(2, getMetadata());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < transactionResults_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, transactionResults_.get(i));
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetadata());
}
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.access.Access.TransactionResultsResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.TransactionResultsResponse other = (org.onflow.protobuf.access.Access.TransactionResultsResponse) obj;
if (!getTransactionResultsList()
.equals(other.getTransactionResultsList())) return false;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) 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 (getTransactionResultsCount() > 0) {
hash = (37 * hash) + TRANSACTION_RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getTransactionResultsList().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.TransactionResultsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.TransactionResultsResponse 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.access.Access.TransactionResultsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.TransactionResultsResponse 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.access.Access.TransactionResultsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.TransactionResultsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.TransactionResultsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.TransactionResultsResponse 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.access.Access.TransactionResultsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.TransactionResultsResponse 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.access.Access.TransactionResultsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.TransactionResultsResponse 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.access.Access.TransactionResultsResponse 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.access.TransactionResultsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.TransactionResultsResponse)
org.onflow.protobuf.access.Access.TransactionResultsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionResultsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionResultsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.TransactionResultsResponse.class, org.onflow.protobuf.access.Access.TransactionResultsResponse.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.TransactionResultsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTransactionResultsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (transactionResultsBuilder_ == null) {
transactionResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
transactionResultsBuilder_.clear();
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionResultsResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.TransactionResultsResponse getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.TransactionResultsResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.TransactionResultsResponse build() {
org.onflow.protobuf.access.Access.TransactionResultsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.TransactionResultsResponse buildPartial() {
org.onflow.protobuf.access.Access.TransactionResultsResponse result = new org.onflow.protobuf.access.Access.TransactionResultsResponse(this);
int from_bitField0_ = bitField0_;
if (transactionResultsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
transactionResults_ = java.util.Collections.unmodifiableList(transactionResults_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.transactionResults_ = transactionResults_;
} else {
result.transactionResults_ = transactionResultsBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.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.access.Access.TransactionResultsResponse) {
return mergeFrom((org.onflow.protobuf.access.Access.TransactionResultsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.TransactionResultsResponse other) {
if (other == org.onflow.protobuf.access.Access.TransactionResultsResponse.getDefaultInstance()) return this;
if (transactionResultsBuilder_ == null) {
if (!other.transactionResults_.isEmpty()) {
if (transactionResults_.isEmpty()) {
transactionResults_ = other.transactionResults_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTransactionResultsIsMutable();
transactionResults_.addAll(other.transactionResults_);
}
onChanged();
}
} else {
if (!other.transactionResults_.isEmpty()) {
if (transactionResultsBuilder_.isEmpty()) {
transactionResultsBuilder_.dispose();
transactionResultsBuilder_ = null;
transactionResults_ = other.transactionResults_;
bitField0_ = (bitField0_ & ~0x00000001);
transactionResultsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTransactionResultsFieldBuilder() : null;
} else {
transactionResultsBuilder_.addAllMessages(other.transactionResults_);
}
}
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.access.Access.TransactionResultsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.TransactionResultsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List transactionResults_ =
java.util.Collections.emptyList();
private void ensureTransactionResultsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
transactionResults_ = new java.util.ArrayList(transactionResults_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.access.Access.TransactionResultResponse, org.onflow.protobuf.access.Access.TransactionResultResponse.Builder, org.onflow.protobuf.access.Access.TransactionResultResponseOrBuilder> transactionResultsBuilder_;
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public java.util.List getTransactionResultsList() {
if (transactionResultsBuilder_ == null) {
return java.util.Collections.unmodifiableList(transactionResults_);
} else {
return transactionResultsBuilder_.getMessageList();
}
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public int getTransactionResultsCount() {
if (transactionResultsBuilder_ == null) {
return transactionResults_.size();
} else {
return transactionResultsBuilder_.getCount();
}
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public org.onflow.protobuf.access.Access.TransactionResultResponse getTransactionResults(int index) {
if (transactionResultsBuilder_ == null) {
return transactionResults_.get(index);
} else {
return transactionResultsBuilder_.getMessage(index);
}
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public Builder setTransactionResults(
int index, org.onflow.protobuf.access.Access.TransactionResultResponse value) {
if (transactionResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionResultsIsMutable();
transactionResults_.set(index, value);
onChanged();
} else {
transactionResultsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public Builder setTransactionResults(
int index, org.onflow.protobuf.access.Access.TransactionResultResponse.Builder builderForValue) {
if (transactionResultsBuilder_ == null) {
ensureTransactionResultsIsMutable();
transactionResults_.set(index, builderForValue.build());
onChanged();
} else {
transactionResultsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public Builder addTransactionResults(org.onflow.protobuf.access.Access.TransactionResultResponse value) {
if (transactionResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionResultsIsMutable();
transactionResults_.add(value);
onChanged();
} else {
transactionResultsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public Builder addTransactionResults(
int index, org.onflow.protobuf.access.Access.TransactionResultResponse value) {
if (transactionResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionResultsIsMutable();
transactionResults_.add(index, value);
onChanged();
} else {
transactionResultsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public Builder addTransactionResults(
org.onflow.protobuf.access.Access.TransactionResultResponse.Builder builderForValue) {
if (transactionResultsBuilder_ == null) {
ensureTransactionResultsIsMutable();
transactionResults_.add(builderForValue.build());
onChanged();
} else {
transactionResultsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public Builder addTransactionResults(
int index, org.onflow.protobuf.access.Access.TransactionResultResponse.Builder builderForValue) {
if (transactionResultsBuilder_ == null) {
ensureTransactionResultsIsMutable();
transactionResults_.add(index, builderForValue.build());
onChanged();
} else {
transactionResultsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public Builder addAllTransactionResults(
java.lang.Iterable extends org.onflow.protobuf.access.Access.TransactionResultResponse> values) {
if (transactionResultsBuilder_ == null) {
ensureTransactionResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, transactionResults_);
onChanged();
} else {
transactionResultsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public Builder clearTransactionResults() {
if (transactionResultsBuilder_ == null) {
transactionResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
transactionResultsBuilder_.clear();
}
return this;
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public Builder removeTransactionResults(int index) {
if (transactionResultsBuilder_ == null) {
ensureTransactionResultsIsMutable();
transactionResults_.remove(index);
onChanged();
} else {
transactionResultsBuilder_.remove(index);
}
return this;
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public org.onflow.protobuf.access.Access.TransactionResultResponse.Builder getTransactionResultsBuilder(
int index) {
return getTransactionResultsFieldBuilder().getBuilder(index);
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public org.onflow.protobuf.access.Access.TransactionResultResponseOrBuilder getTransactionResultsOrBuilder(
int index) {
if (transactionResultsBuilder_ == null) {
return transactionResults_.get(index); } else {
return transactionResultsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public java.util.List extends org.onflow.protobuf.access.Access.TransactionResultResponseOrBuilder>
getTransactionResultsOrBuilderList() {
if (transactionResultsBuilder_ != null) {
return transactionResultsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(transactionResults_);
}
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public org.onflow.protobuf.access.Access.TransactionResultResponse.Builder addTransactionResultsBuilder() {
return getTransactionResultsFieldBuilder().addBuilder(
org.onflow.protobuf.access.Access.TransactionResultResponse.getDefaultInstance());
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public org.onflow.protobuf.access.Access.TransactionResultResponse.Builder addTransactionResultsBuilder(
int index) {
return getTransactionResultsFieldBuilder().addBuilder(
index, org.onflow.protobuf.access.Access.TransactionResultResponse.getDefaultInstance());
}
/**
* repeated .flow.access.TransactionResultResponse transaction_results = 1;
*/
public java.util.List
getTransactionResultsBuilderList() {
return getTransactionResultsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.access.Access.TransactionResultResponse, org.onflow.protobuf.access.Access.TransactionResultResponse.Builder, org.onflow.protobuf.access.Access.TransactionResultResponseOrBuilder>
getTransactionResultsFieldBuilder() {
if (transactionResultsBuilder_ == null) {
transactionResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.access.Access.TransactionResultResponse, org.onflow.protobuf.access.Access.TransactionResultResponse.Builder, org.onflow.protobuf.access.Access.TransactionResultResponseOrBuilder>(
transactionResults_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
transactionResults_ = null;
}
return transactionResultsBuilder_;
}
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder> metadataBuilder_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder mergeMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
@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.access.TransactionResultsResponse)
}
// @@protoc_insertion_point(class_scope:flow.access.TransactionResultsResponse)
private static final org.onflow.protobuf.access.Access.TransactionResultsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.TransactionResultsResponse();
}
public static org.onflow.protobuf.access.Access.TransactionResultsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionResultsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransactionResultsResponse(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.access.Access.TransactionResultsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.TransactionsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
java.util.List
getTransactionsList();
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
org.onflow.protobuf.entities.TransactionOuterClass.Transaction getTransactions(int index);
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
int getTransactionsCount();
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
java.util.List extends org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionsOrBuilderList();
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder getTransactionsOrBuilder(
int index);
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata();
/**
* .flow.entities.Metadata metadata = 2;
*/
org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code flow.access.TransactionsResponse}
*/
public static final class TransactionsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.TransactionsResponse)
TransactionsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionsResponse.newBuilder() to construct.
private TransactionsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionsResponse() {
transactions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
transactions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
transactions_.add(
input.readMessage(org.onflow.protobuf.entities.TransactionOuterClass.Transaction.parser(), extensionRegistry));
break;
}
case 18: {
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.onflow.protobuf.entities.MetadataOuterClass.Metadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
transactions_ = java.util.Collections.unmodifiableList(transactions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.TransactionsResponse.class, org.onflow.protobuf.access.Access.TransactionsResponse.Builder.class);
}
public static final int TRANSACTIONS_FIELD_NUMBER = 1;
private java.util.List transactions_;
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
@java.lang.Override
public java.util.List getTransactionsList() {
return transactions_;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionsOrBuilderList() {
return transactions_;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
@java.lang.Override
public int getTransactionsCount() {
return transactions_.size();
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction getTransactions(int index) {
return transactions_.get(index);
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder getTransactionsOrBuilder(
int index) {
return transactions_.get(index);
}
public static final int METADATA_FIELD_NUMBER = 2;
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < transactions_.size(); i++) {
output.writeMessage(1, transactions_.get(i));
}
if (metadata_ != null) {
output.writeMessage(2, getMetadata());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < transactions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, transactions_.get(i));
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetadata());
}
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.access.Access.TransactionsResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.TransactionsResponse other = (org.onflow.protobuf.access.Access.TransactionsResponse) obj;
if (!getTransactionsList()
.equals(other.getTransactionsList())) return false;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getTransactionsCount() > 0) {
hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getTransactionsList().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.TransactionsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.TransactionsResponse 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.access.Access.TransactionsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.TransactionsResponse 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.access.Access.TransactionsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.TransactionsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.TransactionsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.TransactionsResponse 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.access.Access.TransactionsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.TransactionsResponse 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.access.Access.TransactionsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.TransactionsResponse 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.access.Access.TransactionsResponse 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.access.TransactionsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.TransactionsResponse)
org.onflow.protobuf.access.Access.TransactionsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.TransactionsResponse.class, org.onflow.protobuf.access.Access.TransactionsResponse.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.TransactionsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTransactionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (transactionsBuilder_ == null) {
transactions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
transactionsBuilder_.clear();
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionsResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.TransactionsResponse getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.TransactionsResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.TransactionsResponse build() {
org.onflow.protobuf.access.Access.TransactionsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.TransactionsResponse buildPartial() {
org.onflow.protobuf.access.Access.TransactionsResponse result = new org.onflow.protobuf.access.Access.TransactionsResponse(this);
int from_bitField0_ = bitField0_;
if (transactionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
transactions_ = java.util.Collections.unmodifiableList(transactions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.transactions_ = transactions_;
} else {
result.transactions_ = transactionsBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.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.access.Access.TransactionsResponse) {
return mergeFrom((org.onflow.protobuf.access.Access.TransactionsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.TransactionsResponse other) {
if (other == org.onflow.protobuf.access.Access.TransactionsResponse.getDefaultInstance()) return this;
if (transactionsBuilder_ == null) {
if (!other.transactions_.isEmpty()) {
if (transactions_.isEmpty()) {
transactions_ = other.transactions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTransactionsIsMutable();
transactions_.addAll(other.transactions_);
}
onChanged();
}
} else {
if (!other.transactions_.isEmpty()) {
if (transactionsBuilder_.isEmpty()) {
transactionsBuilder_.dispose();
transactionsBuilder_ = null;
transactions_ = other.transactions_;
bitField0_ = (bitField0_ & ~0x00000001);
transactionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTransactionsFieldBuilder() : null;
} else {
transactionsBuilder_.addAllMessages(other.transactions_);
}
}
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.access.Access.TransactionsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.TransactionsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List transactions_ =
java.util.Collections.emptyList();
private void ensureTransactionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
transactions_ = new java.util.ArrayList(transactions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder> transactionsBuilder_;
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public java.util.List getTransactionsList() {
if (transactionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(transactions_);
} else {
return transactionsBuilder_.getMessageList();
}
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public int getTransactionsCount() {
if (transactionsBuilder_ == null) {
return transactions_.size();
} else {
return transactionsBuilder_.getCount();
}
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction getTransactions(int index) {
if (transactionsBuilder_ == null) {
return transactions_.get(index);
} else {
return transactionsBuilder_.getMessage(index);
}
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder setTransactions(
int index, org.onflow.protobuf.entities.TransactionOuterClass.Transaction value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.set(index, value);
onChanged();
} else {
transactionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder setTransactions(
int index, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.set(index, builderForValue.build());
onChanged();
} else {
transactionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder addTransactions(org.onflow.protobuf.entities.TransactionOuterClass.Transaction value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.add(value);
onChanged();
} else {
transactionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder addTransactions(
int index, org.onflow.protobuf.entities.TransactionOuterClass.Transaction value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.add(index, value);
onChanged();
} else {
transactionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder addTransactions(
org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.add(builderForValue.build());
onChanged();
} else {
transactionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder addTransactions(
int index, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.add(index, builderForValue.build());
onChanged();
} else {
transactionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder addAllTransactions(
java.lang.Iterable extends org.onflow.protobuf.entities.TransactionOuterClass.Transaction> values) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, transactions_);
onChanged();
} else {
transactionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder clearTransactions() {
if (transactionsBuilder_ == null) {
transactions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
transactionsBuilder_.clear();
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public Builder removeTransactions(int index) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.remove(index);
onChanged();
} else {
transactionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder getTransactionsBuilder(
int index) {
return getTransactionsFieldBuilder().getBuilder(index);
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder getTransactionsOrBuilder(
int index) {
if (transactionsBuilder_ == null) {
return transactions_.get(index); } else {
return transactionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public java.util.List extends org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionsOrBuilderList() {
if (transactionsBuilder_ != null) {
return transactionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(transactions_);
}
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder addTransactionsBuilder() {
return getTransactionsFieldBuilder().addBuilder(
org.onflow.protobuf.entities.TransactionOuterClass.Transaction.getDefaultInstance());
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder addTransactionsBuilder(
int index) {
return getTransactionsFieldBuilder().addBuilder(
index, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.getDefaultInstance());
}
/**
* repeated .flow.entities.Transaction transactions = 1;
*/
public java.util.List
getTransactionsBuilderList() {
return getTransactionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionsFieldBuilder() {
if (transactionsBuilder_ == null) {
transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>(
transactions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
transactions_ = null;
}
return transactionsBuilder_;
}
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder> metadataBuilder_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder mergeMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
@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.access.TransactionsResponse)
}
// @@protoc_insertion_point(class_scope:flow.access.TransactionsResponse)
private static final org.onflow.protobuf.access.Access.TransactionsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.TransactionsResponse();
}
public static org.onflow.protobuf.access.Access.TransactionsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransactionsResponse(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.access.Access.TransactionsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.TransactionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .flow.entities.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
boolean hasTransaction();
/**
* .flow.entities.Transaction transaction = 1;
* @return The transaction.
*/
org.onflow.protobuf.entities.TransactionOuterClass.Transaction getTransaction();
/**
* .flow.entities.Transaction transaction = 1;
*/
org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder getTransactionOrBuilder();
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata();
/**
* .flow.entities.Metadata metadata = 2;
*/
org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code flow.access.TransactionResponse}
*/
public static final class TransactionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.TransactionResponse)
TransactionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionResponse.newBuilder() to construct.
private TransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionResponse(
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.TransactionOuterClass.Transaction.Builder subBuilder = null;
if (transaction_ != null) {
subBuilder = transaction_.toBuilder();
}
transaction_ = input.readMessage(org.onflow.protobuf.entities.TransactionOuterClass.Transaction.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(transaction_);
transaction_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.onflow.protobuf.entities.MetadataOuterClass.Metadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.access.Access.internal_static_flow_access_TransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.TransactionResponse.class, org.onflow.protobuf.access.Access.TransactionResponse.Builder.class);
}
public static final int TRANSACTION_FIELD_NUMBER = 1;
private org.onflow.protobuf.entities.TransactionOuterClass.Transaction transaction_;
/**
* .flow.entities.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
@java.lang.Override
public boolean hasTransaction() {
return transaction_ != null;
}
/**
* .flow.entities.Transaction transaction = 1;
* @return The transaction.
*/
@java.lang.Override
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction getTransaction() {
return transaction_ == null ? org.onflow.protobuf.entities.TransactionOuterClass.Transaction.getDefaultInstance() : transaction_;
}
/**
* .flow.entities.Transaction transaction = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder getTransactionOrBuilder() {
return getTransaction();
}
public static final int METADATA_FIELD_NUMBER = 2;
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 (transaction_ != null) {
output.writeMessage(1, getTransaction());
}
if (metadata_ != null) {
output.writeMessage(2, getMetadata());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (transaction_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTransaction());
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetadata());
}
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.access.Access.TransactionResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.TransactionResponse other = (org.onflow.protobuf.access.Access.TransactionResponse) obj;
if (hasTransaction() != other.hasTransaction()) return false;
if (hasTransaction()) {
if (!getTransaction()
.equals(other.getTransaction())) return false;
}
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) 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 (hasTransaction()) {
hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getTransaction().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.TransactionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.TransactionResponse 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.access.Access.TransactionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.TransactionResponse 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.access.Access.TransactionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.TransactionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.TransactionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.TransactionResponse 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.access.Access.TransactionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.TransactionResponse 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.access.Access.TransactionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.TransactionResponse 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.access.Access.TransactionResponse 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.access.TransactionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.TransactionResponse)
org.onflow.protobuf.access.Access.TransactionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.TransactionResponse.class, org.onflow.protobuf.access.Access.TransactionResponse.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.TransactionResponse.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 (transactionBuilder_ == null) {
transaction_ = null;
} else {
transaction_ = null;
transactionBuilder_ = null;
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.TransactionResponse getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.TransactionResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.TransactionResponse build() {
org.onflow.protobuf.access.Access.TransactionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.TransactionResponse buildPartial() {
org.onflow.protobuf.access.Access.TransactionResponse result = new org.onflow.protobuf.access.Access.TransactionResponse(this);
if (transactionBuilder_ == null) {
result.transaction_ = transaction_;
} else {
result.transaction_ = transactionBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.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.access.Access.TransactionResponse) {
return mergeFrom((org.onflow.protobuf.access.Access.TransactionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.TransactionResponse other) {
if (other == org.onflow.protobuf.access.Access.TransactionResponse.getDefaultInstance()) return this;
if (other.hasTransaction()) {
mergeTransaction(other.getTransaction());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.access.Access.TransactionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.TransactionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.entities.TransactionOuterClass.Transaction transaction_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder> transactionBuilder_;
/**
* .flow.entities.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
public boolean hasTransaction() {
return transactionBuilder_ != null || transaction_ != null;
}
/**
* .flow.entities.Transaction transaction = 1;
* @return The transaction.
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction getTransaction() {
if (transactionBuilder_ == null) {
return transaction_ == null ? org.onflow.protobuf.entities.TransactionOuterClass.Transaction.getDefaultInstance() : transaction_;
} else {
return transactionBuilder_.getMessage();
}
}
/**
* .flow.entities.Transaction transaction = 1;
*/
public Builder setTransaction(org.onflow.protobuf.entities.TransactionOuterClass.Transaction value) {
if (transactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transaction_ = value;
onChanged();
} else {
transactionBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Transaction transaction = 1;
*/
public Builder setTransaction(
org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder builderForValue) {
if (transactionBuilder_ == null) {
transaction_ = builderForValue.build();
onChanged();
} else {
transactionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Transaction transaction = 1;
*/
public Builder mergeTransaction(org.onflow.protobuf.entities.TransactionOuterClass.Transaction value) {
if (transactionBuilder_ == null) {
if (transaction_ != null) {
transaction_ =
org.onflow.protobuf.entities.TransactionOuterClass.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
} else {
transaction_ = value;
}
onChanged();
} else {
transactionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Transaction transaction = 1;
*/
public Builder clearTransaction() {
if (transactionBuilder_ == null) {
transaction_ = null;
onChanged();
} else {
transaction_ = null;
transactionBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Transaction transaction = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder getTransactionBuilder() {
onChanged();
return getTransactionFieldBuilder().getBuilder();
}
/**
* .flow.entities.Transaction transaction = 1;
*/
public org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder getTransactionOrBuilder() {
if (transactionBuilder_ != null) {
return transactionBuilder_.getMessageOrBuilder();
} else {
return transaction_ == null ?
org.onflow.protobuf.entities.TransactionOuterClass.Transaction.getDefaultInstance() : transaction_;
}
}
/**
* .flow.entities.Transaction transaction = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionFieldBuilder() {
if (transactionBuilder_ == null) {
transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.entities.TransactionOuterClass.TransactionOrBuilder>(
getTransaction(),
getParentForChildren(),
isClean());
transaction_ = null;
}
return transactionBuilder_;
}
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder> metadataBuilder_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder mergeMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
@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.access.TransactionResponse)
}
// @@protoc_insertion_point(class_scope:flow.access.TransactionResponse)
private static final org.onflow.protobuf.access.Access.TransactionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.TransactionResponse();
}
public static org.onflow.protobuf.access.Access.TransactionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransactionResponse(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.access.Access.TransactionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionResultResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.TransactionResultResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .flow.entities.TransactionStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* .flow.entities.TransactionStatus status = 1;
* @return The status.
*/
org.onflow.protobuf.entities.TransactionOuterClass.TransactionStatus getStatus();
/**
* uint32 status_code = 2;
* @return The statusCode.
*/
int getStatusCode();
/**
* string error_message = 3;
* @return The errorMessage.
*/
java.lang.String getErrorMessage();
/**
* string error_message = 3;
* @return The bytes for errorMessage.
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
/**
* repeated .flow.entities.Event events = 4;
*/
java.util.List
getEventsList();
/**
* repeated .flow.entities.Event events = 4;
*/
org.onflow.protobuf.entities.EventOuterClass.Event getEvents(int index);
/**
* repeated .flow.entities.Event events = 4;
*/
int getEventsCount();
/**
* repeated .flow.entities.Event events = 4;
*/
java.util.List extends org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList();
/**
* repeated .flow.entities.Event events = 4;
*/
org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index);
/**
* bytes block_id = 5;
* @return The blockId.
*/
com.google.protobuf.ByteString getBlockId();
/**
* bytes transaction_id = 6;
* @return The transactionId.
*/
com.google.protobuf.ByteString getTransactionId();
/**
* bytes collection_id = 7;
* @return The collectionId.
*/
com.google.protobuf.ByteString getCollectionId();
/**
* uint64 block_height = 8;
* @return The blockHeight.
*/
long getBlockHeight();
/**
* .flow.entities.Metadata metadata = 9;
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
* .flow.entities.Metadata metadata = 9;
* @return The metadata.
*/
org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata();
/**
* .flow.entities.Metadata metadata = 9;
*/
org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder();
/**
* uint64 computation_usage = 10;
* @return The computationUsage.
*/
long getComputationUsage();
}
/**
* Protobuf type {@code flow.access.TransactionResultResponse}
*/
public static final class TransactionResultResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.TransactionResultResponse)
TransactionResultResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionResultResponse.newBuilder() to construct.
private TransactionResultResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionResultResponse() {
status_ = 0;
errorMessage_ = "";
events_ = java.util.Collections.emptyList();
blockId_ = com.google.protobuf.ByteString.EMPTY;
transactionId_ = com.google.protobuf.ByteString.EMPTY;
collectionId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionResultResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionResultResponse(
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: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 16: {
statusCode_ = input.readUInt32();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
errorMessage_ = s;
break;
}
case 34: {
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 42: {
blockId_ = input.readBytes();
break;
}
case 50: {
transactionId_ = input.readBytes();
break;
}
case 58: {
collectionId_ = input.readBytes();
break;
}
case 64: {
blockHeight_ = input.readUInt64();
break;
}
case 74: {
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.onflow.protobuf.entities.MetadataOuterClass.Metadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
break;
}
case 80: {
computationUsage_ = 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.access.Access.internal_static_flow_access_TransactionResultResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionResultResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.TransactionResultResponse.class, org.onflow.protobuf.access.Access.TransactionResultResponse.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
* .flow.entities.TransactionStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .flow.entities.TransactionStatus status = 1;
* @return The status.
*/
@java.lang.Override public org.onflow.protobuf.entities.TransactionOuterClass.TransactionStatus getStatus() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.TransactionOuterClass.TransactionStatus result = org.onflow.protobuf.entities.TransactionOuterClass.TransactionStatus.valueOf(status_);
return result == null ? org.onflow.protobuf.entities.TransactionOuterClass.TransactionStatus.UNRECOGNIZED : result;
}
public static final int STATUS_CODE_FIELD_NUMBER = 2;
private int statusCode_;
/**
* uint32 status_code = 2;
* @return The statusCode.
*/
@java.lang.Override
public int getStatusCode() {
return statusCode_;
}
public static final int ERROR_MESSAGE_FIELD_NUMBER = 3;
private volatile java.lang.Object errorMessage_;
/**
* string error_message = 3;
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
}
}
/**
* string error_message = 3;
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EVENTS_FIELD_NUMBER = 4;
private java.util.List events_;
/**
* repeated .flow.entities.Event events = 4;
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
* repeated .flow.entities.Event events = 4;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
* repeated .flow.entities.Event events = 4;
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
* repeated .flow.entities.Event events = 4;
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.Event getEvents(int index) {
return events_.get(index);
}
/**
* repeated .flow.entities.Event events = 4;
*/
@java.lang.Override
public org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index) {
return events_.get(index);
}
public static final int BLOCK_ID_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString blockId_;
/**
* bytes block_id = 5;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
public static final int TRANSACTION_ID_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString transactionId_;
/**
* bytes transaction_id = 6;
* @return The transactionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTransactionId() {
return transactionId_;
}
public static final int COLLECTION_ID_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString collectionId_;
/**
* bytes collection_id = 7;
* @return The collectionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCollectionId() {
return collectionId_;
}
public static final int BLOCK_HEIGHT_FIELD_NUMBER = 8;
private long blockHeight_;
/**
* uint64 block_height = 8;
* @return The blockHeight.
*/
@java.lang.Override
public long getBlockHeight() {
return blockHeight_;
}
public static final int METADATA_FIELD_NUMBER = 9;
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
/**
* .flow.entities.Metadata metadata = 9;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 9;
* @return The metadata.
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
/**
* .flow.entities.Metadata metadata = 9;
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
public static final int COMPUTATION_USAGE_FIELD_NUMBER = 10;
private long computationUsage_;
/**
* uint64 computation_usage = 10;
* @return The computationUsage.
*/
@java.lang.Override
public long getComputationUsage() {
return computationUsage_;
}
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 (status_ != org.onflow.protobuf.entities.TransactionOuterClass.TransactionStatus.UNKNOWN.getNumber()) {
output.writeEnum(1, status_);
}
if (statusCode_ != 0) {
output.writeUInt32(2, statusCode_);
}
if (!getErrorMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorMessage_);
}
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(4, events_.get(i));
}
if (!blockId_.isEmpty()) {
output.writeBytes(5, blockId_);
}
if (!transactionId_.isEmpty()) {
output.writeBytes(6, transactionId_);
}
if (!collectionId_.isEmpty()) {
output.writeBytes(7, collectionId_);
}
if (blockHeight_ != 0L) {
output.writeUInt64(8, blockHeight_);
}
if (metadata_ != null) {
output.writeMessage(9, getMetadata());
}
if (computationUsage_ != 0L) {
output.writeUInt64(10, computationUsage_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != org.onflow.protobuf.entities.TransactionOuterClass.TransactionStatus.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
if (statusCode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, statusCode_);
}
if (!getErrorMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorMessage_);
}
for (int i = 0; i < events_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, events_.get(i));
}
if (!blockId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, blockId_);
}
if (!transactionId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, transactionId_);
}
if (!collectionId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, collectionId_);
}
if (blockHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, blockHeight_);
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getMetadata());
}
if (computationUsage_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(10, computationUsage_);
}
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.access.Access.TransactionResultResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.TransactionResultResponse other = (org.onflow.protobuf.access.Access.TransactionResultResponse) obj;
if (status_ != other.status_) return false;
if (getStatusCode()
!= other.getStatusCode()) return false;
if (!getErrorMessage()
.equals(other.getErrorMessage())) return false;
if (!getEventsList()
.equals(other.getEventsList())) return false;
if (!getBlockId()
.equals(other.getBlockId())) return false;
if (!getTransactionId()
.equals(other.getTransactionId())) return false;
if (!getCollectionId()
.equals(other.getCollectionId())) return false;
if (getBlockHeight()
!= other.getBlockHeight()) return false;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (getComputationUsage()
!= other.getComputationUsage()) 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) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + STATUS_CODE_FIELD_NUMBER;
hash = (53 * hash) + getStatusCode();
hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER;
hash = (53 * hash) + getBlockId().hashCode();
hash = (37 * hash) + TRANSACTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getTransactionId().hashCode();
hash = (37 * hash) + COLLECTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getCollectionId().hashCode();
hash = (37 * hash) + BLOCK_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockHeight());
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (37 * hash) + COMPUTATION_USAGE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getComputationUsage());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.TransactionResultResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.TransactionResultResponse 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.access.Access.TransactionResultResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.TransactionResultResponse 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.access.Access.TransactionResultResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.TransactionResultResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.TransactionResultResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.TransactionResultResponse 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.access.Access.TransactionResultResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.TransactionResultResponse 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.access.Access.TransactionResultResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.TransactionResultResponse 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.access.Access.TransactionResultResponse 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.access.TransactionResultResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.TransactionResultResponse)
org.onflow.protobuf.access.Access.TransactionResultResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionResultResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionResultResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.TransactionResultResponse.class, org.onflow.protobuf.access.Access.TransactionResultResponse.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.TransactionResultResponse.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();
status_ = 0;
statusCode_ = 0;
errorMessage_ = "";
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
eventsBuilder_.clear();
}
blockId_ = com.google.protobuf.ByteString.EMPTY;
transactionId_ = com.google.protobuf.ByteString.EMPTY;
collectionId_ = com.google.protobuf.ByteString.EMPTY;
blockHeight_ = 0L;
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
computationUsage_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_TransactionResultResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.TransactionResultResponse getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.TransactionResultResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.TransactionResultResponse build() {
org.onflow.protobuf.access.Access.TransactionResultResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.TransactionResultResponse buildPartial() {
org.onflow.protobuf.access.Access.TransactionResultResponse result = new org.onflow.protobuf.access.Access.TransactionResultResponse(this);
int from_bitField0_ = bitField0_;
result.status_ = status_;
result.statusCode_ = statusCode_;
result.errorMessage_ = errorMessage_;
if (eventsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.events_ = events_;
} else {
result.events_ = eventsBuilder_.build();
}
result.blockId_ = blockId_;
result.transactionId_ = transactionId_;
result.collectionId_ = collectionId_;
result.blockHeight_ = blockHeight_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
result.computationUsage_ = computationUsage_;
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.access.Access.TransactionResultResponse) {
return mergeFrom((org.onflow.protobuf.access.Access.TransactionResultResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.TransactionResultResponse other) {
if (other == org.onflow.protobuf.access.Access.TransactionResultResponse.getDefaultInstance()) return this;
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.getStatusCode() != 0) {
setStatusCode(other.getStatusCode());
}
if (!other.getErrorMessage().isEmpty()) {
errorMessage_ = other.errorMessage_;
onChanged();
}
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.getBlockId() != com.google.protobuf.ByteString.EMPTY) {
setBlockId(other.getBlockId());
}
if (other.getTransactionId() != com.google.protobuf.ByteString.EMPTY) {
setTransactionId(other.getTransactionId());
}
if (other.getCollectionId() != com.google.protobuf.ByteString.EMPTY) {
setCollectionId(other.getCollectionId());
}
if (other.getBlockHeight() != 0L) {
setBlockHeight(other.getBlockHeight());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.getComputationUsage() != 0L) {
setComputationUsage(other.getComputationUsage());
}
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.access.Access.TransactionResultResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.TransactionResultResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int status_ = 0;
/**
* .flow.entities.TransactionStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .flow.entities.TransactionStatus status = 1;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
* .flow.entities.TransactionStatus status = 1;
* @return The status.
*/
@java.lang.Override
public org.onflow.protobuf.entities.TransactionOuterClass.TransactionStatus getStatus() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.entities.TransactionOuterClass.TransactionStatus result = org.onflow.protobuf.entities.TransactionOuterClass.TransactionStatus.valueOf(status_);
return result == null ? org.onflow.protobuf.entities.TransactionOuterClass.TransactionStatus.UNRECOGNIZED : result;
}
/**
* .flow.entities.TransactionStatus status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(org.onflow.protobuf.entities.TransactionOuterClass.TransactionStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .flow.entities.TransactionStatus status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private int statusCode_ ;
/**
* uint32 status_code = 2;
* @return The statusCode.
*/
@java.lang.Override
public int getStatusCode() {
return statusCode_;
}
/**
* uint32 status_code = 2;
* @param value The statusCode to set.
* @return This builder for chaining.
*/
public Builder setStatusCode(int value) {
statusCode_ = value;
onChanged();
return this;
}
/**
* uint32 status_code = 2;
* @return This builder for chaining.
*/
public Builder clearStatusCode() {
statusCode_ = 0;
onChanged();
return this;
}
private java.lang.Object errorMessage_ = "";
/**
* string error_message = 3;
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string error_message = 3;
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string error_message = 3;
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
/**
* string error_message = 3;
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
* string error_message = 3;
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMessage_ = value;
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_;
/**
* repeated .flow.entities.Event events = 4;
*/
public java.util.List getEventsList() {
if (eventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(events_);
} else {
return eventsBuilder_.getMessageList();
}
}
/**
* repeated .flow.entities.Event events = 4;
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
* repeated .flow.entities.Event events = 4;
*/
public org.onflow.protobuf.entities.EventOuterClass.Event getEvents(int index) {
if (eventsBuilder_ == null) {
return events_.get(index);
} else {
return eventsBuilder_.getMessage(index);
}
}
/**
* repeated .flow.entities.Event events = 4;
*/
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;
}
/**
* repeated .flow.entities.Event events = 4;
*/
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;
}
/**
* repeated .flow.entities.Event events = 4;
*/
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;
}
/**
* repeated .flow.entities.Event events = 4;
*/
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;
}
/**
* repeated .flow.entities.Event events = 4;
*/
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;
}
/**
* repeated .flow.entities.Event events = 4;
*/
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;
}
/**
* repeated .flow.entities.Event events = 4;
*/
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;
}
/**
* repeated .flow.entities.Event events = 4;
*/
public Builder clearEvents() {
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
eventsBuilder_.clear();
}
return this;
}
/**
* repeated .flow.entities.Event events = 4;
*/
public Builder removeEvents(int index) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.remove(index);
onChanged();
} else {
eventsBuilder_.remove(index);
}
return this;
}
/**
* repeated .flow.entities.Event events = 4;
*/
public org.onflow.protobuf.entities.EventOuterClass.Event.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
* repeated .flow.entities.Event events = 4;
*/
public org.onflow.protobuf.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .flow.entities.Event events = 4;
*/
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_);
}
}
/**
* repeated .flow.entities.Event events = 4;
*/
public org.onflow.protobuf.entities.EventOuterClass.Event.Builder addEventsBuilder() {
return getEventsFieldBuilder().addBuilder(
org.onflow.protobuf.entities.EventOuterClass.Event.getDefaultInstance());
}
/**
* repeated .flow.entities.Event events = 4;
*/
public org.onflow.protobuf.entities.EventOuterClass.Event.Builder addEventsBuilder(
int index) {
return getEventsFieldBuilder().addBuilder(
index, org.onflow.protobuf.entities.EventOuterClass.Event.getDefaultInstance());
}
/**
* repeated .flow.entities.Event events = 4;
*/
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.ByteString blockId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes block_id = 5;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
/**
* bytes block_id = 5;
* @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;
}
/**
* bytes block_id = 5;
* @return This builder for chaining.
*/
public Builder clearBlockId() {
blockId_ = getDefaultInstance().getBlockId();
onChanged();
return this;
}
private com.google.protobuf.ByteString transactionId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes transaction_id = 6;
* @return The transactionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTransactionId() {
return transactionId_;
}
/**
* bytes transaction_id = 6;
* @param value The transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
transactionId_ = value;
onChanged();
return this;
}
/**
* bytes transaction_id = 6;
* @return This builder for chaining.
*/
public Builder clearTransactionId() {
transactionId_ = getDefaultInstance().getTransactionId();
onChanged();
return this;
}
private com.google.protobuf.ByteString collectionId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes collection_id = 7;
* @return The collectionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCollectionId() {
return collectionId_;
}
/**
* bytes collection_id = 7;
* @param value The collectionId to set.
* @return This builder for chaining.
*/
public Builder setCollectionId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
collectionId_ = value;
onChanged();
return this;
}
/**
* bytes collection_id = 7;
* @return This builder for chaining.
*/
public Builder clearCollectionId() {
collectionId_ = getDefaultInstance().getCollectionId();
onChanged();
return this;
}
private long blockHeight_ ;
/**
* uint64 block_height = 8;
* @return The blockHeight.
*/
@java.lang.Override
public long getBlockHeight() {
return blockHeight_;
}
/**
* uint64 block_height = 8;
* @param value The blockHeight to set.
* @return This builder for chaining.
*/
public Builder setBlockHeight(long value) {
blockHeight_ = value;
onChanged();
return this;
}
/**
* uint64 block_height = 8;
* @return This builder for chaining.
*/
public Builder clearBlockHeight() {
blockHeight_ = 0L;
onChanged();
return this;
}
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder> metadataBuilder_;
/**
* .flow.entities.Metadata metadata = 9;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 9;
* @return The metadata.
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* .flow.entities.Metadata metadata = 9;
*/
public Builder setMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 9;
*/
public Builder setMetadata(
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Metadata metadata = 9;
*/
public Builder mergeMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 9;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Metadata metadata = 9;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* .flow.entities.Metadata metadata = 9;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
}
/**
* .flow.entities.Metadata metadata = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private long computationUsage_ ;
/**
* uint64 computation_usage = 10;
* @return The computationUsage.
*/
@java.lang.Override
public long getComputationUsage() {
return computationUsage_;
}
/**
* uint64 computation_usage = 10;
* @param value The computationUsage to set.
* @return This builder for chaining.
*/
public Builder setComputationUsage(long value) {
computationUsage_ = value;
onChanged();
return this;
}
/**
* uint64 computation_usage = 10;
* @return This builder for chaining.
*/
public Builder clearComputationUsage() {
computationUsage_ = 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.access.TransactionResultResponse)
}
// @@protoc_insertion_point(class_scope:flow.access.TransactionResultResponse)
private static final org.onflow.protobuf.access.Access.TransactionResultResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.TransactionResultResponse();
}
public static org.onflow.protobuf.access.Access.TransactionResultResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionResultResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransactionResultResponse(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.access.Access.TransactionResultResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetAccountRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetAccountRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
}
/**
* Protobuf type {@code flow.access.GetAccountRequest}
*/
public static final class GetAccountRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetAccountRequest)
GetAccountRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetAccountRequest.newBuilder() to construct.
private GetAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetAccountRequest() {
address_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetAccountRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetAccountRequest(
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: {
address_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetAccountRequest.class, org.onflow.protobuf.access.Access.GetAccountRequest.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString address_;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
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_);
}
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_);
}
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.access.Access.GetAccountRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetAccountRequest other = (org.onflow.protobuf.access.Access.GetAccountRequest) obj;
if (!getAddress()
.equals(other.getAddress())) 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();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.GetAccountRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetAccountRequest 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.access.Access.GetAccountRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetAccountRequest 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.access.Access.GetAccountRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetAccountRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetAccountRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetAccountRequest 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.access.Access.GetAccountRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetAccountRequest 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.access.Access.GetAccountRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetAccountRequest 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.access.Access.GetAccountRequest 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.access.GetAccountRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetAccountRequest)
org.onflow.protobuf.access.Access.GetAccountRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetAccountRequest.class, org.onflow.protobuf.access.Access.GetAccountRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetAccountRequest.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();
address_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetAccountRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetAccountRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetAccountRequest build() {
org.onflow.protobuf.access.Access.GetAccountRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetAccountRequest buildPartial() {
org.onflow.protobuf.access.Access.GetAccountRequest result = new org.onflow.protobuf.access.Access.GetAccountRequest(this);
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.access.Access.GetAccountRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetAccountRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetAccountRequest other) {
if (other == org.onflow.protobuf.access.Access.GetAccountRequest.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
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.access.Access.GetAccountRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetAccountRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* 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;
}
/**
* bytes address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
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.access.GetAccountRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetAccountRequest)
private static final org.onflow.protobuf.access.Access.GetAccountRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetAccountRequest();
}
public static org.onflow.protobuf.access.Access.GetAccountRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetAccountRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetAccountRequest(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.access.Access.GetAccountRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetAccountResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetAccountResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .flow.entities.Account account = 1;
* @return Whether the account field is set.
*/
boolean hasAccount();
/**
* .flow.entities.Account account = 1;
* @return The account.
*/
org.onflow.protobuf.entities.AccountOuterClass.Account getAccount();
/**
* .flow.entities.Account account = 1;
*/
org.onflow.protobuf.entities.AccountOuterClass.AccountOrBuilder getAccountOrBuilder();
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata();
/**
* .flow.entities.Metadata metadata = 2;
*/
org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code flow.access.GetAccountResponse}
*/
public static final class GetAccountResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetAccountResponse)
GetAccountResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetAccountResponse.newBuilder() to construct.
private GetAccountResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetAccountResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetAccountResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetAccountResponse(
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.AccountOuterClass.Account.Builder subBuilder = null;
if (account_ != null) {
subBuilder = account_.toBuilder();
}
account_ = input.readMessage(org.onflow.protobuf.entities.AccountOuterClass.Account.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(account_);
account_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.onflow.protobuf.entities.MetadataOuterClass.Metadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.access.Access.internal_static_flow_access_GetAccountResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetAccountResponse.class, org.onflow.protobuf.access.Access.GetAccountResponse.Builder.class);
}
public static final int ACCOUNT_FIELD_NUMBER = 1;
private org.onflow.protobuf.entities.AccountOuterClass.Account account_;
/**
* .flow.entities.Account account = 1;
* @return Whether the account field is set.
*/
@java.lang.Override
public boolean hasAccount() {
return account_ != null;
}
/**
* .flow.entities.Account account = 1;
* @return The account.
*/
@java.lang.Override
public org.onflow.protobuf.entities.AccountOuterClass.Account getAccount() {
return account_ == null ? org.onflow.protobuf.entities.AccountOuterClass.Account.getDefaultInstance() : account_;
}
/**
* .flow.entities.Account account = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.AccountOuterClass.AccountOrBuilder getAccountOrBuilder() {
return getAccount();
}
public static final int METADATA_FIELD_NUMBER = 2;
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 (account_ != null) {
output.writeMessage(1, getAccount());
}
if (metadata_ != null) {
output.writeMessage(2, getMetadata());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (account_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAccount());
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetadata());
}
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.access.Access.GetAccountResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetAccountResponse other = (org.onflow.protobuf.access.Access.GetAccountResponse) obj;
if (hasAccount() != other.hasAccount()) return false;
if (hasAccount()) {
if (!getAccount()
.equals(other.getAccount())) return false;
}
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) 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 (hasAccount()) {
hash = (37 * hash) + ACCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getAccount().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.GetAccountResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetAccountResponse 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.access.Access.GetAccountResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetAccountResponse 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.access.Access.GetAccountResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetAccountResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetAccountResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetAccountResponse 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.access.Access.GetAccountResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetAccountResponse 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.access.Access.GetAccountResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetAccountResponse 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.access.Access.GetAccountResponse 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.access.GetAccountResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetAccountResponse)
org.onflow.protobuf.access.Access.GetAccountResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetAccountResponse.class, org.onflow.protobuf.access.Access.GetAccountResponse.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetAccountResponse.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 (accountBuilder_ == null) {
account_ = null;
} else {
account_ = null;
accountBuilder_ = null;
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetAccountResponse getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetAccountResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetAccountResponse build() {
org.onflow.protobuf.access.Access.GetAccountResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetAccountResponse buildPartial() {
org.onflow.protobuf.access.Access.GetAccountResponse result = new org.onflow.protobuf.access.Access.GetAccountResponse(this);
if (accountBuilder_ == null) {
result.account_ = account_;
} else {
result.account_ = accountBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.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.access.Access.GetAccountResponse) {
return mergeFrom((org.onflow.protobuf.access.Access.GetAccountResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetAccountResponse other) {
if (other == org.onflow.protobuf.access.Access.GetAccountResponse.getDefaultInstance()) return this;
if (other.hasAccount()) {
mergeAccount(other.getAccount());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.access.Access.GetAccountResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetAccountResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.entities.AccountOuterClass.Account account_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.AccountOuterClass.Account, org.onflow.protobuf.entities.AccountOuterClass.Account.Builder, org.onflow.protobuf.entities.AccountOuterClass.AccountOrBuilder> accountBuilder_;
/**
* .flow.entities.Account account = 1;
* @return Whether the account field is set.
*/
public boolean hasAccount() {
return accountBuilder_ != null || account_ != null;
}
/**
* .flow.entities.Account account = 1;
* @return The account.
*/
public org.onflow.protobuf.entities.AccountOuterClass.Account getAccount() {
if (accountBuilder_ == null) {
return account_ == null ? org.onflow.protobuf.entities.AccountOuterClass.Account.getDefaultInstance() : account_;
} else {
return accountBuilder_.getMessage();
}
}
/**
* .flow.entities.Account account = 1;
*/
public Builder setAccount(org.onflow.protobuf.entities.AccountOuterClass.Account value) {
if (accountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
account_ = value;
onChanged();
} else {
accountBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Account account = 1;
*/
public Builder setAccount(
org.onflow.protobuf.entities.AccountOuterClass.Account.Builder builderForValue) {
if (accountBuilder_ == null) {
account_ = builderForValue.build();
onChanged();
} else {
accountBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Account account = 1;
*/
public Builder mergeAccount(org.onflow.protobuf.entities.AccountOuterClass.Account value) {
if (accountBuilder_ == null) {
if (account_ != null) {
account_ =
org.onflow.protobuf.entities.AccountOuterClass.Account.newBuilder(account_).mergeFrom(value).buildPartial();
} else {
account_ = value;
}
onChanged();
} else {
accountBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Account account = 1;
*/
public Builder clearAccount() {
if (accountBuilder_ == null) {
account_ = null;
onChanged();
} else {
account_ = null;
accountBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Account account = 1;
*/
public org.onflow.protobuf.entities.AccountOuterClass.Account.Builder getAccountBuilder() {
onChanged();
return getAccountFieldBuilder().getBuilder();
}
/**
* .flow.entities.Account account = 1;
*/
public org.onflow.protobuf.entities.AccountOuterClass.AccountOrBuilder getAccountOrBuilder() {
if (accountBuilder_ != null) {
return accountBuilder_.getMessageOrBuilder();
} else {
return account_ == null ?
org.onflow.protobuf.entities.AccountOuterClass.Account.getDefaultInstance() : account_;
}
}
/**
* .flow.entities.Account account = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.AccountOuterClass.Account, org.onflow.protobuf.entities.AccountOuterClass.Account.Builder, org.onflow.protobuf.entities.AccountOuterClass.AccountOrBuilder>
getAccountFieldBuilder() {
if (accountBuilder_ == null) {
accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.AccountOuterClass.Account, org.onflow.protobuf.entities.AccountOuterClass.Account.Builder, org.onflow.protobuf.entities.AccountOuterClass.AccountOrBuilder>(
getAccount(),
getParentForChildren(),
isClean());
account_ = null;
}
return accountBuilder_;
}
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder> metadataBuilder_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder mergeMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
@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.access.GetAccountResponse)
}
// @@protoc_insertion_point(class_scope:flow.access.GetAccountResponse)
private static final org.onflow.protobuf.access.Access.GetAccountResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetAccountResponse();
}
public static org.onflow.protobuf.access.Access.GetAccountResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetAccountResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetAccountResponse(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.access.Access.GetAccountResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetAccountAtLatestBlockRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetAccountAtLatestBlockRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
}
/**
* Protobuf type {@code flow.access.GetAccountAtLatestBlockRequest}
*/
public static final class GetAccountAtLatestBlockRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetAccountAtLatestBlockRequest)
GetAccountAtLatestBlockRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetAccountAtLatestBlockRequest.newBuilder() to construct.
private GetAccountAtLatestBlockRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetAccountAtLatestBlockRequest() {
address_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetAccountAtLatestBlockRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetAccountAtLatestBlockRequest(
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: {
address_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountAtLatestBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountAtLatestBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest.class, org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString address_;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
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_);
}
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_);
}
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.access.Access.GetAccountAtLatestBlockRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest other = (org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest) obj;
if (!getAddress()
.equals(other.getAddress())) 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();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest 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.access.Access.GetAccountAtLatestBlockRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest 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.access.Access.GetAccountAtLatestBlockRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest 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.access.Access.GetAccountAtLatestBlockRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest 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.access.Access.GetAccountAtLatestBlockRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest 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.access.Access.GetAccountAtLatestBlockRequest 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.access.GetAccountAtLatestBlockRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetAccountAtLatestBlockRequest)
org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountAtLatestBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountAtLatestBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest.class, org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest.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();
address_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountAtLatestBlockRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest build() {
org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest buildPartial() {
org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest result = new org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest(this);
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.access.Access.GetAccountAtLatestBlockRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest other) {
if (other == org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
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.access.Access.GetAccountAtLatestBlockRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* 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;
}
/**
* bytes address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
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.access.GetAccountAtLatestBlockRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetAccountAtLatestBlockRequest)
private static final org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest();
}
public static org.onflow.protobuf.access.Access.GetAccountAtLatestBlockRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetAccountAtLatestBlockRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetAccountAtLatestBlockRequest(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.access.Access.GetAccountAtLatestBlockRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AccountResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.AccountResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .flow.entities.Account account = 1;
* @return Whether the account field is set.
*/
boolean hasAccount();
/**
* .flow.entities.Account account = 1;
* @return The account.
*/
org.onflow.protobuf.entities.AccountOuterClass.Account getAccount();
/**
* .flow.entities.Account account = 1;
*/
org.onflow.protobuf.entities.AccountOuterClass.AccountOrBuilder getAccountOrBuilder();
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata();
/**
* .flow.entities.Metadata metadata = 2;
*/
org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code flow.access.AccountResponse}
*/
public static final class AccountResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.AccountResponse)
AccountResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccountResponse.newBuilder() to construct.
private AccountResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccountResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AccountResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AccountResponse(
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.AccountOuterClass.Account.Builder subBuilder = null;
if (account_ != null) {
subBuilder = account_.toBuilder();
}
account_ = input.readMessage(org.onflow.protobuf.entities.AccountOuterClass.Account.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(account_);
account_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.onflow.protobuf.entities.MetadataOuterClass.Metadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.access.Access.internal_static_flow_access_AccountResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_AccountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.AccountResponse.class, org.onflow.protobuf.access.Access.AccountResponse.Builder.class);
}
public static final int ACCOUNT_FIELD_NUMBER = 1;
private org.onflow.protobuf.entities.AccountOuterClass.Account account_;
/**
* .flow.entities.Account account = 1;
* @return Whether the account field is set.
*/
@java.lang.Override
public boolean hasAccount() {
return account_ != null;
}
/**
* .flow.entities.Account account = 1;
* @return The account.
*/
@java.lang.Override
public org.onflow.protobuf.entities.AccountOuterClass.Account getAccount() {
return account_ == null ? org.onflow.protobuf.entities.AccountOuterClass.Account.getDefaultInstance() : account_;
}
/**
* .flow.entities.Account account = 1;
*/
@java.lang.Override
public org.onflow.protobuf.entities.AccountOuterClass.AccountOrBuilder getAccountOrBuilder() {
return getAccount();
}
public static final int METADATA_FIELD_NUMBER = 2;
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 (account_ != null) {
output.writeMessage(1, getAccount());
}
if (metadata_ != null) {
output.writeMessage(2, getMetadata());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (account_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAccount());
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetadata());
}
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.access.Access.AccountResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.AccountResponse other = (org.onflow.protobuf.access.Access.AccountResponse) obj;
if (hasAccount() != other.hasAccount()) return false;
if (hasAccount()) {
if (!getAccount()
.equals(other.getAccount())) return false;
}
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) 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 (hasAccount()) {
hash = (37 * hash) + ACCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getAccount().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.AccountResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.AccountResponse 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.access.Access.AccountResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.AccountResponse 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.access.Access.AccountResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.AccountResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.AccountResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.AccountResponse 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.access.Access.AccountResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.AccountResponse 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.access.Access.AccountResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.AccountResponse 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.access.Access.AccountResponse 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.access.AccountResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.AccountResponse)
org.onflow.protobuf.access.Access.AccountResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_AccountResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_AccountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.AccountResponse.class, org.onflow.protobuf.access.Access.AccountResponse.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.AccountResponse.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 (accountBuilder_ == null) {
account_ = null;
} else {
account_ = null;
accountBuilder_ = null;
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_AccountResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.AccountResponse getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.AccountResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.AccountResponse build() {
org.onflow.protobuf.access.Access.AccountResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.AccountResponse buildPartial() {
org.onflow.protobuf.access.Access.AccountResponse result = new org.onflow.protobuf.access.Access.AccountResponse(this);
if (accountBuilder_ == null) {
result.account_ = account_;
} else {
result.account_ = accountBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.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.access.Access.AccountResponse) {
return mergeFrom((org.onflow.protobuf.access.Access.AccountResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.AccountResponse other) {
if (other == org.onflow.protobuf.access.Access.AccountResponse.getDefaultInstance()) return this;
if (other.hasAccount()) {
mergeAccount(other.getAccount());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.access.Access.AccountResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.AccountResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.entities.AccountOuterClass.Account account_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.AccountOuterClass.Account, org.onflow.protobuf.entities.AccountOuterClass.Account.Builder, org.onflow.protobuf.entities.AccountOuterClass.AccountOrBuilder> accountBuilder_;
/**
* .flow.entities.Account account = 1;
* @return Whether the account field is set.
*/
public boolean hasAccount() {
return accountBuilder_ != null || account_ != null;
}
/**
* .flow.entities.Account account = 1;
* @return The account.
*/
public org.onflow.protobuf.entities.AccountOuterClass.Account getAccount() {
if (accountBuilder_ == null) {
return account_ == null ? org.onflow.protobuf.entities.AccountOuterClass.Account.getDefaultInstance() : account_;
} else {
return accountBuilder_.getMessage();
}
}
/**
* .flow.entities.Account account = 1;
*/
public Builder setAccount(org.onflow.protobuf.entities.AccountOuterClass.Account value) {
if (accountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
account_ = value;
onChanged();
} else {
accountBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Account account = 1;
*/
public Builder setAccount(
org.onflow.protobuf.entities.AccountOuterClass.Account.Builder builderForValue) {
if (accountBuilder_ == null) {
account_ = builderForValue.build();
onChanged();
} else {
accountBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Account account = 1;
*/
public Builder mergeAccount(org.onflow.protobuf.entities.AccountOuterClass.Account value) {
if (accountBuilder_ == null) {
if (account_ != null) {
account_ =
org.onflow.protobuf.entities.AccountOuterClass.Account.newBuilder(account_).mergeFrom(value).buildPartial();
} else {
account_ = value;
}
onChanged();
} else {
accountBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Account account = 1;
*/
public Builder clearAccount() {
if (accountBuilder_ == null) {
account_ = null;
onChanged();
} else {
account_ = null;
accountBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Account account = 1;
*/
public org.onflow.protobuf.entities.AccountOuterClass.Account.Builder getAccountBuilder() {
onChanged();
return getAccountFieldBuilder().getBuilder();
}
/**
* .flow.entities.Account account = 1;
*/
public org.onflow.protobuf.entities.AccountOuterClass.AccountOrBuilder getAccountOrBuilder() {
if (accountBuilder_ != null) {
return accountBuilder_.getMessageOrBuilder();
} else {
return account_ == null ?
org.onflow.protobuf.entities.AccountOuterClass.Account.getDefaultInstance() : account_;
}
}
/**
* .flow.entities.Account account = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.AccountOuterClass.Account, org.onflow.protobuf.entities.AccountOuterClass.Account.Builder, org.onflow.protobuf.entities.AccountOuterClass.AccountOrBuilder>
getAccountFieldBuilder() {
if (accountBuilder_ == null) {
accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.AccountOuterClass.Account, org.onflow.protobuf.entities.AccountOuterClass.Account.Builder, org.onflow.protobuf.entities.AccountOuterClass.AccountOrBuilder>(
getAccount(),
getParentForChildren(),
isClean());
account_ = null;
}
return accountBuilder_;
}
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder> metadataBuilder_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder mergeMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
@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.access.AccountResponse)
}
// @@protoc_insertion_point(class_scope:flow.access.AccountResponse)
private static final org.onflow.protobuf.access.Access.AccountResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.AccountResponse();
}
public static org.onflow.protobuf.access.Access.AccountResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AccountResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AccountResponse(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.access.Access.AccountResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetAccountAtBlockHeightRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetAccountAtBlockHeightRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
/**
* uint64 block_height = 2;
* @return The blockHeight.
*/
long getBlockHeight();
}
/**
* Protobuf type {@code flow.access.GetAccountAtBlockHeightRequest}
*/
public static final class GetAccountAtBlockHeightRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetAccountAtBlockHeightRequest)
GetAccountAtBlockHeightRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetAccountAtBlockHeightRequest.newBuilder() to construct.
private GetAccountAtBlockHeightRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetAccountAtBlockHeightRequest() {
address_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetAccountAtBlockHeightRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetAccountAtBlockHeightRequest(
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: {
address_ = input.readBytes();
break;
}
case 16: {
blockHeight_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountAtBlockHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountAtBlockHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest.class, org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString address_;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
public static final int BLOCK_HEIGHT_FIELD_NUMBER = 2;
private long blockHeight_;
/**
* uint64 block_height = 2;
* @return The blockHeight.
*/
@java.lang.Override
public long getBlockHeight() {
return blockHeight_;
}
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_);
}
if (blockHeight_ != 0L) {
output.writeUInt64(2, blockHeight_);
}
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_);
}
if (blockHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, blockHeight_);
}
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.access.Access.GetAccountAtBlockHeightRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest other = (org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (getBlockHeight()
!= other.getBlockHeight()) 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();
hash = (37 * hash) + BLOCK_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockHeight());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest 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.access.Access.GetAccountAtBlockHeightRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest 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.access.Access.GetAccountAtBlockHeightRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest 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.access.Access.GetAccountAtBlockHeightRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest 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.access.Access.GetAccountAtBlockHeightRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest 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.access.Access.GetAccountAtBlockHeightRequest 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.access.GetAccountAtBlockHeightRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetAccountAtBlockHeightRequest)
org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountAtBlockHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountAtBlockHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest.class, org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest.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();
address_ = com.google.protobuf.ByteString.EMPTY;
blockHeight_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetAccountAtBlockHeightRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest build() {
org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest buildPartial() {
org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest result = new org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest(this);
result.address_ = address_;
result.blockHeight_ = blockHeight_;
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.access.Access.GetAccountAtBlockHeightRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest other) {
if (other == org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
if (other.getBlockHeight() != 0L) {
setBlockHeight(other.getBlockHeight());
}
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.access.Access.GetAccountAtBlockHeightRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* 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;
}
/**
* bytes address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
private long blockHeight_ ;
/**
* uint64 block_height = 2;
* @return The blockHeight.
*/
@java.lang.Override
public long getBlockHeight() {
return blockHeight_;
}
/**
* 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;
}
/**
* uint64 block_height = 2;
* @return This builder for chaining.
*/
public Builder clearBlockHeight() {
blockHeight_ = 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.access.GetAccountAtBlockHeightRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetAccountAtBlockHeightRequest)
private static final org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest();
}
public static org.onflow.protobuf.access.Access.GetAccountAtBlockHeightRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetAccountAtBlockHeightRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetAccountAtBlockHeightRequest(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.access.Access.GetAccountAtBlockHeightRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteScriptAtLatestBlockRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.ExecuteScriptAtLatestBlockRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes script = 1;
* @return The script.
*/
com.google.protobuf.ByteString getScript();
/**
* repeated bytes arguments = 2;
* @return A list containing the arguments.
*/
java.util.List getArgumentsList();
/**
* repeated bytes arguments = 2;
* @return The count of arguments.
*/
int getArgumentsCount();
/**
* repeated bytes arguments = 2;
* @param index The index of the element to return.
* @return The arguments at the given index.
*/
com.google.protobuf.ByteString getArguments(int index);
}
/**
* Protobuf type {@code flow.access.ExecuteScriptAtLatestBlockRequest}
*/
public static final class ExecuteScriptAtLatestBlockRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.ExecuteScriptAtLatestBlockRequest)
ExecuteScriptAtLatestBlockRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteScriptAtLatestBlockRequest.newBuilder() to construct.
private ExecuteScriptAtLatestBlockRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteScriptAtLatestBlockRequest() {
script_ = com.google.protobuf.ByteString.EMPTY;
arguments_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteScriptAtLatestBlockRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecuteScriptAtLatestBlockRequest(
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: {
script_ = input.readBytes();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
arguments_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
arguments_.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)) {
arguments_ = java.util.Collections.unmodifiableList(arguments_); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptAtLatestBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptAtLatestBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest.class, org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest.Builder.class);
}
public static final int SCRIPT_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString script_;
/**
* bytes script = 1;
* @return The script.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScript() {
return script_;
}
public static final int ARGUMENTS_FIELD_NUMBER = 2;
private java.util.List arguments_;
/**
* repeated bytes arguments = 2;
* @return A list containing the arguments.
*/
@java.lang.Override
public java.util.List
getArgumentsList() {
return arguments_;
}
/**
* repeated bytes arguments = 2;
* @return The count of arguments.
*/
public int getArgumentsCount() {
return arguments_.size();
}
/**
* repeated bytes arguments = 2;
* @param index The index of the element to return.
* @return The arguments at the given index.
*/
public com.google.protobuf.ByteString getArguments(int index) {
return arguments_.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 (!script_.isEmpty()) {
output.writeBytes(1, script_);
}
for (int i = 0; i < arguments_.size(); i++) {
output.writeBytes(2, arguments_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!script_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, script_);
}
{
int dataSize = 0;
for (int i = 0; i < arguments_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(arguments_.get(i));
}
size += dataSize;
size += 1 * getArgumentsList().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.access.Access.ExecuteScriptAtLatestBlockRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest other = (org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest) obj;
if (!getScript()
.equals(other.getScript())) return false;
if (!getArgumentsList()
.equals(other.getArgumentsList())) 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) + SCRIPT_FIELD_NUMBER;
hash = (53 * hash) + getScript().hashCode();
if (getArgumentsCount() > 0) {
hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
hash = (53 * hash) + getArgumentsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest 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.access.Access.ExecuteScriptAtLatestBlockRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest 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.access.Access.ExecuteScriptAtLatestBlockRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest 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.access.Access.ExecuteScriptAtLatestBlockRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest 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.access.Access.ExecuteScriptAtLatestBlockRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest 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.access.Access.ExecuteScriptAtLatestBlockRequest 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.access.ExecuteScriptAtLatestBlockRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.ExecuteScriptAtLatestBlockRequest)
org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptAtLatestBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptAtLatestBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest.class, org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest.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();
script_ = com.google.protobuf.ByteString.EMPTY;
arguments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptAtLatestBlockRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest build() {
org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest buildPartial() {
org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest result = new org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest(this);
int from_bitField0_ = bitField0_;
result.script_ = script_;
if (((bitField0_ & 0x00000001) != 0)) {
arguments_ = java.util.Collections.unmodifiableList(arguments_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.arguments_ = arguments_;
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.access.Access.ExecuteScriptAtLatestBlockRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest other) {
if (other == org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest.getDefaultInstance()) return this;
if (other.getScript() != com.google.protobuf.ByteString.EMPTY) {
setScript(other.getScript());
}
if (!other.arguments_.isEmpty()) {
if (arguments_.isEmpty()) {
arguments_ = other.arguments_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureArgumentsIsMutable();
arguments_.addAll(other.arguments_);
}
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.access.Access.ExecuteScriptAtLatestBlockRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString script_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes script = 1;
* @return The script.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScript() {
return script_;
}
/**
* bytes script = 1;
* @param value The script to set.
* @return This builder for chaining.
*/
public Builder setScript(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
script_ = value;
onChanged();
return this;
}
/**
* bytes script = 1;
* @return This builder for chaining.
*/
public Builder clearScript() {
script_ = getDefaultInstance().getScript();
onChanged();
return this;
}
private java.util.List arguments_ = java.util.Collections.emptyList();
private void ensureArgumentsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
arguments_ = new java.util.ArrayList(arguments_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes arguments = 2;
* @return A list containing the arguments.
*/
public java.util.List
getArgumentsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(arguments_) : arguments_;
}
/**
* repeated bytes arguments = 2;
* @return The count of arguments.
*/
public int getArgumentsCount() {
return arguments_.size();
}
/**
* repeated bytes arguments = 2;
* @param index The index of the element to return.
* @return The arguments at the given index.
*/
public com.google.protobuf.ByteString getArguments(int index) {
return arguments_.get(index);
}
/**
* repeated bytes arguments = 2;
* @param index The index to set the value at.
* @param value The arguments to set.
* @return This builder for chaining.
*/
public Builder setArguments(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes arguments = 2;
* @param value The arguments to add.
* @return This builder for chaining.
*/
public Builder addArguments(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.add(value);
onChanged();
return this;
}
/**
* repeated bytes arguments = 2;
* @param values The arguments to add.
* @return This builder for chaining.
*/
public Builder addAllArguments(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureArgumentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, arguments_);
onChanged();
return this;
}
/**
* repeated bytes arguments = 2;
* @return This builder for chaining.
*/
public Builder clearArguments() {
arguments_ = 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.access.ExecuteScriptAtLatestBlockRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.ExecuteScriptAtLatestBlockRequest)
private static final org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest();
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtLatestBlockRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteScriptAtLatestBlockRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteScriptAtLatestBlockRequest(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.access.Access.ExecuteScriptAtLatestBlockRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteScriptAtBlockIDRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.ExecuteScriptAtBlockIDRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes block_id = 1;
* @return The blockId.
*/
com.google.protobuf.ByteString getBlockId();
/**
* bytes script = 2;
* @return The script.
*/
com.google.protobuf.ByteString getScript();
/**
* repeated bytes arguments = 3;
* @return A list containing the arguments.
*/
java.util.List getArgumentsList();
/**
* repeated bytes arguments = 3;
* @return The count of arguments.
*/
int getArgumentsCount();
/**
* repeated bytes arguments = 3;
* @param index The index of the element to return.
* @return The arguments at the given index.
*/
com.google.protobuf.ByteString getArguments(int index);
}
/**
* Protobuf type {@code flow.access.ExecuteScriptAtBlockIDRequest}
*/
public static final class ExecuteScriptAtBlockIDRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.ExecuteScriptAtBlockIDRequest)
ExecuteScriptAtBlockIDRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteScriptAtBlockIDRequest.newBuilder() to construct.
private ExecuteScriptAtBlockIDRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteScriptAtBlockIDRequest() {
blockId_ = com.google.protobuf.ByteString.EMPTY;
script_ = com.google.protobuf.ByteString.EMPTY;
arguments_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteScriptAtBlockIDRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecuteScriptAtBlockIDRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
blockId_ = input.readBytes();
break;
}
case 18: {
script_ = input.readBytes();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
arguments_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
arguments_.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)) {
arguments_ = java.util.Collections.unmodifiableList(arguments_); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptAtBlockIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptAtBlockIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest.class, org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest.Builder.class);
}
public static final int BLOCK_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString blockId_;
/**
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
public static final int SCRIPT_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString script_;
/**
* bytes script = 2;
* @return The script.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScript() {
return script_;
}
public static final int ARGUMENTS_FIELD_NUMBER = 3;
private java.util.List arguments_;
/**
* repeated bytes arguments = 3;
* @return A list containing the arguments.
*/
@java.lang.Override
public java.util.List
getArgumentsList() {
return arguments_;
}
/**
* repeated bytes arguments = 3;
* @return The count of arguments.
*/
public int getArgumentsCount() {
return arguments_.size();
}
/**
* repeated bytes arguments = 3;
* @param index The index of the element to return.
* @return The arguments at the given index.
*/
public com.google.protobuf.ByteString getArguments(int index) {
return arguments_.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 (!script_.isEmpty()) {
output.writeBytes(2, script_);
}
for (int i = 0; i < arguments_.size(); i++) {
output.writeBytes(3, arguments_.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 (!script_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, script_);
}
{
int dataSize = 0;
for (int i = 0; i < arguments_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(arguments_.get(i));
}
size += dataSize;
size += 1 * getArgumentsList().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.access.Access.ExecuteScriptAtBlockIDRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest other = (org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest) obj;
if (!getBlockId()
.equals(other.getBlockId())) return false;
if (!getScript()
.equals(other.getScript())) return false;
if (!getArgumentsList()
.equals(other.getArgumentsList())) 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) + SCRIPT_FIELD_NUMBER;
hash = (53 * hash) + getScript().hashCode();
if (getArgumentsCount() > 0) {
hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
hash = (53 * hash) + getArgumentsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest 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.access.Access.ExecuteScriptAtBlockIDRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest 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.access.Access.ExecuteScriptAtBlockIDRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest 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.access.Access.ExecuteScriptAtBlockIDRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest 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.access.Access.ExecuteScriptAtBlockIDRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest 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.access.Access.ExecuteScriptAtBlockIDRequest 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.access.ExecuteScriptAtBlockIDRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.ExecuteScriptAtBlockIDRequest)
org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptAtBlockIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptAtBlockIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest.class, org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest.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;
script_ = com.google.protobuf.ByteString.EMPTY;
arguments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptAtBlockIDRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest build() {
org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest buildPartial() {
org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest result = new org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest(this);
int from_bitField0_ = bitField0_;
result.blockId_ = blockId_;
result.script_ = script_;
if (((bitField0_ & 0x00000001) != 0)) {
arguments_ = java.util.Collections.unmodifiableList(arguments_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.arguments_ = arguments_;
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.access.Access.ExecuteScriptAtBlockIDRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest other) {
if (other == org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest.getDefaultInstance()) return this;
if (other.getBlockId() != com.google.protobuf.ByteString.EMPTY) {
setBlockId(other.getBlockId());
}
if (other.getScript() != com.google.protobuf.ByteString.EMPTY) {
setScript(other.getScript());
}
if (!other.arguments_.isEmpty()) {
if (arguments_.isEmpty()) {
arguments_ = other.arguments_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureArgumentsIsMutable();
arguments_.addAll(other.arguments_);
}
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.access.Access.ExecuteScriptAtBlockIDRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest) 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;
/**
* bytes block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockId() {
return blockId_;
}
/**
* 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;
}
/**
* bytes block_id = 1;
* @return This builder for chaining.
*/
public Builder clearBlockId() {
blockId_ = getDefaultInstance().getBlockId();
onChanged();
return this;
}
private com.google.protobuf.ByteString script_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes script = 2;
* @return The script.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScript() {
return script_;
}
/**
* bytes script = 2;
* @param value The script to set.
* @return This builder for chaining.
*/
public Builder setScript(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
script_ = value;
onChanged();
return this;
}
/**
* bytes script = 2;
* @return This builder for chaining.
*/
public Builder clearScript() {
script_ = getDefaultInstance().getScript();
onChanged();
return this;
}
private java.util.List arguments_ = java.util.Collections.emptyList();
private void ensureArgumentsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
arguments_ = new java.util.ArrayList(arguments_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes arguments = 3;
* @return A list containing the arguments.
*/
public java.util.List
getArgumentsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(arguments_) : arguments_;
}
/**
* repeated bytes arguments = 3;
* @return The count of arguments.
*/
public int getArgumentsCount() {
return arguments_.size();
}
/**
* repeated bytes arguments = 3;
* @param index The index of the element to return.
* @return The arguments at the given index.
*/
public com.google.protobuf.ByteString getArguments(int index) {
return arguments_.get(index);
}
/**
* repeated bytes arguments = 3;
* @param index The index to set the value at.
* @param value The arguments to set.
* @return This builder for chaining.
*/
public Builder setArguments(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes arguments = 3;
* @param value The arguments to add.
* @return This builder for chaining.
*/
public Builder addArguments(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.add(value);
onChanged();
return this;
}
/**
* repeated bytes arguments = 3;
* @param values The arguments to add.
* @return This builder for chaining.
*/
public Builder addAllArguments(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureArgumentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, arguments_);
onChanged();
return this;
}
/**
* repeated bytes arguments = 3;
* @return This builder for chaining.
*/
public Builder clearArguments() {
arguments_ = 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.access.ExecuteScriptAtBlockIDRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.ExecuteScriptAtBlockIDRequest)
private static final org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest();
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockIDRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteScriptAtBlockIDRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteScriptAtBlockIDRequest(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.access.Access.ExecuteScriptAtBlockIDRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteScriptAtBlockHeightRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.ExecuteScriptAtBlockHeightRequest)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 block_height = 1;
* @return The blockHeight.
*/
long getBlockHeight();
/**
* bytes script = 2;
* @return The script.
*/
com.google.protobuf.ByteString getScript();
/**
* repeated bytes arguments = 3;
* @return A list containing the arguments.
*/
java.util.List getArgumentsList();
/**
* repeated bytes arguments = 3;
* @return The count of arguments.
*/
int getArgumentsCount();
/**
* repeated bytes arguments = 3;
* @param index The index of the element to return.
* @return The arguments at the given index.
*/
com.google.protobuf.ByteString getArguments(int index);
}
/**
* Protobuf type {@code flow.access.ExecuteScriptAtBlockHeightRequest}
*/
public static final class ExecuteScriptAtBlockHeightRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.ExecuteScriptAtBlockHeightRequest)
ExecuteScriptAtBlockHeightRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteScriptAtBlockHeightRequest.newBuilder() to construct.
private ExecuteScriptAtBlockHeightRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteScriptAtBlockHeightRequest() {
script_ = com.google.protobuf.ByteString.EMPTY;
arguments_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteScriptAtBlockHeightRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecuteScriptAtBlockHeightRequest(
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: {
script_ = input.readBytes();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
arguments_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
arguments_.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)) {
arguments_ = java.util.Collections.unmodifiableList(arguments_); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptAtBlockHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptAtBlockHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest.class, org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest.Builder.class);
}
public static final int BLOCK_HEIGHT_FIELD_NUMBER = 1;
private long blockHeight_;
/**
* uint64 block_height = 1;
* @return The blockHeight.
*/
@java.lang.Override
public long getBlockHeight() {
return blockHeight_;
}
public static final int SCRIPT_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString script_;
/**
* bytes script = 2;
* @return The script.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScript() {
return script_;
}
public static final int ARGUMENTS_FIELD_NUMBER = 3;
private java.util.List arguments_;
/**
* repeated bytes arguments = 3;
* @return A list containing the arguments.
*/
@java.lang.Override
public java.util.List
getArgumentsList() {
return arguments_;
}
/**
* repeated bytes arguments = 3;
* @return The count of arguments.
*/
public int getArgumentsCount() {
return arguments_.size();
}
/**
* repeated bytes arguments = 3;
* @param index The index of the element to return.
* @return The arguments at the given index.
*/
public com.google.protobuf.ByteString getArguments(int index) {
return arguments_.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_);
}
if (!script_.isEmpty()) {
output.writeBytes(2, script_);
}
for (int i = 0; i < arguments_.size(); i++) {
output.writeBytes(3, arguments_.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_);
}
if (!script_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, script_);
}
{
int dataSize = 0;
for (int i = 0; i < arguments_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(arguments_.get(i));
}
size += dataSize;
size += 1 * getArgumentsList().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.access.Access.ExecuteScriptAtBlockHeightRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest other = (org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest) obj;
if (getBlockHeight()
!= other.getBlockHeight()) return false;
if (!getScript()
.equals(other.getScript())) return false;
if (!getArgumentsList()
.equals(other.getArgumentsList())) 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());
hash = (37 * hash) + SCRIPT_FIELD_NUMBER;
hash = (53 * hash) + getScript().hashCode();
if (getArgumentsCount() > 0) {
hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
hash = (53 * hash) + getArgumentsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest 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.access.Access.ExecuteScriptAtBlockHeightRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest 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.access.Access.ExecuteScriptAtBlockHeightRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest 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.access.Access.ExecuteScriptAtBlockHeightRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest 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.access.Access.ExecuteScriptAtBlockHeightRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest 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.access.Access.ExecuteScriptAtBlockHeightRequest 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.access.ExecuteScriptAtBlockHeightRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.ExecuteScriptAtBlockHeightRequest)
org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptAtBlockHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptAtBlockHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest.class, org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest.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;
script_ = com.google.protobuf.ByteString.EMPTY;
arguments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptAtBlockHeightRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest build() {
org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest buildPartial() {
org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest result = new org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest(this);
int from_bitField0_ = bitField0_;
result.blockHeight_ = blockHeight_;
result.script_ = script_;
if (((bitField0_ & 0x00000001) != 0)) {
arguments_ = java.util.Collections.unmodifiableList(arguments_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.arguments_ = arguments_;
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.access.Access.ExecuteScriptAtBlockHeightRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest other) {
if (other == org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest.getDefaultInstance()) return this;
if (other.getBlockHeight() != 0L) {
setBlockHeight(other.getBlockHeight());
}
if (other.getScript() != com.google.protobuf.ByteString.EMPTY) {
setScript(other.getScript());
}
if (!other.arguments_.isEmpty()) {
if (arguments_.isEmpty()) {
arguments_ = other.arguments_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureArgumentsIsMutable();
arguments_.addAll(other.arguments_);
}
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.access.Access.ExecuteScriptAtBlockHeightRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long blockHeight_ ;
/**
* uint64 block_height = 1;
* @return The blockHeight.
*/
@java.lang.Override
public long getBlockHeight() {
return blockHeight_;
}
/**
* 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;
}
/**
* uint64 block_height = 1;
* @return This builder for chaining.
*/
public Builder clearBlockHeight() {
blockHeight_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString script_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes script = 2;
* @return The script.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScript() {
return script_;
}
/**
* bytes script = 2;
* @param value The script to set.
* @return This builder for chaining.
*/
public Builder setScript(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
script_ = value;
onChanged();
return this;
}
/**
* bytes script = 2;
* @return This builder for chaining.
*/
public Builder clearScript() {
script_ = getDefaultInstance().getScript();
onChanged();
return this;
}
private java.util.List arguments_ = java.util.Collections.emptyList();
private void ensureArgumentsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
arguments_ = new java.util.ArrayList(arguments_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes arguments = 3;
* @return A list containing the arguments.
*/
public java.util.List
getArgumentsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(arguments_) : arguments_;
}
/**
* repeated bytes arguments = 3;
* @return The count of arguments.
*/
public int getArgumentsCount() {
return arguments_.size();
}
/**
* repeated bytes arguments = 3;
* @param index The index of the element to return.
* @return The arguments at the given index.
*/
public com.google.protobuf.ByteString getArguments(int index) {
return arguments_.get(index);
}
/**
* repeated bytes arguments = 3;
* @param index The index to set the value at.
* @param value The arguments to set.
* @return This builder for chaining.
*/
public Builder setArguments(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes arguments = 3;
* @param value The arguments to add.
* @return This builder for chaining.
*/
public Builder addArguments(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.add(value);
onChanged();
return this;
}
/**
* repeated bytes arguments = 3;
* @param values The arguments to add.
* @return This builder for chaining.
*/
public Builder addAllArguments(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureArgumentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, arguments_);
onChanged();
return this;
}
/**
* repeated bytes arguments = 3;
* @return This builder for chaining.
*/
public Builder clearArguments() {
arguments_ = 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.access.ExecuteScriptAtBlockHeightRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.ExecuteScriptAtBlockHeightRequest)
private static final org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest();
}
public static org.onflow.protobuf.access.Access.ExecuteScriptAtBlockHeightRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteScriptAtBlockHeightRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteScriptAtBlockHeightRequest(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.access.Access.ExecuteScriptAtBlockHeightRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteScriptResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.ExecuteScriptResponse)
com.google.protobuf.MessageOrBuilder {
/**
* bytes value = 1;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata();
/**
* .flow.entities.Metadata metadata = 2;
*/
org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder();
/**
* uint64 computation_usage = 3;
* @return The computationUsage.
*/
long getComputationUsage();
}
/**
* Protobuf type {@code flow.access.ExecuteScriptResponse}
*/
public static final class ExecuteScriptResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.ExecuteScriptResponse)
ExecuteScriptResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteScriptResponse.newBuilder() to construct.
private ExecuteScriptResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteScriptResponse() {
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteScriptResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecuteScriptResponse(
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: {
value_ = input.readBytes();
break;
}
case 18: {
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.onflow.protobuf.entities.MetadataOuterClass.Metadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
break;
}
case 24: {
computationUsage_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.ExecuteScriptResponse.class, org.onflow.protobuf.access.Access.ExecuteScriptResponse.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString value_;
/**
* bytes value = 1;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int METADATA_FIELD_NUMBER = 2;
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
@java.lang.Override
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
public static final int COMPUTATION_USAGE_FIELD_NUMBER = 3;
private long computationUsage_;
/**
* uint64 computation_usage = 3;
* @return The computationUsage.
*/
@java.lang.Override
public long getComputationUsage() {
return computationUsage_;
}
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 (!value_.isEmpty()) {
output.writeBytes(1, value_);
}
if (metadata_ != null) {
output.writeMessage(2, getMetadata());
}
if (computationUsage_ != 0L) {
output.writeUInt64(3, computationUsage_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, value_);
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetadata());
}
if (computationUsage_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, computationUsage_);
}
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.access.Access.ExecuteScriptResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.ExecuteScriptResponse other = (org.onflow.protobuf.access.Access.ExecuteScriptResponse) obj;
if (!getValue()
.equals(other.getValue())) return false;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (getComputationUsage()
!= other.getComputationUsage()) 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) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (37 * hash) + COMPUTATION_USAGE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getComputationUsage());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.access.Access.ExecuteScriptResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptResponse 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.access.Access.ExecuteScriptResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptResponse 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.access.Access.ExecuteScriptResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptResponse 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.access.Access.ExecuteScriptResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptResponse 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.access.Access.ExecuteScriptResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.ExecuteScriptResponse 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.access.Access.ExecuteScriptResponse 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.access.ExecuteScriptResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.ExecuteScriptResponse)
org.onflow.protobuf.access.Access.ExecuteScriptResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.ExecuteScriptResponse.class, org.onflow.protobuf.access.Access.ExecuteScriptResponse.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.ExecuteScriptResponse.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();
value_ = com.google.protobuf.ByteString.EMPTY;
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
computationUsage_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_ExecuteScriptResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.ExecuteScriptResponse getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.ExecuteScriptResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.ExecuteScriptResponse build() {
org.onflow.protobuf.access.Access.ExecuteScriptResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.ExecuteScriptResponse buildPartial() {
org.onflow.protobuf.access.Access.ExecuteScriptResponse result = new org.onflow.protobuf.access.Access.ExecuteScriptResponse(this);
result.value_ = value_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
result.computationUsage_ = computationUsage_;
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.access.Access.ExecuteScriptResponse) {
return mergeFrom((org.onflow.protobuf.access.Access.ExecuteScriptResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.ExecuteScriptResponse other) {
if (other == org.onflow.protobuf.access.Access.ExecuteScriptResponse.getDefaultInstance()) return this;
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.getComputationUsage() != 0L) {
setComputationUsage(other.getComputationUsage());
}
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.access.Access.ExecuteScriptResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.ExecuteScriptResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 1;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* bytes value = 1;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* bytes value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private org.onflow.protobuf.entities.MetadataOuterClass.Metadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder> metadataBuilder_;
/**
* .flow.entities.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* .flow.entities.Metadata metadata = 2;
* @return The metadata.
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder setMetadata(
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder mergeMetadata(org.onflow.protobuf.entities.MetadataOuterClass.Metadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* .flow.entities.Metadata metadata = 2;
*/
public org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.onflow.protobuf.entities.MetadataOuterClass.Metadata.getDefaultInstance() : metadata_;
}
}
/**
* .flow.entities.Metadata metadata = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.entities.MetadataOuterClass.Metadata, org.onflow.protobuf.entities.MetadataOuterClass.Metadata.Builder, org.onflow.protobuf.entities.MetadataOuterClass.MetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private long computationUsage_ ;
/**
* uint64 computation_usage = 3;
* @return The computationUsage.
*/
@java.lang.Override
public long getComputationUsage() {
return computationUsage_;
}
/**
* uint64 computation_usage = 3;
* @param value The computationUsage to set.
* @return This builder for chaining.
*/
public Builder setComputationUsage(long value) {
computationUsage_ = value;
onChanged();
return this;
}
/**
* uint64 computation_usage = 3;
* @return This builder for chaining.
*/
public Builder clearComputationUsage() {
computationUsage_ = 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.access.ExecuteScriptResponse)
}
// @@protoc_insertion_point(class_scope:flow.access.ExecuteScriptResponse)
private static final org.onflow.protobuf.access.Access.ExecuteScriptResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.ExecuteScriptResponse();
}
public static org.onflow.protobuf.access.Access.ExecuteScriptResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteScriptResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteScriptResponse(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.access.Access.ExecuteScriptResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetEventsForHeightRangeRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetEventsForHeightRangeRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string type = 1;
* @return The type.
*/
java.lang.String getType();
/**
* string type = 1;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
* uint64 start_height = 2;
* @return The startHeight.
*/
long getStartHeight();
/**
* uint64 end_height = 3;
* @return The endHeight.
*/
long getEndHeight();
/**
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
* .flow.entities.EventEncodingVersion event_encoding_version = 4;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
* Protobuf type {@code flow.access.GetEventsForHeightRangeRequest}
*/
public static final class GetEventsForHeightRangeRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetEventsForHeightRangeRequest)
GetEventsForHeightRangeRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetEventsForHeightRangeRequest.newBuilder() to construct.
private GetEventsForHeightRangeRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetEventsForHeightRangeRequest() {
type_ = "";
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetEventsForHeightRangeRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetEventsForHeightRangeRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
type_ = s;
break;
}
case 16: {
startHeight_ = input.readUInt64();
break;
}
case 24: {
endHeight_ = 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.access.Access.internal_static_flow_access_GetEventsForHeightRangeRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetEventsForHeightRangeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest.class, org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object type_;
/**
* string type = 1;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
}
}
/**
* string type = 1;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int START_HEIGHT_FIELD_NUMBER = 2;
private long startHeight_;
/**
* uint64 start_height = 2;
* @return The startHeight.
*/
@java.lang.Override
public long getStartHeight() {
return startHeight_;
}
public static final int END_HEIGHT_FIELD_NUMBER = 3;
private long endHeight_;
/**
* uint64 end_height = 3;
* @return The endHeight.
*/
@java.lang.Override
public long getEndHeight() {
return endHeight_;
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 4;
private int eventEncodingVersion_;
/**
* .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_;
}
/**
* .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 (!getTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
if (startHeight_ != 0L) {
output.writeUInt64(2, startHeight_);
}
if (endHeight_ != 0L) {
output.writeUInt64(3, endHeight_);
}
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 (!getTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
if (startHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, startHeight_);
}
if (endHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, endHeight_);
}
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.access.Access.GetEventsForHeightRangeRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest other = (org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest) obj;
if (!getType()
.equals(other.getType())) return false;
if (getStartHeight()
!= other.getStartHeight()) return false;
if (getEndHeight()
!= other.getEndHeight()) 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) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (37 * hash) + START_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartHeight());
hash = (37 * hash) + END_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndHeight());
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.access.Access.GetEventsForHeightRangeRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest 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.access.Access.GetEventsForHeightRangeRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest 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.access.Access.GetEventsForHeightRangeRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest 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.access.Access.GetEventsForHeightRangeRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest 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.access.Access.GetEventsForHeightRangeRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest 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.access.Access.GetEventsForHeightRangeRequest 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.access.GetEventsForHeightRangeRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetEventsForHeightRangeRequest)
org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetEventsForHeightRangeRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetEventsForHeightRangeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest.class, org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = "";
startHeight_ = 0L;
endHeight_ = 0L;
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetEventsForHeightRangeRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest build() {
org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest buildPartial() {
org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest result = new org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest(this);
result.type_ = type_;
result.startHeight_ = startHeight_;
result.endHeight_ = endHeight_;
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.access.Access.GetEventsForHeightRangeRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest other) {
if (other == org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest.getDefaultInstance()) return this;
if (!other.getType().isEmpty()) {
type_ = other.type_;
onChanged();
}
if (other.getStartHeight() != 0L) {
setStartHeight(other.getStartHeight());
}
if (other.getEndHeight() != 0L) {
setEndHeight(other.getEndHeight());
}
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.access.Access.GetEventsForHeightRangeRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object type_ = "";
/**
* string type = 1;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string type = 1;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
* string type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
* string type = 1;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
private long startHeight_ ;
/**
* uint64 start_height = 2;
* @return The startHeight.
*/
@java.lang.Override
public long getStartHeight() {
return startHeight_;
}
/**
* uint64 start_height = 2;
* @param value The startHeight to set.
* @return This builder for chaining.
*/
public Builder setStartHeight(long value) {
startHeight_ = value;
onChanged();
return this;
}
/**
* uint64 start_height = 2;
* @return This builder for chaining.
*/
public Builder clearStartHeight() {
startHeight_ = 0L;
onChanged();
return this;
}
private long endHeight_ ;
/**
* uint64 end_height = 3;
* @return The endHeight.
*/
@java.lang.Override
public long getEndHeight() {
return endHeight_;
}
/**
* uint64 end_height = 3;
* @param value The endHeight to set.
* @return This builder for chaining.
*/
public Builder setEndHeight(long value) {
endHeight_ = value;
onChanged();
return this;
}
/**
* uint64 end_height = 3;
* @return This builder for chaining.
*/
public Builder clearEndHeight() {
endHeight_ = 0L;
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
* .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_;
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .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.access.GetEventsForHeightRangeRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetEventsForHeightRangeRequest)
private static final org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest();
}
public static org.onflow.protobuf.access.Access.GetEventsForHeightRangeRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetEventsForHeightRangeRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetEventsForHeightRangeRequest(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.access.Access.GetEventsForHeightRangeRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetEventsForBlockIDsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.GetEventsForBlockIDsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string type = 1;
* @return The type.
*/
java.lang.String getType();
/**
* string type = 1;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
* repeated bytes block_ids = 2;
* @return A list containing the blockIds.
*/
java.util.List getBlockIdsList();
/**
* repeated bytes block_ids = 2;
* @return The count of blockIds.
*/
int getBlockIdsCount();
/**
* repeated bytes block_ids = 2;
* @param index The index of the element to return.
* @return The blockIds at the given index.
*/
com.google.protobuf.ByteString getBlockIds(int index);
/**
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The enum numeric value on the wire for eventEncodingVersion.
*/
int getEventEncodingVersionValue();
/**
* .flow.entities.EventEncodingVersion event_encoding_version = 3;
* @return The eventEncodingVersion.
*/
org.onflow.protobuf.entities.EventOuterClass.EventEncodingVersion getEventEncodingVersion();
}
/**
* Protobuf type {@code flow.access.GetEventsForBlockIDsRequest}
*/
public static final class GetEventsForBlockIDsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flow.access.GetEventsForBlockIDsRequest)
GetEventsForBlockIDsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetEventsForBlockIDsRequest.newBuilder() to construct.
private GetEventsForBlockIDsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetEventsForBlockIDsRequest() {
type_ = "";
blockIds_ = java.util.Collections.emptyList();
eventEncodingVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetEventsForBlockIDsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetEventsForBlockIDsRequest(
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();
type_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
blockIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
blockIds_.add(input.readBytes());
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
blockIds_ = java.util.Collections.unmodifiableList(blockIds_); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetEventsForBlockIDsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetEventsForBlockIDsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest.class, org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object type_;
/**
* string type = 1;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
}
}
/**
* string type = 1;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BLOCK_IDS_FIELD_NUMBER = 2;
private java.util.List blockIds_;
/**
* repeated bytes block_ids = 2;
* @return A list containing the blockIds.
*/
@java.lang.Override
public java.util.List
getBlockIdsList() {
return blockIds_;
}
/**
* repeated bytes block_ids = 2;
* @return The count of blockIds.
*/
public int getBlockIdsCount() {
return blockIds_.size();
}
/**
* repeated bytes block_ids = 2;
* @param index The index of the element to return.
* @return The blockIds at the given index.
*/
public com.google.protobuf.ByteString getBlockIds(int index) {
return blockIds_.get(index);
}
public static final int EVENT_ENCODING_VERSION_FIELD_NUMBER = 3;
private int eventEncodingVersion_;
/**
* .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_;
}
/**
* .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 (!getTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
for (int i = 0; i < blockIds_.size(); i++) {
output.writeBytes(2, blockIds_.get(i));
}
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 (!getTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
{
int dataSize = 0;
for (int i = 0; i < blockIds_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(blockIds_.get(i));
}
size += dataSize;
size += 1 * getBlockIdsList().size();
}
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.access.Access.GetEventsForBlockIDsRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest other = (org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest) obj;
if (!getType()
.equals(other.getType())) return false;
if (!getBlockIdsList()
.equals(other.getBlockIdsList())) 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) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
if (getBlockIdsCount() > 0) {
hash = (37 * hash) + BLOCK_IDS_FIELD_NUMBER;
hash = (53 * hash) + getBlockIdsList().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.access.Access.GetEventsForBlockIDsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest 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.access.Access.GetEventsForBlockIDsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest 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.access.Access.GetEventsForBlockIDsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest 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.access.Access.GetEventsForBlockIDsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest 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.access.Access.GetEventsForBlockIDsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest 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.access.Access.GetEventsForBlockIDsRequest 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.access.GetEventsForBlockIDsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flow.access.GetEventsForBlockIDsRequest)
org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetEventsForBlockIDsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetEventsForBlockIDsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest.class, org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest.Builder.class);
}
// Construct using org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = "";
blockIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
eventEncodingVersion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.access.Access.internal_static_flow_access_GetEventsForBlockIDsRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest getDefaultInstanceForType() {
return org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest build() {
org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest buildPartial() {
org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest result = new org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest(this);
int from_bitField0_ = bitField0_;
result.type_ = type_;
if (((bitField0_ & 0x00000001) != 0)) {
blockIds_ = java.util.Collections.unmodifiableList(blockIds_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.blockIds_ = blockIds_;
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.access.Access.GetEventsForBlockIDsRequest) {
return mergeFrom((org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest other) {
if (other == org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest.getDefaultInstance()) return this;
if (!other.getType().isEmpty()) {
type_ = other.type_;
onChanged();
}
if (!other.blockIds_.isEmpty()) {
if (blockIds_.isEmpty()) {
blockIds_ = other.blockIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBlockIdsIsMutable();
blockIds_.addAll(other.blockIds_);
}
onChanged();
}
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.access.Access.GetEventsForBlockIDsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object type_ = "";
/**
* string type = 1;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string type = 1;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
* string type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
* string type = 1;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
private java.util.List blockIds_ = java.util.Collections.emptyList();
private void ensureBlockIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
blockIds_ = new java.util.ArrayList(blockIds_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes block_ids = 2;
* @return A list containing the blockIds.
*/
public java.util.List
getBlockIdsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(blockIds_) : blockIds_;
}
/**
* repeated bytes block_ids = 2;
* @return The count of blockIds.
*/
public int getBlockIdsCount() {
return blockIds_.size();
}
/**
* repeated bytes block_ids = 2;
* @param index The index of the element to return.
* @return The blockIds at the given index.
*/
public com.google.protobuf.ByteString getBlockIds(int index) {
return blockIds_.get(index);
}
/**
* repeated bytes block_ids = 2;
* @param index The index to set the value at.
* @param value The blockIds to set.
* @return This builder for chaining.
*/
public Builder setBlockIds(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockIdsIsMutable();
blockIds_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes block_ids = 2;
* @param value The blockIds to add.
* @return This builder for chaining.
*/
public Builder addBlockIds(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockIdsIsMutable();
blockIds_.add(value);
onChanged();
return this;
}
/**
* repeated bytes block_ids = 2;
* @param values The blockIds to add.
* @return This builder for chaining.
*/
public Builder addAllBlockIds(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureBlockIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, blockIds_);
onChanged();
return this;
}
/**
* repeated bytes block_ids = 2;
* @return This builder for chaining.
*/
public Builder clearBlockIds() {
blockIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private int eventEncodingVersion_ = 0;
/**
* .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_;
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .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.access.GetEventsForBlockIDsRequest)
}
// @@protoc_insertion_point(class_scope:flow.access.GetEventsForBlockIDsRequest)
private static final org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest();
}
public static org.onflow.protobuf.access.Access.GetEventsForBlockIDsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetEventsForBlockIDsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetEventsForBlockIDsRequest(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.access.Access.GetEventsForBlockIDsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EventsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:flow.access.EventsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .flow.access.EventsResponse.Result results = 1;
*/
java.util.List
getResultsList();
/**
*