com.hedera.hapi.block.protoc.BlockItemSet Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: block_service.proto
package com.hedera.hapi.block.protoc;
/**
*
**
* A wrapper around a repeated BlockItem.<br/>
* This message is required so that we can include ordered lists of block
* items as `oneof` alternatives in streams.
* Each `BlockItemSet` MUST contain at least one `BlockItem`,
* and MAY contain up to one full block.<br/>
* A single `BlockItemSet` SHALL NOT contain block items from
* more than one block.<br/>
* If a `BlockHeader` is present in a `BlockItemSet`, that item
* MUST be the first item in the list.<br/>
* If a `BlockProof` is present in a `BlockItemSet`, that item
* MUST be the last item in the list.
*
*
* Protobuf type {@code com.hedera.hapi.block.BlockItemSet}
*/
public final class BlockItemSet extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.hedera.hapi.block.BlockItemSet)
BlockItemSetOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockItemSet.newBuilder() to construct.
private BlockItemSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BlockItemSet() {
blockItems_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BlockItemSet();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BlockItemSet(
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)) {
blockItems_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
blockItems_.add(
input.readMessage(com.hedera.hapi.block.stream.protoc.BlockItem.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)) {
blockItems_ = java.util.Collections.unmodifiableList(blockItems_);
}
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_BlockItemSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_BlockItemSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.block.protoc.BlockItemSet.class, com.hedera.hapi.block.protoc.BlockItemSet.Builder.class);
}
public static final int BLOCK_ITEMS_FIELD_NUMBER = 1;
private java.util.List blockItems_;
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
@java.lang.Override
public java.util.List getBlockItemsList() {
return blockItems_;
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
@java.lang.Override
public java.util.List extends com.hedera.hapi.block.stream.protoc.BlockItemOrBuilder>
getBlockItemsOrBuilderList() {
return blockItems_;
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
@java.lang.Override
public int getBlockItemsCount() {
return blockItems_.size();
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
@java.lang.Override
public com.hedera.hapi.block.stream.protoc.BlockItem getBlockItems(int index) {
return blockItems_.get(index);
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
@java.lang.Override
public com.hedera.hapi.block.stream.protoc.BlockItemOrBuilder getBlockItemsOrBuilder(
int index) {
return blockItems_.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 < blockItems_.size(); i++) {
output.writeMessage(1, blockItems_.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 < blockItems_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, blockItems_.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 com.hedera.hapi.block.protoc.BlockItemSet)) {
return super.equals(obj);
}
com.hedera.hapi.block.protoc.BlockItemSet other = (com.hedera.hapi.block.protoc.BlockItemSet) obj;
if (!getBlockItemsList()
.equals(other.getBlockItemsList())) 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 (getBlockItemsCount() > 0) {
hash = (37 * hash) + BLOCK_ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getBlockItemsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hapi.block.protoc.BlockItemSet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.protoc.BlockItemSet 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.BlockItemSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.protoc.BlockItemSet 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.BlockItemSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.protoc.BlockItemSet 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.BlockItemSet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hapi.block.protoc.BlockItemSet 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.BlockItemSet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hapi.block.protoc.BlockItemSet 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.BlockItemSet 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.BlockItemSet 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.BlockItemSet 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 wrapper around a repeated BlockItem.<br/>
* This message is required so that we can include ordered lists of block
* items as `oneof` alternatives in streams.
* Each `BlockItemSet` MUST contain at least one `BlockItem`,
* and MAY contain up to one full block.<br/>
* A single `BlockItemSet` SHALL NOT contain block items from
* more than one block.<br/>
* If a `BlockHeader` is present in a `BlockItemSet`, that item
* MUST be the first item in the list.<br/>
* If a `BlockProof` is present in a `BlockItemSet`, that item
* MUST be the last item in the list.
*
*
* Protobuf type {@code com.hedera.hapi.block.BlockItemSet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.hedera.hapi.block.BlockItemSet)
com.hedera.hapi.block.protoc.BlockItemSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_BlockItemSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.block.protoc.BlockService.internal_static_com_hedera_hapi_block_BlockItemSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.block.protoc.BlockItemSet.class, com.hedera.hapi.block.protoc.BlockItemSet.Builder.class);
}
// Construct using com.hedera.hapi.block.protoc.BlockItemSet.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBlockItemsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (blockItemsBuilder_ == null) {
blockItems_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
blockItemsBuilder_.clear();
}
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_BlockItemSet_descriptor;
}
@java.lang.Override
public com.hedera.hapi.block.protoc.BlockItemSet getDefaultInstanceForType() {
return com.hedera.hapi.block.protoc.BlockItemSet.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hapi.block.protoc.BlockItemSet build() {
com.hedera.hapi.block.protoc.BlockItemSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hapi.block.protoc.BlockItemSet buildPartial() {
com.hedera.hapi.block.protoc.BlockItemSet result = new com.hedera.hapi.block.protoc.BlockItemSet(this);
int from_bitField0_ = bitField0_;
if (blockItemsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
blockItems_ = java.util.Collections.unmodifiableList(blockItems_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.blockItems_ = blockItems_;
} else {
result.blockItems_ = blockItemsBuilder_.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 com.hedera.hapi.block.protoc.BlockItemSet) {
return mergeFrom((com.hedera.hapi.block.protoc.BlockItemSet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hapi.block.protoc.BlockItemSet other) {
if (other == com.hedera.hapi.block.protoc.BlockItemSet.getDefaultInstance()) return this;
if (blockItemsBuilder_ == null) {
if (!other.blockItems_.isEmpty()) {
if (blockItems_.isEmpty()) {
blockItems_ = other.blockItems_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBlockItemsIsMutable();
blockItems_.addAll(other.blockItems_);
}
onChanged();
}
} else {
if (!other.blockItems_.isEmpty()) {
if (blockItemsBuilder_.isEmpty()) {
blockItemsBuilder_.dispose();
blockItemsBuilder_ = null;
blockItems_ = other.blockItems_;
bitField0_ = (bitField0_ & ~0x00000001);
blockItemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBlockItemsFieldBuilder() : null;
} else {
blockItemsBuilder_.addAllMessages(other.blockItems_);
}
}
}
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.BlockItemSet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hedera.hapi.block.protoc.BlockItemSet) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List blockItems_ =
java.util.Collections.emptyList();
private void ensureBlockItemsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
blockItems_ = new java.util.ArrayList(blockItems_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hapi.block.stream.protoc.BlockItem, com.hedera.hapi.block.stream.protoc.BlockItem.Builder, com.hedera.hapi.block.stream.protoc.BlockItemOrBuilder> blockItemsBuilder_;
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public java.util.List getBlockItemsList() {
if (blockItemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(blockItems_);
} else {
return blockItemsBuilder_.getMessageList();
}
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public int getBlockItemsCount() {
if (blockItemsBuilder_ == null) {
return blockItems_.size();
} else {
return blockItemsBuilder_.getCount();
}
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public com.hedera.hapi.block.stream.protoc.BlockItem getBlockItems(int index) {
if (blockItemsBuilder_ == null) {
return blockItems_.get(index);
} else {
return blockItemsBuilder_.getMessage(index);
}
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public Builder setBlockItems(
int index, com.hedera.hapi.block.stream.protoc.BlockItem value) {
if (blockItemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockItemsIsMutable();
blockItems_.set(index, value);
onChanged();
} else {
blockItemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public Builder setBlockItems(
int index, com.hedera.hapi.block.stream.protoc.BlockItem.Builder builderForValue) {
if (blockItemsBuilder_ == null) {
ensureBlockItemsIsMutable();
blockItems_.set(index, builderForValue.build());
onChanged();
} else {
blockItemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public Builder addBlockItems(com.hedera.hapi.block.stream.protoc.BlockItem value) {
if (blockItemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockItemsIsMutable();
blockItems_.add(value);
onChanged();
} else {
blockItemsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public Builder addBlockItems(
int index, com.hedera.hapi.block.stream.protoc.BlockItem value) {
if (blockItemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockItemsIsMutable();
blockItems_.add(index, value);
onChanged();
} else {
blockItemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public Builder addBlockItems(
com.hedera.hapi.block.stream.protoc.BlockItem.Builder builderForValue) {
if (blockItemsBuilder_ == null) {
ensureBlockItemsIsMutable();
blockItems_.add(builderForValue.build());
onChanged();
} else {
blockItemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public Builder addBlockItems(
int index, com.hedera.hapi.block.stream.protoc.BlockItem.Builder builderForValue) {
if (blockItemsBuilder_ == null) {
ensureBlockItemsIsMutable();
blockItems_.add(index, builderForValue.build());
onChanged();
} else {
blockItemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public Builder addAllBlockItems(
java.lang.Iterable extends com.hedera.hapi.block.stream.protoc.BlockItem> values) {
if (blockItemsBuilder_ == null) {
ensureBlockItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, blockItems_);
onChanged();
} else {
blockItemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public Builder clearBlockItems() {
if (blockItemsBuilder_ == null) {
blockItems_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
blockItemsBuilder_.clear();
}
return this;
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public Builder removeBlockItems(int index) {
if (blockItemsBuilder_ == null) {
ensureBlockItemsIsMutable();
blockItems_.remove(index);
onChanged();
} else {
blockItemsBuilder_.remove(index);
}
return this;
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public com.hedera.hapi.block.stream.protoc.BlockItem.Builder getBlockItemsBuilder(
int index) {
return getBlockItemsFieldBuilder().getBuilder(index);
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public com.hedera.hapi.block.stream.protoc.BlockItemOrBuilder getBlockItemsOrBuilder(
int index) {
if (blockItemsBuilder_ == null) {
return blockItems_.get(index); } else {
return blockItemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public java.util.List extends com.hedera.hapi.block.stream.protoc.BlockItemOrBuilder>
getBlockItemsOrBuilderList() {
if (blockItemsBuilder_ != null) {
return blockItemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(blockItems_);
}
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public com.hedera.hapi.block.stream.protoc.BlockItem.Builder addBlockItemsBuilder() {
return getBlockItemsFieldBuilder().addBuilder(
com.hedera.hapi.block.stream.protoc.BlockItem.getDefaultInstance());
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public com.hedera.hapi.block.stream.protoc.BlockItem.Builder addBlockItemsBuilder(
int index) {
return getBlockItemsFieldBuilder().addBuilder(
index, com.hedera.hapi.block.stream.protoc.BlockItem.getDefaultInstance());
}
/**
*
**
* An ordered list of `BlockItem`s.<br/>
* This list supports sending block items to subscribers in batches
* for greater channel efficiency.
*
*
* repeated .com.hedera.hapi.block.stream.BlockItem block_items = 1;
*/
public java.util.List
getBlockItemsBuilderList() {
return getBlockItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hapi.block.stream.protoc.BlockItem, com.hedera.hapi.block.stream.protoc.BlockItem.Builder, com.hedera.hapi.block.stream.protoc.BlockItemOrBuilder>
getBlockItemsFieldBuilder() {
if (blockItemsBuilder_ == null) {
blockItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hapi.block.stream.protoc.BlockItem, com.hedera.hapi.block.stream.protoc.BlockItem.Builder, com.hedera.hapi.block.stream.protoc.BlockItemOrBuilder>(
blockItems_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
blockItems_ = null;
}
return blockItemsBuilder_;
}
@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.BlockItemSet)
}
// @@protoc_insertion_point(class_scope:com.hedera.hapi.block.BlockItemSet)
private static final com.hedera.hapi.block.protoc.BlockItemSet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hapi.block.protoc.BlockItemSet();
}
public static com.hedera.hapi.block.protoc.BlockItemSet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BlockItemSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BlockItemSet(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.BlockItemSet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy