All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hapi.block.stream.protoc.Block Maven / Gradle / Ivy

There is a newer version: 0.57.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: stream/block.proto

package com.hedera.hapi.block.stream.protoc;

/**
 * 
 **
 * A single complete Hedera block chain block.
 * This is a single block structure and SHALL NOT represent the primary
 * mechanism to transmit a block stream.<br/>
 * The primary mechanism for transmitting block stream data SHALL be to
 * stream individual block items to the block node(s).<br/>
 * The only delimiter between blocks when streamed SHALL be the `BlockHeader`
 * item and `BlockProof` item.
 * This block SHALL be verifiable as correct using only data in the block,
 * including the `BlockProof`, and public keys for the consensus nodes.
 * 
* * Protobuf type {@code com.hedera.hapi.block.stream.Block} */ public final class Block extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.hedera.hapi.block.stream.Block) BlockOrBuilder { private static final long serialVersionUID = 0L; // Use Block.newBuilder() to construct. private Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Block() { items_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Block(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Block( 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)) { items_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } items_.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)) { items_ = java.util.Collections.unmodifiableList(items_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hapi.block.stream.protoc.BlockOuterClass.internal_static_com_hedera_hapi_block_stream_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hapi.block.stream.protoc.BlockOuterClass.internal_static_com_hedera_hapi_block_stream_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hapi.block.stream.protoc.Block.class, com.hedera.hapi.block.stream.protoc.Block.Builder.class); } public static final int ITEMS_FIELD_NUMBER = 1; private java.util.List items_; /** *
   **
   * A list of items that, together, make up this block.
   * <p>
   * This list SHALL begin with a `BlockHeader`.<br/>
   * This list SHALL end with a `BlockProof`.<br/>
   * Items in this list SHALL be in exactly the same order produced by
   * consensus.<br/>
   * Items in this list MAY be filtered, if so requested.<br/>
   * If this list is filtered, removed items SHALL be replaced with
   * `FilteredBlockItem` entries.<br/>
   * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ @java.lang.Override public java.util.List getItemsList() { return items_; } /** *
   **
   * A list of items that, together, make up this block.
   * <p>
   * This list SHALL begin with a `BlockHeader`.<br/>
   * This list SHALL end with a `BlockProof`.<br/>
   * Items in this list SHALL be in exactly the same order produced by
   * consensus.<br/>
   * Items in this list MAY be filtered, if so requested.<br/>
   * If this list is filtered, removed items SHALL be replaced with
   * `FilteredBlockItem` entries.<br/>
   * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ @java.lang.Override public java.util.List getItemsOrBuilderList() { return items_; } /** *
   **
   * A list of items that, together, make up this block.
   * <p>
   * This list SHALL begin with a `BlockHeader`.<br/>
   * This list SHALL end with a `BlockProof`.<br/>
   * Items in this list SHALL be in exactly the same order produced by
   * consensus.<br/>
   * Items in this list MAY be filtered, if so requested.<br/>
   * If this list is filtered, removed items SHALL be replaced with
   * `FilteredBlockItem` entries.<br/>
   * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ @java.lang.Override public int getItemsCount() { return items_.size(); } /** *
   **
   * A list of items that, together, make up this block.
   * <p>
   * This list SHALL begin with a `BlockHeader`.<br/>
   * This list SHALL end with a `BlockProof`.<br/>
   * Items in this list SHALL be in exactly the same order produced by
   * consensus.<br/>
   * Items in this list MAY be filtered, if so requested.<br/>
   * If this list is filtered, removed items SHALL be replaced with
   * `FilteredBlockItem` entries.<br/>
   * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ @java.lang.Override public com.hedera.hapi.block.stream.protoc.BlockItem getItems(int index) { return items_.get(index); } /** *
   **
   * A list of items that, together, make up this block.
   * <p>
   * This list SHALL begin with a `BlockHeader`.<br/>
   * This list SHALL end with a `BlockProof`.<br/>
   * Items in this list SHALL be in exactly the same order produced by
   * consensus.<br/>
   * Items in this list MAY be filtered, if so requested.<br/>
   * If this list is filtered, removed items SHALL be replaced with
   * `FilteredBlockItem` entries.<br/>
   * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ @java.lang.Override public com.hedera.hapi.block.stream.protoc.BlockItemOrBuilder getItemsOrBuilder( int index) { return items_.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 < items_.size(); i++) { output.writeMessage(1, items_.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 < items_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, items_.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.stream.protoc.Block)) { return super.equals(obj); } com.hedera.hapi.block.stream.protoc.Block other = (com.hedera.hapi.block.stream.protoc.Block) obj; if (!getItemsList() .equals(other.getItemsList())) 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 (getItemsCount() > 0) { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + getItemsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hapi.block.stream.protoc.Block parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hapi.block.stream.protoc.Block 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.stream.protoc.Block parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hapi.block.stream.protoc.Block 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.stream.protoc.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hapi.block.stream.protoc.Block parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hapi.block.stream.protoc.Block parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hapi.block.stream.protoc.Block 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.stream.protoc.Block parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hapi.block.stream.protoc.Block 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.stream.protoc.Block parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hapi.block.stream.protoc.Block 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.stream.protoc.Block 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 single complete Hedera block chain block.
   * This is a single block structure and SHALL NOT represent the primary
   * mechanism to transmit a block stream.<br/>
   * The primary mechanism for transmitting block stream data SHALL be to
   * stream individual block items to the block node(s).<br/>
   * The only delimiter between blocks when streamed SHALL be the `BlockHeader`
   * item and `BlockProof` item.
   * This block SHALL be verifiable as correct using only data in the block,
   * including the `BlockProof`, and public keys for the consensus nodes.
   * 
* * Protobuf type {@code com.hedera.hapi.block.stream.Block} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.hedera.hapi.block.stream.Block) com.hedera.hapi.block.stream.protoc.BlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hapi.block.stream.protoc.BlockOuterClass.internal_static_com_hedera_hapi_block_stream_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hapi.block.stream.protoc.BlockOuterClass.internal_static_com_hedera_hapi_block_stream_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hapi.block.stream.protoc.Block.class, com.hedera.hapi.block.stream.protoc.Block.Builder.class); } // Construct using com.hedera.hapi.block.stream.protoc.Block.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getItemsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { itemsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hapi.block.stream.protoc.BlockOuterClass.internal_static_com_hedera_hapi_block_stream_Block_descriptor; } @java.lang.Override public com.hedera.hapi.block.stream.protoc.Block getDefaultInstanceForType() { return com.hedera.hapi.block.stream.protoc.Block.getDefaultInstance(); } @java.lang.Override public com.hedera.hapi.block.stream.protoc.Block build() { com.hedera.hapi.block.stream.protoc.Block result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hapi.block.stream.protoc.Block buildPartial() { com.hedera.hapi.block.stream.protoc.Block result = new com.hedera.hapi.block.stream.protoc.Block(this); int from_bitField0_ = bitField0_; if (itemsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { items_ = java.util.Collections.unmodifiableList(items_); bitField0_ = (bitField0_ & ~0x00000001); } result.items_ = items_; } else { result.items_ = itemsBuilder_.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.stream.protoc.Block) { return mergeFrom((com.hedera.hapi.block.stream.protoc.Block)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hapi.block.stream.protoc.Block other) { if (other == com.hedera.hapi.block.stream.protoc.Block.getDefaultInstance()) return this; if (itemsBuilder_ == null) { if (!other.items_.isEmpty()) { if (items_.isEmpty()) { items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureItemsIsMutable(); items_.addAll(other.items_); } onChanged(); } } else { if (!other.items_.isEmpty()) { if (itemsBuilder_.isEmpty()) { itemsBuilder_.dispose(); itemsBuilder_ = null; items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000001); itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getItemsFieldBuilder() : null; } else { itemsBuilder_.addAllMessages(other.items_); } } } 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.stream.protoc.Block parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hedera.hapi.block.stream.protoc.Block) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { items_ = new java.util.ArrayList(items_); 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> itemsBuilder_; /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public com.hedera.hapi.block.stream.protoc.BlockItem getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public Builder setItems( int index, com.hedera.hapi.block.stream.protoc.BlockItem value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public Builder setItems( int index, com.hedera.hapi.block.stream.protoc.BlockItem.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public Builder addItems(com.hedera.hapi.block.stream.protoc.BlockItem value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public Builder addItems( int index, com.hedera.hapi.block.stream.protoc.BlockItem value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public Builder addItems( com.hedera.hapi.block.stream.protoc.BlockItem.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public Builder addItems( int index, com.hedera.hapi.block.stream.protoc.BlockItem.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public Builder addAllItems( java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); } return this; } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public com.hedera.hapi.block.stream.protoc.BlockItem.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public com.hedera.hapi.block.stream.protoc.BlockItemOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public com.hedera.hapi.block.stream.protoc.BlockItem.Builder addItemsBuilder() { return getItemsFieldBuilder().addBuilder( com.hedera.hapi.block.stream.protoc.BlockItem.getDefaultInstance()); } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public com.hedera.hapi.block.stream.protoc.BlockItem.Builder addItemsBuilder( int index) { return getItemsFieldBuilder().addBuilder( index, com.hedera.hapi.block.stream.protoc.BlockItem.getDefaultInstance()); } /** *
     **
     * A list of items that, together, make up this block.
     * <p>
     * This list SHALL begin with a `BlockHeader`.<br/>
     * This list SHALL end with a `BlockProof`.<br/>
     * Items in this list SHALL be in exactly the same order produced by
     * consensus.<br/>
     * Items in this list MAY be filtered, if so requested.<br/>
     * If this list is filtered, removed items SHALL be replaced with
     * `FilteredBlockItem` entries.<br/>
     * 
* * repeated .com.hedera.hapi.block.stream.BlockItem items = 1; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().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> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = 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>( items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } @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.stream.Block) } // @@protoc_insertion_point(class_scope:com.hedera.hapi.block.stream.Block) private static final com.hedera.hapi.block.stream.protoc.Block DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hapi.block.stream.protoc.Block(); } public static com.hedera.hapi.block.stream.protoc.Block getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Block parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Block(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.stream.protoc.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy