Update gRPC API
This commit is contained in:
729
src/main/java/bdchain/api/grpc/txledger/GetBlocksRequest.java
Normal file
729
src/main/java/bdchain/api/grpc/txledger/GetBlocksRequest.java
Normal file
@@ -0,0 +1,729 @@
|
||||
// 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_;
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
*/
|
||||
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_;
|
||||
/**
|
||||
* <code>uint64 from_index = 2;</code>
|
||||
*/
|
||||
public long getFromIndex() {
|
||||
return fromIndex_;
|
||||
}
|
||||
|
||||
public static final int COUNT_FIELD_NUMBER = 3;
|
||||
private int count_;
|
||||
/**
|
||||
* <pre>
|
||||
* Optional, default to 10, max value is 10
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint32 count = 3;</code>
|
||||
*/
|
||||
public int getCount() {
|
||||
return count_;
|
||||
}
|
||||
|
||||
public static final int FULL_TRANSACTION_FIELD_NUMBER = 4;
|
||||
private boolean fullTransaction_;
|
||||
/**
|
||||
* <code>bool full_transaction = 4;</code>
|
||||
*/
|
||||
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.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.GetBlocksRequest)
|
||||
bdchain.api.grpc.txledger.GetBlocksRequestOrBuilder {
|
||||
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);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.txledger.GetBlocksRequest.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();
|
||||
ledger_ = "";
|
||||
|
||||
fromIndex_ = 0L;
|
||||
|
||||
count_ = 0;
|
||||
|
||||
fullTransaction_ = false;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetBlocksRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.GetBlocksRequest getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.txledger.GetBlocksRequest.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.GetBlocksRequest build() {
|
||||
bdchain.api.grpc.txledger.GetBlocksRequest result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.GetBlocksRequest buildPartial() {
|
||||
bdchain.api.grpc.txledger.GetBlocksRequest result = new bdchain.api.grpc.txledger.GetBlocksRequest(this);
|
||||
result.ledger_ = ledger_;
|
||||
result.fromIndex_ = fromIndex_;
|
||||
result.count_ = count_;
|
||||
result.fullTransaction_ = fullTransaction_;
|
||||
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 bdchain.api.grpc.txledger.GetBlocksRequest) {
|
||||
return mergeFrom((bdchain.api.grpc.txledger.GetBlocksRequest)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdchain.api.grpc.txledger.GetBlocksRequest other) {
|
||||
if (other == bdchain.api.grpc.txledger.GetBlocksRequest.getDefaultInstance()) return this;
|
||||
if (!other.getLedger().isEmpty()) {
|
||||
ledger_ = other.ledger_;
|
||||
onChanged();
|
||||
}
|
||||
if (other.getFromIndex() != 0L) {
|
||||
setFromIndex(other.getFromIndex());
|
||||
}
|
||||
if (other.getCount() != 0) {
|
||||
setCount(other.getCount());
|
||||
}
|
||||
if (other.getFullTransaction() != false) {
|
||||
setFullTransaction(other.getFullTransaction());
|
||||
}
|
||||
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 {
|
||||
bdchain.api.grpc.txledger.GetBlocksRequest parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.txledger.GetBlocksRequest) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object ledger_ = "";
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
*/
|
||||
public Builder setLedger(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
ledger_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
*/
|
||||
public Builder clearLedger() {
|
||||
|
||||
ledger_ = getDefaultInstance().getLedger();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
*/
|
||||
public Builder setLedgerBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
ledger_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private long fromIndex_ ;
|
||||
/**
|
||||
* <code>uint64 from_index = 2;</code>
|
||||
*/
|
||||
public long getFromIndex() {
|
||||
return fromIndex_;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 from_index = 2;</code>
|
||||
*/
|
||||
public Builder setFromIndex(long value) {
|
||||
|
||||
fromIndex_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 from_index = 2;</code>
|
||||
*/
|
||||
public Builder clearFromIndex() {
|
||||
|
||||
fromIndex_ = 0L;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int count_ ;
|
||||
/**
|
||||
* <pre>
|
||||
* Optional, default to 10, max value is 10
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint32 count = 3;</code>
|
||||
*/
|
||||
public int getCount() {
|
||||
return count_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Optional, default to 10, max value is 10
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint32 count = 3;</code>
|
||||
*/
|
||||
public Builder setCount(int value) {
|
||||
|
||||
count_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Optional, default to 10, max value is 10
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint32 count = 3;</code>
|
||||
*/
|
||||
public Builder clearCount() {
|
||||
|
||||
count_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean fullTransaction_ ;
|
||||
/**
|
||||
* <code>bool full_transaction = 4;</code>
|
||||
*/
|
||||
public boolean getFullTransaction() {
|
||||
return fullTransaction_;
|
||||
}
|
||||
/**
|
||||
* <code>bool full_transaction = 4;</code>
|
||||
*/
|
||||
public Builder setFullTransaction(boolean value) {
|
||||
|
||||
fullTransaction_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bool full_transaction = 4;</code>
|
||||
*/
|
||||
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<GetBlocksRequest>
|
||||
PARSER = new com.google.protobuf.AbstractParser<GetBlocksRequest>() {
|
||||
@java.lang.Override
|
||||
public GetBlocksRequest parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new GetBlocksRequest(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<GetBlocksRequest> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<GetBlocksRequest> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.GetBlocksRequest getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user