com.hedera.hapi.block.protoc.SubscribeStreamRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: block_service.proto
package com.hedera.hapi.block.protoc;
/**
*
**
* A request to stream block items from block node to a client.
* The block node SHALL respond to this request with a stream of
* `SubscribeStreamResponse` messages.<br/>
* The block node SHALL stream the full contents of the blocks requested.<br/>
* The block items SHALL be streamed in order originally produced within
* a block.<br/>
* The blocks SHALL be streamed in ascending order by `block_number`.<br/>
* The block node SHALL end the stream when the last requested block has
* been sent.<br/>
* The block node SHALL end the stream with a response code status of SUCCESS
* when the stream is complete.<br/>
* The client SHOULD call the `serverStatus` rpc prior to constructing this
* request to determine the available start and end blocks.
*
*
* Protobuf type {@code com.hedera.hapi.block.SubscribeStreamRequest}
*/
public final class SubscribeStreamRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.hedera.hapi.block.SubscribeStreamRequest)
SubscribeStreamRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeStreamRequest.newBuilder() to construct.
private SubscribeStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeStreamRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeStreamRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscribeStreamRequest(
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: {
startBlockNumber_ = input.readUInt64();
break;
}
case 16: {
endBlockNumber_ = input.readUInt64();
break;
}
case 24: {
allowUnverified_ = 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 com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_SubscribeStreamRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_SubscribeStreamRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.block.protoc.SubscribeStreamRequest.class, com.hedera.hapi.block.protoc.SubscribeStreamRequest.Builder.class);
}
public static final int START_BLOCK_NUMBER_FIELD_NUMBER = 1;
private long startBlockNumber_;
/**
*
**
* A block number to start the stream.
* <p>
* This SHALL be the block number of the first block returned.<br/>
* This field MUST be less than or equal to the latest available
* block number.
*
*
* uint64 start_block_number = 1;
* @return The startBlockNumber.
*/
@java.lang.Override
public long getStartBlockNumber() {
return startBlockNumber_;
}
public static final int END_BLOCK_NUMBER_FIELD_NUMBER = 2;
private long endBlockNumber_;
/**
*
**
* A block number to end the stream.<br/>
* This is optional, and if not set (0), the stream will be "infinite".
* <p>
* This field MAY be zero (`0`) to indicate the stream SHOULD continue
* indefinitely, streaming new blocks as each becomes available.<br/>
* If this value is greater than zero (`0`)
* <ul>
* <li>This value SHALL be the number of the last block returned.</li>
* <li>This field MUST NOT be less than `start_block_number`.</li>
* <li>This SHOULD be a block number that is immediately available
* from the block node.</li>
* <li>A block node SHALL continue to stream blocks until the last
* requested block is transmitted.</li>
* <li>A block node implementation MAY reject a request for a block
* that is not yet available.</li>
* <li>A block node implementation MAY accept future block numbers.</li>
* <li>Block node implementations MAY charge increased fees for such
* "future" streams.</li>
* </ul>
*
*
* uint64 end_block_number = 2;
* @return The endBlockNumber.
*/
@java.lang.Override
public long getEndBlockNumber() {
return endBlockNumber_;
}
public static final int ALLOW_UNVERIFIED_FIELD_NUMBER = 3;
private boolean allowUnverified_;
/**
*
**
* A flag to indicate that the requested block(s) may be sent before
* verifying each block's `BlockProof`.<br/>
* This might be set by a client that expects to perform its own
* verification and wishes lower latency or, potentially, lower cost.
* <p>
* If this value is set, then the responding Block Node MAY respond with
* blocks that have not (yet) completed block proof verification.<br/>
* If this is _not set_ then the Block Node MUST respond with only
* fully verified and validated block(s).<br/>
* If this is _set_, then a Block Node MAY stream items from
* blocks that have not yet been verified or do not yet have
* a block proof available.<br/>
* The default value is _not set_.
*
*
* bool allow_unverified = 3;
* @return The allowUnverified.
*/
@java.lang.Override
public boolean getAllowUnverified() {
return allowUnverified_;
}
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 (startBlockNumber_ != 0L) {
output.writeUInt64(1, startBlockNumber_);
}
if (endBlockNumber_ != 0L) {
output.writeUInt64(2, endBlockNumber_);
}
if (allowUnverified_ != false) {
output.writeBool(3, allowUnverified_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (startBlockNumber_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, startBlockNumber_);
}
if (endBlockNumber_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, endBlockNumber_);
}
if (allowUnverified_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, allowUnverified_);
}
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 com.hedera.hapi.block.protoc.SubscribeStreamRequest)) {
return super.equals(obj);
}
com.hedera.hapi.block.protoc.SubscribeStreamRequest other = (com.hedera.hapi.block.protoc.SubscribeStreamRequest) obj;
if (getStartBlockNumber()
!= other.getStartBlockNumber()) return false;
if (getEndBlockNumber()
!= other.getEndBlockNumber()) return false;
if (getAllowUnverified()
!= other.getAllowUnverified()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + START_BLOCK_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartBlockNumber());
hash = (37 * hash) + END_BLOCK_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndBlockNumber());
hash = (37 * hash) + ALLOW_UNVERIFIED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAllowUnverified());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hapi.block.protoc.SubscribeStreamRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.protoc.SubscribeStreamRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hapi.block.protoc.SubscribeStreamRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.protoc.SubscribeStreamRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hapi.block.protoc.SubscribeStreamRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.protoc.SubscribeStreamRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hapi.block.protoc.SubscribeStreamRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hapi.block.protoc.SubscribeStreamRequest 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 com.hedera.hapi.block.protoc.SubscribeStreamRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hapi.block.protoc.SubscribeStreamRequest 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 com.hedera.hapi.block.protoc.SubscribeStreamRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hapi.block.protoc.SubscribeStreamRequest 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(com.hedera.hapi.block.protoc.SubscribeStreamRequest 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;
}
/**
*
**
* A request to stream block items from block node to a client.
* The block node SHALL respond to this request with a stream of
* `SubscribeStreamResponse` messages.<br/>
* The block node SHALL stream the full contents of the blocks requested.<br/>
* The block items SHALL be streamed in order originally produced within
* a block.<br/>
* The blocks SHALL be streamed in ascending order by `block_number`.<br/>
* The block node SHALL end the stream when the last requested block has
* been sent.<br/>
* The block node SHALL end the stream with a response code status of SUCCESS
* when the stream is complete.<br/>
* The client SHOULD call the `serverStatus` rpc prior to constructing this
* request to determine the available start and end blocks.
*
*
* Protobuf type {@code com.hedera.hapi.block.SubscribeStreamRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.hedera.hapi.block.SubscribeStreamRequest)
com.hedera.hapi.block.protoc.SubscribeStreamRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_SubscribeStreamRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_SubscribeStreamRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.block.protoc.SubscribeStreamRequest.class, com.hedera.hapi.block.protoc.SubscribeStreamRequest.Builder.class);
}
// Construct using com.hedera.hapi.block.protoc.SubscribeStreamRequest.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();
startBlockNumber_ = 0L;
endBlockNumber_ = 0L;
allowUnverified_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_SubscribeStreamRequest_descriptor;
}
@java.lang.Override
public com.hedera.hapi.block.protoc.SubscribeStreamRequest getDefaultInstanceForType() {
return com.hedera.hapi.block.protoc.SubscribeStreamRequest.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hapi.block.protoc.SubscribeStreamRequest build() {
com.hedera.hapi.block.protoc.SubscribeStreamRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hapi.block.protoc.SubscribeStreamRequest buildPartial() {
com.hedera.hapi.block.protoc.SubscribeStreamRequest result = new com.hedera.hapi.block.protoc.SubscribeStreamRequest(this);
result.startBlockNumber_ = startBlockNumber_;
result.endBlockNumber_ = endBlockNumber_;
result.allowUnverified_ = allowUnverified_;
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 com.hedera.hapi.block.protoc.SubscribeStreamRequest) {
return mergeFrom((com.hedera.hapi.block.protoc.SubscribeStreamRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hapi.block.protoc.SubscribeStreamRequest other) {
if (other == com.hedera.hapi.block.protoc.SubscribeStreamRequest.getDefaultInstance()) return this;
if (other.getStartBlockNumber() != 0L) {
setStartBlockNumber(other.getStartBlockNumber());
}
if (other.getEndBlockNumber() != 0L) {
setEndBlockNumber(other.getEndBlockNumber());
}
if (other.getAllowUnverified() != false) {
setAllowUnverified(other.getAllowUnverified());
}
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 {
com.hedera.hapi.block.protoc.SubscribeStreamRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hedera.hapi.block.protoc.SubscribeStreamRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long startBlockNumber_ ;
/**
*
**
* A block number to start the stream.
* <p>
* This SHALL be the block number of the first block returned.<br/>
* This field MUST be less than or equal to the latest available
* block number.
*
*
* uint64 start_block_number = 1;
* @return The startBlockNumber.
*/
@java.lang.Override
public long getStartBlockNumber() {
return startBlockNumber_;
}
/**
*
**
* A block number to start the stream.
* <p>
* This SHALL be the block number of the first block returned.<br/>
* This field MUST be less than or equal to the latest available
* block number.
*
*
* uint64 start_block_number = 1;
* @param value The startBlockNumber to set.
* @return This builder for chaining.
*/
public Builder setStartBlockNumber(long value) {
startBlockNumber_ = value;
onChanged();
return this;
}
/**
*
**
* A block number to start the stream.
* <p>
* This SHALL be the block number of the first block returned.<br/>
* This field MUST be less than or equal to the latest available
* block number.
*
*
* uint64 start_block_number = 1;
* @return This builder for chaining.
*/
public Builder clearStartBlockNumber() {
startBlockNumber_ = 0L;
onChanged();
return this;
}
private long endBlockNumber_ ;
/**
*
**
* A block number to end the stream.<br/>
* This is optional, and if not set (0), the stream will be "infinite".
* <p>
* This field MAY be zero (`0`) to indicate the stream SHOULD continue
* indefinitely, streaming new blocks as each becomes available.<br/>
* If this value is greater than zero (`0`)
* <ul>
* <li>This value SHALL be the number of the last block returned.</li>
* <li>This field MUST NOT be less than `start_block_number`.</li>
* <li>This SHOULD be a block number that is immediately available
* from the block node.</li>
* <li>A block node SHALL continue to stream blocks until the last
* requested block is transmitted.</li>
* <li>A block node implementation MAY reject a request for a block
* that is not yet available.</li>
* <li>A block node implementation MAY accept future block numbers.</li>
* <li>Block node implementations MAY charge increased fees for such
* "future" streams.</li>
* </ul>
*
*
* uint64 end_block_number = 2;
* @return The endBlockNumber.
*/
@java.lang.Override
public long getEndBlockNumber() {
return endBlockNumber_;
}
/**
*
**
* A block number to end the stream.<br/>
* This is optional, and if not set (0), the stream will be "infinite".
* <p>
* This field MAY be zero (`0`) to indicate the stream SHOULD continue
* indefinitely, streaming new blocks as each becomes available.<br/>
* If this value is greater than zero (`0`)
* <ul>
* <li>This value SHALL be the number of the last block returned.</li>
* <li>This field MUST NOT be less than `start_block_number`.</li>
* <li>This SHOULD be a block number that is immediately available
* from the block node.</li>
* <li>A block node SHALL continue to stream blocks until the last
* requested block is transmitted.</li>
* <li>A block node implementation MAY reject a request for a block
* that is not yet available.</li>
* <li>A block node implementation MAY accept future block numbers.</li>
* <li>Block node implementations MAY charge increased fees for such
* "future" streams.</li>
* </ul>
*
*
* uint64 end_block_number = 2;
* @param value The endBlockNumber to set.
* @return This builder for chaining.
*/
public Builder setEndBlockNumber(long value) {
endBlockNumber_ = value;
onChanged();
return this;
}
/**
*
**
* A block number to end the stream.<br/>
* This is optional, and if not set (0), the stream will be "infinite".
* <p>
* This field MAY be zero (`0`) to indicate the stream SHOULD continue
* indefinitely, streaming new blocks as each becomes available.<br/>
* If this value is greater than zero (`0`)
* <ul>
* <li>This value SHALL be the number of the last block returned.</li>
* <li>This field MUST NOT be less than `start_block_number`.</li>
* <li>This SHOULD be a block number that is immediately available
* from the block node.</li>
* <li>A block node SHALL continue to stream blocks until the last
* requested block is transmitted.</li>
* <li>A block node implementation MAY reject a request for a block
* that is not yet available.</li>
* <li>A block node implementation MAY accept future block numbers.</li>
* <li>Block node implementations MAY charge increased fees for such
* "future" streams.</li>
* </ul>
*
*
* uint64 end_block_number = 2;
* @return This builder for chaining.
*/
public Builder clearEndBlockNumber() {
endBlockNumber_ = 0L;
onChanged();
return this;
}
private boolean allowUnverified_ ;
/**
*
**
* A flag to indicate that the requested block(s) may be sent before
* verifying each block's `BlockProof`.<br/>
* This might be set by a client that expects to perform its own
* verification and wishes lower latency or, potentially, lower cost.
* <p>
* If this value is set, then the responding Block Node MAY respond with
* blocks that have not (yet) completed block proof verification.<br/>
* If this is _not set_ then the Block Node MUST respond with only
* fully verified and validated block(s).<br/>
* If this is _set_, then a Block Node MAY stream items from
* blocks that have not yet been verified or do not yet have
* a block proof available.<br/>
* The default value is _not set_.
*
*
* bool allow_unverified = 3;
* @return The allowUnverified.
*/
@java.lang.Override
public boolean getAllowUnverified() {
return allowUnverified_;
}
/**
*
**
* A flag to indicate that the requested block(s) may be sent before
* verifying each block's `BlockProof`.<br/>
* This might be set by a client that expects to perform its own
* verification and wishes lower latency or, potentially, lower cost.
* <p>
* If this value is set, then the responding Block Node MAY respond with
* blocks that have not (yet) completed block proof verification.<br/>
* If this is _not set_ then the Block Node MUST respond with only
* fully verified and validated block(s).<br/>
* If this is _set_, then a Block Node MAY stream items from
* blocks that have not yet been verified or do not yet have
* a block proof available.<br/>
* The default value is _not set_.
*
*
* bool allow_unverified = 3;
* @param value The allowUnverified to set.
* @return This builder for chaining.
*/
public Builder setAllowUnverified(boolean value) {
allowUnverified_ = value;
onChanged();
return this;
}
/**
*
**
* A flag to indicate that the requested block(s) may be sent before
* verifying each block's `BlockProof`.<br/>
* This might be set by a client that expects to perform its own
* verification and wishes lower latency or, potentially, lower cost.
* <p>
* If this value is set, then the responding Block Node MAY respond with
* blocks that have not (yet) completed block proof verification.<br/>
* If this is _not set_ then the Block Node MUST respond with only
* fully verified and validated block(s).<br/>
* If this is _set_, then a Block Node MAY stream items from
* blocks that have not yet been verified or do not yet have
* a block proof available.<br/>
* The default value is _not set_.
*
*
* bool allow_unverified = 3;
* @return This builder for chaining.
*/
public Builder clearAllowUnverified() {
allowUnverified_ = 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:com.hedera.hapi.block.SubscribeStreamRequest)
}
// @@protoc_insertion_point(class_scope:com.hedera.hapi.block.SubscribeStreamRequest)
private static final com.hedera.hapi.block.protoc.SubscribeStreamRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hapi.block.protoc.SubscribeStreamRequest();
}
public static com.hedera.hapi.block.protoc.SubscribeStreamRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeStreamRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscribeStreamRequest(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 com.hedera.hapi.block.protoc.SubscribeStreamRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy