/** * <code>repeated .com.openwallet.core.protos.TransactionOutput transaction_output = 7;</code> */ public Builder addTransactionOutput( int index, com.openwallet.core.protos.Protos.TransactionOutput.Builder builderForValue) { if (transactionOutputBuilder_ == null) { ensureTransactionOutputIsMutable(); transactionOutput_.add(index, builderForValue.build()); onChanged(); } else { transactionOutputBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.openwallet.core.protos.Protos.TransactionOutput parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.openwallet.core.protos.Protos.TransactionOutput) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public Builder mergeFrom(com.openwallet.core.protos.Protos.TransactionOutput other) { if (other == com.openwallet.core.protos.Protos.TransactionOutput.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } if (other.hasScriptBytes()) { setScriptBytes(other.getScriptBytes()); } if (other.hasSpentByTransactionHash()) { setSpentByTransactionHash(other.getSpentByTransactionHash()); } if (other.hasSpentByTransactionIndex()) { setSpentByTransactionIndex(other.getSpentByTransactionIndex()); } if (other.hasIsSpent()) { setIsSpent(other.getIsSpent()); } if (other.hasIndex()) { setIndex(other.getIndex()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>repeated .com.openwallet.core.protos.TransactionOutput transaction_output = 7;</code> */ public Builder setTransactionOutput( int index, com.openwallet.core.protos.Protos.TransactionOutput.Builder builderForValue) { if (transactionOutputBuilder_ == null) { ensureTransactionOutputIsMutable(); transactionOutput_.set(index, builderForValue.build()); onChanged(); } else { transactionOutputBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .com.openwallet.core.protos.TransactionOutput transaction_output = 7;</code> */ public Builder addTransactionOutput( com.openwallet.core.protos.Protos.TransactionOutput.Builder builderForValue) { if (transactionOutputBuilder_ == null) { ensureTransactionOutputIsMutable(); transactionOutput_.add(builderForValue.build()); onChanged(); } else { transactionOutputBuilder_.addMessage(builderForValue.build()); } return this; } /**
private static Builder create() { return new Builder(); }
private Builder() { maybeForceBuilderInitialization(); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
public static Builder newBuilder(com.openwallet.core.protos.Protos.TransactionOutput prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.openwallet.core.protos.Protos.TransactionOutput) { return mergeFrom((com.openwallet.core.protos.Protos.TransactionOutput)other); } else { super.mergeFrom(other); return this; } }
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
public com.openwallet.core.protos.Protos.TransactionOutput build() { com.openwallet.core.protos.Protos.TransactionOutput result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public final boolean isInitialized() { if (!hasValue()) { return false; } if (!hasScriptBytes()) { return false; } return true; }