p3/target/generated-sources/protobuf/java/iiis/systems/os/blockdb/Transaction.java

1108 lines
30 KiB
Java

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: db.proto
package iiis.systems.os.blockdb;
/**
* Protobuf type {@code blockdb.Transaction}
*/
public final class Transaction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:blockdb.Transaction)
TransactionOrBuilder {
// Use Transaction.newBuilder() to construct.
private Transaction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Transaction() {
type_ = 0;
userID_ = "";
fromID_ = "";
toID_ = "";
value_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Transaction(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
userID_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
fromID_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
toID_ = s;
break;
}
case 40: {
value_ = input.readInt32();
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return iiis.systems.os.blockdb.DBProto.internal_static_blockdb_Transaction_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return iiis.systems.os.blockdb.DBProto.internal_static_blockdb_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
iiis.systems.os.blockdb.Transaction.class, iiis.systems.os.blockdb.Transaction.Builder.class);
}
/**
* Protobuf enum {@code blockdb.Transaction.Types}
*/
public enum Types
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>UNKNOWN = 0;</code>
*/
UNKNOWN(0),
/**
* <code>GET = 1;</code>
*/
GET(1),
/**
* <code>PUT = 2;</code>
*/
PUT(2),
/**
* <code>DEPOSIT = 3;</code>
*/
DEPOSIT(3),
/**
* <code>WITHDRAW = 4;</code>
*/
WITHDRAW(4),
/**
* <code>TRANSFER = 5;</code>
*/
TRANSFER(5),
UNRECOGNIZED(-1),
;
/**
* <code>UNKNOWN = 0;</code>
*/
public static final int UNKNOWN_VALUE = 0;
/**
* <code>GET = 1;</code>
*/
public static final int GET_VALUE = 1;
/**
* <code>PUT = 2;</code>
*/
public static final int PUT_VALUE = 2;
/**
* <code>DEPOSIT = 3;</code>
*/
public static final int DEPOSIT_VALUE = 3;
/**
* <code>WITHDRAW = 4;</code>
*/
public static final int WITHDRAW_VALUE = 4;
/**
* <code>TRANSFER = 5;</code>
*/
public static final int TRANSFER_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Types valueOf(int value) {
return forNumber(value);
}
public static Types forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return GET;
case 2: return PUT;
case 3: return DEPOSIT;
case 4: return WITHDRAW;
case 5: return TRANSFER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<Types>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Types> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<Types>() {
public Types findValueByNumber(int number) {
return Types.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return iiis.systems.os.blockdb.Transaction.getDescriptor().getEnumTypes().get(0);
}
private static final Types[] VALUES = values();
public static Types valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Types(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:blockdb.Transaction.Types)
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* <code>.blockdb.Transaction.Types Type = 1;</code>
*/
public int getTypeValue() {
return type_;
}
/**
* <code>.blockdb.Transaction.Types Type = 1;</code>
*/
public iiis.systems.os.blockdb.Transaction.Types getType() {
iiis.systems.os.blockdb.Transaction.Types result = iiis.systems.os.blockdb.Transaction.Types.valueOf(type_);
return result == null ? iiis.systems.os.blockdb.Transaction.Types.UNRECOGNIZED : result;
}
public static final int USERID_FIELD_NUMBER = 2;
private volatile java.lang.Object userID_;
/**
* <pre>
* Optional
* </pre>
*
* <code>string UserID = 2;</code>
*/
public java.lang.String getUserID() {
java.lang.Object ref = userID_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userID_ = s;
return s;
}
}
/**
* <pre>
* Optional
* </pre>
*
* <code>string UserID = 2;</code>
*/
public com.google.protobuf.ByteString
getUserIDBytes() {
java.lang.Object ref = userID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FROMID_FIELD_NUMBER = 3;
private volatile java.lang.Object fromID_;
/**
* <pre>
* Optional
* </pre>
*
* <code>string FromID = 3;</code>
*/
public java.lang.String getFromID() {
java.lang.Object ref = fromID_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fromID_ = s;
return s;
}
}
/**
* <pre>
* Optional
* </pre>
*
* <code>string FromID = 3;</code>
*/
public com.google.protobuf.ByteString
getFromIDBytes() {
java.lang.Object ref = fromID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fromID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TOID_FIELD_NUMBER = 4;
private volatile java.lang.Object toID_;
/**
* <pre>
* Optional
* </pre>
*
* <code>string ToID = 4;</code>
*/
public java.lang.String getToID() {
java.lang.Object ref = toID_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
toID_ = s;
return s;
}
}
/**
* <pre>
* Optional
* </pre>
*
* <code>string ToID = 4;</code>
*/
public com.google.protobuf.ByteString
getToIDBytes() {
java.lang.Object ref = toID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 5;
private int value_;
/**
* <code>int32 Value = 5;</code>
*/
public int getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (type_ != iiis.systems.os.blockdb.Transaction.Types.UNKNOWN.getNumber()) {
output.writeEnum(1, type_);
}
if (!getUserIDBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userID_);
}
if (!getFromIDBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fromID_);
}
if (!getToIDBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, toID_);
}
if (value_ != 0) {
output.writeInt32(5, value_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != iiis.systems.os.blockdb.Transaction.Types.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (!getUserIDBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userID_);
}
if (!getFromIDBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fromID_);
}
if (!getToIDBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, toID_);
}
if (value_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, value_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof iiis.systems.os.blockdb.Transaction)) {
return super.equals(obj);
}
iiis.systems.os.blockdb.Transaction other = (iiis.systems.os.blockdb.Transaction) obj;
boolean result = true;
result = result && type_ == other.type_;
result = result && getUserID()
.equals(other.getUserID());
result = result && getFromID()
.equals(other.getFromID());
result = result && getToID()
.equals(other.getToID());
result = result && (getValue()
== other.getValue());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + USERID_FIELD_NUMBER;
hash = (53 * hash) + getUserID().hashCode();
hash = (37 * hash) + FROMID_FIELD_NUMBER;
hash = (53 * hash) + getFromID().hashCode();
hash = (37 * hash) + TOID_FIELD_NUMBER;
hash = (53 * hash) + getToID().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static iiis.systems.os.blockdb.Transaction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static iiis.systems.os.blockdb.Transaction parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static iiis.systems.os.blockdb.Transaction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static iiis.systems.os.blockdb.Transaction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static iiis.systems.os.blockdb.Transaction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static iiis.systems.os.blockdb.Transaction 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 iiis.systems.os.blockdb.Transaction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static iiis.systems.os.blockdb.Transaction 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 iiis.systems.os.blockdb.Transaction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static iiis.systems.os.blockdb.Transaction parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(iiis.systems.os.blockdb.Transaction prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
* Protobuf type {@code blockdb.Transaction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:blockdb.Transaction)
iiis.systems.os.blockdb.TransactionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return iiis.systems.os.blockdb.DBProto.internal_static_blockdb_Transaction_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return iiis.systems.os.blockdb.DBProto.internal_static_blockdb_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
iiis.systems.os.blockdb.Transaction.class, iiis.systems.os.blockdb.Transaction.Builder.class);
}
// Construct using iiis.systems.os.blockdb.Transaction.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
type_ = 0;
userID_ = "";
fromID_ = "";
toID_ = "";
value_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return iiis.systems.os.blockdb.DBProto.internal_static_blockdb_Transaction_descriptor;
}
public iiis.systems.os.blockdb.Transaction getDefaultInstanceForType() {
return iiis.systems.os.blockdb.Transaction.getDefaultInstance();
}
public iiis.systems.os.blockdb.Transaction build() {
iiis.systems.os.blockdb.Transaction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public iiis.systems.os.blockdb.Transaction buildPartial() {
iiis.systems.os.blockdb.Transaction result = new iiis.systems.os.blockdb.Transaction(this);
result.type_ = type_;
result.userID_ = userID_;
result.fromID_ = fromID_;
result.toID_ = toID_;
result.value_ = value_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof iiis.systems.os.blockdb.Transaction) {
return mergeFrom((iiis.systems.os.blockdb.Transaction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(iiis.systems.os.blockdb.Transaction other) {
if (other == iiis.systems.os.blockdb.Transaction.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (!other.getUserID().isEmpty()) {
userID_ = other.userID_;
onChanged();
}
if (!other.getFromID().isEmpty()) {
fromID_ = other.fromID_;
onChanged();
}
if (!other.getToID().isEmpty()) {
toID_ = other.toID_;
onChanged();
}
if (other.getValue() != 0) {
setValue(other.getValue());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
iiis.systems.os.blockdb.Transaction parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (iiis.systems.os.blockdb.Transaction) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int type_ = 0;
/**
* <code>.blockdb.Transaction.Types Type = 1;</code>
*/
public int getTypeValue() {
return type_;
}
/**
* <code>.blockdb.Transaction.Types Type = 1;</code>
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* <code>.blockdb.Transaction.Types Type = 1;</code>
*/
public iiis.systems.os.blockdb.Transaction.Types getType() {
iiis.systems.os.blockdb.Transaction.Types result = iiis.systems.os.blockdb.Transaction.Types.valueOf(type_);
return result == null ? iiis.systems.os.blockdb.Transaction.Types.UNRECOGNIZED : result;
}
/**
* <code>.blockdb.Transaction.Types Type = 1;</code>
*/
public Builder setType(iiis.systems.os.blockdb.Transaction.Types value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.blockdb.Transaction.Types Type = 1;</code>
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private java.lang.Object userID_ = "";
/**
* <pre>
* Optional
* </pre>
*
* <code>string UserID = 2;</code>
*/
public java.lang.String getUserID() {
java.lang.Object ref = userID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Optional
* </pre>
*
* <code>string UserID = 2;</code>
*/
public com.google.protobuf.ByteString
getUserIDBytes() {
java.lang.Object ref = userID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Optional
* </pre>
*
* <code>string UserID = 2;</code>
*/
public Builder setUserID(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userID_ = value;
onChanged();
return this;
}
/**
* <pre>
* Optional
* </pre>
*
* <code>string UserID = 2;</code>
*/
public Builder clearUserID() {
userID_ = getDefaultInstance().getUserID();
onChanged();
return this;
}
/**
* <pre>
* Optional
* </pre>
*
* <code>string UserID = 2;</code>
*/
public Builder setUserIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userID_ = value;
onChanged();
return this;
}
private java.lang.Object fromID_ = "";
/**
* <pre>
* Optional
* </pre>
*
* <code>string FromID = 3;</code>
*/
public java.lang.String getFromID() {
java.lang.Object ref = fromID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fromID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Optional
* </pre>
*
* <code>string FromID = 3;</code>
*/
public com.google.protobuf.ByteString
getFromIDBytes() {
java.lang.Object ref = fromID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fromID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Optional
* </pre>
*
* <code>string FromID = 3;</code>
*/
public Builder setFromID(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fromID_ = value;
onChanged();
return this;
}
/**
* <pre>
* Optional
* </pre>
*
* <code>string FromID = 3;</code>
*/
public Builder clearFromID() {
fromID_ = getDefaultInstance().getFromID();
onChanged();
return this;
}
/**
* <pre>
* Optional
* </pre>
*
* <code>string FromID = 3;</code>
*/
public Builder setFromIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fromID_ = value;
onChanged();
return this;
}
private java.lang.Object toID_ = "";
/**
* <pre>
* Optional
* </pre>
*
* <code>string ToID = 4;</code>
*/
public java.lang.String getToID() {
java.lang.Object ref = toID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
toID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Optional
* </pre>
*
* <code>string ToID = 4;</code>
*/
public com.google.protobuf.ByteString
getToIDBytes() {
java.lang.Object ref = toID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Optional
* </pre>
*
* <code>string ToID = 4;</code>
*/
public Builder setToID(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
toID_ = value;
onChanged();
return this;
}
/**
* <pre>
* Optional
* </pre>
*
* <code>string ToID = 4;</code>
*/
public Builder clearToID() {
toID_ = getDefaultInstance().getToID();
onChanged();
return this;
}
/**
* <pre>
* Optional
* </pre>
*
* <code>string ToID = 4;</code>
*/
public Builder setToIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
toID_ = value;
onChanged();
return this;
}
private int value_ ;
/**
* <code>int32 Value = 5;</code>
*/
public int getValue() {
return value_;
}
/**
* <code>int32 Value = 5;</code>
*/
public Builder setValue(int value) {
value_ = value;
onChanged();
return this;
}
/**
* <code>int32 Value = 5;</code>
*/
public Builder clearValue() {
value_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:blockdb.Transaction)
}
// @@protoc_insertion_point(class_scope:blockdb.Transaction)
private static final iiis.systems.os.blockdb.Transaction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new iiis.systems.os.blockdb.Transaction();
}
public static iiis.systems.os.blockdb.Transaction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<Transaction>
PARSER = new com.google.protobuf.AbstractParser<Transaction>() {
public Transaction parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Transaction(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<Transaction> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Transaction> getParserForType() {
return PARSER;
}
public iiis.systems.os.blockdb.Transaction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}