
com.hedera.hashgraph.sdk.proto.StorageChange Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: contract_call_local.proto
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* A storage slot change description.
*
*
* Protobuf type {@code proto.StorageChange}
*/
public final class StorageChange extends
com.google.protobuf.GeneratedMessageLite<
StorageChange, StorageChange.Builder> implements
// @@protoc_insertion_point(message_implements:proto.StorageChange)
StorageChangeOrBuilder {
private StorageChange() {
slot_ = com.google.protobuf.ByteString.EMPTY;
valueRead_ = com.google.protobuf.ByteString.EMPTY;
}
public static final int SLOT_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString slot_;
/**
*
**
* The storage slot changed. Up to 32 bytes, big-endian, zero bytes left trimmed.
*
*
* bytes slot = 1;
* @return The slot.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSlot() {
return slot_;
}
/**
*
**
* The storage slot changed. Up to 32 bytes, big-endian, zero bytes left trimmed.
*
*
* bytes slot = 1;
* @param value The slot to set.
*/
private void setSlot(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
slot_ = value;
}
/**
*
**
* The storage slot changed. Up to 32 bytes, big-endian, zero bytes left trimmed.
*
*
* bytes slot = 1;
*/
private void clearSlot() {
slot_ = getDefaultInstance().getSlot();
}
public static final int VALUEREAD_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString valueRead_;
/**
*
**
* The value read from the storage slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* Because of the way SSTORE operations are charged the slot is always read before being written to.
*
*
* bytes valueRead = 2;
* @return The valueRead.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValueRead() {
return valueRead_;
}
/**
*
**
* The value read from the storage slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* Because of the way SSTORE operations are charged the slot is always read before being written to.
*
*
* bytes valueRead = 2;
* @param value The valueRead to set.
*/
private void setValueRead(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
valueRead_ = value;
}
/**
*
**
* The value read from the storage slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* Because of the way SSTORE operations are charged the slot is always read before being written to.
*
*
* bytes valueRead = 2;
*/
private void clearValueRead() {
valueRead_ = getDefaultInstance().getValueRead();
}
public static final int VALUEWRITTEN_FIELD_NUMBER = 3;
private com.google.protobuf.BytesValue valueWritten_;
/**
*
**
* The new value written to the slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* If a value of zero is written the valueWritten will be present but the inner value will be absent.
* If a value was read and not written this value will not be present.
*
*
* .google.protobuf.BytesValue valueWritten = 3;
*/
@java.lang.Override
public boolean hasValueWritten() {
return valueWritten_ != null;
}
/**
*
**
* The new value written to the slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* If a value of zero is written the valueWritten will be present but the inner value will be absent.
* If a value was read and not written this value will not be present.
*
*
* .google.protobuf.BytesValue valueWritten = 3;
*/
@java.lang.Override
public com.google.protobuf.BytesValue getValueWritten() {
return valueWritten_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : valueWritten_;
}
/**
*
**
* The new value written to the slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* If a value of zero is written the valueWritten will be present but the inner value will be absent.
* If a value was read and not written this value will not be present.
*
*
* .google.protobuf.BytesValue valueWritten = 3;
*/
private void setValueWritten(com.google.protobuf.BytesValue value) {
value.getClass();
valueWritten_ = value;
}
/**
*
**
* The new value written to the slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* If a value of zero is written the valueWritten will be present but the inner value will be absent.
* If a value was read and not written this value will not be present.
*
*
* .google.protobuf.BytesValue valueWritten = 3;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeValueWritten(com.google.protobuf.BytesValue value) {
value.getClass();
if (valueWritten_ != null &&
valueWritten_ != com.google.protobuf.BytesValue.getDefaultInstance()) {
valueWritten_ =
com.google.protobuf.BytesValue.newBuilder(valueWritten_).mergeFrom(value).buildPartial();
} else {
valueWritten_ = value;
}
}
/**
*
**
* The new value written to the slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* If a value of zero is written the valueWritten will be present but the inner value will be absent.
* If a value was read and not written this value will not be present.
*
*
* .google.protobuf.BytesValue valueWritten = 3;
*/
private void clearValueWritten() { valueWritten_ = null;
}
public static com.hedera.hashgraph.sdk.proto.StorageChange parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.StorageChange parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.StorageChange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.StorageChange parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.StorageChange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.StorageChange parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.StorageChange parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.StorageChange parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.StorageChange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.StorageChange parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.StorageChange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.StorageChange parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.StorageChange prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* A storage slot change description.
*
*
* Protobuf type {@code proto.StorageChange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.StorageChange, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.StorageChange)
com.hedera.hashgraph.sdk.proto.StorageChangeOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.StorageChange.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* The storage slot changed. Up to 32 bytes, big-endian, zero bytes left trimmed.
*
*
* bytes slot = 1;
* @return The slot.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSlot() {
return instance.getSlot();
}
/**
*
**
* The storage slot changed. Up to 32 bytes, big-endian, zero bytes left trimmed.
*
*
* bytes slot = 1;
* @param value The slot to set.
* @return This builder for chaining.
*/
public Builder setSlot(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setSlot(value);
return this;
}
/**
*
**
* The storage slot changed. Up to 32 bytes, big-endian, zero bytes left trimmed.
*
*
* bytes slot = 1;
* @return This builder for chaining.
*/
public Builder clearSlot() {
copyOnWrite();
instance.clearSlot();
return this;
}
/**
*
**
* The value read from the storage slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* Because of the way SSTORE operations are charged the slot is always read before being written to.
*
*
* bytes valueRead = 2;
* @return The valueRead.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValueRead() {
return instance.getValueRead();
}
/**
*
**
* The value read from the storage slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* Because of the way SSTORE operations are charged the slot is always read before being written to.
*
*
* bytes valueRead = 2;
* @param value The valueRead to set.
* @return This builder for chaining.
*/
public Builder setValueRead(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setValueRead(value);
return this;
}
/**
*
**
* The value read from the storage slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* Because of the way SSTORE operations are charged the slot is always read before being written to.
*
*
* bytes valueRead = 2;
* @return This builder for chaining.
*/
public Builder clearValueRead() {
copyOnWrite();
instance.clearValueRead();
return this;
}
/**
*
**
* The new value written to the slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* If a value of zero is written the valueWritten will be present but the inner value will be absent.
* If a value was read and not written this value will not be present.
*
*
* .google.protobuf.BytesValue valueWritten = 3;
*/
@java.lang.Override
public boolean hasValueWritten() {
return instance.hasValueWritten();
}
/**
*
**
* The new value written to the slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* If a value of zero is written the valueWritten will be present but the inner value will be absent.
* If a value was read and not written this value will not be present.
*
*
* .google.protobuf.BytesValue valueWritten = 3;
*/
@java.lang.Override
public com.google.protobuf.BytesValue getValueWritten() {
return instance.getValueWritten();
}
/**
*
**
* The new value written to the slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* If a value of zero is written the valueWritten will be present but the inner value will be absent.
* If a value was read and not written this value will not be present.
*
*
* .google.protobuf.BytesValue valueWritten = 3;
*/
public Builder setValueWritten(com.google.protobuf.BytesValue value) {
copyOnWrite();
instance.setValueWritten(value);
return this;
}
/**
*
**
* The new value written to the slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* If a value of zero is written the valueWritten will be present but the inner value will be absent.
* If a value was read and not written this value will not be present.
*
*
* .google.protobuf.BytesValue valueWritten = 3;
*/
public Builder setValueWritten(
com.google.protobuf.BytesValue.Builder builderForValue) {
copyOnWrite();
instance.setValueWritten(builderForValue.build());
return this;
}
/**
*
**
* The new value written to the slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* If a value of zero is written the valueWritten will be present but the inner value will be absent.
* If a value was read and not written this value will not be present.
*
*
* .google.protobuf.BytesValue valueWritten = 3;
*/
public Builder mergeValueWritten(com.google.protobuf.BytesValue value) {
copyOnWrite();
instance.mergeValueWritten(value);
return this;
}
/**
*
**
* The new value written to the slot. Up to 32 bytes, big-endian, zero bytes left trimmed.
* If a value of zero is written the valueWritten will be present but the inner value will be absent.
* If a value was read and not written this value will not be present.
*
*
* .google.protobuf.BytesValue valueWritten = 3;
*/
public Builder clearValueWritten() { copyOnWrite();
instance.clearValueWritten();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.StorageChange)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.hedera.hashgraph.sdk.proto.StorageChange();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"slot_",
"valueRead_",
"valueWritten_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\n\u0002\n\u0003" +
"\t";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.hedera.hashgraph.sdk.proto.StorageChange.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:proto.StorageChange)
private static final com.hedera.hashgraph.sdk.proto.StorageChange DEFAULT_INSTANCE;
static {
StorageChange defaultInstance = new StorageChange();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
StorageChange.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.StorageChange getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy