// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc.txledger;
/**
* Protobuf type {@code bdchain.api.txledger.GetBlocksRequest}
*/
public final class GetBlocksRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.GetBlocksRequest)
GetBlocksRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetBlocksRequest.newBuilder() to construct.
private GetBlocksRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetBlocksRequest() {
ledger_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetBlocksRequest(
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();
ledger_ = s;
break;
}
case 16: {
fromIndex_ = input.readUInt64();
break;
}
case 24: {
count_ = input.readUInt32();
break;
}
case 32: {
fullTransaction_ = 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 bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetBlocksRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetBlocksRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.txledger.GetBlocksRequest.class, bdchain.api.grpc.txledger.GetBlocksRequest.Builder.class);
}
public static final int LEDGER_FIELD_NUMBER = 1;
private volatile java.lang.Object ledger_;
/**
* string ledger = 1;
*/
public java.lang.String getLedger() {
java.lang.Object ref = ledger_;
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();
ledger_ = s;
return s;
}
}
/**
* string ledger = 1;
*/
public com.google.protobuf.ByteString
getLedgerBytes() {
java.lang.Object ref = ledger_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ledger_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FROM_INDEX_FIELD_NUMBER = 2;
private long fromIndex_;
/**
* uint64 from_index = 2;
*/
public long getFromIndex() {
return fromIndex_;
}
public static final int COUNT_FIELD_NUMBER = 3;
private int count_;
/**
*
* Optional, default to 10, max value is 10 ** *
uint32 count = 3;
*/
public int getCount() {
return count_;
}
public static final int FULL_TRANSACTION_FIELD_NUMBER = 4;
private boolean fullTransaction_;
/**
* bool full_transaction = 4;
*/
public boolean getFullTransaction() {
return fullTransaction_;
}
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 (!getLedgerBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ledger_);
}
if (fromIndex_ != 0L) {
output.writeUInt64(2, fromIndex_);
}
if (count_ != 0) {
output.writeUInt32(3, count_);
}
if (fullTransaction_ != false) {
output.writeBool(4, fullTransaction_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getLedgerBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ledger_);
}
if (fromIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, fromIndex_);
}
if (count_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, count_);
}
if (fullTransaction_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, fullTransaction_);
}
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 bdchain.api.grpc.txledger.GetBlocksRequest)) {
return super.equals(obj);
}
bdchain.api.grpc.txledger.GetBlocksRequest other = (bdchain.api.grpc.txledger.GetBlocksRequest) obj;
if (!getLedger()
.equals(other.getLedger())) return false;
if (getFromIndex()
!= other.getFromIndex()) return false;
if (getCount()
!= other.getCount()) return false;
if (getFullTransaction()
!= other.getFullTransaction()) 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) + LEDGER_FIELD_NUMBER;
hash = (53 * hash) + getLedger().hashCode();
hash = (37 * hash) + FROM_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFromIndex());
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + getCount();
hash = (37 * hash) + FULL_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFullTransaction());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest 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 bdchain.api.grpc.txledger.GetBlocksRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest 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 bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest 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(bdchain.api.grpc.txledger.GetBlocksRequest 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 bdchain.api.txledger.GetBlocksRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderstring ledger = 1;
*/
public java.lang.String getLedger() {
java.lang.Object ref = ledger_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ledger_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string ledger = 1;
*/
public com.google.protobuf.ByteString
getLedgerBytes() {
java.lang.Object ref = ledger_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ledger_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string ledger = 1;
*/
public Builder setLedger(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ledger_ = value;
onChanged();
return this;
}
/**
* string ledger = 1;
*/
public Builder clearLedger() {
ledger_ = getDefaultInstance().getLedger();
onChanged();
return this;
}
/**
* string ledger = 1;
*/
public Builder setLedgerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ledger_ = value;
onChanged();
return this;
}
private long fromIndex_ ;
/**
* uint64 from_index = 2;
*/
public long getFromIndex() {
return fromIndex_;
}
/**
* uint64 from_index = 2;
*/
public Builder setFromIndex(long value) {
fromIndex_ = value;
onChanged();
return this;
}
/**
* uint64 from_index = 2;
*/
public Builder clearFromIndex() {
fromIndex_ = 0L;
onChanged();
return this;
}
private int count_ ;
/**
* * Optional, default to 10, max value is 10 ** *
uint32 count = 3;
*/
public int getCount() {
return count_;
}
/**
* * Optional, default to 10, max value is 10 ** *
uint32 count = 3;
*/
public Builder setCount(int value) {
count_ = value;
onChanged();
return this;
}
/**
* * Optional, default to 10, max value is 10 ** *
uint32 count = 3;
*/
public Builder clearCount() {
count_ = 0;
onChanged();
return this;
}
private boolean fullTransaction_ ;
/**
* bool full_transaction = 4;
*/
public boolean getFullTransaction() {
return fullTransaction_;
}
/**
* bool full_transaction = 4;
*/
public Builder setFullTransaction(boolean value) {
fullTransaction_ = value;
onChanged();
return this;
}
/**
* bool full_transaction = 4;
*/
public Builder clearFullTransaction() {
fullTransaction_ = 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:bdchain.api.txledger.GetBlocksRequest)
}
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.GetBlocksRequest)
private static final bdchain.api.grpc.txledger.GetBlocksRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.GetBlocksRequest();
}
public static bdchain.api.grpc.txledger.GetBlocksRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser