Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.hedera.services.stream.proto.SidecarFile Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: sidecar_file.proto
package com.hedera.services.stream.proto;
/**
*
**
* A SidecarFile contains a list of TransactionSidecarRecords that are all created
* in the same period and related to the same RecordStreamFile.
*
*
* Protobuf type {@code proto.SidecarFile}
*/
public final class SidecarFile extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.SidecarFile)
SidecarFileOrBuilder {
private static final long serialVersionUID = 0L;
// Use SidecarFile.newBuilder() to construct.
private SidecarFile(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SidecarFile() {
sidecarRecords_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SidecarFile();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SidecarFile(
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)) {
sidecarRecords_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
sidecarRecords_.add(
input.readMessage(com.hedera.services.stream.proto.TransactionSidecarRecord.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)) {
sidecarRecords_ = java.util.Collections.unmodifiableList(sidecarRecords_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.services.stream.proto.SidecarFileOuterClass.internal_static_proto_SidecarFile_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.services.stream.proto.SidecarFileOuterClass.internal_static_proto_SidecarFile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.services.stream.proto.SidecarFile.class, com.hedera.services.stream.proto.SidecarFile.Builder.class);
}
public static final int SIDECAR_RECORDS_FIELD_NUMBER = 1;
private java.util.List sidecarRecords_;
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
@java.lang.Override
public java.util.List getSidecarRecordsList() {
return sidecarRecords_;
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
@java.lang.Override
public java.util.List extends com.hedera.services.stream.proto.TransactionSidecarRecordOrBuilder>
getSidecarRecordsOrBuilderList() {
return sidecarRecords_;
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
@java.lang.Override
public int getSidecarRecordsCount() {
return sidecarRecords_.size();
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
@java.lang.Override
public com.hedera.services.stream.proto.TransactionSidecarRecord getSidecarRecords(int index) {
return sidecarRecords_.get(index);
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
@java.lang.Override
public com.hedera.services.stream.proto.TransactionSidecarRecordOrBuilder getSidecarRecordsOrBuilder(
int index) {
return sidecarRecords_.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 < sidecarRecords_.size(); i++) {
output.writeMessage(1, sidecarRecords_.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 < sidecarRecords_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, sidecarRecords_.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.services.stream.proto.SidecarFile)) {
return super.equals(obj);
}
com.hedera.services.stream.proto.SidecarFile other = (com.hedera.services.stream.proto.SidecarFile) obj;
if (!getSidecarRecordsList()
.equals(other.getSidecarRecordsList())) 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 (getSidecarRecordsCount() > 0) {
hash = (37 * hash) + SIDECAR_RECORDS_FIELD_NUMBER;
hash = (53 * hash) + getSidecarRecordsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.services.stream.proto.SidecarFile parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.services.stream.proto.SidecarFile 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.SidecarFile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.services.stream.proto.SidecarFile 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.SidecarFile parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.services.stream.proto.SidecarFile 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.SidecarFile parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.services.stream.proto.SidecarFile 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.SidecarFile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.services.stream.proto.SidecarFile 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.SidecarFile 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.SidecarFile 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.SidecarFile 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 SidecarFile contains a list of TransactionSidecarRecords that are all created
* in the same period and related to the same RecordStreamFile.
*
*
* Protobuf type {@code proto.SidecarFile}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.SidecarFile)
com.hedera.services.stream.proto.SidecarFileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.services.stream.proto.SidecarFileOuterClass.internal_static_proto_SidecarFile_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.services.stream.proto.SidecarFileOuterClass.internal_static_proto_SidecarFile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.services.stream.proto.SidecarFile.class, com.hedera.services.stream.proto.SidecarFile.Builder.class);
}
// Construct using com.hedera.services.stream.proto.SidecarFile.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSidecarRecordsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (sidecarRecordsBuilder_ == null) {
sidecarRecords_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
sidecarRecordsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.services.stream.proto.SidecarFileOuterClass.internal_static_proto_SidecarFile_descriptor;
}
@java.lang.Override
public com.hedera.services.stream.proto.SidecarFile getDefaultInstanceForType() {
return com.hedera.services.stream.proto.SidecarFile.getDefaultInstance();
}
@java.lang.Override
public com.hedera.services.stream.proto.SidecarFile build() {
com.hedera.services.stream.proto.SidecarFile result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.services.stream.proto.SidecarFile buildPartial() {
com.hedera.services.stream.proto.SidecarFile result = new com.hedera.services.stream.proto.SidecarFile(this);
int from_bitField0_ = bitField0_;
if (sidecarRecordsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
sidecarRecords_ = java.util.Collections.unmodifiableList(sidecarRecords_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.sidecarRecords_ = sidecarRecords_;
} else {
result.sidecarRecords_ = sidecarRecordsBuilder_.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.SidecarFile) {
return mergeFrom((com.hedera.services.stream.proto.SidecarFile)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.services.stream.proto.SidecarFile other) {
if (other == com.hedera.services.stream.proto.SidecarFile.getDefaultInstance()) return this;
if (sidecarRecordsBuilder_ == null) {
if (!other.sidecarRecords_.isEmpty()) {
if (sidecarRecords_.isEmpty()) {
sidecarRecords_ = other.sidecarRecords_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSidecarRecordsIsMutable();
sidecarRecords_.addAll(other.sidecarRecords_);
}
onChanged();
}
} else {
if (!other.sidecarRecords_.isEmpty()) {
if (sidecarRecordsBuilder_.isEmpty()) {
sidecarRecordsBuilder_.dispose();
sidecarRecordsBuilder_ = null;
sidecarRecords_ = other.sidecarRecords_;
bitField0_ = (bitField0_ & ~0x00000001);
sidecarRecordsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSidecarRecordsFieldBuilder() : null;
} else {
sidecarRecordsBuilder_.addAllMessages(other.sidecarRecords_);
}
}
}
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.SidecarFile parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hedera.services.stream.proto.SidecarFile) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List sidecarRecords_ =
java.util.Collections.emptyList();
private void ensureSidecarRecordsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
sidecarRecords_ = new java.util.ArrayList(sidecarRecords_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.services.stream.proto.TransactionSidecarRecord, com.hedera.services.stream.proto.TransactionSidecarRecord.Builder, com.hedera.services.stream.proto.TransactionSidecarRecordOrBuilder> sidecarRecordsBuilder_;
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public java.util.List getSidecarRecordsList() {
if (sidecarRecordsBuilder_ == null) {
return java.util.Collections.unmodifiableList(sidecarRecords_);
} else {
return sidecarRecordsBuilder_.getMessageList();
}
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public int getSidecarRecordsCount() {
if (sidecarRecordsBuilder_ == null) {
return sidecarRecords_.size();
} else {
return sidecarRecordsBuilder_.getCount();
}
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public com.hedera.services.stream.proto.TransactionSidecarRecord getSidecarRecords(int index) {
if (sidecarRecordsBuilder_ == null) {
return sidecarRecords_.get(index);
} else {
return sidecarRecordsBuilder_.getMessage(index);
}
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public Builder setSidecarRecords(
int index, com.hedera.services.stream.proto.TransactionSidecarRecord value) {
if (sidecarRecordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSidecarRecordsIsMutable();
sidecarRecords_.set(index, value);
onChanged();
} else {
sidecarRecordsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public Builder setSidecarRecords(
int index, com.hedera.services.stream.proto.TransactionSidecarRecord.Builder builderForValue) {
if (sidecarRecordsBuilder_ == null) {
ensureSidecarRecordsIsMutable();
sidecarRecords_.set(index, builderForValue.build());
onChanged();
} else {
sidecarRecordsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public Builder addSidecarRecords(com.hedera.services.stream.proto.TransactionSidecarRecord value) {
if (sidecarRecordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSidecarRecordsIsMutable();
sidecarRecords_.add(value);
onChanged();
} else {
sidecarRecordsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public Builder addSidecarRecords(
int index, com.hedera.services.stream.proto.TransactionSidecarRecord value) {
if (sidecarRecordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSidecarRecordsIsMutable();
sidecarRecords_.add(index, value);
onChanged();
} else {
sidecarRecordsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public Builder addSidecarRecords(
com.hedera.services.stream.proto.TransactionSidecarRecord.Builder builderForValue) {
if (sidecarRecordsBuilder_ == null) {
ensureSidecarRecordsIsMutable();
sidecarRecords_.add(builderForValue.build());
onChanged();
} else {
sidecarRecordsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public Builder addSidecarRecords(
int index, com.hedera.services.stream.proto.TransactionSidecarRecord.Builder builderForValue) {
if (sidecarRecordsBuilder_ == null) {
ensureSidecarRecordsIsMutable();
sidecarRecords_.add(index, builderForValue.build());
onChanged();
} else {
sidecarRecordsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public Builder addAllSidecarRecords(
java.lang.Iterable extends com.hedera.services.stream.proto.TransactionSidecarRecord> values) {
if (sidecarRecordsBuilder_ == null) {
ensureSidecarRecordsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sidecarRecords_);
onChanged();
} else {
sidecarRecordsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public Builder clearSidecarRecords() {
if (sidecarRecordsBuilder_ == null) {
sidecarRecords_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
sidecarRecordsBuilder_.clear();
}
return this;
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public Builder removeSidecarRecords(int index) {
if (sidecarRecordsBuilder_ == null) {
ensureSidecarRecordsIsMutable();
sidecarRecords_.remove(index);
onChanged();
} else {
sidecarRecordsBuilder_.remove(index);
}
return this;
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public com.hedera.services.stream.proto.TransactionSidecarRecord.Builder getSidecarRecordsBuilder(
int index) {
return getSidecarRecordsFieldBuilder().getBuilder(index);
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public com.hedera.services.stream.proto.TransactionSidecarRecordOrBuilder getSidecarRecordsOrBuilder(
int index) {
if (sidecarRecordsBuilder_ == null) {
return sidecarRecords_.get(index); } else {
return sidecarRecordsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public java.util.List extends com.hedera.services.stream.proto.TransactionSidecarRecordOrBuilder>
getSidecarRecordsOrBuilderList() {
if (sidecarRecordsBuilder_ != null) {
return sidecarRecordsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sidecarRecords_);
}
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public com.hedera.services.stream.proto.TransactionSidecarRecord.Builder addSidecarRecordsBuilder() {
return getSidecarRecordsFieldBuilder().addBuilder(
com.hedera.services.stream.proto.TransactionSidecarRecord.getDefaultInstance());
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public com.hedera.services.stream.proto.TransactionSidecarRecord.Builder addSidecarRecordsBuilder(
int index) {
return getSidecarRecordsFieldBuilder().addBuilder(
index, com.hedera.services.stream.proto.TransactionSidecarRecord.getDefaultInstance());
}
/**
*
**
* List of sidecar records
*
*
* repeated .proto.TransactionSidecarRecord sidecar_records = 1;
*/
public java.util.List
getSidecarRecordsBuilderList() {
return getSidecarRecordsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.services.stream.proto.TransactionSidecarRecord, com.hedera.services.stream.proto.TransactionSidecarRecord.Builder, com.hedera.services.stream.proto.TransactionSidecarRecordOrBuilder>
getSidecarRecordsFieldBuilder() {
if (sidecarRecordsBuilder_ == null) {
sidecarRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.services.stream.proto.TransactionSidecarRecord, com.hedera.services.stream.proto.TransactionSidecarRecord.Builder, com.hedera.services.stream.proto.TransactionSidecarRecordOrBuilder>(
sidecarRecords_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
sidecarRecords_ = null;
}
return sidecarRecordsBuilder_;
}
@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.SidecarFile)
}
// @@protoc_insertion_point(class_scope:proto.SidecarFile)
private static final com.hedera.services.stream.proto.SidecarFile DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.services.stream.proto.SidecarFile();
}
public static com.hedera.services.stream.proto.SidecarFile getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SidecarFile parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SidecarFile(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.SidecarFile getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}