com.hedera.services.stream.proto.ContractStateChange Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: contract_state_change.proto
package com.hedera.services.stream.proto;
/**
*
**
* The storage changes to a smart contract's storage as a side effect of the function call.
*
*
* Protobuf type {@code proto.ContractStateChange}
*/
public final class ContractStateChange extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.ContractStateChange)
ContractStateChangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContractStateChange.newBuilder() to construct.
private ContractStateChange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContractStateChange() {
storageChanges_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContractStateChange();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContractStateChange(
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: {
com.hederahashgraph.api.proto.java.ContractID.Builder subBuilder = null;
if (contractId_ != null) {
subBuilder = contractId_.toBuilder();
}
contractId_ = input.readMessage(com.hederahashgraph.api.proto.java.ContractID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(contractId_);
contractId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
storageChanges_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
storageChanges_.add(
input.readMessage(com.hedera.services.stream.proto.StorageChange.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)) {
storageChanges_ = java.util.Collections.unmodifiableList(storageChanges_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.services.stream.proto.ContractStateChangeOuterClass.internal_static_proto_ContractStateChange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.services.stream.proto.ContractStateChangeOuterClass.internal_static_proto_ContractStateChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.services.stream.proto.ContractStateChange.class, com.hedera.services.stream.proto.ContractStateChange.Builder.class);
}
public static final int CONTRACT_ID_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.ContractID contractId_;
/**
*
**
* The contract to which the storage changes apply to
*
*
* .proto.ContractID contract_id = 1;
* @return Whether the contractId field is set.
*/
@java.lang.Override
public boolean hasContractId() {
return contractId_ != null;
}
/**
*
**
* The contract to which the storage changes apply to
*
*
* .proto.ContractID contract_id = 1;
* @return The contractId.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractID getContractId() {
return contractId_ == null ? com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance() : contractId_;
}
/**
*
**
* The contract to which the storage changes apply to
*
*
* .proto.ContractID contract_id = 1;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIdOrBuilder() {
return getContractId();
}
public static final int STORAGE_CHANGES_FIELD_NUMBER = 2;
private java.util.List storageChanges_;
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
@java.lang.Override
public java.util.List getStorageChangesList() {
return storageChanges_;
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
@java.lang.Override
public java.util.List extends com.hedera.services.stream.proto.StorageChangeOrBuilder>
getStorageChangesOrBuilderList() {
return storageChanges_;
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
@java.lang.Override
public int getStorageChangesCount() {
return storageChanges_.size();
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
@java.lang.Override
public com.hedera.services.stream.proto.StorageChange getStorageChanges(int index) {
return storageChanges_.get(index);
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
@java.lang.Override
public com.hedera.services.stream.proto.StorageChangeOrBuilder getStorageChangesOrBuilder(
int index) {
return storageChanges_.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 {
if (contractId_ != null) {
output.writeMessage(1, getContractId());
}
for (int i = 0; i < storageChanges_.size(); i++) {
output.writeMessage(2, storageChanges_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contractId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getContractId());
}
for (int i = 0; i < storageChanges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, storageChanges_.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.ContractStateChange)) {
return super.equals(obj);
}
com.hedera.services.stream.proto.ContractStateChange other = (com.hedera.services.stream.proto.ContractStateChange) obj;
if (hasContractId() != other.hasContractId()) return false;
if (hasContractId()) {
if (!getContractId()
.equals(other.getContractId())) return false;
}
if (!getStorageChangesList()
.equals(other.getStorageChangesList())) 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 (hasContractId()) {
hash = (37 * hash) + CONTRACT_ID_FIELD_NUMBER;
hash = (53 * hash) + getContractId().hashCode();
}
if (getStorageChangesCount() > 0) {
hash = (37 * hash) + STORAGE_CHANGES_FIELD_NUMBER;
hash = (53 * hash) + getStorageChangesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.services.stream.proto.ContractStateChange parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.services.stream.proto.ContractStateChange 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.ContractStateChange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.services.stream.proto.ContractStateChange 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.ContractStateChange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.services.stream.proto.ContractStateChange 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.ContractStateChange parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.services.stream.proto.ContractStateChange 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.ContractStateChange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.services.stream.proto.ContractStateChange 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.ContractStateChange 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.ContractStateChange 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.ContractStateChange 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;
}
/**
*
**
* The storage changes to a smart contract's storage as a side effect of the function call.
*
*
* Protobuf type {@code proto.ContractStateChange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.ContractStateChange)
com.hedera.services.stream.proto.ContractStateChangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.services.stream.proto.ContractStateChangeOuterClass.internal_static_proto_ContractStateChange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.services.stream.proto.ContractStateChangeOuterClass.internal_static_proto_ContractStateChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.services.stream.proto.ContractStateChange.class, com.hedera.services.stream.proto.ContractStateChange.Builder.class);
}
// Construct using com.hedera.services.stream.proto.ContractStateChange.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStorageChangesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (contractIdBuilder_ == null) {
contractId_ = null;
} else {
contractId_ = null;
contractIdBuilder_ = null;
}
if (storageChangesBuilder_ == null) {
storageChanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
storageChangesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.services.stream.proto.ContractStateChangeOuterClass.internal_static_proto_ContractStateChange_descriptor;
}
@java.lang.Override
public com.hedera.services.stream.proto.ContractStateChange getDefaultInstanceForType() {
return com.hedera.services.stream.proto.ContractStateChange.getDefaultInstance();
}
@java.lang.Override
public com.hedera.services.stream.proto.ContractStateChange build() {
com.hedera.services.stream.proto.ContractStateChange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.services.stream.proto.ContractStateChange buildPartial() {
com.hedera.services.stream.proto.ContractStateChange result = new com.hedera.services.stream.proto.ContractStateChange(this);
int from_bitField0_ = bitField0_;
if (contractIdBuilder_ == null) {
result.contractId_ = contractId_;
} else {
result.contractId_ = contractIdBuilder_.build();
}
if (storageChangesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
storageChanges_ = java.util.Collections.unmodifiableList(storageChanges_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.storageChanges_ = storageChanges_;
} else {
result.storageChanges_ = storageChangesBuilder_.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.ContractStateChange) {
return mergeFrom((com.hedera.services.stream.proto.ContractStateChange)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.services.stream.proto.ContractStateChange other) {
if (other == com.hedera.services.stream.proto.ContractStateChange.getDefaultInstance()) return this;
if (other.hasContractId()) {
mergeContractId(other.getContractId());
}
if (storageChangesBuilder_ == null) {
if (!other.storageChanges_.isEmpty()) {
if (storageChanges_.isEmpty()) {
storageChanges_ = other.storageChanges_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStorageChangesIsMutable();
storageChanges_.addAll(other.storageChanges_);
}
onChanged();
}
} else {
if (!other.storageChanges_.isEmpty()) {
if (storageChangesBuilder_.isEmpty()) {
storageChangesBuilder_.dispose();
storageChangesBuilder_ = null;
storageChanges_ = other.storageChanges_;
bitField0_ = (bitField0_ & ~0x00000001);
storageChangesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStorageChangesFieldBuilder() : null;
} else {
storageChangesBuilder_.addAllMessages(other.storageChanges_);
}
}
}
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.ContractStateChange parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hedera.services.stream.proto.ContractStateChange) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.hederahashgraph.api.proto.java.ContractID contractId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> contractIdBuilder_;
/**
*
**
* The contract to which the storage changes apply to
*
*
* .proto.ContractID contract_id = 1;
* @return Whether the contractId field is set.
*/
public boolean hasContractId() {
return contractIdBuilder_ != null || contractId_ != null;
}
/**
*
**
* The contract to which the storage changes apply to
*
*
* .proto.ContractID contract_id = 1;
* @return The contractId.
*/
public com.hederahashgraph.api.proto.java.ContractID getContractId() {
if (contractIdBuilder_ == null) {
return contractId_ == null ? com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance() : contractId_;
} else {
return contractIdBuilder_.getMessage();
}
}
/**
*
**
* The contract to which the storage changes apply to
*
*
* .proto.ContractID contract_id = 1;
*/
public Builder setContractId(com.hederahashgraph.api.proto.java.ContractID value) {
if (contractIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contractId_ = value;
onChanged();
} else {
contractIdBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The contract to which the storage changes apply to
*
*
* .proto.ContractID contract_id = 1;
*/
public Builder setContractId(
com.hederahashgraph.api.proto.java.ContractID.Builder builderForValue) {
if (contractIdBuilder_ == null) {
contractId_ = builderForValue.build();
onChanged();
} else {
contractIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The contract to which the storage changes apply to
*
*
* .proto.ContractID contract_id = 1;
*/
public Builder mergeContractId(com.hederahashgraph.api.proto.java.ContractID value) {
if (contractIdBuilder_ == null) {
if (contractId_ != null) {
contractId_ =
com.hederahashgraph.api.proto.java.ContractID.newBuilder(contractId_).mergeFrom(value).buildPartial();
} else {
contractId_ = value;
}
onChanged();
} else {
contractIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The contract to which the storage changes apply to
*
*
* .proto.ContractID contract_id = 1;
*/
public Builder clearContractId() {
if (contractIdBuilder_ == null) {
contractId_ = null;
onChanged();
} else {
contractId_ = null;
contractIdBuilder_ = null;
}
return this;
}
/**
*
**
* The contract to which the storage changes apply to
*
*
* .proto.ContractID contract_id = 1;
*/
public com.hederahashgraph.api.proto.java.ContractID.Builder getContractIdBuilder() {
onChanged();
return getContractIdFieldBuilder().getBuilder();
}
/**
*
**
* The contract to which the storage changes apply to
*
*
* .proto.ContractID contract_id = 1;
*/
public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIdOrBuilder() {
if (contractIdBuilder_ != null) {
return contractIdBuilder_.getMessageOrBuilder();
} else {
return contractId_ == null ?
com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance() : contractId_;
}
}
/**
*
**
* The contract to which the storage changes apply to
*
*
* .proto.ContractID contract_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>
getContractIdFieldBuilder() {
if (contractIdBuilder_ == null) {
contractIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>(
getContractId(),
getParentForChildren(),
isClean());
contractId_ = null;
}
return contractIdBuilder_;
}
private java.util.List storageChanges_ =
java.util.Collections.emptyList();
private void ensureStorageChangesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
storageChanges_ = new java.util.ArrayList(storageChanges_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.services.stream.proto.StorageChange, com.hedera.services.stream.proto.StorageChange.Builder, com.hedera.services.stream.proto.StorageChangeOrBuilder> storageChangesBuilder_;
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public java.util.List getStorageChangesList() {
if (storageChangesBuilder_ == null) {
return java.util.Collections.unmodifiableList(storageChanges_);
} else {
return storageChangesBuilder_.getMessageList();
}
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public int getStorageChangesCount() {
if (storageChangesBuilder_ == null) {
return storageChanges_.size();
} else {
return storageChangesBuilder_.getCount();
}
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public com.hedera.services.stream.proto.StorageChange getStorageChanges(int index) {
if (storageChangesBuilder_ == null) {
return storageChanges_.get(index);
} else {
return storageChangesBuilder_.getMessage(index);
}
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public Builder setStorageChanges(
int index, com.hedera.services.stream.proto.StorageChange value) {
if (storageChangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStorageChangesIsMutable();
storageChanges_.set(index, value);
onChanged();
} else {
storageChangesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public Builder setStorageChanges(
int index, com.hedera.services.stream.proto.StorageChange.Builder builderForValue) {
if (storageChangesBuilder_ == null) {
ensureStorageChangesIsMutable();
storageChanges_.set(index, builderForValue.build());
onChanged();
} else {
storageChangesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public Builder addStorageChanges(com.hedera.services.stream.proto.StorageChange value) {
if (storageChangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStorageChangesIsMutable();
storageChanges_.add(value);
onChanged();
} else {
storageChangesBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public Builder addStorageChanges(
int index, com.hedera.services.stream.proto.StorageChange value) {
if (storageChangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStorageChangesIsMutable();
storageChanges_.add(index, value);
onChanged();
} else {
storageChangesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public Builder addStorageChanges(
com.hedera.services.stream.proto.StorageChange.Builder builderForValue) {
if (storageChangesBuilder_ == null) {
ensureStorageChangesIsMutable();
storageChanges_.add(builderForValue.build());
onChanged();
} else {
storageChangesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public Builder addStorageChanges(
int index, com.hedera.services.stream.proto.StorageChange.Builder builderForValue) {
if (storageChangesBuilder_ == null) {
ensureStorageChangesIsMutable();
storageChanges_.add(index, builderForValue.build());
onChanged();
} else {
storageChangesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public Builder addAllStorageChanges(
java.lang.Iterable extends com.hedera.services.stream.proto.StorageChange> values) {
if (storageChangesBuilder_ == null) {
ensureStorageChangesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, storageChanges_);
onChanged();
} else {
storageChangesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public Builder clearStorageChanges() {
if (storageChangesBuilder_ == null) {
storageChanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
storageChangesBuilder_.clear();
}
return this;
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public Builder removeStorageChanges(int index) {
if (storageChangesBuilder_ == null) {
ensureStorageChangesIsMutable();
storageChanges_.remove(index);
onChanged();
} else {
storageChangesBuilder_.remove(index);
}
return this;
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public com.hedera.services.stream.proto.StorageChange.Builder getStorageChangesBuilder(
int index) {
return getStorageChangesFieldBuilder().getBuilder(index);
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public com.hedera.services.stream.proto.StorageChangeOrBuilder getStorageChangesOrBuilder(
int index) {
if (storageChangesBuilder_ == null) {
return storageChanges_.get(index); } else {
return storageChangesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public java.util.List extends com.hedera.services.stream.proto.StorageChangeOrBuilder>
getStorageChangesOrBuilderList() {
if (storageChangesBuilder_ != null) {
return storageChangesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(storageChanges_);
}
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public com.hedera.services.stream.proto.StorageChange.Builder addStorageChangesBuilder() {
return getStorageChangesFieldBuilder().addBuilder(
com.hedera.services.stream.proto.StorageChange.getDefaultInstance());
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public com.hedera.services.stream.proto.StorageChange.Builder addStorageChangesBuilder(
int index) {
return getStorageChangesFieldBuilder().addBuilder(
index, com.hedera.services.stream.proto.StorageChange.getDefaultInstance());
}
/**
*
**
* The list of storage changes.
*
*
* repeated .proto.StorageChange storage_changes = 2;
*/
public java.util.List
getStorageChangesBuilderList() {
return getStorageChangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.services.stream.proto.StorageChange, com.hedera.services.stream.proto.StorageChange.Builder, com.hedera.services.stream.proto.StorageChangeOrBuilder>
getStorageChangesFieldBuilder() {
if (storageChangesBuilder_ == null) {
storageChangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.services.stream.proto.StorageChange, com.hedera.services.stream.proto.StorageChange.Builder, com.hedera.services.stream.proto.StorageChangeOrBuilder>(
storageChanges_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
storageChanges_ = null;
}
return storageChangesBuilder_;
}
@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.ContractStateChange)
}
// @@protoc_insertion_point(class_scope:proto.ContractStateChange)
private static final com.hedera.services.stream.proto.ContractStateChange DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.services.stream.proto.ContractStateChange();
}
public static com.hedera.services.stream.proto.ContractStateChange getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ContractStateChange parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContractStateChange(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.ContractStateChange getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy