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

com.hedera.services.stream.proto.RecordStreamItem Maven / Gradle / Ivy

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

package com.hedera.services.stream.proto;

/**
 * 
 **
 * A RecordStreamItem consists of a Transaction and a TransactionRecord,
 * which are already defined protobuf messages.
 * 
* * Protobuf type {@code proto.RecordStreamItem} */ public final class RecordStreamItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RecordStreamItem) RecordStreamItemOrBuilder { private static final long serialVersionUID = 0L; // Use RecordStreamItem.newBuilder() to construct. private RecordStreamItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecordStreamItem() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecordStreamItem(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecordStreamItem( 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 10: { com.hederahashgraph.api.proto.java.Transaction.Builder subBuilder = null; if (transaction_ != null) { subBuilder = transaction_.toBuilder(); } transaction_ = input.readMessage(com.hederahashgraph.api.proto.java.Transaction.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(transaction_); transaction_ = subBuilder.buildPartial(); } break; } case 18: { com.hederahashgraph.api.proto.java.TransactionRecord.Builder subBuilder = null; if (record_ != null) { subBuilder = record_.toBuilder(); } record_ = input.readMessage(com.hederahashgraph.api.proto.java.TransactionRecord.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(record_); record_ = subBuilder.buildPartial(); } 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.services.stream.proto.RecordStreamFileOuterClass.internal_static_proto_RecordStreamItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.services.stream.proto.RecordStreamFileOuterClass.internal_static_proto_RecordStreamItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.services.stream.proto.RecordStreamItem.class, com.hedera.services.stream.proto.RecordStreamItem.Builder.class); } public static final int TRANSACTION_FIELD_NUMBER = 1; private com.hederahashgraph.api.proto.java.Transaction transaction_; /** * .proto.Transaction transaction = 1; * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return transaction_ != null; } /** * .proto.Transaction transaction = 1; * @return The transaction. */ @java.lang.Override public com.hederahashgraph.api.proto.java.Transaction getTransaction() { return transaction_ == null ? com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance() : transaction_; } /** * .proto.Transaction transaction = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.TransactionOrBuilder getTransactionOrBuilder() { return getTransaction(); } public static final int RECORD_FIELD_NUMBER = 2; private com.hederahashgraph.api.proto.java.TransactionRecord record_; /** * .proto.TransactionRecord record = 2; * @return Whether the record field is set. */ @java.lang.Override public boolean hasRecord() { return record_ != null; } /** * .proto.TransactionRecord record = 2; * @return The record. */ @java.lang.Override public com.hederahashgraph.api.proto.java.TransactionRecord getRecord() { return record_ == null ? com.hederahashgraph.api.proto.java.TransactionRecord.getDefaultInstance() : record_; } /** * .proto.TransactionRecord record = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.TransactionRecordOrBuilder getRecordOrBuilder() { return getRecord(); } 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 (transaction_ != null) { output.writeMessage(1, getTransaction()); } if (record_ != null) { output.writeMessage(2, getRecord()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (transaction_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTransaction()); } if (record_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRecord()); } 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.services.stream.proto.RecordStreamItem)) { return super.equals(obj); } com.hedera.services.stream.proto.RecordStreamItem other = (com.hedera.services.stream.proto.RecordStreamItem) obj; if (hasTransaction() != other.hasTransaction()) return false; if (hasTransaction()) { if (!getTransaction() .equals(other.getTransaction())) return false; } if (hasRecord() != other.hasRecord()) return false; if (hasRecord()) { if (!getRecord() .equals(other.getRecord())) 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 (hasTransaction()) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); } if (hasRecord()) { hash = (37 * hash) + RECORD_FIELD_NUMBER; hash = (53 * hash) + getRecord().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.services.stream.proto.RecordStreamItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.RecordStreamItem parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.services.stream.proto.RecordStreamItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.RecordStreamItem 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.services.stream.proto.RecordStreamItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.RecordStreamItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.services.stream.proto.RecordStreamItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.RecordStreamItem 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.services.stream.proto.RecordStreamItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.RecordStreamItem 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.services.stream.proto.RecordStreamItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.RecordStreamItem 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.services.stream.proto.RecordStreamItem 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 RecordStreamItem consists of a Transaction and a TransactionRecord,
   * which are already defined protobuf messages.
   * 
* * Protobuf type {@code proto.RecordStreamItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RecordStreamItem) com.hedera.services.stream.proto.RecordStreamItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.services.stream.proto.RecordStreamFileOuterClass.internal_static_proto_RecordStreamItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.services.stream.proto.RecordStreamFileOuterClass.internal_static_proto_RecordStreamItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.services.stream.proto.RecordStreamItem.class, com.hedera.services.stream.proto.RecordStreamItem.Builder.class); } // Construct using com.hedera.services.stream.proto.RecordStreamItem.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(); if (transactionBuilder_ == null) { transaction_ = null; } else { transaction_ = null; transactionBuilder_ = null; } if (recordBuilder_ == null) { record_ = null; } else { record_ = null; recordBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.services.stream.proto.RecordStreamFileOuterClass.internal_static_proto_RecordStreamItem_descriptor; } @java.lang.Override public com.hedera.services.stream.proto.RecordStreamItem getDefaultInstanceForType() { return com.hedera.services.stream.proto.RecordStreamItem.getDefaultInstance(); } @java.lang.Override public com.hedera.services.stream.proto.RecordStreamItem build() { com.hedera.services.stream.proto.RecordStreamItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.services.stream.proto.RecordStreamItem buildPartial() { com.hedera.services.stream.proto.RecordStreamItem result = new com.hedera.services.stream.proto.RecordStreamItem(this); if (transactionBuilder_ == null) { result.transaction_ = transaction_; } else { result.transaction_ = transactionBuilder_.build(); } if (recordBuilder_ == null) { result.record_ = record_; } else { result.record_ = recordBuilder_.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.services.stream.proto.RecordStreamItem) { return mergeFrom((com.hedera.services.stream.proto.RecordStreamItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.services.stream.proto.RecordStreamItem other) { if (other == com.hedera.services.stream.proto.RecordStreamItem.getDefaultInstance()) return this; if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } if (other.hasRecord()) { mergeRecord(other.getRecord()); } 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.services.stream.proto.RecordStreamItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hedera.services.stream.proto.RecordStreamItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.hederahashgraph.api.proto.java.Transaction transaction_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Transaction, com.hederahashgraph.api.proto.java.Transaction.Builder, com.hederahashgraph.api.proto.java.TransactionOrBuilder> transactionBuilder_; /** * .proto.Transaction transaction = 1; * @return Whether the transaction field is set. */ public boolean hasTransaction() { return transactionBuilder_ != null || transaction_ != null; } /** * .proto.Transaction transaction = 1; * @return The transaction. */ public com.hederahashgraph.api.proto.java.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** * .proto.Transaction transaction = 1; */ public Builder setTransaction(com.hederahashgraph.api.proto.java.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; onChanged(); } else { transactionBuilder_.setMessage(value); } return this; } /** * .proto.Transaction transaction = 1; */ public Builder setTransaction( com.hederahashgraph.api.proto.java.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); onChanged(); } else { transactionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.Transaction transaction = 1; */ public Builder mergeTransaction(com.hederahashgraph.api.proto.java.Transaction value) { if (transactionBuilder_ == null) { if (transaction_ != null) { transaction_ = com.hederahashgraph.api.proto.java.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial(); } else { transaction_ = value; } onChanged(); } else { transactionBuilder_.mergeFrom(value); } return this; } /** * .proto.Transaction transaction = 1; */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = null; onChanged(); } else { transaction_ = null; transactionBuilder_ = null; } return this; } /** * .proto.Transaction transaction = 1; */ public com.hederahashgraph.api.proto.java.Transaction.Builder getTransactionBuilder() { onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** * .proto.Transaction transaction = 1; */ public com.hederahashgraph.api.proto.java.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance() : transaction_; } } /** * .proto.Transaction transaction = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Transaction, com.hederahashgraph.api.proto.java.Transaction.Builder, com.hederahashgraph.api.proto.java.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Transaction, com.hederahashgraph.api.proto.java.Transaction.Builder, com.hederahashgraph.api.proto.java.TransactionOrBuilder>( getTransaction(), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } private com.hederahashgraph.api.proto.java.TransactionRecord record_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.TransactionRecord, com.hederahashgraph.api.proto.java.TransactionRecord.Builder, com.hederahashgraph.api.proto.java.TransactionRecordOrBuilder> recordBuilder_; /** * .proto.TransactionRecord record = 2; * @return Whether the record field is set. */ public boolean hasRecord() { return recordBuilder_ != null || record_ != null; } /** * .proto.TransactionRecord record = 2; * @return The record. */ public com.hederahashgraph.api.proto.java.TransactionRecord getRecord() { if (recordBuilder_ == null) { return record_ == null ? com.hederahashgraph.api.proto.java.TransactionRecord.getDefaultInstance() : record_; } else { return recordBuilder_.getMessage(); } } /** * .proto.TransactionRecord record = 2; */ public Builder setRecord(com.hederahashgraph.api.proto.java.TransactionRecord value) { if (recordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } record_ = value; onChanged(); } else { recordBuilder_.setMessage(value); } return this; } /** * .proto.TransactionRecord record = 2; */ public Builder setRecord( com.hederahashgraph.api.proto.java.TransactionRecord.Builder builderForValue) { if (recordBuilder_ == null) { record_ = builderForValue.build(); onChanged(); } else { recordBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.TransactionRecord record = 2; */ public Builder mergeRecord(com.hederahashgraph.api.proto.java.TransactionRecord value) { if (recordBuilder_ == null) { if (record_ != null) { record_ = com.hederahashgraph.api.proto.java.TransactionRecord.newBuilder(record_).mergeFrom(value).buildPartial(); } else { record_ = value; } onChanged(); } else { recordBuilder_.mergeFrom(value); } return this; } /** * .proto.TransactionRecord record = 2; */ public Builder clearRecord() { if (recordBuilder_ == null) { record_ = null; onChanged(); } else { record_ = null; recordBuilder_ = null; } return this; } /** * .proto.TransactionRecord record = 2; */ public com.hederahashgraph.api.proto.java.TransactionRecord.Builder getRecordBuilder() { onChanged(); return getRecordFieldBuilder().getBuilder(); } /** * .proto.TransactionRecord record = 2; */ public com.hederahashgraph.api.proto.java.TransactionRecordOrBuilder getRecordOrBuilder() { if (recordBuilder_ != null) { return recordBuilder_.getMessageOrBuilder(); } else { return record_ == null ? com.hederahashgraph.api.proto.java.TransactionRecord.getDefaultInstance() : record_; } } /** * .proto.TransactionRecord record = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.TransactionRecord, com.hederahashgraph.api.proto.java.TransactionRecord.Builder, com.hederahashgraph.api.proto.java.TransactionRecordOrBuilder> getRecordFieldBuilder() { if (recordBuilder_ == null) { recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.TransactionRecord, com.hederahashgraph.api.proto.java.TransactionRecord.Builder, com.hederahashgraph.api.proto.java.TransactionRecordOrBuilder>( getRecord(), getParentForChildren(), isClean()); record_ = null; } return recordBuilder_; } @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:proto.RecordStreamItem) } // @@protoc_insertion_point(class_scope:proto.RecordStreamItem) private static final com.hedera.services.stream.proto.RecordStreamItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.services.stream.proto.RecordStreamItem(); } public static com.hedera.services.stream.proto.RecordStreamItem getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecordStreamItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecordStreamItem(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.services.stream.proto.RecordStreamItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy