Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
main.org.onflow.protobuf.legacy.access.Access Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: flow/legacy/access/access.proto
package org.onflow.protobuf.legacy.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:access.PingRequest)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code access.PingRequest}
*/
public static final class PingRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.access.Access.internal_static_access_PingRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_PingRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.PingRequest.class, org.onflow.protobuf.legacy.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.legacy.access.Access.PingRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.PingRequest other = (org.onflow.protobuf.legacy.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.legacy.access.Access.PingRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.PingRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.PingRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.PingRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.PingRequest)
org.onflow.protobuf.legacy.access.Access.PingRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_PingRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_PingRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.PingRequest.class, org.onflow.protobuf.legacy.access.Access.PingRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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.legacy.access.Access.internal_static_access_PingRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.PingRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.PingRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.PingRequest build() {
org.onflow.protobuf.legacy.access.Access.PingRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.PingRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.PingRequest result = new org.onflow.protobuf.legacy.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.legacy.access.Access.PingRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.PingRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.PingRequest other) {
if (other == org.onflow.protobuf.legacy.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.legacy.access.Access.PingRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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:access.PingRequest)
}
// @@protoc_insertion_point(class_scope:access.PingRequest)
private static final org.onflow.protobuf.legacy.access.Access.PingRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.PingRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.PingRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PingResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.PingResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code access.PingResponse}
*/
public static final class PingResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.access.Access.internal_static_access_PingResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_PingResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.PingResponse.class, org.onflow.protobuf.legacy.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.legacy.access.Access.PingResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.PingResponse other = (org.onflow.protobuf.legacy.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.legacy.access.Access.PingResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.PingResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.PingResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.PingResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.PingResponse)
org.onflow.protobuf.legacy.access.Access.PingResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_PingResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_PingResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.PingResponse.class, org.onflow.protobuf.legacy.access.Access.PingResponse.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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.legacy.access.Access.internal_static_access_PingResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.PingResponse getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.PingResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.PingResponse build() {
org.onflow.protobuf.legacy.access.Access.PingResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.PingResponse buildPartial() {
org.onflow.protobuf.legacy.access.Access.PingResponse result = new org.onflow.protobuf.legacy.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.legacy.access.Access.PingResponse) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.PingResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.PingResponse other) {
if (other == org.onflow.protobuf.legacy.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.legacy.access.Access.PingResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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:access.PingResponse)
}
// @@protoc_insertion_point(class_scope:access.PingResponse)
private static final org.onflow.protobuf.legacy.access.Access.PingResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.PingResponse();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.PingResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetLatestBlockHeaderRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.GetLatestBlockHeaderRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bool is_sealed = 1;
* @return The isSealed.
*/
boolean getIsSealed();
}
/**
* Protobuf type {@code access.GetLatestBlockHeaderRequest}
*/
public static final class GetLatestBlockHeaderRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.access.Access.internal_static_access_GetLatestBlockHeaderRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetLatestBlockHeaderRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest.class, org.onflow.protobuf.legacy.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.legacy.access.Access.GetLatestBlockHeaderRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest other = (org.onflow.protobuf.legacy.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.legacy.access.Access.GetLatestBlockHeaderRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetLatestBlockHeaderRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetLatestBlockHeaderRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.GetLatestBlockHeaderRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetLatestBlockHeaderRequest)
org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetLatestBlockHeaderRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetLatestBlockHeaderRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest.class, org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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.legacy.access.Access.internal_static_access_GetLatestBlockHeaderRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest build() {
org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest result = new org.onflow.protobuf.legacy.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.legacy.access.Access.GetLatestBlockHeaderRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest other) {
if (other == org.onflow.protobuf.legacy.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.legacy.access.Access.GetLatestBlockHeaderRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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:access.GetLatestBlockHeaderRequest)
}
// @@protoc_insertion_point(class_scope:access.GetLatestBlockHeaderRequest)
private static final org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetLatestBlockHeaderRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetBlockHeaderByIDRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.GetBlockHeaderByIDRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes id = 1;
* @return The id.
*/
com.google.protobuf.ByteString getId();
}
/**
* Protobuf type {@code access.GetBlockHeaderByIDRequest}
*/
public static final class GetBlockHeaderByIDRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.access.Access.internal_static_access_GetBlockHeaderByIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockHeaderByIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest.class, org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockHeaderByIDRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest other = (org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockHeaderByIDRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockHeaderByIDRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockHeaderByIDRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.GetBlockHeaderByIDRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetBlockHeaderByIDRequest)
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockHeaderByIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockHeaderByIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest.class, org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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.legacy.access.Access.internal_static_access_GetBlockHeaderByIDRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest build() {
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest result = new org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockHeaderByIDRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest other) {
if (other == org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockHeaderByIDRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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:access.GetBlockHeaderByIDRequest)
}
// @@protoc_insertion_point(class_scope:access.GetBlockHeaderByIDRequest)
private static final org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockHeaderByIDRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetBlockHeaderByHeightRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.GetBlockHeaderByHeightRequest)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 height = 1;
* @return The height.
*/
long getHeight();
}
/**
* Protobuf type {@code access.GetBlockHeaderByHeightRequest}
*/
public static final class GetBlockHeaderByHeightRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.access.Access.internal_static_access_GetBlockHeaderByHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockHeaderByHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest.class, org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockHeaderByHeightRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest other = (org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockHeaderByHeightRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockHeaderByHeightRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockHeaderByHeightRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.GetBlockHeaderByHeightRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetBlockHeaderByHeightRequest)
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockHeaderByHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockHeaderByHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest.class, org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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.legacy.access.Access.internal_static_access_GetBlockHeaderByHeightRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest build() {
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest result = new org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockHeaderByHeightRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest other) {
if (other == org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockHeaderByHeightRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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:access.GetBlockHeaderByHeightRequest)
}
// @@protoc_insertion_point(class_scope:access.GetBlockHeaderByHeightRequest)
private static final org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockHeaderByHeightRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BlockHeaderResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.BlockHeaderResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .entities.BlockHeader block = 1;
* @return Whether the block field is set.
*/
boolean hasBlock();
/**
* .entities.BlockHeader block = 1;
* @return The block.
*/
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader getBlock();
/**
* .entities.BlockHeader block = 1;
*/
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeaderOrBuilder getBlockOrBuilder();
}
/**
* Protobuf type {@code access.BlockHeaderResponse}
*/
public static final class BlockHeaderResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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() {
}
@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.legacy.entities.BlockHeaderOuterClass.BlockHeader.Builder subBuilder = null;
if (block_ != null) {
subBuilder = block_.toBuilder();
}
block_ = input.readMessage(org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(block_);
block_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_BlockHeaderResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_BlockHeaderResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse.class, org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse.Builder.class);
}
public static final int BLOCK_FIELD_NUMBER = 1;
private org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader block_;
/**
* .entities.BlockHeader block = 1;
* @return Whether the block field is set.
*/
@java.lang.Override
public boolean hasBlock() {
return block_ != null;
}
/**
* .entities.BlockHeader block = 1;
* @return The block.
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader getBlock() {
return block_ == null ? org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.getDefaultInstance() : block_;
}
/**
* .entities.BlockHeader block = 1;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeaderOrBuilder getBlockOrBuilder() {
return getBlock();
}
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());
}
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());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse other = (org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse) obj;
if (hasBlock() != other.hasBlock()) return false;
if (hasBlock()) {
if (!getBlock()
.equals(other.getBlock())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.BlockHeaderResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.BlockHeaderResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.BlockHeaderResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.BlockHeaderResponse)
org.onflow.protobuf.legacy.access.Access.BlockHeaderResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_BlockHeaderResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_BlockHeaderResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse.class, org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_BlockHeaderResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse build() {
org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse buildPartial() {
org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse result = new org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse(this);
if (blockBuilder_ == null) {
result.block_ = block_;
} else {
result.block_ = blockBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse other) {
if (other == org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse.getDefaultInstance()) return this;
if (other.hasBlock()) {
mergeBlock(other.getBlock());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader block_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader, org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.Builder, org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeaderOrBuilder> blockBuilder_;
/**
* .entities.BlockHeader block = 1;
* @return Whether the block field is set.
*/
public boolean hasBlock() {
return blockBuilder_ != null || block_ != null;
}
/**
* .entities.BlockHeader block = 1;
* @return The block.
*/
public org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader getBlock() {
if (blockBuilder_ == null) {
return block_ == null ? org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.getDefaultInstance() : block_;
} else {
return blockBuilder_.getMessage();
}
}
/**
* .entities.BlockHeader block = 1;
*/
public Builder setBlock(org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader value) {
if (blockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
block_ = value;
onChanged();
} else {
blockBuilder_.setMessage(value);
}
return this;
}
/**
* .entities.BlockHeader block = 1;
*/
public Builder setBlock(
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.Builder builderForValue) {
if (blockBuilder_ == null) {
block_ = builderForValue.build();
onChanged();
} else {
blockBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .entities.BlockHeader block = 1;
*/
public Builder mergeBlock(org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader value) {
if (blockBuilder_ == null) {
if (block_ != null) {
block_ =
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.newBuilder(block_).mergeFrom(value).buildPartial();
} else {
block_ = value;
}
onChanged();
} else {
blockBuilder_.mergeFrom(value);
}
return this;
}
/**
* .entities.BlockHeader block = 1;
*/
public Builder clearBlock() {
if (blockBuilder_ == null) {
block_ = null;
onChanged();
} else {
block_ = null;
blockBuilder_ = null;
}
return this;
}
/**
* .entities.BlockHeader block = 1;
*/
public org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.Builder getBlockBuilder() {
onChanged();
return getBlockFieldBuilder().getBuilder();
}
/**
* .entities.BlockHeader block = 1;
*/
public org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeaderOrBuilder getBlockOrBuilder() {
if (blockBuilder_ != null) {
return blockBuilder_.getMessageOrBuilder();
} else {
return block_ == null ?
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.getDefaultInstance() : block_;
}
}
/**
* .entities.BlockHeader block = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader, org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.Builder, org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeaderOrBuilder>
getBlockFieldBuilder() {
if (blockBuilder_ == null) {
blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader, org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeader.Builder, org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.BlockHeaderOrBuilder>(
getBlock(),
getParentForChildren(),
isClean());
block_ = null;
}
return blockBuilder_;
}
@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:access.BlockHeaderResponse)
}
// @@protoc_insertion_point(class_scope:access.BlockHeaderResponse)
private static final org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.BlockHeaderResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetLatestBlockRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.GetLatestBlockRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bool is_sealed = 1;
* @return The isSealed.
*/
boolean getIsSealed();
}
/**
* Protobuf type {@code access.GetLatestBlockRequest}
*/
public static final class GetLatestBlockRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetLatestBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetLatestBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest.class, org.onflow.protobuf.legacy.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_;
}
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.legacy.access.Access.GetLatestBlockRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest other = (org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest) 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.legacy.access.Access.GetLatestBlockRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetLatestBlockRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetLatestBlockRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.GetLatestBlockRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetLatestBlockRequest)
org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetLatestBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetLatestBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest.class, org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetLatestBlockRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest build() {
org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest result = new org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest(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.legacy.access.Access.GetLatestBlockRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest other) {
if (other == org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest.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.legacy.access.Access.GetLatestBlockRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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;
}
@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:access.GetLatestBlockRequest)
}
// @@protoc_insertion_point(class_scope:access.GetLatestBlockRequest)
private static final org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetLatestBlockRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetBlockByIDRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.GetBlockByIDRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes id = 1;
* @return The id.
*/
com.google.protobuf.ByteString getId();
}
/**
* Protobuf type {@code access.GetBlockByIDRequest}
*/
public static final class GetBlockByIDRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockByIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockByIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest.class, org.onflow.protobuf.legacy.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_;
}
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.legacy.access.Access.GetBlockByIDRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest other = (org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest) 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.legacy.access.Access.GetBlockByIDRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockByIDRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockByIDRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.GetBlockByIDRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetBlockByIDRequest)
org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockByIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockByIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest.class, org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockByIDRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest build() {
org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest result = new org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest(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.legacy.access.Access.GetBlockByIDRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest other) {
if (other == org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest.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.legacy.access.Access.GetBlockByIDRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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;
}
@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:access.GetBlockByIDRequest)
}
// @@protoc_insertion_point(class_scope:access.GetBlockByIDRequest)
private static final org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockByIDRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetBlockByHeightRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.GetBlockByHeightRequest)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 height = 1;
* @return The height.
*/
long getHeight();
}
/**
* Protobuf type {@code access.GetBlockByHeightRequest}
*/
public static final class GetBlockByHeightRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockByHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockByHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest.class, org.onflow.protobuf.legacy.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_;
}
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.legacy.access.Access.GetBlockByHeightRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest other = (org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest) 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.legacy.access.Access.GetBlockByHeightRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockByHeightRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockByHeightRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.GetBlockByHeightRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetBlockByHeightRequest)
org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockByHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockByHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest.class, org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetBlockByHeightRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest build() {
org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest result = new org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest(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.legacy.access.Access.GetBlockByHeightRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest other) {
if (other == org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest.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.legacy.access.Access.GetBlockByHeightRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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;
}
@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:access.GetBlockByHeightRequest)
}
// @@protoc_insertion_point(class_scope:access.GetBlockByHeightRequest)
private static final org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetBlockByHeightRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BlockResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.BlockResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .entities.Block block = 1;
* @return Whether the block field is set.
*/
boolean hasBlock();
/**
* .entities.Block block = 1;
* @return The block.
*/
org.onflow.protobuf.legacy.entities.BlockOuterClass.Block getBlock();
/**
* .entities.Block block = 1;
*/
org.onflow.protobuf.legacy.entities.BlockOuterClass.BlockOrBuilder getBlockOrBuilder();
}
/**
* Protobuf type {@code access.BlockResponse}
*/
public static final class BlockResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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() {
}
@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.legacy.entities.BlockOuterClass.Block.Builder subBuilder = null;
if (block_ != null) {
subBuilder = block_.toBuilder();
}
block_ = input.readMessage(org.onflow.protobuf.legacy.entities.BlockOuterClass.Block.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(block_);
block_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_BlockResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_BlockResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.BlockResponse.class, org.onflow.protobuf.legacy.access.Access.BlockResponse.Builder.class);
}
public static final int BLOCK_FIELD_NUMBER = 1;
private org.onflow.protobuf.legacy.entities.BlockOuterClass.Block block_;
/**
* .entities.Block block = 1;
* @return Whether the block field is set.
*/
@java.lang.Override
public boolean hasBlock() {
return block_ != null;
}
/**
* .entities.Block block = 1;
* @return The block.
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.BlockOuterClass.Block getBlock() {
return block_ == null ? org.onflow.protobuf.legacy.entities.BlockOuterClass.Block.getDefaultInstance() : block_;
}
/**
* .entities.Block block = 1;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.BlockOuterClass.BlockOrBuilder getBlockOrBuilder() {
return getBlock();
}
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());
}
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());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.onflow.protobuf.legacy.access.Access.BlockResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.BlockResponse other = (org.onflow.protobuf.legacy.access.Access.BlockResponse) obj;
if (hasBlock() != other.hasBlock()) return false;
if (hasBlock()) {
if (!getBlock()
.equals(other.getBlock())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.access.Access.BlockResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.BlockResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.BlockResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.BlockResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.BlockResponse)
org.onflow.protobuf.legacy.access.Access.BlockResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_BlockResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_BlockResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.BlockResponse.class, org.onflow.protobuf.legacy.access.Access.BlockResponse.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_BlockResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.BlockResponse getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.BlockResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.BlockResponse build() {
org.onflow.protobuf.legacy.access.Access.BlockResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.BlockResponse buildPartial() {
org.onflow.protobuf.legacy.access.Access.BlockResponse result = new org.onflow.protobuf.legacy.access.Access.BlockResponse(this);
if (blockBuilder_ == null) {
result.block_ = block_;
} else {
result.block_ = blockBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.onflow.protobuf.legacy.access.Access.BlockResponse) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.BlockResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.BlockResponse other) {
if (other == org.onflow.protobuf.legacy.access.Access.BlockResponse.getDefaultInstance()) return this;
if (other.hasBlock()) {
mergeBlock(other.getBlock());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.onflow.protobuf.legacy.access.Access.BlockResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.access.Access.BlockResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.legacy.entities.BlockOuterClass.Block block_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.BlockOuterClass.Block, org.onflow.protobuf.legacy.entities.BlockOuterClass.Block.Builder, org.onflow.protobuf.legacy.entities.BlockOuterClass.BlockOrBuilder> blockBuilder_;
/**
* .entities.Block block = 1;
* @return Whether the block field is set.
*/
public boolean hasBlock() {
return blockBuilder_ != null || block_ != null;
}
/**
* .entities.Block block = 1;
* @return The block.
*/
public org.onflow.protobuf.legacy.entities.BlockOuterClass.Block getBlock() {
if (blockBuilder_ == null) {
return block_ == null ? org.onflow.protobuf.legacy.entities.BlockOuterClass.Block.getDefaultInstance() : block_;
} else {
return blockBuilder_.getMessage();
}
}
/**
* .entities.Block block = 1;
*/
public Builder setBlock(org.onflow.protobuf.legacy.entities.BlockOuterClass.Block value) {
if (blockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
block_ = value;
onChanged();
} else {
blockBuilder_.setMessage(value);
}
return this;
}
/**
* .entities.Block block = 1;
*/
public Builder setBlock(
org.onflow.protobuf.legacy.entities.BlockOuterClass.Block.Builder builderForValue) {
if (blockBuilder_ == null) {
block_ = builderForValue.build();
onChanged();
} else {
blockBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .entities.Block block = 1;
*/
public Builder mergeBlock(org.onflow.protobuf.legacy.entities.BlockOuterClass.Block value) {
if (blockBuilder_ == null) {
if (block_ != null) {
block_ =
org.onflow.protobuf.legacy.entities.BlockOuterClass.Block.newBuilder(block_).mergeFrom(value).buildPartial();
} else {
block_ = value;
}
onChanged();
} else {
blockBuilder_.mergeFrom(value);
}
return this;
}
/**
* .entities.Block block = 1;
*/
public Builder clearBlock() {
if (blockBuilder_ == null) {
block_ = null;
onChanged();
} else {
block_ = null;
blockBuilder_ = null;
}
return this;
}
/**
* .entities.Block block = 1;
*/
public org.onflow.protobuf.legacy.entities.BlockOuterClass.Block.Builder getBlockBuilder() {
onChanged();
return getBlockFieldBuilder().getBuilder();
}
/**
* .entities.Block block = 1;
*/
public org.onflow.protobuf.legacy.entities.BlockOuterClass.BlockOrBuilder getBlockOrBuilder() {
if (blockBuilder_ != null) {
return blockBuilder_.getMessageOrBuilder();
} else {
return block_ == null ?
org.onflow.protobuf.legacy.entities.BlockOuterClass.Block.getDefaultInstance() : block_;
}
}
/**
* .entities.Block block = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.BlockOuterClass.Block, org.onflow.protobuf.legacy.entities.BlockOuterClass.Block.Builder, org.onflow.protobuf.legacy.entities.BlockOuterClass.BlockOrBuilder>
getBlockFieldBuilder() {
if (blockBuilder_ == null) {
blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.BlockOuterClass.Block, org.onflow.protobuf.legacy.entities.BlockOuterClass.Block.Builder, org.onflow.protobuf.legacy.entities.BlockOuterClass.BlockOrBuilder>(
getBlock(),
getParentForChildren(),
isClean());
block_ = null;
}
return blockBuilder_;
}
@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:access.BlockResponse)
}
// @@protoc_insertion_point(class_scope:access.BlockResponse)
private static final org.onflow.protobuf.legacy.access.Access.BlockResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.BlockResponse();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.BlockResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetCollectionByIDRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.GetCollectionByIDRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes id = 1;
* @return The id.
*/
com.google.protobuf.ByteString getId();
}
/**
* Protobuf type {@code access.GetCollectionByIDRequest}
*/
public static final class GetCollectionByIDRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.access.Access.internal_static_access_GetCollectionByIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetCollectionByIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest.class, org.onflow.protobuf.legacy.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.legacy.access.Access.GetCollectionByIDRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest other = (org.onflow.protobuf.legacy.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.legacy.access.Access.GetCollectionByIDRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetCollectionByIDRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetCollectionByIDRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.GetCollectionByIDRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetCollectionByIDRequest)
org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetCollectionByIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetCollectionByIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest.class, org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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.legacy.access.Access.internal_static_access_GetCollectionByIDRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest build() {
org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest result = new org.onflow.protobuf.legacy.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.legacy.access.Access.GetCollectionByIDRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest other) {
if (other == org.onflow.protobuf.legacy.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.legacy.access.Access.GetCollectionByIDRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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:access.GetCollectionByIDRequest)
}
// @@protoc_insertion_point(class_scope:access.GetCollectionByIDRequest)
private static final org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetCollectionByIDRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CollectionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.CollectionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .entities.Collection collection = 1;
* @return Whether the collection field is set.
*/
boolean hasCollection();
/**
* .entities.Collection collection = 1;
* @return The collection.
*/
org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection getCollection();
/**
* .entities.Collection collection = 1;
*/
org.onflow.protobuf.legacy.entities.CollectionOuterClass.CollectionOrBuilder getCollectionOrBuilder();
}
/**
* Protobuf type {@code access.CollectionResponse}
*/
public static final class CollectionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.entities.CollectionOuterClass.Collection.Builder subBuilder = null;
if (collection_ != null) {
subBuilder = collection_.toBuilder();
}
collection_ = input.readMessage(org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(collection_);
collection_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_CollectionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_CollectionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.CollectionResponse.class, org.onflow.protobuf.legacy.access.Access.CollectionResponse.Builder.class);
}
public static final int COLLECTION_FIELD_NUMBER = 1;
private org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection collection_;
/**
* .entities.Collection collection = 1;
* @return Whether the collection field is set.
*/
@java.lang.Override
public boolean hasCollection() {
return collection_ != null;
}
/**
* .entities.Collection collection = 1;
* @return The collection.
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection getCollection() {
return collection_ == null ? org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection.getDefaultInstance() : collection_;
}
/**
* .entities.Collection collection = 1;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.CollectionOuterClass.CollectionOrBuilder getCollectionOrBuilder() {
return getCollection();
}
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());
}
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());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.onflow.protobuf.legacy.access.Access.CollectionResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.CollectionResponse other = (org.onflow.protobuf.legacy.access.Access.CollectionResponse) obj;
if (hasCollection() != other.hasCollection()) return false;
if (hasCollection()) {
if (!getCollection()
.equals(other.getCollection())) 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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.access.Access.CollectionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.CollectionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.CollectionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.CollectionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.CollectionResponse)
org.onflow.protobuf.legacy.access.Access.CollectionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_CollectionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_CollectionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.CollectionResponse.class, org.onflow.protobuf.legacy.access.Access.CollectionResponse.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_CollectionResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.CollectionResponse getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.CollectionResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.CollectionResponse build() {
org.onflow.protobuf.legacy.access.Access.CollectionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.CollectionResponse buildPartial() {
org.onflow.protobuf.legacy.access.Access.CollectionResponse result = new org.onflow.protobuf.legacy.access.Access.CollectionResponse(this);
if (collectionBuilder_ == null) {
result.collection_ = collection_;
} else {
result.collection_ = collectionBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.onflow.protobuf.legacy.access.Access.CollectionResponse) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.CollectionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.CollectionResponse other) {
if (other == org.onflow.protobuf.legacy.access.Access.CollectionResponse.getDefaultInstance()) return this;
if (other.hasCollection()) {
mergeCollection(other.getCollection());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.onflow.protobuf.legacy.access.Access.CollectionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.access.Access.CollectionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection collection_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection, org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection.Builder, org.onflow.protobuf.legacy.entities.CollectionOuterClass.CollectionOrBuilder> collectionBuilder_;
/**
* .entities.Collection collection = 1;
* @return Whether the collection field is set.
*/
public boolean hasCollection() {
return collectionBuilder_ != null || collection_ != null;
}
/**
* .entities.Collection collection = 1;
* @return The collection.
*/
public org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection getCollection() {
if (collectionBuilder_ == null) {
return collection_ == null ? org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection.getDefaultInstance() : collection_;
} else {
return collectionBuilder_.getMessage();
}
}
/**
* .entities.Collection collection = 1;
*/
public Builder setCollection(org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection value) {
if (collectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collection_ = value;
onChanged();
} else {
collectionBuilder_.setMessage(value);
}
return this;
}
/**
* .entities.Collection collection = 1;
*/
public Builder setCollection(
org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection.Builder builderForValue) {
if (collectionBuilder_ == null) {
collection_ = builderForValue.build();
onChanged();
} else {
collectionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .entities.Collection collection = 1;
*/
public Builder mergeCollection(org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection value) {
if (collectionBuilder_ == null) {
if (collection_ != null) {
collection_ =
org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection.newBuilder(collection_).mergeFrom(value).buildPartial();
} else {
collection_ = value;
}
onChanged();
} else {
collectionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .entities.Collection collection = 1;
*/
public Builder clearCollection() {
if (collectionBuilder_ == null) {
collection_ = null;
onChanged();
} else {
collection_ = null;
collectionBuilder_ = null;
}
return this;
}
/**
* .entities.Collection collection = 1;
*/
public org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection.Builder getCollectionBuilder() {
onChanged();
return getCollectionFieldBuilder().getBuilder();
}
/**
* .entities.Collection collection = 1;
*/
public org.onflow.protobuf.legacy.entities.CollectionOuterClass.CollectionOrBuilder getCollectionOrBuilder() {
if (collectionBuilder_ != null) {
return collectionBuilder_.getMessageOrBuilder();
} else {
return collection_ == null ?
org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection.getDefaultInstance() : collection_;
}
}
/**
* .entities.Collection collection = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection, org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection.Builder, org.onflow.protobuf.legacy.entities.CollectionOuterClass.CollectionOrBuilder>
getCollectionFieldBuilder() {
if (collectionBuilder_ == null) {
collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection, org.onflow.protobuf.legacy.entities.CollectionOuterClass.Collection.Builder, org.onflow.protobuf.legacy.entities.CollectionOuterClass.CollectionOrBuilder>(
getCollection(),
getParentForChildren(),
isClean());
collection_ = null;
}
return collectionBuilder_;
}
@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:access.CollectionResponse)
}
// @@protoc_insertion_point(class_scope:access.CollectionResponse)
private static final org.onflow.protobuf.legacy.access.Access.CollectionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.CollectionResponse();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.CollectionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SendTransactionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.SendTransactionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .entities.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
boolean hasTransaction();
/**
* .entities.Transaction transaction = 1;
* @return The transaction.
*/
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction getTransaction();
/**
* .entities.Transaction transaction = 1;
*/
org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionOrBuilder getTransactionOrBuilder();
}
/**
* Protobuf type {@code access.SendTransactionRequest}
*/
public static final class SendTransactionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.entities.TransactionOuterClass.Transaction.Builder subBuilder = null;
if (transaction_ != null) {
subBuilder = transaction_.toBuilder();
}
transaction_ = input.readMessage(org.onflow.protobuf.legacy.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.legacy.access.Access.internal_static_access_SendTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_SendTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.SendTransactionRequest.class, org.onflow.protobuf.legacy.access.Access.SendTransactionRequest.Builder.class);
}
public static final int TRANSACTION_FIELD_NUMBER = 1;
private org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction transaction_;
/**
* .entities.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
@java.lang.Override
public boolean hasTransaction() {
return transaction_ != null;
}
/**
* .entities.Transaction transaction = 1;
* @return The transaction.
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction getTransaction() {
return transaction_ == null ? org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.getDefaultInstance() : transaction_;
}
/**
* .entities.Transaction transaction = 1;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.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.legacy.access.Access.SendTransactionRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.SendTransactionRequest other = (org.onflow.protobuf.legacy.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.legacy.access.Access.SendTransactionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.SendTransactionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.SendTransactionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.SendTransactionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.SendTransactionRequest)
org.onflow.protobuf.legacy.access.Access.SendTransactionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_SendTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_SendTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.SendTransactionRequest.class, org.onflow.protobuf.legacy.access.Access.SendTransactionRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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.legacy.access.Access.internal_static_access_SendTransactionRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.SendTransactionRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.SendTransactionRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.SendTransactionRequest build() {
org.onflow.protobuf.legacy.access.Access.SendTransactionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.SendTransactionRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.SendTransactionRequest result = new org.onflow.protobuf.legacy.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.legacy.access.Access.SendTransactionRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.SendTransactionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.SendTransactionRequest other) {
if (other == org.onflow.protobuf.legacy.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.legacy.access.Access.SendTransactionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.access.Access.SendTransactionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction transaction_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionOrBuilder> transactionBuilder_;
/**
* .entities.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
public boolean hasTransaction() {
return transactionBuilder_ != null || transaction_ != null;
}
/**
* .entities.Transaction transaction = 1;
* @return The transaction.
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction getTransaction() {
if (transactionBuilder_ == null) {
return transaction_ == null ? org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.getDefaultInstance() : transaction_;
} else {
return transactionBuilder_.getMessage();
}
}
/**
* .entities.Transaction transaction = 1;
*/
public Builder setTransaction(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction value) {
if (transactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transaction_ = value;
onChanged();
} else {
transactionBuilder_.setMessage(value);
}
return this;
}
/**
* .entities.Transaction transaction = 1;
*/
public Builder setTransaction(
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Builder builderForValue) {
if (transactionBuilder_ == null) {
transaction_ = builderForValue.build();
onChanged();
} else {
transactionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .entities.Transaction transaction = 1;
*/
public Builder mergeTransaction(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction value) {
if (transactionBuilder_ == null) {
if (transaction_ != null) {
transaction_ =
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
} else {
transaction_ = value;
}
onChanged();
} else {
transactionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .entities.Transaction transaction = 1;
*/
public Builder clearTransaction() {
if (transactionBuilder_ == null) {
transaction_ = null;
onChanged();
} else {
transaction_ = null;
transactionBuilder_ = null;
}
return this;
}
/**
* .entities.Transaction transaction = 1;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Builder getTransactionBuilder() {
onChanged();
return getTransactionFieldBuilder().getBuilder();
}
/**
* .entities.Transaction transaction = 1;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionOrBuilder getTransactionOrBuilder() {
if (transactionBuilder_ != null) {
return transactionBuilder_.getMessageOrBuilder();
} else {
return transaction_ == null ?
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.getDefaultInstance() : transaction_;
}
}
/**
* .entities.Transaction transaction = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionFieldBuilder() {
if (transactionBuilder_ == null) {
transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.legacy.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:access.SendTransactionRequest)
}
// @@protoc_insertion_point(class_scope:access.SendTransactionRequest)
private static final org.onflow.protobuf.legacy.access.Access.SendTransactionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.SendTransactionRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.SendTransactionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SendTransactionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.SendTransactionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* bytes id = 1;
* @return The id.
*/
com.google.protobuf.ByteString getId();
}
/**
* Protobuf type {@code access.SendTransactionResponse}
*/
public static final class SendTransactionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_SendTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_SendTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.SendTransactionResponse.class, org.onflow.protobuf.legacy.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_;
}
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.legacy.access.Access.SendTransactionResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.SendTransactionResponse other = (org.onflow.protobuf.legacy.access.Access.SendTransactionResponse) 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.legacy.access.Access.SendTransactionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.SendTransactionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.SendTransactionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.SendTransactionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.SendTransactionResponse)
org.onflow.protobuf.legacy.access.Access.SendTransactionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_SendTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_SendTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.SendTransactionResponse.class, org.onflow.protobuf.legacy.access.Access.SendTransactionResponse.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_SendTransactionResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.SendTransactionResponse getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.SendTransactionResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.SendTransactionResponse build() {
org.onflow.protobuf.legacy.access.Access.SendTransactionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.SendTransactionResponse buildPartial() {
org.onflow.protobuf.legacy.access.Access.SendTransactionResponse result = new org.onflow.protobuf.legacy.access.Access.SendTransactionResponse(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.legacy.access.Access.SendTransactionResponse) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.SendTransactionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.SendTransactionResponse other) {
if (other == org.onflow.protobuf.legacy.access.Access.SendTransactionResponse.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.legacy.access.Access.SendTransactionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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;
}
@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:access.SendTransactionResponse)
}
// @@protoc_insertion_point(class_scope:access.SendTransactionResponse)
private static final org.onflow.protobuf.legacy.access.Access.SendTransactionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.SendTransactionResponse();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.SendTransactionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetTransactionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.GetTransactionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes id = 1;
* @return The id.
*/
com.google.protobuf.ByteString getId();
}
/**
* Protobuf type {@code access.GetTransactionRequest}
*/
public static final class GetTransactionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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;
}
@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;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetTransactionRequest.class, org.onflow.protobuf.legacy.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_;
}
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.legacy.access.Access.GetTransactionRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetTransactionRequest other = (org.onflow.protobuf.legacy.access.Access.GetTransactionRequest) 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.legacy.access.Access.GetTransactionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetTransactionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetTransactionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.GetTransactionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetTransactionRequest)
org.onflow.protobuf.legacy.access.Access.GetTransactionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetTransactionRequest.class, org.onflow.protobuf.legacy.access.Access.GetTransactionRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetTransactionRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetTransactionRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetTransactionRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetTransactionRequest build() {
org.onflow.protobuf.legacy.access.Access.GetTransactionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetTransactionRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetTransactionRequest result = new org.onflow.protobuf.legacy.access.Access.GetTransactionRequest(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.legacy.access.Access.GetTransactionRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetTransactionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetTransactionRequest other) {
if (other == org.onflow.protobuf.legacy.access.Access.GetTransactionRequest.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.legacy.access.Access.GetTransactionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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;
}
@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:access.GetTransactionRequest)
}
// @@protoc_insertion_point(class_scope:access.GetTransactionRequest)
private static final org.onflow.protobuf.legacy.access.Access.GetTransactionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetTransactionRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetTransactionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.TransactionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .entities.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
boolean hasTransaction();
/**
* .entities.Transaction transaction = 1;
* @return The transaction.
*/
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction getTransaction();
/**
* .entities.Transaction transaction = 1;
*/
org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionOrBuilder getTransactionOrBuilder();
}
/**
* Protobuf type {@code access.TransactionResponse}
*/
public static final class TransactionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.entities.TransactionOuterClass.Transaction.Builder subBuilder = null;
if (transaction_ != null) {
subBuilder = transaction_.toBuilder();
}
transaction_ = input.readMessage(org.onflow.protobuf.legacy.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.legacy.access.Access.internal_static_access_TransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_TransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.TransactionResponse.class, org.onflow.protobuf.legacy.access.Access.TransactionResponse.Builder.class);
}
public static final int TRANSACTION_FIELD_NUMBER = 1;
private org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction transaction_;
/**
* .entities.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
@java.lang.Override
public boolean hasTransaction() {
return transaction_ != null;
}
/**
* .entities.Transaction transaction = 1;
* @return The transaction.
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction getTransaction() {
return transaction_ == null ? org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.getDefaultInstance() : transaction_;
}
/**
* .entities.Transaction transaction = 1;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.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.legacy.access.Access.TransactionResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.TransactionResponse other = (org.onflow.protobuf.legacy.access.Access.TransactionResponse) 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.legacy.access.Access.TransactionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.TransactionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.TransactionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.TransactionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.TransactionResponse)
org.onflow.protobuf.legacy.access.Access.TransactionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_TransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_TransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.TransactionResponse.class, org.onflow.protobuf.legacy.access.Access.TransactionResponse.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_TransactionResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.TransactionResponse getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.TransactionResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.TransactionResponse build() {
org.onflow.protobuf.legacy.access.Access.TransactionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.TransactionResponse buildPartial() {
org.onflow.protobuf.legacy.access.Access.TransactionResponse result = new org.onflow.protobuf.legacy.access.Access.TransactionResponse(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.legacy.access.Access.TransactionResponse) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.TransactionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.TransactionResponse other) {
if (other == org.onflow.protobuf.legacy.access.Access.TransactionResponse.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.legacy.access.Access.TransactionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.access.Access.TransactionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction transaction_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionOrBuilder> transactionBuilder_;
/**
* .entities.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
public boolean hasTransaction() {
return transactionBuilder_ != null || transaction_ != null;
}
/**
* .entities.Transaction transaction = 1;
* @return The transaction.
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction getTransaction() {
if (transactionBuilder_ == null) {
return transaction_ == null ? org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.getDefaultInstance() : transaction_;
} else {
return transactionBuilder_.getMessage();
}
}
/**
* .entities.Transaction transaction = 1;
*/
public Builder setTransaction(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction value) {
if (transactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transaction_ = value;
onChanged();
} else {
transactionBuilder_.setMessage(value);
}
return this;
}
/**
* .entities.Transaction transaction = 1;
*/
public Builder setTransaction(
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Builder builderForValue) {
if (transactionBuilder_ == null) {
transaction_ = builderForValue.build();
onChanged();
} else {
transactionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .entities.Transaction transaction = 1;
*/
public Builder mergeTransaction(org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction value) {
if (transactionBuilder_ == null) {
if (transaction_ != null) {
transaction_ =
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
} else {
transaction_ = value;
}
onChanged();
} else {
transactionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .entities.Transaction transaction = 1;
*/
public Builder clearTransaction() {
if (transactionBuilder_ == null) {
transaction_ = null;
onChanged();
} else {
transaction_ = null;
transactionBuilder_ = null;
}
return this;
}
/**
* .entities.Transaction transaction = 1;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Builder getTransactionBuilder() {
onChanged();
return getTransactionFieldBuilder().getBuilder();
}
/**
* .entities.Transaction transaction = 1;
*/
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionOrBuilder getTransactionOrBuilder() {
if (transactionBuilder_ != null) {
return transactionBuilder_.getMessageOrBuilder();
} else {
return transaction_ == null ?
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.getDefaultInstance() : transaction_;
}
}
/**
* .entities.Transaction transaction = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionOrBuilder>
getTransactionFieldBuilder() {
if (transactionBuilder_ == null) {
transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction, org.onflow.protobuf.legacy.entities.TransactionOuterClass.Transaction.Builder, org.onflow.protobuf.legacy.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:access.TransactionResponse)
}
// @@protoc_insertion_point(class_scope:access.TransactionResponse)
private static final org.onflow.protobuf.legacy.access.Access.TransactionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.TransactionResponse();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.TransactionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionResultResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.TransactionResultResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .entities.TransactionStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* .entities.TransactionStatus status = 1;
* @return The status.
*/
org.onflow.protobuf.legacy.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 .entities.Event events = 4;
*/
java.util.List
getEventsList();
/**
* repeated .entities.Event events = 4;
*/
org.onflow.protobuf.legacy.entities.EventOuterClass.Event getEvents(int index);
/**
* repeated .entities.Event events = 4;
*/
int getEventsCount();
/**
* repeated .entities.Event events = 4;
*/
java.util.List extends org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList();
/**
* repeated .entities.Event events = 4;
*/
org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index);
}
/**
* Protobuf type {@code access.TransactionResultResponse}
*/
public static final class TransactionResultResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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();
}
@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.legacy.entities.EventOuterClass.Event.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_TransactionResultResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_TransactionResultResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.TransactionResultResponse.class, org.onflow.protobuf.legacy.access.Access.TransactionResultResponse.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
* .entities.TransactionStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .entities.TransactionStatus status = 1;
* @return The status.
*/
@java.lang.Override public org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionStatus getStatus() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionStatus result = org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionStatus.valueOf(status_);
return result == null ? org.onflow.protobuf.legacy.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 .entities.Event events = 4;
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
* repeated .entities.Event events = 4;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
* repeated .entities.Event events = 4;
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
* repeated .entities.Event events = 4;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.EventOuterClass.Event getEvents(int index) {
return events_.get(index);
}
/**
* repeated .entities.Event events = 4;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index) {
return events_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != org.onflow.protobuf.legacy.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));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != org.onflow.protobuf.legacy.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));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.onflow.protobuf.legacy.access.Access.TransactionResultResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.TransactionResultResponse other = (org.onflow.protobuf.legacy.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 (!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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.access.Access.TransactionResultResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.TransactionResultResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.TransactionResultResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.TransactionResultResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.TransactionResultResponse)
org.onflow.protobuf.legacy.access.Access.TransactionResultResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_TransactionResultResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_TransactionResultResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.TransactionResultResponse.class, org.onflow.protobuf.legacy.access.Access.TransactionResultResponse.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_TransactionResultResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.TransactionResultResponse getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.TransactionResultResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.TransactionResultResponse build() {
org.onflow.protobuf.legacy.access.Access.TransactionResultResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.TransactionResultResponse buildPartial() {
org.onflow.protobuf.legacy.access.Access.TransactionResultResponse result = new org.onflow.protobuf.legacy.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();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.onflow.protobuf.legacy.access.Access.TransactionResultResponse) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.TransactionResultResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.TransactionResultResponse other) {
if (other == org.onflow.protobuf.legacy.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_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.onflow.protobuf.legacy.access.Access.TransactionResultResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.access.Access.TransactionResultResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int status_ = 0;
/**
* .entities.TransactionStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .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;
}
/**
* .entities.TransactionStatus status = 1;
* @return The status.
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionStatus getStatus() {
@SuppressWarnings("deprecation")
org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionStatus result = org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionStatus.valueOf(status_);
return result == null ? org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionStatus.UNRECOGNIZED : result;
}
/**
* .entities.TransactionStatus status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(org.onflow.protobuf.legacy.entities.TransactionOuterClass.TransactionStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .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.legacy.entities.EventOuterClass.Event, org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder, org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder> eventsBuilder_;
/**
* repeated .entities.Event events = 4;
*/
public java.util.List getEventsList() {
if (eventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(events_);
} else {
return eventsBuilder_.getMessageList();
}
}
/**
* repeated .entities.Event events = 4;
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
* repeated .entities.Event events = 4;
*/
public org.onflow.protobuf.legacy.entities.EventOuterClass.Event getEvents(int index) {
if (eventsBuilder_ == null) {
return events_.get(index);
} else {
return eventsBuilder_.getMessage(index);
}
}
/**
* repeated .entities.Event events = 4;
*/
public Builder setEvents(
int index, org.onflow.protobuf.legacy.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 .entities.Event events = 4;
*/
public Builder setEvents(
int index, org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.set(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .entities.Event events = 4;
*/
public Builder addEvents(org.onflow.protobuf.legacy.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 .entities.Event events = 4;
*/
public Builder addEvents(
int index, org.onflow.protobuf.legacy.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 .entities.Event events = 4;
*/
public Builder addEvents(
org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .entities.Event events = 4;
*/
public Builder addEvents(
int index, org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .entities.Event events = 4;
*/
public Builder addAllEvents(
java.lang.Iterable extends org.onflow.protobuf.legacy.entities.EventOuterClass.Event> values) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, events_);
onChanged();
} else {
eventsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .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 .entities.Event events = 4;
*/
public Builder removeEvents(int index) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.remove(index);
onChanged();
} else {
eventsBuilder_.remove(index);
}
return this;
}
/**
* repeated .entities.Event events = 4;
*/
public org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
* repeated .entities.Event events = 4;
*/
public org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .entities.Event events = 4;
*/
public java.util.List extends org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList() {
if (eventsBuilder_ != null) {
return eventsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(events_);
}
}
/**
* repeated .entities.Event events = 4;
*/
public org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder addEventsBuilder() {
return getEventsFieldBuilder().addBuilder(
org.onflow.protobuf.legacy.entities.EventOuterClass.Event.getDefaultInstance());
}
/**
* repeated .entities.Event events = 4;
*/
public org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder addEventsBuilder(
int index) {
return getEventsFieldBuilder().addBuilder(
index, org.onflow.protobuf.legacy.entities.EventOuterClass.Event.getDefaultInstance());
}
/**
* repeated .entities.Event events = 4;
*/
public java.util.List
getEventsBuilderList() {
return getEventsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.legacy.entities.EventOuterClass.Event, org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder, org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder>
getEventsFieldBuilder() {
if (eventsBuilder_ == null) {
eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.legacy.entities.EventOuterClass.Event, org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder, org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder>(
events_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
events_ = null;
}
return eventsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:access.TransactionResultResponse)
}
// @@protoc_insertion_point(class_scope:access.TransactionResultResponse)
private static final org.onflow.protobuf.legacy.access.Access.TransactionResultResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.TransactionResultResponse();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.TransactionResultResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetAccountRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.GetAccountRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
}
/**
* Protobuf type {@code access.GetAccountRequest}
*/
public static final class GetAccountRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.access.Access.internal_static_access_GetAccountRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetAccountRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetAccountRequest.class, org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetAccountRequest other = (org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.GetAccountRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetAccountRequest)
org.onflow.protobuf.legacy.access.Access.GetAccountRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetAccountRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetAccountRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetAccountRequest.class, org.onflow.protobuf.legacy.access.Access.GetAccountRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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.legacy.access.Access.internal_static_access_GetAccountRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetAccountRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetAccountRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetAccountRequest build() {
org.onflow.protobuf.legacy.access.Access.GetAccountRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetAccountRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetAccountRequest result = new org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetAccountRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetAccountRequest other) {
if (other == org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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:access.GetAccountRequest)
}
// @@protoc_insertion_point(class_scope:access.GetAccountRequest)
private static final org.onflow.protobuf.legacy.access.Access.GetAccountRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetAccountRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetAccountResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.GetAccountResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .entities.Account account = 1;
* @return Whether the account field is set.
*/
boolean hasAccount();
/**
* .entities.Account account = 1;
* @return The account.
*/
org.onflow.protobuf.legacy.entities.AccountOuterClass.Account getAccount();
/**
* .entities.Account account = 1;
*/
org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountOrBuilder getAccountOrBuilder();
}
/**
* Protobuf type {@code access.GetAccountResponse}
*/
public static final class GetAccountResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.entities.AccountOuterClass.Account.Builder subBuilder = null;
if (account_ != null) {
subBuilder = account_.toBuilder();
}
account_ = input.readMessage(org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(account_);
account_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetAccountResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetAccountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetAccountResponse.class, org.onflow.protobuf.legacy.access.Access.GetAccountResponse.Builder.class);
}
public static final int ACCOUNT_FIELD_NUMBER = 1;
private org.onflow.protobuf.legacy.entities.AccountOuterClass.Account account_;
/**
* .entities.Account account = 1;
* @return Whether the account field is set.
*/
@java.lang.Override
public boolean hasAccount() {
return account_ != null;
}
/**
* .entities.Account account = 1;
* @return The account.
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.AccountOuterClass.Account getAccount() {
return account_ == null ? org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.getDefaultInstance() : account_;
}
/**
* .entities.Account account = 1;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountOrBuilder getAccountOrBuilder() {
return getAccount();
}
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());
}
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());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.onflow.protobuf.legacy.access.Access.GetAccountResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetAccountResponse other = (org.onflow.protobuf.legacy.access.Access.GetAccountResponse) obj;
if (hasAccount() != other.hasAccount()) return false;
if (hasAccount()) {
if (!getAccount()
.equals(other.getAccount())) 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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.access.Access.GetAccountResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.GetAccountResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetAccountResponse)
org.onflow.protobuf.legacy.access.Access.GetAccountResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetAccountResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetAccountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetAccountResponse.class, org.onflow.protobuf.legacy.access.Access.GetAccountResponse.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetAccountResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetAccountResponse getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetAccountResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetAccountResponse build() {
org.onflow.protobuf.legacy.access.Access.GetAccountResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetAccountResponse buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetAccountResponse result = new org.onflow.protobuf.legacy.access.Access.GetAccountResponse(this);
if (accountBuilder_ == null) {
result.account_ = account_;
} else {
result.account_ = accountBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.onflow.protobuf.legacy.access.Access.GetAccountResponse) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetAccountResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetAccountResponse other) {
if (other == org.onflow.protobuf.legacy.access.Access.GetAccountResponse.getDefaultInstance()) return this;
if (other.hasAccount()) {
mergeAccount(other.getAccount());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.onflow.protobuf.legacy.access.Access.GetAccountResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.access.Access.GetAccountResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.legacy.entities.AccountOuterClass.Account account_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.AccountOuterClass.Account, org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.Builder, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountOrBuilder> accountBuilder_;
/**
* .entities.Account account = 1;
* @return Whether the account field is set.
*/
public boolean hasAccount() {
return accountBuilder_ != null || account_ != null;
}
/**
* .entities.Account account = 1;
* @return The account.
*/
public org.onflow.protobuf.legacy.entities.AccountOuterClass.Account getAccount() {
if (accountBuilder_ == null) {
return account_ == null ? org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.getDefaultInstance() : account_;
} else {
return accountBuilder_.getMessage();
}
}
/**
* .entities.Account account = 1;
*/
public Builder setAccount(org.onflow.protobuf.legacy.entities.AccountOuterClass.Account value) {
if (accountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
account_ = value;
onChanged();
} else {
accountBuilder_.setMessage(value);
}
return this;
}
/**
* .entities.Account account = 1;
*/
public Builder setAccount(
org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.Builder builderForValue) {
if (accountBuilder_ == null) {
account_ = builderForValue.build();
onChanged();
} else {
accountBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .entities.Account account = 1;
*/
public Builder mergeAccount(org.onflow.protobuf.legacy.entities.AccountOuterClass.Account value) {
if (accountBuilder_ == null) {
if (account_ != null) {
account_ =
org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.newBuilder(account_).mergeFrom(value).buildPartial();
} else {
account_ = value;
}
onChanged();
} else {
accountBuilder_.mergeFrom(value);
}
return this;
}
/**
* .entities.Account account = 1;
*/
public Builder clearAccount() {
if (accountBuilder_ == null) {
account_ = null;
onChanged();
} else {
account_ = null;
accountBuilder_ = null;
}
return this;
}
/**
* .entities.Account account = 1;
*/
public org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.Builder getAccountBuilder() {
onChanged();
return getAccountFieldBuilder().getBuilder();
}
/**
* .entities.Account account = 1;
*/
public org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountOrBuilder getAccountOrBuilder() {
if (accountBuilder_ != null) {
return accountBuilder_.getMessageOrBuilder();
} else {
return account_ == null ?
org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.getDefaultInstance() : account_;
}
}
/**
* .entities.Account account = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.AccountOuterClass.Account, org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.Builder, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountOrBuilder>
getAccountFieldBuilder() {
if (accountBuilder_ == null) {
accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.AccountOuterClass.Account, org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.Builder, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountOrBuilder>(
getAccount(),
getParentForChildren(),
isClean());
account_ = null;
}
return accountBuilder_;
}
@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:access.GetAccountResponse)
}
// @@protoc_insertion_point(class_scope:access.GetAccountResponse)
private static final org.onflow.protobuf.legacy.access.Access.GetAccountResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetAccountResponse();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetAccountAtLatestBlockRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.GetAccountAtLatestBlockRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
}
/**
* Protobuf type {@code access.GetAccountAtLatestBlockRequest}
*/
public static final class GetAccountAtLatestBlockRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.access.Access.internal_static_access_GetAccountAtLatestBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetAccountAtLatestBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest.class, org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountAtLatestBlockRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest other = (org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountAtLatestBlockRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountAtLatestBlockRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountAtLatestBlockRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.GetAccountAtLatestBlockRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetAccountAtLatestBlockRequest)
org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetAccountAtLatestBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetAccountAtLatestBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest.class, org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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.legacy.access.Access.internal_static_access_GetAccountAtLatestBlockRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest build() {
org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest result = new org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountAtLatestBlockRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest other) {
if (other == org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountAtLatestBlockRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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:access.GetAccountAtLatestBlockRequest)
}
// @@protoc_insertion_point(class_scope:access.GetAccountAtLatestBlockRequest)
private static final org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountAtLatestBlockRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AccountResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.AccountResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .entities.Account account = 1;
* @return Whether the account field is set.
*/
boolean hasAccount();
/**
* .entities.Account account = 1;
* @return The account.
*/
org.onflow.protobuf.legacy.entities.AccountOuterClass.Account getAccount();
/**
* .entities.Account account = 1;
*/
org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountOrBuilder getAccountOrBuilder();
}
/**
* Protobuf type {@code access.AccountResponse}
*/
public static final class AccountResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.entities.AccountOuterClass.Account.Builder subBuilder = null;
if (account_ != null) {
subBuilder = account_.toBuilder();
}
account_ = input.readMessage(org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(account_);
account_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_AccountResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_AccountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.AccountResponse.class, org.onflow.protobuf.legacy.access.Access.AccountResponse.Builder.class);
}
public static final int ACCOUNT_FIELD_NUMBER = 1;
private org.onflow.protobuf.legacy.entities.AccountOuterClass.Account account_;
/**
* .entities.Account account = 1;
* @return Whether the account field is set.
*/
@java.lang.Override
public boolean hasAccount() {
return account_ != null;
}
/**
* .entities.Account account = 1;
* @return The account.
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.AccountOuterClass.Account getAccount() {
return account_ == null ? org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.getDefaultInstance() : account_;
}
/**
* .entities.Account account = 1;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountOrBuilder getAccountOrBuilder() {
return getAccount();
}
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());
}
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());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.onflow.protobuf.legacy.access.Access.AccountResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.AccountResponse other = (org.onflow.protobuf.legacy.access.Access.AccountResponse) obj;
if (hasAccount() != other.hasAccount()) return false;
if (hasAccount()) {
if (!getAccount()
.equals(other.getAccount())) 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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.access.Access.AccountResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.AccountResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.AccountResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.AccountResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.AccountResponse)
org.onflow.protobuf.legacy.access.Access.AccountResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_AccountResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_AccountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.AccountResponse.class, org.onflow.protobuf.legacy.access.Access.AccountResponse.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_AccountResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.AccountResponse getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.AccountResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.AccountResponse build() {
org.onflow.protobuf.legacy.access.Access.AccountResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.AccountResponse buildPartial() {
org.onflow.protobuf.legacy.access.Access.AccountResponse result = new org.onflow.protobuf.legacy.access.Access.AccountResponse(this);
if (accountBuilder_ == null) {
result.account_ = account_;
} else {
result.account_ = accountBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.onflow.protobuf.legacy.access.Access.AccountResponse) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.AccountResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.AccountResponse other) {
if (other == org.onflow.protobuf.legacy.access.Access.AccountResponse.getDefaultInstance()) return this;
if (other.hasAccount()) {
mergeAccount(other.getAccount());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.onflow.protobuf.legacy.access.Access.AccountResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.access.Access.AccountResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.onflow.protobuf.legacy.entities.AccountOuterClass.Account account_;
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.AccountOuterClass.Account, org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.Builder, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountOrBuilder> accountBuilder_;
/**
* .entities.Account account = 1;
* @return Whether the account field is set.
*/
public boolean hasAccount() {
return accountBuilder_ != null || account_ != null;
}
/**
* .entities.Account account = 1;
* @return The account.
*/
public org.onflow.protobuf.legacy.entities.AccountOuterClass.Account getAccount() {
if (accountBuilder_ == null) {
return account_ == null ? org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.getDefaultInstance() : account_;
} else {
return accountBuilder_.getMessage();
}
}
/**
* .entities.Account account = 1;
*/
public Builder setAccount(org.onflow.protobuf.legacy.entities.AccountOuterClass.Account value) {
if (accountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
account_ = value;
onChanged();
} else {
accountBuilder_.setMessage(value);
}
return this;
}
/**
* .entities.Account account = 1;
*/
public Builder setAccount(
org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.Builder builderForValue) {
if (accountBuilder_ == null) {
account_ = builderForValue.build();
onChanged();
} else {
accountBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .entities.Account account = 1;
*/
public Builder mergeAccount(org.onflow.protobuf.legacy.entities.AccountOuterClass.Account value) {
if (accountBuilder_ == null) {
if (account_ != null) {
account_ =
org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.newBuilder(account_).mergeFrom(value).buildPartial();
} else {
account_ = value;
}
onChanged();
} else {
accountBuilder_.mergeFrom(value);
}
return this;
}
/**
* .entities.Account account = 1;
*/
public Builder clearAccount() {
if (accountBuilder_ == null) {
account_ = null;
onChanged();
} else {
account_ = null;
accountBuilder_ = null;
}
return this;
}
/**
* .entities.Account account = 1;
*/
public org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.Builder getAccountBuilder() {
onChanged();
return getAccountFieldBuilder().getBuilder();
}
/**
* .entities.Account account = 1;
*/
public org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountOrBuilder getAccountOrBuilder() {
if (accountBuilder_ != null) {
return accountBuilder_.getMessageOrBuilder();
} else {
return account_ == null ?
org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.getDefaultInstance() : account_;
}
}
/**
* .entities.Account account = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.AccountOuterClass.Account, org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.Builder, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountOrBuilder>
getAccountFieldBuilder() {
if (accountBuilder_ == null) {
accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.onflow.protobuf.legacy.entities.AccountOuterClass.Account, org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.Builder, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountOrBuilder>(
getAccount(),
getParentForChildren(),
isClean());
account_ = null;
}
return accountBuilder_;
}
@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:access.AccountResponse)
}
// @@protoc_insertion_point(class_scope:access.AccountResponse)
private static final org.onflow.protobuf.legacy.access.Access.AccountResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.AccountResponse();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.AccountResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetAccountAtBlockHeightRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends: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 access.GetAccountAtBlockHeightRequest}
*/
public static final class GetAccountAtBlockHeightRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.access.Access.internal_static_access_GetAccountAtBlockHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetAccountAtBlockHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest.class, org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountAtBlockHeightRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest other = (org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountAtBlockHeightRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountAtBlockHeightRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountAtBlockHeightRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.GetAccountAtBlockHeightRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetAccountAtBlockHeightRequest)
org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetAccountAtBlockHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetAccountAtBlockHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest.class, org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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.legacy.access.Access.internal_static_access_GetAccountAtBlockHeightRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest build() {
org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest result = new org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountAtBlockHeightRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest other) {
if (other == org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountAtBlockHeightRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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:access.GetAccountAtBlockHeightRequest)
}
// @@protoc_insertion_point(class_scope:access.GetAccountAtBlockHeightRequest)
private static final org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetAccountAtBlockHeightRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteScriptAtLatestBlockRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends: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 access.ExecuteScriptAtLatestBlockRequest}
*/
public static final class ExecuteScriptAtLatestBlockRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.access.Access.internal_static_access_ExecuteScriptAtLatestBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_ExecuteScriptAtLatestBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest.class, org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtLatestBlockRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest other = (org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtLatestBlockRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtLatestBlockRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtLatestBlockRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.ExecuteScriptAtLatestBlockRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.ExecuteScriptAtLatestBlockRequest)
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_ExecuteScriptAtLatestBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_ExecuteScriptAtLatestBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest.class, org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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.legacy.access.Access.internal_static_access_ExecuteScriptAtLatestBlockRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest build() {
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest result = new org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtLatestBlockRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest other) {
if (other == org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtLatestBlockRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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:access.ExecuteScriptAtLatestBlockRequest)
}
// @@protoc_insertion_point(class_scope:access.ExecuteScriptAtLatestBlockRequest)
private static final org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtLatestBlockRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteScriptAtBlockIDRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends: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 access.ExecuteScriptAtBlockIDRequest}
*/
public static final class ExecuteScriptAtBlockIDRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.access.Access.internal_static_access_ExecuteScriptAtBlockIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_ExecuteScriptAtBlockIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest.class, org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtBlockIDRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest other = (org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtBlockIDRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtBlockIDRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtBlockIDRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.ExecuteScriptAtBlockIDRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.ExecuteScriptAtBlockIDRequest)
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_ExecuteScriptAtBlockIDRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_ExecuteScriptAtBlockIDRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest.class, org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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.legacy.access.Access.internal_static_access_ExecuteScriptAtBlockIDRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest build() {
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest result = new org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtBlockIDRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest other) {
if (other == org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtBlockIDRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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:access.ExecuteScriptAtBlockIDRequest)
}
// @@protoc_insertion_point(class_scope:access.ExecuteScriptAtBlockIDRequest)
private static final org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtBlockIDRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteScriptAtBlockHeightRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends: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 access.ExecuteScriptAtBlockHeightRequest}
*/
public static final class ExecuteScriptAtBlockHeightRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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.legacy.access.Access.internal_static_access_ExecuteScriptAtBlockHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_ExecuteScriptAtBlockHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest.class, org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtBlockHeightRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest other = (org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtBlockHeightRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtBlockHeightRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtBlockHeightRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.ExecuteScriptAtBlockHeightRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.ExecuteScriptAtBlockHeightRequest)
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_ExecuteScriptAtBlockHeightRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_ExecuteScriptAtBlockHeightRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest.class, org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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.legacy.access.Access.internal_static_access_ExecuteScriptAtBlockHeightRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest build() {
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest result = new org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtBlockHeightRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest other) {
if (other == org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtBlockHeightRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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:access.ExecuteScriptAtBlockHeightRequest)
}
// @@protoc_insertion_point(class_scope:access.ExecuteScriptAtBlockHeightRequest)
private static final org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptAtBlockHeightRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteScriptResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.ExecuteScriptResponse)
com.google.protobuf.MessageOrBuilder {
/**
* bytes value = 1;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
}
/**
* Protobuf type {@code access.ExecuteScriptResponse}
*/
public static final class ExecuteScriptResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_ExecuteScriptResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_ExecuteScriptResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse.class, org.onflow.protobuf.legacy.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_;
}
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_);
}
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_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse other = (org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse) obj;
if (!getValue()
.equals(other.getValue())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.ExecuteScriptResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.ExecuteScriptResponse)
org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_ExecuteScriptResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_ExecuteScriptResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse.class, org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_ExecuteScriptResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse build() {
org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse buildPartial() {
org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse result = new org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse(this);
result.value_ = value_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse other) {
if (other == org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse.getDefaultInstance()) return this;
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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;
}
@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:access.ExecuteScriptResponse)
}
// @@protoc_insertion_point(class_scope:access.ExecuteScriptResponse)
private static final org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.ExecuteScriptResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetEventsForHeightRangeRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends: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();
}
/**
* Protobuf type {@code access.GetEventsForHeightRangeRequest}
*/
public static final class GetEventsForHeightRangeRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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_ = "";
}
@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;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetEventsForHeightRangeRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetEventsForHeightRangeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest.class, org.onflow.protobuf.legacy.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_;
}
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_);
}
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_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest other = (org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest) obj;
if (!getType()
.equals(other.getType())) return false;
if (getStartHeight()
!= other.getStartHeight()) return false;
if (getEndHeight()
!= other.getEndHeight()) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetEventsForHeightRangeRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetEventsForHeightRangeRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.GetEventsForHeightRangeRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetEventsForHeightRangeRequest)
org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetEventsForHeightRangeRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetEventsForHeightRangeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest.class, org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetEventsForHeightRangeRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest build() {
org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest result = new org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest(this);
result.type_ = type_;
result.startHeight_ = startHeight_;
result.endHeight_ = endHeight_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest other) {
if (other == org.onflow.protobuf.legacy.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());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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;
}
@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:access.GetEventsForHeightRangeRequest)
}
// @@protoc_insertion_point(class_scope:access.GetEventsForHeightRangeRequest)
private static final org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetEventsForHeightRangeRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetEventsForBlockIDsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends: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);
}
/**
* Protobuf type {@code access.GetEventsForBlockIDsRequest}
*/
public static final class GetEventsForBlockIDsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements: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();
}
@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;
}
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.legacy.access.Access.internal_static_access_GetEventsForBlockIDsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetEventsForBlockIDsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest.class, org.onflow.protobuf.legacy.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);
}
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));
}
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();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest other = (org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest) obj;
if (!getType()
.equals(other.getType())) return false;
if (!getBlockIdsList()
.equals(other.getBlockIdsList())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetEventsForBlockIDsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetEventsForBlockIDsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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.legacy.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 access.GetEventsForBlockIDsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetEventsForBlockIDsRequest)
org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetEventsForBlockIDsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetEventsForBlockIDsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest.class, org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.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);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetEventsForBlockIDsRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest build() {
org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest result = new org.onflow.protobuf.legacy.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_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest other) {
if (other == org.onflow.protobuf.legacy.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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.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;
}
@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:access.GetEventsForBlockIDsRequest)
}
// @@protoc_insertion_point(class_scope:access.GetEventsForBlockIDsRequest)
private static final org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest();
}
public static org.onflow.protobuf.legacy.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.legacy.access.Access.GetEventsForBlockIDsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EventsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.EventsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .access.EventsResponse.Result results = 1;
*/
java.util.List
getResultsList();
/**
* repeated .access.EventsResponse.Result results = 1;
*/
org.onflow.protobuf.legacy.access.Access.EventsResponse.Result getResults(int index);
/**
* repeated .access.EventsResponse.Result results = 1;
*/
int getResultsCount();
/**
* repeated .access.EventsResponse.Result results = 1;
*/
java.util.List extends org.onflow.protobuf.legacy.access.Access.EventsResponse.ResultOrBuilder>
getResultsOrBuilderList();
/**
* repeated .access.EventsResponse.Result results = 1;
*/
org.onflow.protobuf.legacy.access.Access.EventsResponse.ResultOrBuilder getResultsOrBuilder(
int index);
}
/**
* Protobuf type {@code access.EventsResponse}
*/
public static final class EventsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:access.EventsResponse)
EventsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use EventsResponse.newBuilder() to construct.
private EventsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EventsResponse() {
results_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EventsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EventsResponse(
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)) {
results_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
results_.add(
input.readMessage(org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
results_ = java.util.Collections.unmodifiableList(results_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_EventsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_EventsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.EventsResponse.class, org.onflow.protobuf.legacy.access.Access.EventsResponse.Builder.class);
}
public interface ResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.EventsResponse.Result)
com.google.protobuf.MessageOrBuilder {
/**
* bytes block_id = 1;
* @return The blockId.
*/
com.google.protobuf.ByteString getBlockId();
/**
* uint64 block_height = 2;
* @return The blockHeight.
*/
long getBlockHeight();
/**
* repeated .entities.Event events = 3;
*/
java.util.List
getEventsList();
/**
* repeated .entities.Event events = 3;
*/
org.onflow.protobuf.legacy.entities.EventOuterClass.Event getEvents(int index);
/**
* repeated .entities.Event events = 3;
*/
int getEventsCount();
/**
* repeated .entities.Event events = 3;
*/
java.util.List extends org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList();
/**
* repeated .entities.Event events = 3;
*/
org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index);
}
/**
* Protobuf type {@code access.EventsResponse.Result}
*/
public static final class Result extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:access.EventsResponse.Result)
ResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use Result.newBuilder() to construct.
private Result(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Result() {
blockId_ = com.google.protobuf.ByteString.EMPTY;
events_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Result();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Result(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
blockId_ = input.readBytes();
break;
}
case 16: {
blockHeight_ = input.readUInt64();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
events_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
events_.add(
input.readMessage(org.onflow.protobuf.legacy.entities.EventOuterClass.Event.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_EventsResponse_Result_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_EventsResponse_Result_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.class, org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.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 BLOCK_HEIGHT_FIELD_NUMBER = 2;
private long blockHeight_;
/**
* uint64 block_height = 2;
* @return The blockHeight.
*/
@java.lang.Override
public long getBlockHeight() {
return blockHeight_;
}
public static final int EVENTS_FIELD_NUMBER = 3;
private java.util.List events_;
/**
* repeated .entities.Event events = 3;
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
* repeated .entities.Event events = 3;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
* repeated .entities.Event events = 3;
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
* repeated .entities.Event events = 3;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.EventOuterClass.Event getEvents(int index) {
return events_.get(index);
}
/**
* repeated .entities.Event events = 3;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index) {
return events_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!blockId_.isEmpty()) {
output.writeBytes(1, blockId_);
}
if (blockHeight_ != 0L) {
output.writeUInt64(2, blockHeight_);
}
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(3, events_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!blockId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, blockId_);
}
if (blockHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, blockHeight_);
}
for (int i = 0; i < events_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, events_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.onflow.protobuf.legacy.access.Access.EventsResponse.Result)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.EventsResponse.Result other = (org.onflow.protobuf.legacy.access.Access.EventsResponse.Result) obj;
if (!getBlockId()
.equals(other.getBlockId())) return false;
if (getBlockHeight()
!= other.getBlockHeight()) return false;
if (!getEventsList()
.equals(other.getEventsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER;
hash = (53 * hash) + getBlockId().hashCode();
hash = (37 * hash) + BLOCK_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockHeight());
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse.Result parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse.Result parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse.Result parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse.Result parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse.Result parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse.Result parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse.Result parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse.Result parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse.Result parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse.Result parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse.Result parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse.Result parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.onflow.protobuf.legacy.access.Access.EventsResponse.Result prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code access.EventsResponse.Result}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.EventsResponse.Result)
org.onflow.protobuf.legacy.access.Access.EventsResponse.ResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_EventsResponse_Result_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_EventsResponse_Result_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.class, org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEventsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
blockId_ = com.google.protobuf.ByteString.EMPTY;
blockHeight_ = 0L;
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
eventsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_EventsResponse_Result_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.EventsResponse.Result getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.EventsResponse.Result build() {
org.onflow.protobuf.legacy.access.Access.EventsResponse.Result result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.EventsResponse.Result buildPartial() {
org.onflow.protobuf.legacy.access.Access.EventsResponse.Result result = new org.onflow.protobuf.legacy.access.Access.EventsResponse.Result(this);
int from_bitField0_ = bitField0_;
result.blockId_ = blockId_;
result.blockHeight_ = blockHeight_;
if (eventsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.events_ = events_;
} else {
result.events_ = eventsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.onflow.protobuf.legacy.access.Access.EventsResponse.Result) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.EventsResponse.Result)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.EventsResponse.Result other) {
if (other == org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.getDefaultInstance()) return this;
if (other.getBlockId() != com.google.protobuf.ByteString.EMPTY) {
setBlockId(other.getBlockId());
}
if (other.getBlockHeight() != 0L) {
setBlockHeight(other.getBlockHeight());
}
if (eventsBuilder_ == null) {
if (!other.events_.isEmpty()) {
if (events_.isEmpty()) {
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEventsIsMutable();
events_.addAll(other.events_);
}
onChanged();
}
} else {
if (!other.events_.isEmpty()) {
if (eventsBuilder_.isEmpty()) {
eventsBuilder_.dispose();
eventsBuilder_ = null;
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
eventsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEventsFieldBuilder() : null;
} else {
eventsBuilder_.addAllMessages(other.events_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.onflow.protobuf.legacy.access.Access.EventsResponse.Result parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.access.Access.EventsResponse.Result) 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 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;
}
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.legacy.entities.EventOuterClass.Event, org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder, org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder> eventsBuilder_;
/**
* repeated .entities.Event events = 3;
*/
public java.util.List getEventsList() {
if (eventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(events_);
} else {
return eventsBuilder_.getMessageList();
}
}
/**
* repeated .entities.Event events = 3;
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
* repeated .entities.Event events = 3;
*/
public org.onflow.protobuf.legacy.entities.EventOuterClass.Event getEvents(int index) {
if (eventsBuilder_ == null) {
return events_.get(index);
} else {
return eventsBuilder_.getMessage(index);
}
}
/**
* repeated .entities.Event events = 3;
*/
public Builder setEvents(
int index, org.onflow.protobuf.legacy.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 .entities.Event events = 3;
*/
public Builder setEvents(
int index, org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.set(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .entities.Event events = 3;
*/
public Builder addEvents(org.onflow.protobuf.legacy.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 .entities.Event events = 3;
*/
public Builder addEvents(
int index, org.onflow.protobuf.legacy.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 .entities.Event events = 3;
*/
public Builder addEvents(
org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .entities.Event events = 3;
*/
public Builder addEvents(
int index, org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .entities.Event events = 3;
*/
public Builder addAllEvents(
java.lang.Iterable extends org.onflow.protobuf.legacy.entities.EventOuterClass.Event> values) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, events_);
onChanged();
} else {
eventsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .entities.Event events = 3;
*/
public Builder clearEvents() {
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
eventsBuilder_.clear();
}
return this;
}
/**
* repeated .entities.Event events = 3;
*/
public Builder removeEvents(int index) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.remove(index);
onChanged();
} else {
eventsBuilder_.remove(index);
}
return this;
}
/**
* repeated .entities.Event events = 3;
*/
public org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
* repeated .entities.Event events = 3;
*/
public org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .entities.Event events = 3;
*/
public java.util.List extends org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder>
getEventsOrBuilderList() {
if (eventsBuilder_ != null) {
return eventsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(events_);
}
}
/**
* repeated .entities.Event events = 3;
*/
public org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder addEventsBuilder() {
return getEventsFieldBuilder().addBuilder(
org.onflow.protobuf.legacy.entities.EventOuterClass.Event.getDefaultInstance());
}
/**
* repeated .entities.Event events = 3;
*/
public org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder addEventsBuilder(
int index) {
return getEventsFieldBuilder().addBuilder(
index, org.onflow.protobuf.legacy.entities.EventOuterClass.Event.getDefaultInstance());
}
/**
* repeated .entities.Event events = 3;
*/
public java.util.List
getEventsBuilderList() {
return getEventsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.legacy.entities.EventOuterClass.Event, org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder, org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder>
getEventsFieldBuilder() {
if (eventsBuilder_ == null) {
eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.legacy.entities.EventOuterClass.Event, org.onflow.protobuf.legacy.entities.EventOuterClass.Event.Builder, org.onflow.protobuf.legacy.entities.EventOuterClass.EventOrBuilder>(
events_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
events_ = null;
}
return eventsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:access.EventsResponse.Result)
}
// @@protoc_insertion_point(class_scope:access.EventsResponse.Result)
private static final org.onflow.protobuf.legacy.access.Access.EventsResponse.Result DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.EventsResponse.Result();
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse.Result getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Result parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Result(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.EventsResponse.Result getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int RESULTS_FIELD_NUMBER = 1;
private java.util.List results_;
/**
* repeated .access.EventsResponse.Result results = 1;
*/
@java.lang.Override
public java.util.List getResultsList() {
return results_;
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
@java.lang.Override
public java.util.List extends org.onflow.protobuf.legacy.access.Access.EventsResponse.ResultOrBuilder>
getResultsOrBuilderList() {
return results_;
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
@java.lang.Override
public int getResultsCount() {
return results_.size();
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.EventsResponse.Result getResults(int index) {
return results_.get(index);
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.EventsResponse.ResultOrBuilder getResultsOrBuilder(
int index) {
return results_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < results_.size(); i++) {
output.writeMessage(1, results_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < results_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, results_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.onflow.protobuf.legacy.access.Access.EventsResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.EventsResponse other = (org.onflow.protobuf.legacy.access.Access.EventsResponse) obj;
if (!getResultsList()
.equals(other.getResultsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getResultsCount() > 0) {
hash = (37 * hash) + RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getResultsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.onflow.protobuf.legacy.access.Access.EventsResponse 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 access.EventsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.EventsResponse)
org.onflow.protobuf.legacy.access.Access.EventsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_EventsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_EventsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.EventsResponse.class, org.onflow.protobuf.legacy.access.Access.EventsResponse.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.access.Access.EventsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResultsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
resultsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_EventsResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.EventsResponse getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.EventsResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.EventsResponse build() {
org.onflow.protobuf.legacy.access.Access.EventsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.EventsResponse buildPartial() {
org.onflow.protobuf.legacy.access.Access.EventsResponse result = new org.onflow.protobuf.legacy.access.Access.EventsResponse(this);
int from_bitField0_ = bitField0_;
if (resultsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
results_ = java.util.Collections.unmodifiableList(results_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.results_ = results_;
} else {
result.results_ = resultsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.onflow.protobuf.legacy.access.Access.EventsResponse) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.EventsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.EventsResponse other) {
if (other == org.onflow.protobuf.legacy.access.Access.EventsResponse.getDefaultInstance()) return this;
if (resultsBuilder_ == null) {
if (!other.results_.isEmpty()) {
if (results_.isEmpty()) {
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResultsIsMutable();
results_.addAll(other.results_);
}
onChanged();
}
} else {
if (!other.results_.isEmpty()) {
if (resultsBuilder_.isEmpty()) {
resultsBuilder_.dispose();
resultsBuilder_ = null;
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000001);
resultsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResultsFieldBuilder() : null;
} else {
resultsBuilder_.addAllMessages(other.results_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.onflow.protobuf.legacy.access.Access.EventsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.access.Access.EventsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List results_ =
java.util.Collections.emptyList();
private void ensureResultsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
results_ = new java.util.ArrayList(results_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.legacy.access.Access.EventsResponse.Result, org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.Builder, org.onflow.protobuf.legacy.access.Access.EventsResponse.ResultOrBuilder> resultsBuilder_;
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public java.util.List getResultsList() {
if (resultsBuilder_ == null) {
return java.util.Collections.unmodifiableList(results_);
} else {
return resultsBuilder_.getMessageList();
}
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public int getResultsCount() {
if (resultsBuilder_ == null) {
return results_.size();
} else {
return resultsBuilder_.getCount();
}
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public org.onflow.protobuf.legacy.access.Access.EventsResponse.Result getResults(int index) {
if (resultsBuilder_ == null) {
return results_.get(index);
} else {
return resultsBuilder_.getMessage(index);
}
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public Builder setResults(
int index, org.onflow.protobuf.legacy.access.Access.EventsResponse.Result value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.set(index, value);
onChanged();
} else {
resultsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public Builder setResults(
int index, org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.set(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public Builder addResults(org.onflow.protobuf.legacy.access.Access.EventsResponse.Result value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(value);
onChanged();
} else {
resultsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public Builder addResults(
int index, org.onflow.protobuf.legacy.access.Access.EventsResponse.Result value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(index, value);
onChanged();
} else {
resultsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public Builder addResults(
org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public Builder addResults(
int index, org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public Builder addAllResults(
java.lang.Iterable extends org.onflow.protobuf.legacy.access.Access.EventsResponse.Result> values) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, results_);
onChanged();
} else {
resultsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public Builder clearResults() {
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
resultsBuilder_.clear();
}
return this;
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public Builder removeResults(int index) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.remove(index);
onChanged();
} else {
resultsBuilder_.remove(index);
}
return this;
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.Builder getResultsBuilder(
int index) {
return getResultsFieldBuilder().getBuilder(index);
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public org.onflow.protobuf.legacy.access.Access.EventsResponse.ResultOrBuilder getResultsOrBuilder(
int index) {
if (resultsBuilder_ == null) {
return results_.get(index); } else {
return resultsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public java.util.List extends org.onflow.protobuf.legacy.access.Access.EventsResponse.ResultOrBuilder>
getResultsOrBuilderList() {
if (resultsBuilder_ != null) {
return resultsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(results_);
}
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.Builder addResultsBuilder() {
return getResultsFieldBuilder().addBuilder(
org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.getDefaultInstance());
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.Builder addResultsBuilder(
int index) {
return getResultsFieldBuilder().addBuilder(
index, org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.getDefaultInstance());
}
/**
* repeated .access.EventsResponse.Result results = 1;
*/
public java.util.List
getResultsBuilderList() {
return getResultsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.legacy.access.Access.EventsResponse.Result, org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.Builder, org.onflow.protobuf.legacy.access.Access.EventsResponse.ResultOrBuilder>
getResultsFieldBuilder() {
if (resultsBuilder_ == null) {
resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.onflow.protobuf.legacy.access.Access.EventsResponse.Result, org.onflow.protobuf.legacy.access.Access.EventsResponse.Result.Builder, org.onflow.protobuf.legacy.access.Access.EventsResponse.ResultOrBuilder>(
results_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
results_ = null;
}
return resultsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:access.EventsResponse)
}
// @@protoc_insertion_point(class_scope:access.EventsResponse)
private static final org.onflow.protobuf.legacy.access.Access.EventsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.EventsResponse();
}
public static org.onflow.protobuf.legacy.access.Access.EventsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EventsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EventsResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.EventsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetNetworkParametersRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.GetNetworkParametersRequest)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code access.GetNetworkParametersRequest}
*/
public static final class GetNetworkParametersRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:access.GetNetworkParametersRequest)
GetNetworkParametersRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetNetworkParametersRequest.newBuilder() to construct.
private GetNetworkParametersRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetNetworkParametersRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetNetworkParametersRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetNetworkParametersRequest(
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.legacy.access.Access.internal_static_access_GetNetworkParametersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetNetworkParametersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest.class, org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest.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.legacy.access.Access.GetNetworkParametersRequest)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest other = (org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest) 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.legacy.access.Access.GetNetworkParametersRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest 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 access.GetNetworkParametersRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetNetworkParametersRequest)
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetNetworkParametersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetNetworkParametersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest.class, org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest.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.legacy.access.Access.internal_static_access_GetNetworkParametersRequest_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest build() {
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest result = new org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest(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.legacy.access.Access.GetNetworkParametersRequest) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest other) {
if (other == org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest.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.legacy.access.Access.GetNetworkParametersRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest) 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:access.GetNetworkParametersRequest)
}
// @@protoc_insertion_point(class_scope:access.GetNetworkParametersRequest)
private static final org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest();
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetNetworkParametersRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetNetworkParametersRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetNetworkParametersResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:access.GetNetworkParametersResponse)
com.google.protobuf.MessageOrBuilder {
/**
* string chain_id = 1;
* @return The chainId.
*/
java.lang.String getChainId();
/**
* string chain_id = 1;
* @return The bytes for chainId.
*/
com.google.protobuf.ByteString
getChainIdBytes();
}
/**
* Protobuf type {@code access.GetNetworkParametersResponse}
*/
public static final class GetNetworkParametersResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:access.GetNetworkParametersResponse)
GetNetworkParametersResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetNetworkParametersResponse.newBuilder() to construct.
private GetNetworkParametersResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetNetworkParametersResponse() {
chainId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetNetworkParametersResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetNetworkParametersResponse(
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();
chainId_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetNetworkParametersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetNetworkParametersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse.class, org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse.Builder.class);
}
public static final int CHAIN_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object chainId_;
/**
* string chain_id = 1;
* @return The chainId.
*/
@java.lang.Override
public java.lang.String getChainId() {
java.lang.Object ref = chainId_;
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();
chainId_ = s;
return s;
}
}
/**
* string chain_id = 1;
* @return The bytes for chainId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChainIdBytes() {
java.lang.Object ref = chainId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getChainIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chainId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getChainIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chainId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse)) {
return super.equals(obj);
}
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse other = (org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse) obj;
if (!getChainId()
.equals(other.getChainId())) 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) + CHAIN_ID_FIELD_NUMBER;
hash = (53 * hash) + getChainId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse 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 access.GetNetworkParametersResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:access.GetNetworkParametersResponse)
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetNetworkParametersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetNetworkParametersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse.class, org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse.Builder.class);
}
// Construct using org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse.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();
chainId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.onflow.protobuf.legacy.access.Access.internal_static_access_GetNetworkParametersResponse_descriptor;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse getDefaultInstanceForType() {
return org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse.getDefaultInstance();
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse build() {
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse buildPartial() {
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse result = new org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse(this);
result.chainId_ = chainId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse) {
return mergeFrom((org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse other) {
if (other == org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse.getDefaultInstance()) return this;
if (!other.getChainId().isEmpty()) {
chainId_ = other.chainId_;
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.legacy.access.Access.GetNetworkParametersResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object chainId_ = "";
/**
* string chain_id = 1;
* @return The chainId.
*/
public java.lang.String getChainId() {
java.lang.Object ref = chainId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string chain_id = 1;
* @return The bytes for chainId.
*/
public com.google.protobuf.ByteString
getChainIdBytes() {
java.lang.Object ref = chainId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string chain_id = 1;
* @param value The chainId to set.
* @return This builder for chaining.
*/
public Builder setChainId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
chainId_ = value;
onChanged();
return this;
}
/**
* string chain_id = 1;
* @return This builder for chaining.
*/
public Builder clearChainId() {
chainId_ = getDefaultInstance().getChainId();
onChanged();
return this;
}
/**
* string chain_id = 1;
* @param value The bytes for chainId to set.
* @return This builder for chaining.
*/
public Builder setChainIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
chainId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:access.GetNetworkParametersResponse)
}
// @@protoc_insertion_point(class_scope:access.GetNetworkParametersResponse)
private static final org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse();
}
public static org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetNetworkParametersResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetNetworkParametersResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_PingRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_PingRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_PingResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_PingResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetLatestBlockHeaderRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetLatestBlockHeaderRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetBlockHeaderByIDRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetBlockHeaderByIDRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetBlockHeaderByHeightRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetBlockHeaderByHeightRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_BlockHeaderResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_BlockHeaderResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetLatestBlockRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetLatestBlockRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetBlockByIDRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetBlockByIDRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetBlockByHeightRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetBlockByHeightRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_BlockResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_BlockResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetCollectionByIDRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetCollectionByIDRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_CollectionResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_CollectionResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_SendTransactionRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_SendTransactionRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_SendTransactionResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_SendTransactionResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetTransactionRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetTransactionRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_TransactionResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_TransactionResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_TransactionResultResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_TransactionResultResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetAccountRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetAccountRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetAccountResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetAccountResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetAccountAtLatestBlockRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetAccountAtLatestBlockRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_AccountResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_AccountResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetAccountAtBlockHeightRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetAccountAtBlockHeightRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_ExecuteScriptAtLatestBlockRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_ExecuteScriptAtLatestBlockRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_ExecuteScriptAtBlockIDRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_ExecuteScriptAtBlockIDRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_ExecuteScriptAtBlockHeightRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_ExecuteScriptAtBlockHeightRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_ExecuteScriptResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_ExecuteScriptResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetEventsForHeightRangeRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetEventsForHeightRangeRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetEventsForBlockIDsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetEventsForBlockIDsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_EventsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_EventsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_EventsResponse_Result_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_EventsResponse_Result_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetNetworkParametersRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetNetworkParametersRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_access_GetNetworkParametersResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_access_GetNetworkParametersResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\037flow/legacy/access/access.proto\022\006acces" +
"s\032\"flow/legacy/entities/account.proto\032\'f" +
"low/legacy/entities/block_header.proto\032 " +
"flow/legacy/entities/block.proto\032%flow/l" +
"egacy/entities/collection.proto\032 flow/le" +
"gacy/entities/event.proto\032&flow/legacy/e" +
"ntities/transaction.proto\"\r\n\013PingRequest" +
"\"\016\n\014PingResponse\"0\n\033GetLatestBlockHeader" +
"Request\022\021\n\tis_sealed\030\001 \001(\010\"\'\n\031GetBlockHe" +
"aderByIDRequest\022\n\n\002id\030\001 \001(\014\"/\n\035GetBlockH" +
"eaderByHeightRequest\022\016\n\006height\030\001 \001(\004\";\n\023" +
"BlockHeaderResponse\022$\n\005block\030\001 \001(\0132\025.ent" +
"ities.BlockHeader\"*\n\025GetLatestBlockReque" +
"st\022\021\n\tis_sealed\030\001 \001(\010\"!\n\023GetBlockByIDReq" +
"uest\022\n\n\002id\030\001 \001(\014\")\n\027GetBlockByHeightRequ" +
"est\022\016\n\006height\030\001 \001(\004\"/\n\rBlockResponse\022\036\n\005" +
"block\030\001 \001(\0132\017.entities.Block\"&\n\030GetColle" +
"ctionByIDRequest\022\n\n\002id\030\001 \001(\014\">\n\022Collecti" +
"onResponse\022(\n\ncollection\030\001 \001(\0132\024.entitie" +
"s.Collection\"D\n\026SendTransactionRequest\022*" +
"\n\013transaction\030\001 \001(\0132\025.entities.Transacti" +
"on\"%\n\027SendTransactionResponse\022\n\n\002id\030\001 \001(" +
"\014\"#\n\025GetTransactionRequest\022\n\n\002id\030\001 \001(\014\"A" +
"\n\023TransactionResponse\022*\n\013transaction\030\001 \001" +
"(\0132\025.entities.Transaction\"\225\001\n\031Transactio" +
"nResultResponse\022+\n\006status\030\001 \001(\0162\033.entiti" +
"es.TransactionStatus\022\023\n\013status_code\030\002 \001(" +
"\r\022\025\n\rerror_message\030\003 \001(\t\022\037\n\006events\030\004 \003(\013" +
"2\017.entities.Event\"$\n\021GetAccountRequest\022\017" +
"\n\007address\030\001 \001(\014\"8\n\022GetAccountResponse\022\"\n" +
"\007account\030\001 \001(\0132\021.entities.Account\"1\n\036Get" +
"AccountAtLatestBlockRequest\022\017\n\007address\030\001" +
" \001(\014\"5\n\017AccountResponse\022\"\n\007account\030\001 \001(\013" +
"2\021.entities.Account\"G\n\036GetAccountAtBlock" +
"HeightRequest\022\017\n\007address\030\001 \001(\014\022\024\n\014block_" +
"height\030\002 \001(\004\"F\n!ExecuteScriptAtLatestBlo" +
"ckRequest\022\016\n\006script\030\001 \001(\014\022\021\n\targuments\030\002" +
" \003(\014\"T\n\035ExecuteScriptAtBlockIDRequest\022\020\n" +
"\010block_id\030\001 \001(\014\022\016\n\006script\030\002 \001(\014\022\021\n\targum" +
"ents\030\003 \003(\014\"\\\n!ExecuteScriptAtBlockHeight" +
"Request\022\024\n\014block_height\030\001 \001(\004\022\016\n\006script\030" +
"\002 \001(\014\022\021\n\targuments\030\003 \003(\014\"&\n\025ExecuteScrip" +
"tResponse\022\r\n\005value\030\001 \001(\014\"X\n\036GetEventsFor" +
"HeightRangeRequest\022\014\n\004type\030\001 \001(\t\022\024\n\014star" +
"t_height\030\002 \001(\004\022\022\n\nend_height\030\003 \001(\004\">\n\033Ge" +
"tEventsForBlockIDsRequest\022\014\n\004type\030\001 \001(\t\022" +
"\021\n\tblock_ids\030\002 \003(\014\"\223\001\n\016EventsResponse\022.\n" +
"\007results\030\001 \003(\0132\035.access.EventsResponse.R" +
"esult\032Q\n\006Result\022\020\n\010block_id\030\001 \001(\014\022\024\n\014blo" +
"ck_height\030\002 \001(\004\022\037\n\006events\030\003 \003(\0132\017.entiti" +
"es.Event\"\035\n\033GetNetworkParametersRequest\"" +
"0\n\034GetNetworkParametersResponse\022\020\n\010chain" +
"_id\030\001 \001(\t2\263\r\n\tAccessAPI\0221\n\004Ping\022\023.access" +
".PingRequest\032\024.access.PingResponse\022X\n\024Ge" +
"tLatestBlockHeader\022#.access.GetLatestBlo" +
"ckHeaderRequest\032\033.access.BlockHeaderResp" +
"onse\022T\n\022GetBlockHeaderByID\022!.access.GetB" +
"lockHeaderByIDRequest\032\033.access.BlockHead" +
"erResponse\022\\\n\026GetBlockHeaderByHeight\022%.a" +
"ccess.GetBlockHeaderByHeightRequest\032\033.ac" +
"cess.BlockHeaderResponse\022F\n\016GetLatestBlo" +
"ck\022\035.access.GetLatestBlockRequest\032\025.acce" +
"ss.BlockResponse\022B\n\014GetBlockByID\022\033.acces" +
"s.GetBlockByIDRequest\032\025.access.BlockResp" +
"onse\022J\n\020GetBlockByHeight\022\037.access.GetBlo" +
"ckByHeightRequest\032\025.access.BlockResponse" +
"\022Q\n\021GetCollectionByID\022 .access.GetCollec" +
"tionByIDRequest\032\032.access.CollectionRespo" +
"nse\022R\n\017SendTransaction\022\036.access.SendTran" +
"sactionRequest\032\037.access.SendTransactionR" +
"esponse\022L\n\016GetTransaction\022\035.access.GetTr" +
"ansactionRequest\032\033.access.TransactionRes" +
"ponse\022X\n\024GetTransactionResult\022\035.access.G" +
"etTransactionRequest\032!.access.Transactio" +
"nResultResponse\022C\n\nGetAccount\022\031.access.G" +
"etAccountRequest\032\032.access.GetAccountResp" +
"onse\022Z\n\027GetAccountAtLatestBlock\022&.access" +
".GetAccountAtLatestBlockRequest\032\027.access" +
".AccountResponse\022Z\n\027GetAccountAtBlockHei" +
"ght\022&.access.GetAccountAtBlockHeightRequ" +
"est\032\027.access.AccountResponse\022f\n\032ExecuteS" +
"criptAtLatestBlock\022).access.ExecuteScrip" +
"tAtLatestBlockRequest\032\035.access.ExecuteSc" +
"riptResponse\022^\n\026ExecuteScriptAtBlockID\022%" +
".access.ExecuteScriptAtBlockIDRequest\032\035." +
"access.ExecuteScriptResponse\022f\n\032ExecuteS" +
"criptAtBlockHeight\022).access.ExecuteScrip" +
"tAtBlockHeightRequest\032\035.access.ExecuteSc" +
"riptResponse\022Y\n\027GetEventsForHeightRange\022" +
"&.access.GetEventsForHeightRangeRequest\032" +
"\026.access.EventsResponse\022S\n\024GetEventsForB" +
"lockIDs\022#.access.GetEventsForBlockIDsReq" +
"uest\032\026.access.EventsResponse\022a\n\024GetNetwo" +
"rkParameters\022#.access.GetNetworkParamete" +
"rsRequest\032$.access.GetNetworkParametersR" +
"esponseBZ\n!org.onflow.protobuf.legacy.ac" +
"cessZ5github.com/onflow/flow/protobuf/go" +
"/flow/legacy/accessb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.onflow.protobuf.legacy.entities.AccountOuterClass.getDescriptor(),
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.getDescriptor(),
org.onflow.protobuf.legacy.entities.BlockOuterClass.getDescriptor(),
org.onflow.protobuf.legacy.entities.CollectionOuterClass.getDescriptor(),
org.onflow.protobuf.legacy.entities.EventOuterClass.getDescriptor(),
org.onflow.protobuf.legacy.entities.TransactionOuterClass.getDescriptor(),
});
internal_static_access_PingRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_access_PingRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_PingRequest_descriptor,
new java.lang.String[] { });
internal_static_access_PingResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_access_PingResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_PingResponse_descriptor,
new java.lang.String[] { });
internal_static_access_GetLatestBlockHeaderRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_access_GetLatestBlockHeaderRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetLatestBlockHeaderRequest_descriptor,
new java.lang.String[] { "IsSealed", });
internal_static_access_GetBlockHeaderByIDRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_access_GetBlockHeaderByIDRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetBlockHeaderByIDRequest_descriptor,
new java.lang.String[] { "Id", });
internal_static_access_GetBlockHeaderByHeightRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_access_GetBlockHeaderByHeightRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetBlockHeaderByHeightRequest_descriptor,
new java.lang.String[] { "Height", });
internal_static_access_BlockHeaderResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_access_BlockHeaderResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_BlockHeaderResponse_descriptor,
new java.lang.String[] { "Block", });
internal_static_access_GetLatestBlockRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_access_GetLatestBlockRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetLatestBlockRequest_descriptor,
new java.lang.String[] { "IsSealed", });
internal_static_access_GetBlockByIDRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_access_GetBlockByIDRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetBlockByIDRequest_descriptor,
new java.lang.String[] { "Id", });
internal_static_access_GetBlockByHeightRequest_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_access_GetBlockByHeightRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetBlockByHeightRequest_descriptor,
new java.lang.String[] { "Height", });
internal_static_access_BlockResponse_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_access_BlockResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_BlockResponse_descriptor,
new java.lang.String[] { "Block", });
internal_static_access_GetCollectionByIDRequest_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_access_GetCollectionByIDRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetCollectionByIDRequest_descriptor,
new java.lang.String[] { "Id", });
internal_static_access_CollectionResponse_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_access_CollectionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_CollectionResponse_descriptor,
new java.lang.String[] { "Collection", });
internal_static_access_SendTransactionRequest_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_access_SendTransactionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_SendTransactionRequest_descriptor,
new java.lang.String[] { "Transaction", });
internal_static_access_SendTransactionResponse_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_access_SendTransactionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_SendTransactionResponse_descriptor,
new java.lang.String[] { "Id", });
internal_static_access_GetTransactionRequest_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_access_GetTransactionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetTransactionRequest_descriptor,
new java.lang.String[] { "Id", });
internal_static_access_TransactionResponse_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_access_TransactionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_TransactionResponse_descriptor,
new java.lang.String[] { "Transaction", });
internal_static_access_TransactionResultResponse_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_access_TransactionResultResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_TransactionResultResponse_descriptor,
new java.lang.String[] { "Status", "StatusCode", "ErrorMessage", "Events", });
internal_static_access_GetAccountRequest_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_access_GetAccountRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetAccountRequest_descriptor,
new java.lang.String[] { "Address", });
internal_static_access_GetAccountResponse_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_access_GetAccountResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetAccountResponse_descriptor,
new java.lang.String[] { "Account", });
internal_static_access_GetAccountAtLatestBlockRequest_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_access_GetAccountAtLatestBlockRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetAccountAtLatestBlockRequest_descriptor,
new java.lang.String[] { "Address", });
internal_static_access_AccountResponse_descriptor =
getDescriptor().getMessageTypes().get(20);
internal_static_access_AccountResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_AccountResponse_descriptor,
new java.lang.String[] { "Account", });
internal_static_access_GetAccountAtBlockHeightRequest_descriptor =
getDescriptor().getMessageTypes().get(21);
internal_static_access_GetAccountAtBlockHeightRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetAccountAtBlockHeightRequest_descriptor,
new java.lang.String[] { "Address", "BlockHeight", });
internal_static_access_ExecuteScriptAtLatestBlockRequest_descriptor =
getDescriptor().getMessageTypes().get(22);
internal_static_access_ExecuteScriptAtLatestBlockRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_ExecuteScriptAtLatestBlockRequest_descriptor,
new java.lang.String[] { "Script", "Arguments", });
internal_static_access_ExecuteScriptAtBlockIDRequest_descriptor =
getDescriptor().getMessageTypes().get(23);
internal_static_access_ExecuteScriptAtBlockIDRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_ExecuteScriptAtBlockIDRequest_descriptor,
new java.lang.String[] { "BlockId", "Script", "Arguments", });
internal_static_access_ExecuteScriptAtBlockHeightRequest_descriptor =
getDescriptor().getMessageTypes().get(24);
internal_static_access_ExecuteScriptAtBlockHeightRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_ExecuteScriptAtBlockHeightRequest_descriptor,
new java.lang.String[] { "BlockHeight", "Script", "Arguments", });
internal_static_access_ExecuteScriptResponse_descriptor =
getDescriptor().getMessageTypes().get(25);
internal_static_access_ExecuteScriptResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_ExecuteScriptResponse_descriptor,
new java.lang.String[] { "Value", });
internal_static_access_GetEventsForHeightRangeRequest_descriptor =
getDescriptor().getMessageTypes().get(26);
internal_static_access_GetEventsForHeightRangeRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetEventsForHeightRangeRequest_descriptor,
new java.lang.String[] { "Type", "StartHeight", "EndHeight", });
internal_static_access_GetEventsForBlockIDsRequest_descriptor =
getDescriptor().getMessageTypes().get(27);
internal_static_access_GetEventsForBlockIDsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetEventsForBlockIDsRequest_descriptor,
new java.lang.String[] { "Type", "BlockIds", });
internal_static_access_EventsResponse_descriptor =
getDescriptor().getMessageTypes().get(28);
internal_static_access_EventsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_EventsResponse_descriptor,
new java.lang.String[] { "Results", });
internal_static_access_EventsResponse_Result_descriptor =
internal_static_access_EventsResponse_descriptor.getNestedTypes().get(0);
internal_static_access_EventsResponse_Result_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_EventsResponse_Result_descriptor,
new java.lang.String[] { "BlockId", "BlockHeight", "Events", });
internal_static_access_GetNetworkParametersRequest_descriptor =
getDescriptor().getMessageTypes().get(29);
internal_static_access_GetNetworkParametersRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetNetworkParametersRequest_descriptor,
new java.lang.String[] { });
internal_static_access_GetNetworkParametersResponse_descriptor =
getDescriptor().getMessageTypes().get(30);
internal_static_access_GetNetworkParametersResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_access_GetNetworkParametersResponse_descriptor,
new java.lang.String[] { "ChainId", });
org.onflow.protobuf.legacy.entities.AccountOuterClass.getDescriptor();
org.onflow.protobuf.legacy.entities.BlockHeaderOuterClass.getDescriptor();
org.onflow.protobuf.legacy.entities.BlockOuterClass.getDescriptor();
org.onflow.protobuf.legacy.entities.CollectionOuterClass.getDescriptor();
org.onflow.protobuf.legacy.entities.EventOuterClass.getDescriptor();
org.onflow.protobuf.legacy.entities.TransactionOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}