com.hedera.hapi.block.stream.output.protoc.EthereumOutput Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: stream/output/smart_contract_service.proto
package com.hedera.hapi.block.stream.output.protoc;
/**
*
**
* Block Stream data for a `callEthereum` transaction.
* This message SHALL NOT duplicate information already contained in
* the original transaction.
*
*
* Protobuf type {@code com.hedera.hapi.block.stream.output.EthereumOutput}
*/
public final class EthereumOutput extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.hedera.hapi.block.stream.output.EthereumOutput)
EthereumOutputOrBuilder {
private static final long serialVersionUID = 0L;
// Use EthereumOutput.newBuilder() to construct.
private EthereumOutput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EthereumOutput() {
sidecars_ = java.util.Collections.emptyList();
ethereumHash_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EthereumOutput();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EthereumOutput(
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)) {
sidecars_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
sidecars_.add(
input.readMessage(com.hedera.services.stream.proto.TransactionSidecarRecord.parser(), extensionRegistry));
break;
}
case 18: {
ethereumHash_ = input.readBytes();
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)) {
sidecars_ = java.util.Collections.unmodifiableList(sidecars_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hapi.block.stream.output.protoc.SmartContractService.internal_static_com_hedera_hapi_block_stream_output_EthereumOutput_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.block.stream.output.protoc.SmartContractService.internal_static_com_hedera_hapi_block_stream_output_EthereumOutput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.block.stream.output.protoc.EthereumOutput.class, com.hedera.hapi.block.stream.output.protoc.EthereumOutput.Builder.class);
}
public static final int SIDECARS_FIELD_NUMBER = 1;
private java.util.List sidecars_;
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
@java.lang.Override
public java.util.List getSidecarsList() {
return sidecars_;
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
@java.lang.Override
public java.util.List extends com.hedera.services.stream.proto.TransactionSidecarRecordOrBuilder>
getSidecarsOrBuilderList() {
return sidecars_;
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
@java.lang.Override
public int getSidecarsCount() {
return sidecars_.size();
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
@java.lang.Override
public com.hedera.services.stream.proto.TransactionSidecarRecord getSidecars(int index) {
return sidecars_.get(index);
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
@java.lang.Override
public com.hedera.services.stream.proto.TransactionSidecarRecordOrBuilder getSidecarsOrBuilder(
int index) {
return sidecars_.get(index);
}
public static final int ETHEREUM_HASH_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString ethereumHash_;
/**
*
**
* An ethereum hash value.
* <p>
* This SHALL be a keccak256 hash of the ethereumData.
*
*
* bytes ethereum_hash = 2;
* @return The ethereumHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEthereumHash() {
return ethereumHash_;
}
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 < sidecars_.size(); i++) {
output.writeMessage(1, sidecars_.get(i));
}
if (!ethereumHash_.isEmpty()) {
output.writeBytes(2, ethereumHash_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < sidecars_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, sidecars_.get(i));
}
if (!ethereumHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, ethereumHash_);
}
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.output.protoc.EthereumOutput)) {
return super.equals(obj);
}
com.hedera.hapi.block.stream.output.protoc.EthereumOutput other = (com.hedera.hapi.block.stream.output.protoc.EthereumOutput) obj;
if (!getSidecarsList()
.equals(other.getSidecarsList())) return false;
if (!getEthereumHash()
.equals(other.getEthereumHash())) 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 (getSidecarsCount() > 0) {
hash = (37 * hash) + SIDECARS_FIELD_NUMBER;
hash = (53 * hash) + getSidecarsList().hashCode();
}
hash = (37 * hash) + ETHEREUM_HASH_FIELD_NUMBER;
hash = (53 * hash) + getEthereumHash().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hapi.block.stream.output.protoc.EthereumOutput parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.stream.output.protoc.EthereumOutput 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.output.protoc.EthereumOutput parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.stream.output.protoc.EthereumOutput 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.output.protoc.EthereumOutput parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.stream.output.protoc.EthereumOutput 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.output.protoc.EthereumOutput parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hapi.block.stream.output.protoc.EthereumOutput 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.output.protoc.EthereumOutput parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hapi.block.stream.output.protoc.EthereumOutput 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.output.protoc.EthereumOutput 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.output.protoc.EthereumOutput 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.output.protoc.EthereumOutput 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;
}
/**
*
**
* Block Stream data for a `callEthereum` transaction.
* This message SHALL NOT duplicate information already contained in
* the original transaction.
*
*
* Protobuf type {@code com.hedera.hapi.block.stream.output.EthereumOutput}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.hedera.hapi.block.stream.output.EthereumOutput)
com.hedera.hapi.block.stream.output.protoc.EthereumOutputOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hapi.block.stream.output.protoc.SmartContractService.internal_static_com_hedera_hapi_block_stream_output_EthereumOutput_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.block.stream.output.protoc.SmartContractService.internal_static_com_hedera_hapi_block_stream_output_EthereumOutput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.block.stream.output.protoc.EthereumOutput.class, com.hedera.hapi.block.stream.output.protoc.EthereumOutput.Builder.class);
}
// Construct using com.hedera.hapi.block.stream.output.protoc.EthereumOutput.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSidecarsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (sidecarsBuilder_ == null) {
sidecars_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
sidecarsBuilder_.clear();
}
ethereumHash_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hapi.block.stream.output.protoc.SmartContractService.internal_static_com_hedera_hapi_block_stream_output_EthereumOutput_descriptor;
}
@java.lang.Override
public com.hedera.hapi.block.stream.output.protoc.EthereumOutput getDefaultInstanceForType() {
return com.hedera.hapi.block.stream.output.protoc.EthereumOutput.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hapi.block.stream.output.protoc.EthereumOutput build() {
com.hedera.hapi.block.stream.output.protoc.EthereumOutput result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hapi.block.stream.output.protoc.EthereumOutput buildPartial() {
com.hedera.hapi.block.stream.output.protoc.EthereumOutput result = new com.hedera.hapi.block.stream.output.protoc.EthereumOutput(this);
int from_bitField0_ = bitField0_;
if (sidecarsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
sidecars_ = java.util.Collections.unmodifiableList(sidecars_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.sidecars_ = sidecars_;
} else {
result.sidecars_ = sidecarsBuilder_.build();
}
result.ethereumHash_ = ethereumHash_;
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.output.protoc.EthereumOutput) {
return mergeFrom((com.hedera.hapi.block.stream.output.protoc.EthereumOutput)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hapi.block.stream.output.protoc.EthereumOutput other) {
if (other == com.hedera.hapi.block.stream.output.protoc.EthereumOutput.getDefaultInstance()) return this;
if (sidecarsBuilder_ == null) {
if (!other.sidecars_.isEmpty()) {
if (sidecars_.isEmpty()) {
sidecars_ = other.sidecars_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSidecarsIsMutable();
sidecars_.addAll(other.sidecars_);
}
onChanged();
}
} else {
if (!other.sidecars_.isEmpty()) {
if (sidecarsBuilder_.isEmpty()) {
sidecarsBuilder_.dispose();
sidecarsBuilder_ = null;
sidecars_ = other.sidecars_;
bitField0_ = (bitField0_ & ~0x00000001);
sidecarsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSidecarsFieldBuilder() : null;
} else {
sidecarsBuilder_.addAllMessages(other.sidecars_);
}
}
}
if (other.getEthereumHash() != com.google.protobuf.ByteString.EMPTY) {
setEthereumHash(other.getEthereumHash());
}
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.output.protoc.EthereumOutput parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hedera.hapi.block.stream.output.protoc.EthereumOutput) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List sidecars_ =
java.util.Collections.emptyList();
private void ensureSidecarsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
sidecars_ = new java.util.ArrayList(sidecars_);
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> sidecarsBuilder_;
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public java.util.List getSidecarsList() {
if (sidecarsBuilder_ == null) {
return java.util.Collections.unmodifiableList(sidecars_);
} else {
return sidecarsBuilder_.getMessageList();
}
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public int getSidecarsCount() {
if (sidecarsBuilder_ == null) {
return sidecars_.size();
} else {
return sidecarsBuilder_.getCount();
}
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public com.hedera.services.stream.proto.TransactionSidecarRecord getSidecars(int index) {
if (sidecarsBuilder_ == null) {
return sidecars_.get(index);
} else {
return sidecarsBuilder_.getMessage(index);
}
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public Builder setSidecars(
int index, com.hedera.services.stream.proto.TransactionSidecarRecord value) {
if (sidecarsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSidecarsIsMutable();
sidecars_.set(index, value);
onChanged();
} else {
sidecarsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public Builder setSidecars(
int index, com.hedera.services.stream.proto.TransactionSidecarRecord.Builder builderForValue) {
if (sidecarsBuilder_ == null) {
ensureSidecarsIsMutable();
sidecars_.set(index, builderForValue.build());
onChanged();
} else {
sidecarsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public Builder addSidecars(com.hedera.services.stream.proto.TransactionSidecarRecord value) {
if (sidecarsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSidecarsIsMutable();
sidecars_.add(value);
onChanged();
} else {
sidecarsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public Builder addSidecars(
int index, com.hedera.services.stream.proto.TransactionSidecarRecord value) {
if (sidecarsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSidecarsIsMutable();
sidecars_.add(index, value);
onChanged();
} else {
sidecarsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public Builder addSidecars(
com.hedera.services.stream.proto.TransactionSidecarRecord.Builder builderForValue) {
if (sidecarsBuilder_ == null) {
ensureSidecarsIsMutable();
sidecars_.add(builderForValue.build());
onChanged();
} else {
sidecarsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public Builder addSidecars(
int index, com.hedera.services.stream.proto.TransactionSidecarRecord.Builder builderForValue) {
if (sidecarsBuilder_ == null) {
ensureSidecarsIsMutable();
sidecars_.add(index, builderForValue.build());
onChanged();
} else {
sidecarsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public Builder addAllSidecars(
java.lang.Iterable extends com.hedera.services.stream.proto.TransactionSidecarRecord> values) {
if (sidecarsBuilder_ == null) {
ensureSidecarsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sidecars_);
onChanged();
} else {
sidecarsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public Builder clearSidecars() {
if (sidecarsBuilder_ == null) {
sidecars_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
sidecarsBuilder_.clear();
}
return this;
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public Builder removeSidecars(int index) {
if (sidecarsBuilder_ == null) {
ensureSidecarsIsMutable();
sidecars_.remove(index);
onChanged();
} else {
sidecarsBuilder_.remove(index);
}
return this;
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public com.hedera.services.stream.proto.TransactionSidecarRecord.Builder getSidecarsBuilder(
int index) {
return getSidecarsFieldBuilder().getBuilder(index);
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public com.hedera.services.stream.proto.TransactionSidecarRecordOrBuilder getSidecarsOrBuilder(
int index) {
if (sidecarsBuilder_ == null) {
return sidecars_.get(index); } else {
return sidecarsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public java.util.List extends com.hedera.services.stream.proto.TransactionSidecarRecordOrBuilder>
getSidecarsOrBuilderList() {
if (sidecarsBuilder_ != null) {
return sidecarsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sidecars_);
}
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public com.hedera.services.stream.proto.TransactionSidecarRecord.Builder addSidecarsBuilder() {
return getSidecarsFieldBuilder().addBuilder(
com.hedera.services.stream.proto.TransactionSidecarRecord.getDefaultInstance());
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public com.hedera.services.stream.proto.TransactionSidecarRecord.Builder addSidecarsBuilder(
int index) {
return getSidecarsFieldBuilder().addBuilder(
index, com.hedera.services.stream.proto.TransactionSidecarRecord.getDefaultInstance());
}
/**
*
**
* A list of additional outputs.
* <p>
* This field MAY record one or more additional outputs and smart
* contract state changes produced during the ethereum call
* transaction handling.<br/>
* This field SHALL NOT be set if the transaction handling did not
* produce additional outputs.<br/>
* This field is not settled and MAY be removed or modified.
*
*
* repeated .proto.TransactionSidecarRecord sidecars = 1;
*/
public java.util.List
getSidecarsBuilderList() {
return getSidecarsFieldBuilder().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>
getSidecarsFieldBuilder() {
if (sidecarsBuilder_ == null) {
sidecarsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.services.stream.proto.TransactionSidecarRecord, com.hedera.services.stream.proto.TransactionSidecarRecord.Builder, com.hedera.services.stream.proto.TransactionSidecarRecordOrBuilder>(
sidecars_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
sidecars_ = null;
}
return sidecarsBuilder_;
}
private com.google.protobuf.ByteString ethereumHash_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* An ethereum hash value.
* <p>
* This SHALL be a keccak256 hash of the ethereumData.
*
*
* bytes ethereum_hash = 2;
* @return The ethereumHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEthereumHash() {
return ethereumHash_;
}
/**
*
**
* An ethereum hash value.
* <p>
* This SHALL be a keccak256 hash of the ethereumData.
*
*
* bytes ethereum_hash = 2;
* @param value The ethereumHash to set.
* @return This builder for chaining.
*/
public Builder setEthereumHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ethereumHash_ = value;
onChanged();
return this;
}
/**
*
**
* An ethereum hash value.
* <p>
* This SHALL be a keccak256 hash of the ethereumData.
*
*
* bytes ethereum_hash = 2;
* @return This builder for chaining.
*/
public Builder clearEthereumHash() {
ethereumHash_ = getDefaultInstance().getEthereumHash();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.hedera.hapi.block.stream.output.EthereumOutput)
}
// @@protoc_insertion_point(class_scope:com.hedera.hapi.block.stream.output.EthereumOutput)
private static final com.hedera.hapi.block.stream.output.protoc.EthereumOutput DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hapi.block.stream.output.protoc.EthereumOutput();
}
public static com.hedera.hapi.block.stream.output.protoc.EthereumOutput getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EthereumOutput parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EthereumOutput(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.output.protoc.EthereumOutput getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy