implements
+ // @@protoc_insertion_point(builder_implements:cash.z.wallet.sdk.rpc.CompactBlock)
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactBlockOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactBlock_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactBlock_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock.class, cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock.Builder.class);
+ }
+
+ // Construct using cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getVtxFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ protoVersion_ = 0;
+
+ height_ = 0L;
+
+ hash_ = com.google.protobuf.ByteString.EMPTY;
+
+ prevHash_ = com.google.protobuf.ByteString.EMPTY;
+
+ time_ = 0;
+
+ header_ = com.google.protobuf.ByteString.EMPTY;
+
+ if (vtxBuilder_ == null) {
+ vtx_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ vtxBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactBlock_descriptor;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock getDefaultInstanceForType() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock build() {
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock buildPartial() {
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock result = new cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock(this);
+ int from_bitField0_ = bitField0_;
+ result.protoVersion_ = protoVersion_;
+ result.height_ = height_;
+ result.hash_ = hash_;
+ result.prevHash_ = prevHash_;
+ result.time_ = time_;
+ result.header_ = header_;
+ if (vtxBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ vtx_ = java.util.Collections.unmodifiableList(vtx_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.vtx_ = vtx_;
+ } else {
+ result.vtx_ = vtxBuilder_.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 cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock) {
+ return mergeFrom((cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock other) {
+ if (other == cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock.getDefaultInstance()) return this;
+ if (other.getProtoVersion() != 0) {
+ setProtoVersion(other.getProtoVersion());
+ }
+ if (other.getHeight() != 0L) {
+ setHeight(other.getHeight());
+ }
+ if (other.getHash() != com.google.protobuf.ByteString.EMPTY) {
+ setHash(other.getHash());
+ }
+ if (other.getPrevHash() != com.google.protobuf.ByteString.EMPTY) {
+ setPrevHash(other.getPrevHash());
+ }
+ if (other.getTime() != 0) {
+ setTime(other.getTime());
+ }
+ if (other.getHeader() != com.google.protobuf.ByteString.EMPTY) {
+ setHeader(other.getHeader());
+ }
+ if (vtxBuilder_ == null) {
+ if (!other.vtx_.isEmpty()) {
+ if (vtx_.isEmpty()) {
+ vtx_ = other.vtx_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureVtxIsMutable();
+ vtx_.addAll(other.vtx_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.vtx_.isEmpty()) {
+ if (vtxBuilder_.isEmpty()) {
+ vtxBuilder_.dispose();
+ vtxBuilder_ = null;
+ vtx_ = other.vtx_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ vtxBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getVtxFieldBuilder() : null;
+ } else {
+ vtxBuilder_.addAllMessages(other.vtx_);
+ }
+ }
+ }
+ 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 {
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private int protoVersion_ ;
+ /**
+ *
+ * the version of this wire format, for storage
+ *
+ *
+ * uint32 protoVersion = 1;
+ * @return The protoVersion.
+ */
+ @java.lang.Override
+ public int getProtoVersion() {
+ return protoVersion_;
+ }
+ /**
+ *
+ * the version of this wire format, for storage
+ *
+ *
+ * uint32 protoVersion = 1;
+ * @param value The protoVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProtoVersion(int value) {
+
+ protoVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * the version of this wire format, for storage
+ *
+ *
+ * uint32 protoVersion = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearProtoVersion() {
+
+ protoVersion_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private long height_ ;
+ /**
+ *
+ * the height of this block
+ *
+ *
+ * uint64 height = 2;
+ * @return The height.
+ */
+ @java.lang.Override
+ public long getHeight() {
+ return height_;
+ }
+ /**
+ *
+ * the height of this block
+ *
+ *
+ * uint64 height = 2;
+ * @param value The height to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHeight(long value) {
+
+ height_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * the height of this block
+ *
+ *
+ * uint64 height = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearHeight() {
+
+ height_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ * the ID (hash) of this block, same as in block explorers
+ *
+ *
+ * bytes hash = 3;
+ * @return The hash.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getHash() {
+ return hash_;
+ }
+ /**
+ *
+ * the ID (hash) of this block, same as in block explorers
+ *
+ *
+ * bytes hash = 3;
+ * @param value The hash to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHash(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ hash_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * the ID (hash) of this block, same as in block explorers
+ *
+ *
+ * bytes hash = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearHash() {
+
+ hash_ = getDefaultInstance().getHash();
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString prevHash_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ * the ID (hash) of this block's predecessor
+ *
+ *
+ * bytes prevHash = 4;
+ * @return The prevHash.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPrevHash() {
+ return prevHash_;
+ }
+ /**
+ *
+ * the ID (hash) of this block's predecessor
+ *
+ *
+ * bytes prevHash = 4;
+ * @param value The prevHash to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPrevHash(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ prevHash_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * the ID (hash) of this block's predecessor
+ *
+ *
+ * bytes prevHash = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearPrevHash() {
+
+ prevHash_ = getDefaultInstance().getPrevHash();
+ onChanged();
+ return this;
+ }
+
+ private int time_ ;
+ /**
+ *
+ * Unix epoch time when the block was mined
+ *
+ *
+ * uint32 time = 5;
+ * @return The time.
+ */
+ @java.lang.Override
+ public int getTime() {
+ return time_;
+ }
+ /**
+ *
+ * Unix epoch time when the block was mined
+ *
+ *
+ * uint32 time = 5;
+ * @param value The time to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTime(int value) {
+
+ time_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Unix epoch time when the block was mined
+ *
+ *
+ * uint32 time = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearTime() {
+
+ time_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString header_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ * (hash, prevHash, and time) OR (full header)
+ *
+ *
+ * bytes header = 6;
+ * @return The header.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getHeader() {
+ return header_;
+ }
+ /**
+ *
+ * (hash, prevHash, and time) OR (full header)
+ *
+ *
+ * bytes header = 6;
+ * @param value The header to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHeader(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ header_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * (hash, prevHash, and time) OR (full header)
+ *
+ *
+ * bytes header = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearHeader() {
+
+ header_ = getDefaultInstance().getHeader();
+ onChanged();
+ return this;
+ }
+
+ private java.util.List vtx_ =
+ java.util.Collections.emptyList();
+ private void ensureVtxIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ vtx_ = new java.util.ArrayList(vtx_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactTx, cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.Builder, cash.z.wallet.sdk.rpc.CompactFormats.CompactTxOrBuilder> vtxBuilder_;
+
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public java.util.List getVtxList() {
+ if (vtxBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(vtx_);
+ } else {
+ return vtxBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public int getVtxCount() {
+ if (vtxBuilder_ == null) {
+ return vtx_.size();
+ } else {
+ return vtxBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactTx getVtx(int index) {
+ if (vtxBuilder_ == null) {
+ return vtx_.get(index);
+ } else {
+ return vtxBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public Builder setVtx(
+ int index, cash.z.wallet.sdk.rpc.CompactFormats.CompactTx value) {
+ if (vtxBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVtxIsMutable();
+ vtx_.set(index, value);
+ onChanged();
+ } else {
+ vtxBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public Builder setVtx(
+ int index, cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.Builder builderForValue) {
+ if (vtxBuilder_ == null) {
+ ensureVtxIsMutable();
+ vtx_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ vtxBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public Builder addVtx(cash.z.wallet.sdk.rpc.CompactFormats.CompactTx value) {
+ if (vtxBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVtxIsMutable();
+ vtx_.add(value);
+ onChanged();
+ } else {
+ vtxBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public Builder addVtx(
+ int index, cash.z.wallet.sdk.rpc.CompactFormats.CompactTx value) {
+ if (vtxBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVtxIsMutable();
+ vtx_.add(index, value);
+ onChanged();
+ } else {
+ vtxBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public Builder addVtx(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.Builder builderForValue) {
+ if (vtxBuilder_ == null) {
+ ensureVtxIsMutable();
+ vtx_.add(builderForValue.build());
+ onChanged();
+ } else {
+ vtxBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public Builder addVtx(
+ int index, cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.Builder builderForValue) {
+ if (vtxBuilder_ == null) {
+ ensureVtxIsMutable();
+ vtx_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ vtxBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public Builder addAllVtx(
+ java.lang.Iterable extends cash.z.wallet.sdk.rpc.CompactFormats.CompactTx> values) {
+ if (vtxBuilder_ == null) {
+ ensureVtxIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, vtx_);
+ onChanged();
+ } else {
+ vtxBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public Builder clearVtx() {
+ if (vtxBuilder_ == null) {
+ vtx_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ vtxBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public Builder removeVtx(int index) {
+ if (vtxBuilder_ == null) {
+ ensureVtxIsMutable();
+ vtx_.remove(index);
+ onChanged();
+ } else {
+ vtxBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.Builder getVtxBuilder(
+ int index) {
+ return getVtxFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactTxOrBuilder getVtxOrBuilder(
+ int index) {
+ if (vtxBuilder_ == null) {
+ return vtx_.get(index); } else {
+ return vtxBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public java.util.List extends cash.z.wallet.sdk.rpc.CompactFormats.CompactTxOrBuilder>
+ getVtxOrBuilderList() {
+ if (vtxBuilder_ != null) {
+ return vtxBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(vtx_);
+ }
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.Builder addVtxBuilder() {
+ return getVtxFieldBuilder().addBuilder(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.getDefaultInstance());
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.Builder addVtxBuilder(
+ int index) {
+ return getVtxFieldBuilder().addBuilder(
+ index, cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.getDefaultInstance());
+ }
+ /**
+ *
+ * zero or more compact transactions from this block
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
+ */
+ public java.util.List
+ getVtxBuilderList() {
+ return getVtxFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactTx, cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.Builder, cash.z.wallet.sdk.rpc.CompactFormats.CompactTxOrBuilder>
+ getVtxFieldBuilder() {
+ if (vtxBuilder_ == null) {
+ vtxBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactTx, cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.Builder, cash.z.wallet.sdk.rpc.CompactFormats.CompactTxOrBuilder>(
+ vtx_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ vtx_ = null;
+ }
+ return vtxBuilder_;
+ }
+ @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:cash.z.wallet.sdk.rpc.CompactBlock)
+ }
+
+ // @@protoc_insertion_point(class_scope:cash.z.wallet.sdk.rpc.CompactBlock)
+ private static final cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock();
+ }
+
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public CompactBlock parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CompactBlock(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 cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CompactTxOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:cash.z.wallet.sdk.rpc.CompactTx)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * the index within the full block
+ *
+ *
+ * uint64 index = 1;
+ * @return The index.
+ */
+ long getIndex();
+
+ /**
+ *
+ * the ID (hash) of this transaction, same as in block explorers
+ *
+ *
+ * bytes hash = 2;
+ * @return The hash.
+ */
+ com.google.protobuf.ByteString getHash();
+
+ /**
+ *
+ * The transaction fee: present if server can provide. In the case of a
+ * stateless server and a transaction with transparent inputs, this will be
+ * unset because the calculation requires reference to prior transactions.
+ * in a pure-Sapling context, the fee will be calculable as:
+ * valueBalance + (sum(vPubNew) - sum(vPubOld) - sum(tOut))
+ *
+ *
+ * uint32 fee = 3;
+ * @return The fee.
+ */
+ int getFee();
+
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ java.util.List
+ getSpendsList();
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend getSpends(int index);
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ int getSpendsCount();
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ java.util.List extends cash.z.wallet.sdk.rpc.CompactFormats.CompactSpendOrBuilder>
+ getSpendsOrBuilderList();
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactSpendOrBuilder getSpendsOrBuilder(
+ int index);
+
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ java.util.List
+ getOutputsList();
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput getOutputs(int index);
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ int getOutputsCount();
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ java.util.List extends cash.z.wallet.sdk.rpc.CompactFormats.CompactOutputOrBuilder>
+ getOutputsOrBuilderList();
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactOutputOrBuilder getOutputsOrBuilder(
+ int index);
+ }
+ /**
+ *
+ * CompactTx contains the minimum information for a wallet to know if this transaction
+ * is relevant to it (either pays to it or spends from it) via shielded elements
+ * only. This message will not encode a transparent-to-transparent transaction.
+ *
+ *
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.CompactTx}
+ */
+ public static final class CompactTx extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:cash.z.wallet.sdk.rpc.CompactTx)
+ CompactTxOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CompactTx.newBuilder() to construct.
+ private CompactTx(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private CompactTx() {
+ hash_ = com.google.protobuf.ByteString.EMPTY;
+ spends_ = java.util.Collections.emptyList();
+ outputs_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CompactTx();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private CompactTx(
+ 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 8: {
+
+ index_ = input.readUInt64();
+ break;
+ }
+ case 18: {
+
+ hash_ = input.readBytes();
+ break;
+ }
+ case 24: {
+
+ fee_ = input.readUInt32();
+ break;
+ }
+ case 34: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ spends_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ spends_.add(
+ input.readMessage(cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.parser(), extensionRegistry));
+ break;
+ }
+ case 42: {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ outputs_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ outputs_.add(
+ input.readMessage(cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.parser(), extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ spends_ = java.util.Collections.unmodifiableList(spends_);
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ outputs_ = java.util.Collections.unmodifiableList(outputs_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactTx_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactTx_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.class, cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.Builder.class);
+ }
+
+ public static final int INDEX_FIELD_NUMBER = 1;
+ private long index_;
+ /**
+ *
+ * the index within the full block
+ *
+ *
+ * uint64 index = 1;
+ * @return The index.
+ */
+ @java.lang.Override
+ public long getIndex() {
+ return index_;
+ }
+
+ public static final int HASH_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString hash_;
+ /**
+ *
+ * the ID (hash) of this transaction, same as in block explorers
+ *
+ *
+ * bytes hash = 2;
+ * @return The hash.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getHash() {
+ return hash_;
+ }
+
+ public static final int FEE_FIELD_NUMBER = 3;
+ private int fee_;
+ /**
+ *
+ * The transaction fee: present if server can provide. In the case of a
+ * stateless server and a transaction with transparent inputs, this will be
+ * unset because the calculation requires reference to prior transactions.
+ * in a pure-Sapling context, the fee will be calculable as:
+ * valueBalance + (sum(vPubNew) - sum(vPubOld) - sum(tOut))
+ *
+ *
+ * uint32 fee = 3;
+ * @return The fee.
+ */
+ @java.lang.Override
+ public int getFee() {
+ return fee_;
+ }
+
+ public static final int SPENDS_FIELD_NUMBER = 4;
+ private java.util.List spends_;
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ @java.lang.Override
+ public java.util.List getSpendsList() {
+ return spends_;
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ @java.lang.Override
+ public java.util.List extends cash.z.wallet.sdk.rpc.CompactFormats.CompactSpendOrBuilder>
+ getSpendsOrBuilderList() {
+ return spends_;
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ @java.lang.Override
+ public int getSpendsCount() {
+ return spends_.size();
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend getSpends(int index) {
+ return spends_.get(index);
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactSpendOrBuilder getSpendsOrBuilder(
+ int index) {
+ return spends_.get(index);
+ }
+
+ public static final int OUTPUTS_FIELD_NUMBER = 5;
+ private java.util.List outputs_;
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ @java.lang.Override
+ public java.util.List getOutputsList() {
+ return outputs_;
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ @java.lang.Override
+ public java.util.List extends cash.z.wallet.sdk.rpc.CompactFormats.CompactOutputOrBuilder>
+ getOutputsOrBuilderList() {
+ return outputs_;
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ @java.lang.Override
+ public int getOutputsCount() {
+ return outputs_.size();
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput getOutputs(int index) {
+ return outputs_.get(index);
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactOutputOrBuilder getOutputsOrBuilder(
+ int index) {
+ return outputs_.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 (index_ != 0L) {
+ output.writeUInt64(1, index_);
+ }
+ if (!hash_.isEmpty()) {
+ output.writeBytes(2, hash_);
+ }
+ if (fee_ != 0) {
+ output.writeUInt32(3, fee_);
+ }
+ for (int i = 0; i < spends_.size(); i++) {
+ output.writeMessage(4, spends_.get(i));
+ }
+ for (int i = 0; i < outputs_.size(); i++) {
+ output.writeMessage(5, outputs_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (index_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(1, index_);
+ }
+ if (!hash_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, hash_);
+ }
+ if (fee_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(3, fee_);
+ }
+ for (int i = 0; i < spends_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, spends_.get(i));
+ }
+ for (int i = 0; i < outputs_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, outputs_.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 cash.z.wallet.sdk.rpc.CompactFormats.CompactTx)) {
+ return super.equals(obj);
+ }
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactTx other = (cash.z.wallet.sdk.rpc.CompactFormats.CompactTx) obj;
+
+ if (getIndex()
+ != other.getIndex()) return false;
+ if (!getHash()
+ .equals(other.getHash())) return false;
+ if (getFee()
+ != other.getFee()) return false;
+ if (!getSpendsList()
+ .equals(other.getSpendsList())) return false;
+ if (!getOutputsList()
+ .equals(other.getOutputsList())) 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();
+ hash = (37 * hash) + INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getIndex());
+ hash = (37 * hash) + HASH_FIELD_NUMBER;
+ hash = (53 * hash) + getHash().hashCode();
+ hash = (37 * hash) + FEE_FIELD_NUMBER;
+ hash = (53 * hash) + getFee();
+ if (getSpendsCount() > 0) {
+ hash = (37 * hash) + SPENDS_FIELD_NUMBER;
+ hash = (53 * hash) + getSpendsList().hashCode();
+ }
+ if (getOutputsCount() > 0) {
+ hash = (37 * hash) + OUTPUTS_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactTx parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactTx parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactTx parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactTx parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactTx parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactTx parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactTx parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactTx 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 cash.z.wallet.sdk.rpc.CompactFormats.CompactTx parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactTx 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 cash.z.wallet.sdk.rpc.CompactFormats.CompactTx parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactTx 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(cash.z.wallet.sdk.rpc.CompactFormats.CompactTx 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;
+ }
+ /**
+ *
+ * CompactTx contains the minimum information for a wallet to know if this transaction
+ * is relevant to it (either pays to it or spends from it) via shielded elements
+ * only. This message will not encode a transparent-to-transparent transaction.
+ *
+ *
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.CompactTx}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:cash.z.wallet.sdk.rpc.CompactTx)
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactTxOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactTx_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactTx_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.class, cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.Builder.class);
+ }
+
+ // Construct using cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getSpendsFieldBuilder();
+ getOutputsFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ index_ = 0L;
+
+ hash_ = com.google.protobuf.ByteString.EMPTY;
+
+ fee_ = 0;
+
+ if (spendsBuilder_ == null) {
+ spends_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ spendsBuilder_.clear();
+ }
+ if (outputsBuilder_ == null) {
+ outputs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ outputsBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactTx_descriptor;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactTx getDefaultInstanceForType() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactTx build() {
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactTx result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactTx buildPartial() {
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactTx result = new cash.z.wallet.sdk.rpc.CompactFormats.CompactTx(this);
+ int from_bitField0_ = bitField0_;
+ result.index_ = index_;
+ result.hash_ = hash_;
+ result.fee_ = fee_;
+ if (spendsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ spends_ = java.util.Collections.unmodifiableList(spends_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.spends_ = spends_;
+ } else {
+ result.spends_ = spendsBuilder_.build();
+ }
+ if (outputsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ outputs_ = java.util.Collections.unmodifiableList(outputs_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.outputs_ = outputs_;
+ } else {
+ result.outputs_ = outputsBuilder_.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 cash.z.wallet.sdk.rpc.CompactFormats.CompactTx) {
+ return mergeFrom((cash.z.wallet.sdk.rpc.CompactFormats.CompactTx)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(cash.z.wallet.sdk.rpc.CompactFormats.CompactTx other) {
+ if (other == cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.getDefaultInstance()) return this;
+ if (other.getIndex() != 0L) {
+ setIndex(other.getIndex());
+ }
+ if (other.getHash() != com.google.protobuf.ByteString.EMPTY) {
+ setHash(other.getHash());
+ }
+ if (other.getFee() != 0) {
+ setFee(other.getFee());
+ }
+ if (spendsBuilder_ == null) {
+ if (!other.spends_.isEmpty()) {
+ if (spends_.isEmpty()) {
+ spends_ = other.spends_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureSpendsIsMutable();
+ spends_.addAll(other.spends_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.spends_.isEmpty()) {
+ if (spendsBuilder_.isEmpty()) {
+ spendsBuilder_.dispose();
+ spendsBuilder_ = null;
+ spends_ = other.spends_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ spendsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getSpendsFieldBuilder() : null;
+ } else {
+ spendsBuilder_.addAllMessages(other.spends_);
+ }
+ }
+ }
+ if (outputsBuilder_ == null) {
+ if (!other.outputs_.isEmpty()) {
+ if (outputs_.isEmpty()) {
+ outputs_ = other.outputs_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureOutputsIsMutable();
+ outputs_.addAll(other.outputs_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.outputs_.isEmpty()) {
+ if (outputsBuilder_.isEmpty()) {
+ outputsBuilder_.dispose();
+ outputsBuilder_ = null;
+ outputs_ = other.outputs_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ outputsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getOutputsFieldBuilder() : null;
+ } else {
+ outputsBuilder_.addAllMessages(other.outputs_);
+ }
+ }
+ }
+ 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 {
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactTx parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (cash.z.wallet.sdk.rpc.CompactFormats.CompactTx) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private long index_ ;
+ /**
+ *
+ * the index within the full block
+ *
+ *
+ * uint64 index = 1;
+ * @return The index.
+ */
+ @java.lang.Override
+ public long getIndex() {
+ return index_;
+ }
+ /**
+ *
+ * the index within the full block
+ *
+ *
+ * uint64 index = 1;
+ * @param value The index to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIndex(long value) {
+
+ index_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * the index within the full block
+ *
+ *
+ * uint64 index = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearIndex() {
+
+ index_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ * the ID (hash) of this transaction, same as in block explorers
+ *
+ *
+ * bytes hash = 2;
+ * @return The hash.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getHash() {
+ return hash_;
+ }
+ /**
+ *
+ * the ID (hash) of this transaction, same as in block explorers
+ *
+ *
+ * bytes hash = 2;
+ * @param value The hash to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHash(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ hash_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * the ID (hash) of this transaction, same as in block explorers
+ *
+ *
+ * bytes hash = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearHash() {
+
+ hash_ = getDefaultInstance().getHash();
+ onChanged();
+ return this;
+ }
+
+ private int fee_ ;
+ /**
+ *
+ * The transaction fee: present if server can provide. In the case of a
+ * stateless server and a transaction with transparent inputs, this will be
+ * unset because the calculation requires reference to prior transactions.
+ * in a pure-Sapling context, the fee will be calculable as:
+ * valueBalance + (sum(vPubNew) - sum(vPubOld) - sum(tOut))
+ *
+ *
+ * uint32 fee = 3;
+ * @return The fee.
+ */
+ @java.lang.Override
+ public int getFee() {
+ return fee_;
+ }
+ /**
+ *
+ * The transaction fee: present if server can provide. In the case of a
+ * stateless server and a transaction with transparent inputs, this will be
+ * unset because the calculation requires reference to prior transactions.
+ * in a pure-Sapling context, the fee will be calculable as:
+ * valueBalance + (sum(vPubNew) - sum(vPubOld) - sum(tOut))
+ *
+ *
+ * uint32 fee = 3;
+ * @param value The fee to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFee(int value) {
+
+ fee_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * The transaction fee: present if server can provide. In the case of a
+ * stateless server and a transaction with transparent inputs, this will be
+ * unset because the calculation requires reference to prior transactions.
+ * in a pure-Sapling context, the fee will be calculable as:
+ * valueBalance + (sum(vPubNew) - sum(vPubOld) - sum(tOut))
+ *
+ *
+ * uint32 fee = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearFee() {
+
+ fee_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List spends_ =
+ java.util.Collections.emptyList();
+ private void ensureSpendsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ spends_ = new java.util.ArrayList(spends_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend, cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.Builder, cash.z.wallet.sdk.rpc.CompactFormats.CompactSpendOrBuilder> spendsBuilder_;
+
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public java.util.List getSpendsList() {
+ if (spendsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(spends_);
+ } else {
+ return spendsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public int getSpendsCount() {
+ if (spendsBuilder_ == null) {
+ return spends_.size();
+ } else {
+ return spendsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend getSpends(int index) {
+ if (spendsBuilder_ == null) {
+ return spends_.get(index);
+ } else {
+ return spendsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public Builder setSpends(
+ int index, cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend value) {
+ if (spendsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSpendsIsMutable();
+ spends_.set(index, value);
+ onChanged();
+ } else {
+ spendsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public Builder setSpends(
+ int index, cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.Builder builderForValue) {
+ if (spendsBuilder_ == null) {
+ ensureSpendsIsMutable();
+ spends_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ spendsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public Builder addSpends(cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend value) {
+ if (spendsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSpendsIsMutable();
+ spends_.add(value);
+ onChanged();
+ } else {
+ spendsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public Builder addSpends(
+ int index, cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend value) {
+ if (spendsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSpendsIsMutable();
+ spends_.add(index, value);
+ onChanged();
+ } else {
+ spendsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public Builder addSpends(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.Builder builderForValue) {
+ if (spendsBuilder_ == null) {
+ ensureSpendsIsMutable();
+ spends_.add(builderForValue.build());
+ onChanged();
+ } else {
+ spendsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public Builder addSpends(
+ int index, cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.Builder builderForValue) {
+ if (spendsBuilder_ == null) {
+ ensureSpendsIsMutable();
+ spends_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ spendsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public Builder addAllSpends(
+ java.lang.Iterable extends cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend> values) {
+ if (spendsBuilder_ == null) {
+ ensureSpendsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, spends_);
+ onChanged();
+ } else {
+ spendsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public Builder clearSpends() {
+ if (spendsBuilder_ == null) {
+ spends_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ spendsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public Builder removeSpends(int index) {
+ if (spendsBuilder_ == null) {
+ ensureSpendsIsMutable();
+ spends_.remove(index);
+ onChanged();
+ } else {
+ spendsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.Builder getSpendsBuilder(
+ int index) {
+ return getSpendsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactSpendOrBuilder getSpendsOrBuilder(
+ int index) {
+ if (spendsBuilder_ == null) {
+ return spends_.get(index); } else {
+ return spendsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public java.util.List extends cash.z.wallet.sdk.rpc.CompactFormats.CompactSpendOrBuilder>
+ getSpendsOrBuilderList() {
+ if (spendsBuilder_ != null) {
+ return spendsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(spends_);
+ }
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.Builder addSpendsBuilder() {
+ return getSpendsFieldBuilder().addBuilder(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.getDefaultInstance());
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.Builder addSpendsBuilder(
+ int index) {
+ return getSpendsFieldBuilder().addBuilder(
+ index, cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.getDefaultInstance());
+ }
+ /**
+ *
+ * inputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactSpend spends = 4;
+ */
+ public java.util.List
+ getSpendsBuilderList() {
+ return getSpendsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend, cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.Builder, cash.z.wallet.sdk.rpc.CompactFormats.CompactSpendOrBuilder>
+ getSpendsFieldBuilder() {
+ if (spendsBuilder_ == null) {
+ spendsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend, cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.Builder, cash.z.wallet.sdk.rpc.CompactFormats.CompactSpendOrBuilder>(
+ spends_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ spends_ = null;
+ }
+ return spendsBuilder_;
+ }
+
+ private java.util.List outputs_ =
+ java.util.Collections.emptyList();
+ private void ensureOutputsIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ outputs_ = new java.util.ArrayList(outputs_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput, cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.Builder, cash.z.wallet.sdk.rpc.CompactFormats.CompactOutputOrBuilder> outputsBuilder_;
+
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public java.util.List getOutputsList() {
+ if (outputsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(outputs_);
+ } else {
+ return outputsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public int getOutputsCount() {
+ if (outputsBuilder_ == null) {
+ return outputs_.size();
+ } else {
+ return outputsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput getOutputs(int index) {
+ if (outputsBuilder_ == null) {
+ return outputs_.get(index);
+ } else {
+ return outputsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public Builder setOutputs(
+ int index, cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput value) {
+ if (outputsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOutputsIsMutable();
+ outputs_.set(index, value);
+ onChanged();
+ } else {
+ outputsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public Builder setOutputs(
+ int index, cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.Builder builderForValue) {
+ if (outputsBuilder_ == null) {
+ ensureOutputsIsMutable();
+ outputs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ outputsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public Builder addOutputs(cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput value) {
+ if (outputsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOutputsIsMutable();
+ outputs_.add(value);
+ onChanged();
+ } else {
+ outputsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public Builder addOutputs(
+ int index, cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput value) {
+ if (outputsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOutputsIsMutable();
+ outputs_.add(index, value);
+ onChanged();
+ } else {
+ outputsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public Builder addOutputs(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.Builder builderForValue) {
+ if (outputsBuilder_ == null) {
+ ensureOutputsIsMutable();
+ outputs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ outputsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public Builder addOutputs(
+ int index, cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.Builder builderForValue) {
+ if (outputsBuilder_ == null) {
+ ensureOutputsIsMutable();
+ outputs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ outputsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public Builder addAllOutputs(
+ java.lang.Iterable extends cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput> values) {
+ if (outputsBuilder_ == null) {
+ ensureOutputsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, outputs_);
+ onChanged();
+ } else {
+ outputsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public Builder clearOutputs() {
+ if (outputsBuilder_ == null) {
+ outputs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ outputsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public Builder removeOutputs(int index) {
+ if (outputsBuilder_ == null) {
+ ensureOutputsIsMutable();
+ outputs_.remove(index);
+ onChanged();
+ } else {
+ outputsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.Builder getOutputsBuilder(
+ int index) {
+ return getOutputsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactOutputOrBuilder getOutputsOrBuilder(
+ int index) {
+ if (outputsBuilder_ == null) {
+ return outputs_.get(index); } else {
+ return outputsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public java.util.List extends cash.z.wallet.sdk.rpc.CompactFormats.CompactOutputOrBuilder>
+ getOutputsOrBuilderList() {
+ if (outputsBuilder_ != null) {
+ return outputsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(outputs_);
+ }
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.Builder addOutputsBuilder() {
+ return getOutputsFieldBuilder().addBuilder(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.getDefaultInstance());
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.Builder addOutputsBuilder(
+ int index) {
+ return getOutputsFieldBuilder().addBuilder(
+ index, cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.getDefaultInstance());
+ }
+ /**
+ *
+ * outputs
+ *
+ *
+ * repeated .cash.z.wallet.sdk.rpc.CompactOutput outputs = 5;
+ */
+ public java.util.List
+ getOutputsBuilderList() {
+ return getOutputsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput, cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.Builder, cash.z.wallet.sdk.rpc.CompactFormats.CompactOutputOrBuilder>
+ getOutputsFieldBuilder() {
+ if (outputsBuilder_ == null) {
+ outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput, cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.Builder, cash.z.wallet.sdk.rpc.CompactFormats.CompactOutputOrBuilder>(
+ outputs_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ outputs_ = null;
+ }
+ return outputsBuilder_;
+ }
+ @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:cash.z.wallet.sdk.rpc.CompactTx)
+ }
+
+ // @@protoc_insertion_point(class_scope:cash.z.wallet.sdk.rpc.CompactTx)
+ private static final cash.z.wallet.sdk.rpc.CompactFormats.CompactTx DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new cash.z.wallet.sdk.rpc.CompactFormats.CompactTx();
+ }
+
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactTx getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public CompactTx parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CompactTx(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 cash.z.wallet.sdk.rpc.CompactFormats.CompactTx getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CompactSpendOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:cash.z.wallet.sdk.rpc.CompactSpend)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * nullifier (see the Zcash protocol specification)
+ *
+ *
+ * bytes nf = 1;
+ * @return The nf.
+ */
+ com.google.protobuf.ByteString getNf();
+ }
+ /**
+ *
+ * CompactSpend is a Sapling Spend Description as described in 7.3 of the Zcash
+ * protocol specification.
+ *
+ *
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.CompactSpend}
+ */
+ public static final class CompactSpend extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:cash.z.wallet.sdk.rpc.CompactSpend)
+ CompactSpendOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CompactSpend.newBuilder() to construct.
+ private CompactSpend(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private CompactSpend() {
+ nf_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CompactSpend();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private CompactSpend(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ 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: {
+
+ nf_ = input.readBytes();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactSpend_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactSpend_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.class, cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.Builder.class);
+ }
+
+ public static final int NF_FIELD_NUMBER = 1;
+ private com.google.protobuf.ByteString nf_;
+ /**
+ *
+ * nullifier (see the Zcash protocol specification)
+ *
+ *
+ * bytes nf = 1;
+ * @return The nf.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNf() {
+ return nf_;
+ }
+
+ 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 (!nf_.isEmpty()) {
+ output.writeBytes(1, nf_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!nf_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, nf_);
+ }
+ 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 cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend)) {
+ return super.equals(obj);
+ }
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend other = (cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend) obj;
+
+ if (!getNf()
+ .equals(other.getNf())) 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();
+ hash = (37 * hash) + NF_FIELD_NUMBER;
+ hash = (53 * hash) + getNf().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend 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 cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend 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 cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend 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(cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend 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;
+ }
+ /**
+ *
+ * CompactSpend is a Sapling Spend Description as described in 7.3 of the Zcash
+ * protocol specification.
+ *
+ *
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.CompactSpend}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:cash.z.wallet.sdk.rpc.CompactSpend)
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactSpendOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactSpend_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactSpend_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.class, cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.Builder.class);
+ }
+
+ // Construct using cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ nf_ = com.google.protobuf.ByteString.EMPTY;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactSpend_descriptor;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend getDefaultInstanceForType() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend build() {
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend buildPartial() {
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend result = new cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend(this);
+ result.nf_ = nf_;
+ 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 cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend) {
+ return mergeFrom((cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend other) {
+ if (other == cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend.getDefaultInstance()) return this;
+ if (other.getNf() != com.google.protobuf.ByteString.EMPTY) {
+ setNf(other.getNf());
+ }
+ 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 {
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private com.google.protobuf.ByteString nf_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ * nullifier (see the Zcash protocol specification)
+ *
+ *
+ * bytes nf = 1;
+ * @return The nf.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNf() {
+ return nf_;
+ }
+ /**
+ *
+ * nullifier (see the Zcash protocol specification)
+ *
+ *
+ * bytes nf = 1;
+ * @param value The nf to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNf(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nf_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * nullifier (see the Zcash protocol specification)
+ *
+ *
+ * bytes nf = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearNf() {
+
+ nf_ = getDefaultInstance().getNf();
+ 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:cash.z.wallet.sdk.rpc.CompactSpend)
+ }
+
+ // @@protoc_insertion_point(class_scope:cash.z.wallet.sdk.rpc.CompactSpend)
+ private static final cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend();
+ }
+
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public CompactSpend parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CompactSpend(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 cash.z.wallet.sdk.rpc.CompactFormats.CompactSpend getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CompactOutputOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:cash.z.wallet.sdk.rpc.CompactOutput)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * note commitment u-coordinate
+ *
+ *
+ * bytes cmu = 1;
+ * @return The cmu.
+ */
+ com.google.protobuf.ByteString getCmu();
+
+ /**
+ *
+ * ephemeral public key
+ *
+ *
+ * bytes epk = 2;
+ * @return The epk.
+ */
+ com.google.protobuf.ByteString getEpk();
+
+ /**
+ *
+ * ciphertext and zkproof
+ *
+ *
+ * bytes ciphertext = 3;
+ * @return The ciphertext.
+ */
+ com.google.protobuf.ByteString getCiphertext();
+ }
+ /**
+ *
+ * output is a Sapling Output Description as described in section 7.4 of the
+ * Zcash protocol spec. Total size is 948.
+ *
+ *
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.CompactOutput}
+ */
+ public static final class CompactOutput extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:cash.z.wallet.sdk.rpc.CompactOutput)
+ CompactOutputOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CompactOutput.newBuilder() to construct.
+ private CompactOutput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private CompactOutput() {
+ cmu_ = com.google.protobuf.ByteString.EMPTY;
+ epk_ = com.google.protobuf.ByteString.EMPTY;
+ ciphertext_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CompactOutput();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private CompactOutput(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ 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: {
+
+ cmu_ = input.readBytes();
+ break;
+ }
+ case 18: {
+
+ epk_ = input.readBytes();
+ break;
+ }
+ case 26: {
+
+ ciphertext_ = input.readBytes();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactOutput_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactOutput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.class, cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.Builder.class);
+ }
+
+ public static final int CMU_FIELD_NUMBER = 1;
+ private com.google.protobuf.ByteString cmu_;
+ /**
+ *
+ * note commitment u-coordinate
+ *
+ *
+ * bytes cmu = 1;
+ * @return The cmu.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCmu() {
+ return cmu_;
+ }
+
+ public static final int EPK_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString epk_;
+ /**
+ *
+ * ephemeral public key
+ *
+ *
+ * bytes epk = 2;
+ * @return The epk.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEpk() {
+ return epk_;
+ }
+
+ public static final int CIPHERTEXT_FIELD_NUMBER = 3;
+ private com.google.protobuf.ByteString ciphertext_;
+ /**
+ *
+ * ciphertext and zkproof
+ *
+ *
+ * bytes ciphertext = 3;
+ * @return The ciphertext.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCiphertext() {
+ return ciphertext_;
+ }
+
+ 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 (!cmu_.isEmpty()) {
+ output.writeBytes(1, cmu_);
+ }
+ if (!epk_.isEmpty()) {
+ output.writeBytes(2, epk_);
+ }
+ if (!ciphertext_.isEmpty()) {
+ output.writeBytes(3, ciphertext_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!cmu_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, cmu_);
+ }
+ if (!epk_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, epk_);
+ }
+ if (!ciphertext_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(3, ciphertext_);
+ }
+ 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 cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput)) {
+ return super.equals(obj);
+ }
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput other = (cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput) obj;
+
+ if (!getCmu()
+ .equals(other.getCmu())) return false;
+ if (!getEpk()
+ .equals(other.getEpk())) return false;
+ if (!getCiphertext()
+ .equals(other.getCiphertext())) 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();
+ hash = (37 * hash) + CMU_FIELD_NUMBER;
+ hash = (53 * hash) + getCmu().hashCode();
+ hash = (37 * hash) + EPK_FIELD_NUMBER;
+ hash = (53 * hash) + getEpk().hashCode();
+ hash = (37 * hash) + CIPHERTEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getCiphertext().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput 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 cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput 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 cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput 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(cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput 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;
+ }
+ /**
+ *
+ * output is a Sapling Output Description as described in section 7.4 of the
+ * Zcash protocol spec. Total size is 948.
+ *
+ *
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.CompactOutput}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:cash.z.wallet.sdk.rpc.CompactOutput)
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactOutputOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactOutput_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactOutput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.class, cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.Builder.class);
+ }
+
+ // Construct using cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ cmu_ = com.google.protobuf.ByteString.EMPTY;
+
+ epk_ = com.google.protobuf.ByteString.EMPTY;
+
+ ciphertext_ = com.google.protobuf.ByteString.EMPTY;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.internal_static_cash_z_wallet_sdk_rpc_CompactOutput_descriptor;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput getDefaultInstanceForType() {
+ return cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput build() {
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput buildPartial() {
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput result = new cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput(this);
+ result.cmu_ = cmu_;
+ result.epk_ = epk_;
+ result.ciphertext_ = ciphertext_;
+ 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 cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput) {
+ return mergeFrom((cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput other) {
+ if (other == cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput.getDefaultInstance()) return this;
+ if (other.getCmu() != com.google.protobuf.ByteString.EMPTY) {
+ setCmu(other.getCmu());
+ }
+ if (other.getEpk() != com.google.protobuf.ByteString.EMPTY) {
+ setEpk(other.getEpk());
+ }
+ if (other.getCiphertext() != com.google.protobuf.ByteString.EMPTY) {
+ setCiphertext(other.getCiphertext());
+ }
+ 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 {
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private com.google.protobuf.ByteString cmu_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ * note commitment u-coordinate
+ *
+ *
+ * bytes cmu = 1;
+ * @return The cmu.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCmu() {
+ return cmu_;
+ }
+ /**
+ *
+ * note commitment u-coordinate
+ *
+ *
+ * bytes cmu = 1;
+ * @param value The cmu to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCmu(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ cmu_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * note commitment u-coordinate
+ *
+ *
+ * bytes cmu = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearCmu() {
+
+ cmu_ = getDefaultInstance().getCmu();
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString epk_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ * ephemeral public key
+ *
+ *
+ * bytes epk = 2;
+ * @return The epk.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEpk() {
+ return epk_;
+ }
+ /**
+ *
+ * ephemeral public key
+ *
+ *
+ * bytes epk = 2;
+ * @param value The epk to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEpk(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ epk_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * ephemeral public key
+ *
+ *
+ * bytes epk = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearEpk() {
+
+ epk_ = getDefaultInstance().getEpk();
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString ciphertext_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ * ciphertext and zkproof
+ *
+ *
+ * bytes ciphertext = 3;
+ * @return The ciphertext.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCiphertext() {
+ return ciphertext_;
+ }
+ /**
+ *
+ * ciphertext and zkproof
+ *
+ *
+ * bytes ciphertext = 3;
+ * @param value The ciphertext to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCiphertext(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ ciphertext_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * ciphertext and zkproof
+ *
+ *
+ * bytes ciphertext = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearCiphertext() {
+
+ ciphertext_ = getDefaultInstance().getCiphertext();
+ 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:cash.z.wallet.sdk.rpc.CompactOutput)
+ }
+
+ // @@protoc_insertion_point(class_scope:cash.z.wallet.sdk.rpc.CompactOutput)
+ private static final cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput();
+ }
+
+ public static cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public CompactOutput parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CompactOutput(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 cash.z.wallet.sdk.rpc.CompactFormats.CompactOutput getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_cash_z_wallet_sdk_rpc_CompactBlock_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_cash_z_wallet_sdk_rpc_CompactBlock_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_cash_z_wallet_sdk_rpc_CompactTx_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_cash_z_wallet_sdk_rpc_CompactTx_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_cash_z_wallet_sdk_rpc_CompactSpend_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_cash_z_wallet_sdk_rpc_CompactSpend_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_cash_z_wallet_sdk_rpc_CompactOutput_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_cash_z_wallet_sdk_rpc_CompactOutput_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\025compact_formats.proto\022\025cash.z.wallet.s" +
+ "dk.rpc\"\241\001\n\014CompactBlock\022\024\n\014protoVersion\030" +
+ "\001 \001(\r\022\016\n\006height\030\002 \001(\004\022\014\n\004hash\030\003 \001(\014\022\020\n\010p" +
+ "revHash\030\004 \001(\014\022\014\n\004time\030\005 \001(\r\022\016\n\006header\030\006 " +
+ "\001(\014\022-\n\003vtx\030\007 \003(\0132 .cash.z.wallet.sdk.rpc" +
+ ".CompactTx\"\241\001\n\tCompactTx\022\r\n\005index\030\001 \001(\004\022" +
+ "\014\n\004hash\030\002 \001(\014\022\013\n\003fee\030\003 \001(\r\0223\n\006spends\030\004 \003" +
+ "(\0132#.cash.z.wallet.sdk.rpc.CompactSpend\022" +
+ "5\n\007outputs\030\005 \003(\0132$.cash.z.wallet.sdk.rpc" +
+ ".CompactOutput\"\032\n\014CompactSpend\022\n\n\002nf\030\001 \001" +
+ "(\014\"=\n\rCompactOutput\022\013\n\003cmu\030\001 \001(\014\022\013\n\003epk\030" +
+ "\002 \001(\014\022\022\n\nciphertext\030\003 \001(\014B\033Z\026lightwallet" +
+ "d/walletrpc\272\002\000b\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_cash_z_wallet_sdk_rpc_CompactBlock_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_cash_z_wallet_sdk_rpc_CompactBlock_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_cash_z_wallet_sdk_rpc_CompactBlock_descriptor,
+ new java.lang.String[] { "ProtoVersion", "Height", "Hash", "PrevHash", "Time", "Header", "Vtx", });
+ internal_static_cash_z_wallet_sdk_rpc_CompactTx_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_cash_z_wallet_sdk_rpc_CompactTx_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_cash_z_wallet_sdk_rpc_CompactTx_descriptor,
+ new java.lang.String[] { "Index", "Hash", "Fee", "Spends", "Outputs", });
+ internal_static_cash_z_wallet_sdk_rpc_CompactSpend_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_cash_z_wallet_sdk_rpc_CompactSpend_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_cash_z_wallet_sdk_rpc_CompactSpend_descriptor,
+ new java.lang.String[] { "Nf", });
+ internal_static_cash_z_wallet_sdk_rpc_CompactOutput_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_cash_z_wallet_sdk_rpc_CompactOutput_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_cash_z_wallet_sdk_rpc_CompactOutput_descriptor,
+ new java.lang.String[] { "Cmu", "Epk", "Ciphertext", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/cash/z/wallet/sdk/rpc/CompactTxStreamerGrpc.java b/src/main/java/cash/z/wallet/sdk/rpc/CompactTxStreamerGrpc.java
new file mode 100644
index 00000000..53b64c05
--- /dev/null
+++ b/src/main/java/cash/z/wallet/sdk/rpc/CompactTxStreamerGrpc.java
@@ -0,0 +1,1341 @@
+package cash.z.wallet.sdk.rpc;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ */
+@javax.annotation.Generated(
+ value = "by gRPC proto compiler (version 1.45.1)",
+ comments = "Source: service.proto")
+@io.grpc.stub.annotations.GrpcGenerated
+public final class CompactTxStreamerGrpc {
+
+ private CompactTxStreamerGrpc() {}
+
+ public static final String SERVICE_NAME = "cash.z.wallet.sdk.rpc.CompactTxStreamer";
+
+ // Static method descriptors that strictly reflect the proto.
+ private static volatile io.grpc.MethodDescriptor getGetLatestBlockMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetLatestBlock",
+ requestType = cash.z.wallet.sdk.rpc.Service.ChainSpec.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.BlockID.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getGetLatestBlockMethod() {
+ io.grpc.MethodDescriptor getGetLatestBlockMethod;
+ if ((getGetLatestBlockMethod = CompactTxStreamerGrpc.getGetLatestBlockMethod) == null) {
+ synchronized (CompactTxStreamerGrpc.class) {
+ if ((getGetLatestBlockMethod = CompactTxStreamerGrpc.getGetLatestBlockMethod) == null) {
+ CompactTxStreamerGrpc.getGetLatestBlockMethod = getGetLatestBlockMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLatestBlock"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.ChainSpec.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.BlockID.getDefaultInstance()))
+ .setSchemaDescriptor(new CompactTxStreamerMethodDescriptorSupplier("GetLatestBlock"))
+ .build();
+ }
+ }
+ }
+ return getGetLatestBlockMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetBlockMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetBlock",
+ requestType = cash.z.wallet.sdk.rpc.Service.BlockID.class,
+ responseType = cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getGetBlockMethod() {
+ io.grpc.MethodDescriptor getGetBlockMethod;
+ if ((getGetBlockMethod = CompactTxStreamerGrpc.getGetBlockMethod) == null) {
+ synchronized (CompactTxStreamerGrpc.class) {
+ if ((getGetBlockMethod = CompactTxStreamerGrpc.getGetBlockMethod) == null) {
+ CompactTxStreamerGrpc.getGetBlockMethod = getGetBlockMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlock"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.BlockID.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock.getDefaultInstance()))
+ .setSchemaDescriptor(new CompactTxStreamerMethodDescriptorSupplier("GetBlock"))
+ .build();
+ }
+ }
+ }
+ return getGetBlockMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetBlockRangeMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetBlockRange",
+ requestType = cash.z.wallet.sdk.rpc.Service.BlockRange.class,
+ responseType = cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+ public static io.grpc.MethodDescriptor getGetBlockRangeMethod() {
+ io.grpc.MethodDescriptor getGetBlockRangeMethod;
+ if ((getGetBlockRangeMethod = CompactTxStreamerGrpc.getGetBlockRangeMethod) == null) {
+ synchronized (CompactTxStreamerGrpc.class) {
+ if ((getGetBlockRangeMethod = CompactTxStreamerGrpc.getGetBlockRangeMethod) == null) {
+ CompactTxStreamerGrpc.getGetBlockRangeMethod = getGetBlockRangeMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockRange"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.BlockRange.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock.getDefaultInstance()))
+ .setSchemaDescriptor(new CompactTxStreamerMethodDescriptorSupplier("GetBlockRange"))
+ .build();
+ }
+ }
+ }
+ return getGetBlockRangeMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetTransactionMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetTransaction",
+ requestType = cash.z.wallet.sdk.rpc.Service.TxFilter.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.RawTransaction.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getGetTransactionMethod() {
+ io.grpc.MethodDescriptor getGetTransactionMethod;
+ if ((getGetTransactionMethod = CompactTxStreamerGrpc.getGetTransactionMethod) == null) {
+ synchronized (CompactTxStreamerGrpc.class) {
+ if ((getGetTransactionMethod = CompactTxStreamerGrpc.getGetTransactionMethod) == null) {
+ CompactTxStreamerGrpc.getGetTransactionMethod = getGetTransactionMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransaction"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.TxFilter.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.RawTransaction.getDefaultInstance()))
+ .setSchemaDescriptor(new CompactTxStreamerMethodDescriptorSupplier("GetTransaction"))
+ .build();
+ }
+ }
+ }
+ return getGetTransactionMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getSendTransactionMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "SendTransaction",
+ requestType = cash.z.wallet.sdk.rpc.Service.RawTransaction.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.SendResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getSendTransactionMethod() {
+ io.grpc.MethodDescriptor getSendTransactionMethod;
+ if ((getSendTransactionMethod = CompactTxStreamerGrpc.getSendTransactionMethod) == null) {
+ synchronized (CompactTxStreamerGrpc.class) {
+ if ((getSendTransactionMethod = CompactTxStreamerGrpc.getSendTransactionMethod) == null) {
+ CompactTxStreamerGrpc.getSendTransactionMethod = getSendTransactionMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendTransaction"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.RawTransaction.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.SendResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new CompactTxStreamerMethodDescriptorSupplier("SendTransaction"))
+ .build();
+ }
+ }
+ }
+ return getSendTransactionMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetTaddressTxidsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetTaddressTxids",
+ requestType = cash.z.wallet.sdk.rpc.Service.TransparentAddressBlockFilter.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.RawTransaction.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+ public static io.grpc.MethodDescriptor getGetTaddressTxidsMethod() {
+ io.grpc.MethodDescriptor getGetTaddressTxidsMethod;
+ if ((getGetTaddressTxidsMethod = CompactTxStreamerGrpc.getGetTaddressTxidsMethod) == null) {
+ synchronized (CompactTxStreamerGrpc.class) {
+ if ((getGetTaddressTxidsMethod = CompactTxStreamerGrpc.getGetTaddressTxidsMethod) == null) {
+ CompactTxStreamerGrpc.getGetTaddressTxidsMethod = getGetTaddressTxidsMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTaddressTxids"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.TransparentAddressBlockFilter.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.RawTransaction.getDefaultInstance()))
+ .setSchemaDescriptor(new CompactTxStreamerMethodDescriptorSupplier("GetTaddressTxids"))
+ .build();
+ }
+ }
+ }
+ return getGetTaddressTxidsMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetTaddressBalanceMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetTaddressBalance",
+ requestType = cash.z.wallet.sdk.rpc.Service.AddressList.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.Balance.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getGetTaddressBalanceMethod() {
+ io.grpc.MethodDescriptor getGetTaddressBalanceMethod;
+ if ((getGetTaddressBalanceMethod = CompactTxStreamerGrpc.getGetTaddressBalanceMethod) == null) {
+ synchronized (CompactTxStreamerGrpc.class) {
+ if ((getGetTaddressBalanceMethod = CompactTxStreamerGrpc.getGetTaddressBalanceMethod) == null) {
+ CompactTxStreamerGrpc.getGetTaddressBalanceMethod = getGetTaddressBalanceMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTaddressBalance"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.AddressList.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Balance.getDefaultInstance()))
+ .setSchemaDescriptor(new CompactTxStreamerMethodDescriptorSupplier("GetTaddressBalance"))
+ .build();
+ }
+ }
+ }
+ return getGetTaddressBalanceMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetTaddressBalanceStreamMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetTaddressBalanceStream",
+ requestType = cash.z.wallet.sdk.rpc.Service.Address.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.Balance.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
+ public static io.grpc.MethodDescriptor getGetTaddressBalanceStreamMethod() {
+ io.grpc.MethodDescriptor getGetTaddressBalanceStreamMethod;
+ if ((getGetTaddressBalanceStreamMethod = CompactTxStreamerGrpc.getGetTaddressBalanceStreamMethod) == null) {
+ synchronized (CompactTxStreamerGrpc.class) {
+ if ((getGetTaddressBalanceStreamMethod = CompactTxStreamerGrpc.getGetTaddressBalanceStreamMethod) == null) {
+ CompactTxStreamerGrpc.getGetTaddressBalanceStreamMethod = getGetTaddressBalanceStreamMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTaddressBalanceStream"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Address.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Balance.getDefaultInstance()))
+ .setSchemaDescriptor(new CompactTxStreamerMethodDescriptorSupplier("GetTaddressBalanceStream"))
+ .build();
+ }
+ }
+ }
+ return getGetTaddressBalanceStreamMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetMempoolTxMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetMempoolTx",
+ requestType = cash.z.wallet.sdk.rpc.Service.Exclude.class,
+ responseType = cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+ public static io.grpc.MethodDescriptor getGetMempoolTxMethod() {
+ io.grpc.MethodDescriptor getGetMempoolTxMethod;
+ if ((getGetMempoolTxMethod = CompactTxStreamerGrpc.getGetMempoolTxMethod) == null) {
+ synchronized (CompactTxStreamerGrpc.class) {
+ if ((getGetMempoolTxMethod = CompactTxStreamerGrpc.getGetMempoolTxMethod) == null) {
+ CompactTxStreamerGrpc.getGetMempoolTxMethod = getGetMempoolTxMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMempoolTx"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Exclude.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactTx.getDefaultInstance()))
+ .setSchemaDescriptor(new CompactTxStreamerMethodDescriptorSupplier("GetMempoolTx"))
+ .build();
+ }
+ }
+ }
+ return getGetMempoolTxMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetTreeStateMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetTreeState",
+ requestType = cash.z.wallet.sdk.rpc.Service.BlockID.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.TreeState.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getGetTreeStateMethod() {
+ io.grpc.MethodDescriptor getGetTreeStateMethod;
+ if ((getGetTreeStateMethod = CompactTxStreamerGrpc.getGetTreeStateMethod) == null) {
+ synchronized (CompactTxStreamerGrpc.class) {
+ if ((getGetTreeStateMethod = CompactTxStreamerGrpc.getGetTreeStateMethod) == null) {
+ CompactTxStreamerGrpc.getGetTreeStateMethod = getGetTreeStateMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTreeState"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.BlockID.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.TreeState.getDefaultInstance()))
+ .setSchemaDescriptor(new CompactTxStreamerMethodDescriptorSupplier("GetTreeState"))
+ .build();
+ }
+ }
+ }
+ return getGetTreeStateMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetAddressUtxosMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetAddressUtxos",
+ requestType = cash.z.wallet.sdk.rpc.Service.GetAddressUtxosArg.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.GetAddressUtxosReplyList.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getGetAddressUtxosMethod() {
+ io.grpc.MethodDescriptor getGetAddressUtxosMethod;
+ if ((getGetAddressUtxosMethod = CompactTxStreamerGrpc.getGetAddressUtxosMethod) == null) {
+ synchronized (CompactTxStreamerGrpc.class) {
+ if ((getGetAddressUtxosMethod = CompactTxStreamerGrpc.getGetAddressUtxosMethod) == null) {
+ CompactTxStreamerGrpc.getGetAddressUtxosMethod = getGetAddressUtxosMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAddressUtxos"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.GetAddressUtxosArg.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.GetAddressUtxosReplyList.getDefaultInstance()))
+ .setSchemaDescriptor(new CompactTxStreamerMethodDescriptorSupplier("GetAddressUtxos"))
+ .build();
+ }
+ }
+ }
+ return getGetAddressUtxosMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetAddressUtxosStreamMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetAddressUtxosStream",
+ requestType = cash.z.wallet.sdk.rpc.Service.GetAddressUtxosArg.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.GetAddressUtxosReply.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+ public static io.grpc.MethodDescriptor getGetAddressUtxosStreamMethod() {
+ io.grpc.MethodDescriptor getGetAddressUtxosStreamMethod;
+ if ((getGetAddressUtxosStreamMethod = CompactTxStreamerGrpc.getGetAddressUtxosStreamMethod) == null) {
+ synchronized (CompactTxStreamerGrpc.class) {
+ if ((getGetAddressUtxosStreamMethod = CompactTxStreamerGrpc.getGetAddressUtxosStreamMethod) == null) {
+ CompactTxStreamerGrpc.getGetAddressUtxosStreamMethod = getGetAddressUtxosStreamMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAddressUtxosStream"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.GetAddressUtxosArg.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.GetAddressUtxosReply.getDefaultInstance()))
+ .setSchemaDescriptor(new CompactTxStreamerMethodDescriptorSupplier("GetAddressUtxosStream"))
+ .build();
+ }
+ }
+ }
+ return getGetAddressUtxosStreamMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetLightdInfoMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetLightdInfo",
+ requestType = cash.z.wallet.sdk.rpc.Service.Empty.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.LightdInfo.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getGetLightdInfoMethod() {
+ io.grpc.MethodDescriptor getGetLightdInfoMethod;
+ if ((getGetLightdInfoMethod = CompactTxStreamerGrpc.getGetLightdInfoMethod) == null) {
+ synchronized (CompactTxStreamerGrpc.class) {
+ if ((getGetLightdInfoMethod = CompactTxStreamerGrpc.getGetLightdInfoMethod) == null) {
+ CompactTxStreamerGrpc.getGetLightdInfoMethod = getGetLightdInfoMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLightdInfo"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Empty.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.LightdInfo.getDefaultInstance()))
+ .setSchemaDescriptor(new CompactTxStreamerMethodDescriptorSupplier("GetLightdInfo"))
+ .build();
+ }
+ }
+ }
+ return getGetLightdInfoMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getPingMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "Ping",
+ requestType = cash.z.wallet.sdk.rpc.Service.Duration.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.PingResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getPingMethod() {
+ io.grpc.MethodDescriptor getPingMethod;
+ if ((getPingMethod = CompactTxStreamerGrpc.getPingMethod) == null) {
+ synchronized (CompactTxStreamerGrpc.class) {
+ if ((getPingMethod = CompactTxStreamerGrpc.getPingMethod) == null) {
+ CompactTxStreamerGrpc.getPingMethod = getPingMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Ping"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Duration.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.PingResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new CompactTxStreamerMethodDescriptorSupplier("Ping"))
+ .build();
+ }
+ }
+ }
+ return getPingMethod;
+ }
+
+ /**
+ * Creates a new async stub that supports all call types for the service
+ */
+ public static CompactTxStreamerStub newStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public CompactTxStreamerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new CompactTxStreamerStub(channel, callOptions);
+ }
+ };
+ return CompactTxStreamerStub.newStub(factory, channel);
+ }
+
+ /**
+ * Creates a new blocking-style stub that supports unary and streaming output calls on the service
+ */
+ public static CompactTxStreamerBlockingStub newBlockingStub(
+ io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public CompactTxStreamerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new CompactTxStreamerBlockingStub(channel, callOptions);
+ }
+ };
+ return CompactTxStreamerBlockingStub.newStub(factory, channel);
+ }
+
+ /**
+ * Creates a new ListenableFuture-style stub that supports unary calls on the service
+ */
+ public static CompactTxStreamerFutureStub newFutureStub(
+ io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public CompactTxStreamerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new CompactTxStreamerFutureStub(channel, callOptions);
+ }
+ };
+ return CompactTxStreamerFutureStub.newStub(factory, channel);
+ }
+
+ /**
+ */
+ public static abstract class CompactTxStreamerImplBase implements io.grpc.BindableService {
+
+ /**
+ *
+ * Return the height of the tip of the best chain
+ *
+ */
+ public void getLatestBlock(cash.z.wallet.sdk.rpc.Service.ChainSpec request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLatestBlockMethod(), responseObserver);
+ }
+
+ /**
+ *
+ * Return the compact block corresponding to the given block identifier
+ *
+ */
+ public void getBlock(cash.z.wallet.sdk.rpc.Service.BlockID request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockMethod(), responseObserver);
+ }
+
+ /**
+ *
+ * Return a list of consecutive compact blocks
+ *
+ */
+ public void getBlockRange(cash.z.wallet.sdk.rpc.Service.BlockRange request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockRangeMethod(), responseObserver);
+ }
+
+ /**
+ *
+ * Return the requested full (not compact) transaction (as from pirated)
+ *
+ */
+ public void getTransaction(cash.z.wallet.sdk.rpc.Service.TxFilter request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTransactionMethod(), responseObserver);
+ }
+
+ /**
+ *
+ * Submit the given transaction to the Zcash network
+ *
+ */
+ public void sendTransaction(cash.z.wallet.sdk.rpc.Service.RawTransaction request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendTransactionMethod(), responseObserver);
+ }
+
+ /**
+ *
+ * Return the txids corresponding to the given t-address within the given block range
+ *
+ */
+ public void getTaddressTxids(cash.z.wallet.sdk.rpc.Service.TransparentAddressBlockFilter request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTaddressTxidsMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void getTaddressBalance(cash.z.wallet.sdk.rpc.Service.AddressList request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTaddressBalanceMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public io.grpc.stub.StreamObserver getTaddressBalanceStream(
+ io.grpc.stub.StreamObserver responseObserver) {
+ return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getGetTaddressBalanceStreamMethod(), responseObserver);
+ }
+
+ /**
+ *
+ * Return the compact transactions currently in the mempool; the results
+ * can be a few seconds out of date. If the Exclude list is empty, return
+ * all transactions; otherwise return all *except* those in the Exclude list
+ * (if any); this allows the client to avoid receiving transactions that it
+ * already has (from an earlier call to this rpc). The transaction IDs in the
+ * Exclude list can be shortened to any number of bytes to make the request
+ * more bandwidth-efficient; if two or more transactions in the mempool
+ * match a shortened txid, they are all sent (none is excluded). Transactions
+ * in the exclude list that don't exist in the mempool are ignored.
+ *
+ */
+ public void getMempoolTx(cash.z.wallet.sdk.rpc.Service.Exclude request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMempoolTxMethod(), responseObserver);
+ }
+
+ /**
+ *
+ * GetTreeState returns the note commitment tree state corresponding to the given block.
+ * See section 3.7 of the Zcash protocol specification. It returns several other useful
+ * values also (even though they can be obtained using GetBlock).
+ * The block can be specified by either height or hash.
+ *
+ */
+ public void getTreeState(cash.z.wallet.sdk.rpc.Service.BlockID request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTreeStateMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void getAddressUtxos(cash.z.wallet.sdk.rpc.Service.GetAddressUtxosArg request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAddressUtxosMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void getAddressUtxosStream(cash.z.wallet.sdk.rpc.Service.GetAddressUtxosArg request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAddressUtxosStreamMethod(), responseObserver);
+ }
+
+ /**
+ *
+ * Return information about this lightwalletd instance and the blockchain
+ *
+ */
+ public void getLightdInfo(cash.z.wallet.sdk.rpc.Service.Empty request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLightdInfoMethod(), responseObserver);
+ }
+
+ /**
+ *
+ * Testing-only, requires lightwalletd --ping-very-insecure (do not enable in production)
+ *
+ */
+ public void ping(cash.z.wallet.sdk.rpc.Service.Duration request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPingMethod(), responseObserver);
+ }
+
+ @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
+ return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
+ .addMethod(
+ getGetLatestBlockMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ cash.z.wallet.sdk.rpc.Service.ChainSpec,
+ cash.z.wallet.sdk.rpc.Service.BlockID>(
+ this, METHODID_GET_LATEST_BLOCK)))
+ .addMethod(
+ getGetBlockMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ cash.z.wallet.sdk.rpc.Service.BlockID,
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock>(
+ this, METHODID_GET_BLOCK)))
+ .addMethod(
+ getGetBlockRangeMethod(),
+ io.grpc.stub.ServerCalls.asyncServerStreamingCall(
+ new MethodHandlers<
+ cash.z.wallet.sdk.rpc.Service.BlockRange,
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock>(
+ this, METHODID_GET_BLOCK_RANGE)))
+ .addMethod(
+ getGetTransactionMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ cash.z.wallet.sdk.rpc.Service.TxFilter,
+ cash.z.wallet.sdk.rpc.Service.RawTransaction>(
+ this, METHODID_GET_TRANSACTION)))
+ .addMethod(
+ getSendTransactionMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ cash.z.wallet.sdk.rpc.Service.RawTransaction,
+ cash.z.wallet.sdk.rpc.Service.SendResponse>(
+ this, METHODID_SEND_TRANSACTION)))
+ .addMethod(
+ getGetTaddressTxidsMethod(),
+ io.grpc.stub.ServerCalls.asyncServerStreamingCall(
+ new MethodHandlers<
+ cash.z.wallet.sdk.rpc.Service.TransparentAddressBlockFilter,
+ cash.z.wallet.sdk.rpc.Service.RawTransaction>(
+ this, METHODID_GET_TADDRESS_TXIDS)))
+ .addMethod(
+ getGetTaddressBalanceMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ cash.z.wallet.sdk.rpc.Service.AddressList,
+ cash.z.wallet.sdk.rpc.Service.Balance>(
+ this, METHODID_GET_TADDRESS_BALANCE)))
+ .addMethod(
+ getGetTaddressBalanceStreamMethod(),
+ io.grpc.stub.ServerCalls.asyncClientStreamingCall(
+ new MethodHandlers<
+ cash.z.wallet.sdk.rpc.Service.Address,
+ cash.z.wallet.sdk.rpc.Service.Balance>(
+ this, METHODID_GET_TADDRESS_BALANCE_STREAM)))
+ .addMethod(
+ getGetMempoolTxMethod(),
+ io.grpc.stub.ServerCalls.asyncServerStreamingCall(
+ new MethodHandlers<
+ cash.z.wallet.sdk.rpc.Service.Exclude,
+ cash.z.wallet.sdk.rpc.CompactFormats.CompactTx>(
+ this, METHODID_GET_MEMPOOL_TX)))
+ .addMethod(
+ getGetTreeStateMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ cash.z.wallet.sdk.rpc.Service.BlockID,
+ cash.z.wallet.sdk.rpc.Service.TreeState>(
+ this, METHODID_GET_TREE_STATE)))
+ .addMethod(
+ getGetAddressUtxosMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ cash.z.wallet.sdk.rpc.Service.GetAddressUtxosArg,
+ cash.z.wallet.sdk.rpc.Service.GetAddressUtxosReplyList>(
+ this, METHODID_GET_ADDRESS_UTXOS)))
+ .addMethod(
+ getGetAddressUtxosStreamMethod(),
+ io.grpc.stub.ServerCalls.asyncServerStreamingCall(
+ new MethodHandlers<
+ cash.z.wallet.sdk.rpc.Service.GetAddressUtxosArg,
+ cash.z.wallet.sdk.rpc.Service.GetAddressUtxosReply>(
+ this, METHODID_GET_ADDRESS_UTXOS_STREAM)))
+ .addMethod(
+ getGetLightdInfoMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ cash.z.wallet.sdk.rpc.Service.Empty,
+ cash.z.wallet.sdk.rpc.Service.LightdInfo>(
+ this, METHODID_GET_LIGHTD_INFO)))
+ .addMethod(
+ getPingMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ cash.z.wallet.sdk.rpc.Service.Duration,
+ cash.z.wallet.sdk.rpc.Service.PingResponse>(
+ this, METHODID_PING)))
+ .build();
+ }
+ }
+
+ /**
+ */
+ public static final class CompactTxStreamerStub extends io.grpc.stub.AbstractAsyncStub {
+ private CompactTxStreamerStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected CompactTxStreamerStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new CompactTxStreamerStub(channel, callOptions);
+ }
+
+ /**
+ *
+ * Return the height of the tip of the best chain
+ *
+ */
+ public void getLatestBlock(cash.z.wallet.sdk.rpc.Service.ChainSpec request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getGetLatestBlockMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ *
+ * Return the compact block corresponding to the given block identifier
+ *
+ */
+ public void getBlock(cash.z.wallet.sdk.rpc.Service.BlockID request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getGetBlockMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ *
+ * Return a list of consecutive compact blocks
+ *
+ */
+ public void getBlockRange(cash.z.wallet.sdk.rpc.Service.BlockRange request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncServerStreamingCall(
+ getChannel().newCall(getGetBlockRangeMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ *
+ * Return the requested full (not compact) transaction (as from pirated)
+ *
+ */
+ public void getTransaction(cash.z.wallet.sdk.rpc.Service.TxFilter request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getGetTransactionMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ *
+ * Submit the given transaction to the Zcash network
+ *
+ */
+ public void sendTransaction(cash.z.wallet.sdk.rpc.Service.RawTransaction request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getSendTransactionMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ *
+ * Return the txids corresponding to the given t-address within the given block range
+ *
+ */
+ public void getTaddressTxids(cash.z.wallet.sdk.rpc.Service.TransparentAddressBlockFilter request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncServerStreamingCall(
+ getChannel().newCall(getGetTaddressTxidsMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void getTaddressBalance(cash.z.wallet.sdk.rpc.Service.AddressList request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getGetTaddressBalanceMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public io.grpc.stub.StreamObserver getTaddressBalanceStream(
+ io.grpc.stub.StreamObserver responseObserver) {
+ return io.grpc.stub.ClientCalls.asyncClientStreamingCall(
+ getChannel().newCall(getGetTaddressBalanceStreamMethod(), getCallOptions()), responseObserver);
+ }
+
+ /**
+ *
+ * Return the compact transactions currently in the mempool; the results
+ * can be a few seconds out of date. If the Exclude list is empty, return
+ * all transactions; otherwise return all *except* those in the Exclude list
+ * (if any); this allows the client to avoid receiving transactions that it
+ * already has (from an earlier call to this rpc). The transaction IDs in the
+ * Exclude list can be shortened to any number of bytes to make the request
+ * more bandwidth-efficient; if two or more transactions in the mempool
+ * match a shortened txid, they are all sent (none is excluded). Transactions
+ * in the exclude list that don't exist in the mempool are ignored.
+ *
+ */
+ public void getMempoolTx(cash.z.wallet.sdk.rpc.Service.Exclude request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncServerStreamingCall(
+ getChannel().newCall(getGetMempoolTxMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ *
+ * GetTreeState returns the note commitment tree state corresponding to the given block.
+ * See section 3.7 of the Zcash protocol specification. It returns several other useful
+ * values also (even though they can be obtained using GetBlock).
+ * The block can be specified by either height or hash.
+ *
+ */
+ public void getTreeState(cash.z.wallet.sdk.rpc.Service.BlockID request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getGetTreeStateMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void getAddressUtxos(cash.z.wallet.sdk.rpc.Service.GetAddressUtxosArg request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getGetAddressUtxosMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void getAddressUtxosStream(cash.z.wallet.sdk.rpc.Service.GetAddressUtxosArg request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncServerStreamingCall(
+ getChannel().newCall(getGetAddressUtxosStreamMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ *
+ * Return information about this lightwalletd instance and the blockchain
+ *
+ */
+ public void getLightdInfo(cash.z.wallet.sdk.rpc.Service.Empty request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getGetLightdInfoMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ *
+ * Testing-only, requires lightwalletd --ping-very-insecure (do not enable in production)
+ *
+ */
+ public void ping(cash.z.wallet.sdk.rpc.Service.Duration request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getPingMethod(), getCallOptions()), request, responseObserver);
+ }
+ }
+
+ /**
+ */
+ public static final class CompactTxStreamerBlockingStub extends io.grpc.stub.AbstractBlockingStub {
+ private CompactTxStreamerBlockingStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected CompactTxStreamerBlockingStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new CompactTxStreamerBlockingStub(channel, callOptions);
+ }
+
+ /**
+ *
+ * Return the height of the tip of the best chain
+ *
+ */
+ public cash.z.wallet.sdk.rpc.Service.BlockID getLatestBlock(cash.z.wallet.sdk.rpc.Service.ChainSpec request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetLatestBlockMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ * Return the compact block corresponding to the given block identifier
+ *
+ */
+ public cash.z.wallet.sdk.rpc.CompactFormats.CompactBlock getBlock(cash.z.wallet.sdk.rpc.Service.BlockID request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetBlockMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ * Return a list of consecutive compact blocks
+ *
+ */
+ public java.util.Iterator getBlockRange(
+ cash.z.wallet.sdk.rpc.Service.BlockRange request) {
+ return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
+ getChannel(), getGetBlockRangeMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ * Return the requested full (not compact) transaction (as from pirated)
+ *
+ */
+ public cash.z.wallet.sdk.rpc.Service.RawTransaction getTransaction(cash.z.wallet.sdk.rpc.Service.TxFilter request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetTransactionMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ * Submit the given transaction to the Zcash network
+ *
+ */
+ public cash.z.wallet.sdk.rpc.Service.SendResponse sendTransaction(cash.z.wallet.sdk.rpc.Service.RawTransaction request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getSendTransactionMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ * Return the txids corresponding to the given t-address within the given block range
+ *
+ */
+ public java.util.Iterator getTaddressTxids(
+ cash.z.wallet.sdk.rpc.Service.TransparentAddressBlockFilter request) {
+ return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
+ getChannel(), getGetTaddressTxidsMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public cash.z.wallet.sdk.rpc.Service.Balance getTaddressBalance(cash.z.wallet.sdk.rpc.Service.AddressList request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetTaddressBalanceMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ * Return the compact transactions currently in the mempool; the results
+ * can be a few seconds out of date. If the Exclude list is empty, return
+ * all transactions; otherwise return all *except* those in the Exclude list
+ * (if any); this allows the client to avoid receiving transactions that it
+ * already has (from an earlier call to this rpc). The transaction IDs in the
+ * Exclude list can be shortened to any number of bytes to make the request
+ * more bandwidth-efficient; if two or more transactions in the mempool
+ * match a shortened txid, they are all sent (none is excluded). Transactions
+ * in the exclude list that don't exist in the mempool are ignored.
+ *
+ */
+ public java.util.Iterator getMempoolTx(
+ cash.z.wallet.sdk.rpc.Service.Exclude request) {
+ return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
+ getChannel(), getGetMempoolTxMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ * GetTreeState returns the note commitment tree state corresponding to the given block.
+ * See section 3.7 of the Zcash protocol specification. It returns several other useful
+ * values also (even though they can be obtained using GetBlock).
+ * The block can be specified by either height or hash.
+ *
+ */
+ public cash.z.wallet.sdk.rpc.Service.TreeState getTreeState(cash.z.wallet.sdk.rpc.Service.BlockID request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetTreeStateMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public cash.z.wallet.sdk.rpc.Service.GetAddressUtxosReplyList getAddressUtxos(cash.z.wallet.sdk.rpc.Service.GetAddressUtxosArg request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetAddressUtxosMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public java.util.Iterator getAddressUtxosStream(
+ cash.z.wallet.sdk.rpc.Service.GetAddressUtxosArg request) {
+ return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
+ getChannel(), getGetAddressUtxosStreamMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ * Return information about this lightwalletd instance and the blockchain
+ *
+ */
+ public cash.z.wallet.sdk.rpc.Service.LightdInfo getLightdInfo(cash.z.wallet.sdk.rpc.Service.Empty request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetLightdInfoMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ * Testing-only, requires lightwalletd --ping-very-insecure (do not enable in production)
+ *
+ */
+ public cash.z.wallet.sdk.rpc.Service.PingResponse ping(cash.z.wallet.sdk.rpc.Service.Duration request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getPingMethod(), getCallOptions(), request);
+ }
+ }
+
+ /**
+ */
+ public static final class CompactTxStreamerFutureStub extends io.grpc.stub.AbstractFutureStub {
+ private CompactTxStreamerFutureStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected CompactTxStreamerFutureStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new CompactTxStreamerFutureStub(channel, callOptions);
+ }
+
+ /**
+ *
+ * Return the height of the tip of the best chain
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture getLatestBlock(
+ cash.z.wallet.sdk.rpc.Service.ChainSpec request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getGetLatestBlockMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ * Return the compact block corresponding to the given block identifier
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture getBlock(
+ cash.z.wallet.sdk.rpc.Service.BlockID request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getGetBlockMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ * Return the requested full (not compact) transaction (as from pirated)
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture getTransaction(
+ cash.z.wallet.sdk.rpc.Service.TxFilter request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getGetTransactionMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ * Submit the given transaction to the Zcash network
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture sendTransaction(
+ cash.z.wallet.sdk.rpc.Service.RawTransaction request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getSendTransactionMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture getTaddressBalance(
+ cash.z.wallet.sdk.rpc.Service.AddressList request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getGetTaddressBalanceMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ * GetTreeState returns the note commitment tree state corresponding to the given block.
+ * See section 3.7 of the Zcash protocol specification. It returns several other useful
+ * values also (even though they can be obtained using GetBlock).
+ * The block can be specified by either height or hash.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture getTreeState(
+ cash.z.wallet.sdk.rpc.Service.BlockID request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getGetTreeStateMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture getAddressUtxos(
+ cash.z.wallet.sdk.rpc.Service.GetAddressUtxosArg request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getGetAddressUtxosMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ * Return information about this lightwalletd instance and the blockchain
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture getLightdInfo(
+ cash.z.wallet.sdk.rpc.Service.Empty request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getGetLightdInfoMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ * Testing-only, requires lightwalletd --ping-very-insecure (do not enable in production)
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture ping(
+ cash.z.wallet.sdk.rpc.Service.Duration request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getPingMethod(), getCallOptions()), request);
+ }
+ }
+
+ private static final int METHODID_GET_LATEST_BLOCK = 0;
+ private static final int METHODID_GET_BLOCK = 1;
+ private static final int METHODID_GET_BLOCK_RANGE = 2;
+ private static final int METHODID_GET_TRANSACTION = 3;
+ private static final int METHODID_SEND_TRANSACTION = 4;
+ private static final int METHODID_GET_TADDRESS_TXIDS = 5;
+ private static final int METHODID_GET_TADDRESS_BALANCE = 6;
+ private static final int METHODID_GET_MEMPOOL_TX = 7;
+ private static final int METHODID_GET_TREE_STATE = 8;
+ private static final int METHODID_GET_ADDRESS_UTXOS = 9;
+ private static final int METHODID_GET_ADDRESS_UTXOS_STREAM = 10;
+ private static final int METHODID_GET_LIGHTD_INFO = 11;
+ private static final int METHODID_PING = 12;
+ private static final int METHODID_GET_TADDRESS_BALANCE_STREAM = 13;
+
+ private static final class MethodHandlers implements
+ io.grpc.stub.ServerCalls.UnaryMethod,
+ io.grpc.stub.ServerCalls.ServerStreamingMethod,
+ io.grpc.stub.ServerCalls.ClientStreamingMethod,
+ io.grpc.stub.ServerCalls.BidiStreamingMethod {
+ private final CompactTxStreamerImplBase serviceImpl;
+ private final int methodId;
+
+ MethodHandlers(CompactTxStreamerImplBase serviceImpl, int methodId) {
+ this.serviceImpl = serviceImpl;
+ this.methodId = methodId;
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("unchecked")
+ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
+ switch (methodId) {
+ case METHODID_GET_LATEST_BLOCK:
+ serviceImpl.getLatestBlock((cash.z.wallet.sdk.rpc.Service.ChainSpec) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_GET_BLOCK:
+ serviceImpl.getBlock((cash.z.wallet.sdk.rpc.Service.BlockID) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_GET_BLOCK_RANGE:
+ serviceImpl.getBlockRange((cash.z.wallet.sdk.rpc.Service.BlockRange) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_GET_TRANSACTION:
+ serviceImpl.getTransaction((cash.z.wallet.sdk.rpc.Service.TxFilter) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_SEND_TRANSACTION:
+ serviceImpl.sendTransaction((cash.z.wallet.sdk.rpc.Service.RawTransaction) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_GET_TADDRESS_TXIDS:
+ serviceImpl.getTaddressTxids((cash.z.wallet.sdk.rpc.Service.TransparentAddressBlockFilter) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_GET_TADDRESS_BALANCE:
+ serviceImpl.getTaddressBalance((cash.z.wallet.sdk.rpc.Service.AddressList) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_GET_MEMPOOL_TX:
+ serviceImpl.getMempoolTx((cash.z.wallet.sdk.rpc.Service.Exclude) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_GET_TREE_STATE:
+ serviceImpl.getTreeState((cash.z.wallet.sdk.rpc.Service.BlockID) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_GET_ADDRESS_UTXOS:
+ serviceImpl.getAddressUtxos((cash.z.wallet.sdk.rpc.Service.GetAddressUtxosArg) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_GET_ADDRESS_UTXOS_STREAM:
+ serviceImpl.getAddressUtxosStream((cash.z.wallet.sdk.rpc.Service.GetAddressUtxosArg) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_GET_LIGHTD_INFO:
+ serviceImpl.getLightdInfo((cash.z.wallet.sdk.rpc.Service.Empty) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_PING:
+ serviceImpl.ping((cash.z.wallet.sdk.rpc.Service.Duration) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ default:
+ throw new AssertionError();
+ }
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("unchecked")
+ public io.grpc.stub.StreamObserver invoke(
+ io.grpc.stub.StreamObserver responseObserver) {
+ switch (methodId) {
+ case METHODID_GET_TADDRESS_BALANCE_STREAM:
+ return (io.grpc.stub.StreamObserver) serviceImpl.getTaddressBalanceStream(
+ (io.grpc.stub.StreamObserver) responseObserver);
+ default:
+ throw new AssertionError();
+ }
+ }
+ }
+
+ private static abstract class CompactTxStreamerBaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+ CompactTxStreamerBaseDescriptorSupplier() {}
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
+ return cash.z.wallet.sdk.rpc.Service.getDescriptor();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
+ return getFileDescriptor().findServiceByName("CompactTxStreamer");
+ }
+ }
+
+ private static final class CompactTxStreamerFileDescriptorSupplier
+ extends CompactTxStreamerBaseDescriptorSupplier {
+ CompactTxStreamerFileDescriptorSupplier() {}
+ }
+
+ private static final class CompactTxStreamerMethodDescriptorSupplier
+ extends CompactTxStreamerBaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
+ private final String methodName;
+
+ CompactTxStreamerMethodDescriptorSupplier(String methodName) {
+ this.methodName = methodName;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
+ return getServiceDescriptor().findMethodByName(methodName);
+ }
+ }
+
+ private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
+
+ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
+ io.grpc.ServiceDescriptor result = serviceDescriptor;
+ if (result == null) {
+ synchronized (CompactTxStreamerGrpc.class) {
+ result = serviceDescriptor;
+ if (result == null) {
+ serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+ .setSchemaDescriptor(new CompactTxStreamerFileDescriptorSupplier())
+ .addMethod(getGetLatestBlockMethod())
+ .addMethod(getGetBlockMethod())
+ .addMethod(getGetBlockRangeMethod())
+ .addMethod(getGetTransactionMethod())
+ .addMethod(getSendTransactionMethod())
+ .addMethod(getGetTaddressTxidsMethod())
+ .addMethod(getGetTaddressBalanceMethod())
+ .addMethod(getGetTaddressBalanceStreamMethod())
+ .addMethod(getGetMempoolTxMethod())
+ .addMethod(getGetTreeStateMethod())
+ .addMethod(getGetAddressUtxosMethod())
+ .addMethod(getGetAddressUtxosStreamMethod())
+ .addMethod(getGetLightdInfoMethod())
+ .addMethod(getPingMethod())
+ .build();
+ }
+ }
+ }
+ return result;
+ }
+}
diff --git a/src/main/java/cash/z/wallet/sdk/rpc/Darkside.java b/src/main/java/cash/z/wallet/sdk/rpc/Darkside.java
new file mode 100644
index 00000000..d35f4ae7
--- /dev/null
+++ b/src/main/java/cash/z/wallet/sdk/rpc/Darkside.java
@@ -0,0 +1,3854 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: darkside.proto
+
+package cash.z.wallet.sdk.rpc;
+
+public final class Darkside {
+ private Darkside() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface DarksideMetaStateOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:cash.z.wallet.sdk.rpc.DarksideMetaState)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int32 saplingActivation = 1;
+ * @return The saplingActivation.
+ */
+ int getSaplingActivation();
+
+ /**
+ * string branchID = 2;
+ * @return The branchID.
+ */
+ java.lang.String getBranchID();
+ /**
+ * string branchID = 2;
+ * @return The bytes for branchID.
+ */
+ com.google.protobuf.ByteString
+ getBranchIDBytes();
+
+ /**
+ * string chainName = 3;
+ * @return The chainName.
+ */
+ java.lang.String getChainName();
+ /**
+ * string chainName = 3;
+ * @return The bytes for chainName.
+ */
+ com.google.protobuf.ByteString
+ getChainNameBytes();
+ }
+ /**
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.DarksideMetaState}
+ */
+ public static final class DarksideMetaState extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:cash.z.wallet.sdk.rpc.DarksideMetaState)
+ DarksideMetaStateOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DarksideMetaState.newBuilder() to construct.
+ private DarksideMetaState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DarksideMetaState() {
+ branchID_ = "";
+ chainName_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new DarksideMetaState();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private DarksideMetaState(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ 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 8: {
+
+ saplingActivation_ = input.readInt32();
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ branchID_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ chainName_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideMetaState_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideMetaState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState.class, cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState.Builder.class);
+ }
+
+ public static final int SAPLINGACTIVATION_FIELD_NUMBER = 1;
+ private int saplingActivation_;
+ /**
+ * int32 saplingActivation = 1;
+ * @return The saplingActivation.
+ */
+ @java.lang.Override
+ public int getSaplingActivation() {
+ return saplingActivation_;
+ }
+
+ public static final int BRANCHID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object branchID_;
+ /**
+ * string branchID = 2;
+ * @return The branchID.
+ */
+ @java.lang.Override
+ public java.lang.String getBranchID() {
+ java.lang.Object ref = branchID_;
+ 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();
+ branchID_ = s;
+ return s;
+ }
+ }
+ /**
+ * string branchID = 2;
+ * @return The bytes for branchID.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getBranchIDBytes() {
+ java.lang.Object ref = branchID_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ branchID_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHAINNAME_FIELD_NUMBER = 3;
+ private volatile java.lang.Object chainName_;
+ /**
+ * string chainName = 3;
+ * @return The chainName.
+ */
+ @java.lang.Override
+ public java.lang.String getChainName() {
+ java.lang.Object ref = chainName_;
+ 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();
+ chainName_ = s;
+ return s;
+ }
+ }
+ /**
+ * string chainName = 3;
+ * @return The bytes for chainName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getChainNameBytes() {
+ java.lang.Object ref = chainName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ chainName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (saplingActivation_ != 0) {
+ output.writeInt32(1, saplingActivation_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(branchID_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, branchID_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(chainName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, chainName_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (saplingActivation_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, saplingActivation_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(branchID_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, branchID_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(chainName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, chainName_);
+ }
+ 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 cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState)) {
+ return super.equals(obj);
+ }
+ cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState other = (cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState) obj;
+
+ if (getSaplingActivation()
+ != other.getSaplingActivation()) return false;
+ if (!getBranchID()
+ .equals(other.getBranchID())) return false;
+ if (!getChainName()
+ .equals(other.getChainName())) 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();
+ hash = (37 * hash) + SAPLINGACTIVATION_FIELD_NUMBER;
+ hash = (53 * hash) + getSaplingActivation();
+ hash = (37 * hash) + BRANCHID_FIELD_NUMBER;
+ hash = (53 * hash) + getBranchID().hashCode();
+ hash = (37 * hash) + CHAINNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getChainName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState 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 cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState 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 cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState 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(cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState 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;
+ }
+ /**
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.DarksideMetaState}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:cash.z.wallet.sdk.rpc.DarksideMetaState)
+ cash.z.wallet.sdk.rpc.Darkside.DarksideMetaStateOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideMetaState_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideMetaState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState.class, cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState.Builder.class);
+ }
+
+ // Construct using cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ saplingActivation_ = 0;
+
+ branchID_ = "";
+
+ chainName_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideMetaState_descriptor;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState getDefaultInstanceForType() {
+ return cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState build() {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState buildPartial() {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState result = new cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState(this);
+ result.saplingActivation_ = saplingActivation_;
+ result.branchID_ = branchID_;
+ result.chainName_ = chainName_;
+ 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 cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState) {
+ return mergeFrom((cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState other) {
+ if (other == cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState.getDefaultInstance()) return this;
+ if (other.getSaplingActivation() != 0) {
+ setSaplingActivation(other.getSaplingActivation());
+ }
+ if (!other.getBranchID().isEmpty()) {
+ branchID_ = other.branchID_;
+ onChanged();
+ }
+ if (!other.getChainName().isEmpty()) {
+ chainName_ = other.chainName_;
+ onChanged();
+ }
+ 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 {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int saplingActivation_ ;
+ /**
+ * int32 saplingActivation = 1;
+ * @return The saplingActivation.
+ */
+ @java.lang.Override
+ public int getSaplingActivation() {
+ return saplingActivation_;
+ }
+ /**
+ * int32 saplingActivation = 1;
+ * @param value The saplingActivation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSaplingActivation(int value) {
+
+ saplingActivation_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 saplingActivation = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearSaplingActivation() {
+
+ saplingActivation_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object branchID_ = "";
+ /**
+ * string branchID = 2;
+ * @return The branchID.
+ */
+ public java.lang.String getBranchID() {
+ java.lang.Object ref = branchID_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ branchID_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string branchID = 2;
+ * @return The bytes for branchID.
+ */
+ public com.google.protobuf.ByteString
+ getBranchIDBytes() {
+ java.lang.Object ref = branchID_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ branchID_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string branchID = 2;
+ * @param value The branchID to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBranchID(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ branchID_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string branchID = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearBranchID() {
+
+ branchID_ = getDefaultInstance().getBranchID();
+ onChanged();
+ return this;
+ }
+ /**
+ * string branchID = 2;
+ * @param value The bytes for branchID to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBranchIDBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ branchID_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object chainName_ = "";
+ /**
+ * string chainName = 3;
+ * @return The chainName.
+ */
+ public java.lang.String getChainName() {
+ java.lang.Object ref = chainName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ chainName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string chainName = 3;
+ * @return The bytes for chainName.
+ */
+ public com.google.protobuf.ByteString
+ getChainNameBytes() {
+ java.lang.Object ref = chainName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ chainName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string chainName = 3;
+ * @param value The chainName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setChainName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ chainName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string chainName = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearChainName() {
+
+ chainName_ = getDefaultInstance().getChainName();
+ onChanged();
+ return this;
+ }
+ /**
+ * string chainName = 3;
+ * @param value The bytes for chainName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setChainNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ chainName_ = value;
+ 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:cash.z.wallet.sdk.rpc.DarksideMetaState)
+ }
+
+ // @@protoc_insertion_point(class_scope:cash.z.wallet.sdk.rpc.DarksideMetaState)
+ private static final cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState();
+ }
+
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DarksideMetaState parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DarksideMetaState(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 cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface DarksideBlockOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:cash.z.wallet.sdk.rpc.DarksideBlock)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string block = 1;
+ * @return The block.
+ */
+ java.lang.String getBlock();
+ /**
+ * string block = 1;
+ * @return The bytes for block.
+ */
+ com.google.protobuf.ByteString
+ getBlockBytes();
+ }
+ /**
+ *
+ * A block is a hex-encoded string.
+ *
+ *
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.DarksideBlock}
+ */
+ public static final class DarksideBlock extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:cash.z.wallet.sdk.rpc.DarksideBlock)
+ DarksideBlockOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DarksideBlock.newBuilder() to construct.
+ private DarksideBlock(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DarksideBlock() {
+ block_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new DarksideBlock();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private DarksideBlock(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ 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: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ block_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideBlock_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideBlock_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlock.class, cash.z.wallet.sdk.rpc.Darkside.DarksideBlock.Builder.class);
+ }
+
+ public static final int BLOCK_FIELD_NUMBER = 1;
+ private volatile java.lang.Object block_;
+ /**
+ * string block = 1;
+ * @return The block.
+ */
+ @java.lang.Override
+ public java.lang.String getBlock() {
+ java.lang.Object ref = block_;
+ 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();
+ block_ = s;
+ return s;
+ }
+ }
+ /**
+ * string block = 1;
+ * @return The bytes for block.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getBlockBytes() {
+ java.lang.Object ref = block_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ block_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(block_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, block_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(block_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, block_);
+ }
+ 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 cash.z.wallet.sdk.rpc.Darkside.DarksideBlock)) {
+ return super.equals(obj);
+ }
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlock other = (cash.z.wallet.sdk.rpc.Darkside.DarksideBlock) obj;
+
+ if (!getBlock()
+ .equals(other.getBlock())) 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();
+ hash = (37 * hash) + BLOCK_FIELD_NUMBER;
+ hash = (53 * hash) + getBlock().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlock parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlock parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlock parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlock parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlock parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlock parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlock parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlock 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 cash.z.wallet.sdk.rpc.Darkside.DarksideBlock parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlock 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 cash.z.wallet.sdk.rpc.Darkside.DarksideBlock parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlock 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(cash.z.wallet.sdk.rpc.Darkside.DarksideBlock 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;
+ }
+ /**
+ *
+ * A block is a hex-encoded string.
+ *
+ *
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.DarksideBlock}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:cash.z.wallet.sdk.rpc.DarksideBlock)
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlockOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideBlock_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideBlock_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlock.class, cash.z.wallet.sdk.rpc.Darkside.DarksideBlock.Builder.class);
+ }
+
+ // Construct using cash.z.wallet.sdk.rpc.Darkside.DarksideBlock.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ block_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideBlock_descriptor;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideBlock getDefaultInstanceForType() {
+ return cash.z.wallet.sdk.rpc.Darkside.DarksideBlock.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideBlock build() {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlock result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideBlock buildPartial() {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlock result = new cash.z.wallet.sdk.rpc.Darkside.DarksideBlock(this);
+ result.block_ = block_;
+ 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 cash.z.wallet.sdk.rpc.Darkside.DarksideBlock) {
+ return mergeFrom((cash.z.wallet.sdk.rpc.Darkside.DarksideBlock)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(cash.z.wallet.sdk.rpc.Darkside.DarksideBlock other) {
+ if (other == cash.z.wallet.sdk.rpc.Darkside.DarksideBlock.getDefaultInstance()) return this;
+ if (!other.getBlock().isEmpty()) {
+ block_ = other.block_;
+ onChanged();
+ }
+ 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 {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlock parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (cash.z.wallet.sdk.rpc.Darkside.DarksideBlock) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object block_ = "";
+ /**
+ * string block = 1;
+ * @return The block.
+ */
+ public java.lang.String getBlock() {
+ java.lang.Object ref = block_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ block_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string block = 1;
+ * @return The bytes for block.
+ */
+ public com.google.protobuf.ByteString
+ getBlockBytes() {
+ java.lang.Object ref = block_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ block_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string block = 1;
+ * @param value The block to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBlock(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ block_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string block = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearBlock() {
+
+ block_ = getDefaultInstance().getBlock();
+ onChanged();
+ return this;
+ }
+ /**
+ * string block = 1;
+ * @param value The bytes for block to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBlockBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ block_ = value;
+ 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:cash.z.wallet.sdk.rpc.DarksideBlock)
+ }
+
+ // @@protoc_insertion_point(class_scope:cash.z.wallet.sdk.rpc.DarksideBlock)
+ private static final cash.z.wallet.sdk.rpc.Darkside.DarksideBlock DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new cash.z.wallet.sdk.rpc.Darkside.DarksideBlock();
+ }
+
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlock getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DarksideBlock parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DarksideBlock(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 cash.z.wallet.sdk.rpc.Darkside.DarksideBlock getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface DarksideBlocksURLOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:cash.z.wallet.sdk.rpc.DarksideBlocksURL)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string url = 1;
+ * @return The url.
+ */
+ java.lang.String getUrl();
+ /**
+ * string url = 1;
+ * @return The bytes for url.
+ */
+ com.google.protobuf.ByteString
+ getUrlBytes();
+ }
+ /**
+ *
+ * DarksideBlocksURL is typically something like:
+ * https://raw.githubusercontent.com/zcash-hackworks/darksidewalletd-test-data/master/basic-reorg/before-reorg.txt
+ *
+ *
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.DarksideBlocksURL}
+ */
+ public static final class DarksideBlocksURL extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:cash.z.wallet.sdk.rpc.DarksideBlocksURL)
+ DarksideBlocksURLOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DarksideBlocksURL.newBuilder() to construct.
+ private DarksideBlocksURL(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DarksideBlocksURL() {
+ url_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new DarksideBlocksURL();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private DarksideBlocksURL(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ 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: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ url_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideBlocksURL_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideBlocksURL_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL.class, cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL.Builder.class);
+ }
+
+ public static final int URL_FIELD_NUMBER = 1;
+ private volatile java.lang.Object url_;
+ /**
+ * string url = 1;
+ * @return The url.
+ */
+ @java.lang.Override
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ 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();
+ url_ = s;
+ return s;
+ }
+ }
+ /**
+ * string url = 1;
+ * @return The bytes for url.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_);
+ }
+ 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 cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL)) {
+ return super.equals(obj);
+ }
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL other = (cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL) obj;
+
+ if (!getUrl()
+ .equals(other.getUrl())) 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();
+ hash = (37 * hash) + URL_FIELD_NUMBER;
+ hash = (53 * hash) + getUrl().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL 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 cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL 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 cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL 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(cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL 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;
+ }
+ /**
+ *
+ * DarksideBlocksURL is typically something like:
+ * https://raw.githubusercontent.com/zcash-hackworks/darksidewalletd-test-data/master/basic-reorg/before-reorg.txt
+ *
+ *
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.DarksideBlocksURL}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:cash.z.wallet.sdk.rpc.DarksideBlocksURL)
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURLOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideBlocksURL_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideBlocksURL_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL.class, cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL.Builder.class);
+ }
+
+ // Construct using cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ url_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideBlocksURL_descriptor;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL getDefaultInstanceForType() {
+ return cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL build() {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL buildPartial() {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL result = new cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL(this);
+ result.url_ = url_;
+ 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 cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL) {
+ return mergeFrom((cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL other) {
+ if (other == cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL.getDefaultInstance()) return this;
+ if (!other.getUrl().isEmpty()) {
+ url_ = other.url_;
+ onChanged();
+ }
+ 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 {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object url_ = "";
+ /**
+ * string url = 1;
+ * @return The url.
+ */
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string url = 1;
+ * @return The bytes for url.
+ */
+ public com.google.protobuf.ByteString
+ getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string url = 1;
+ * @param value The url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrl(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ url_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string url = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearUrl() {
+
+ url_ = getDefaultInstance().getUrl();
+ onChanged();
+ return this;
+ }
+ /**
+ * string url = 1;
+ * @param value The bytes for url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ url_ = value;
+ 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:cash.z.wallet.sdk.rpc.DarksideBlocksURL)
+ }
+
+ // @@protoc_insertion_point(class_scope:cash.z.wallet.sdk.rpc.DarksideBlocksURL)
+ private static final cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL();
+ }
+
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DarksideBlocksURL parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DarksideBlocksURL(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 cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface DarksideTransactionsURLOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:cash.z.wallet.sdk.rpc.DarksideTransactionsURL)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int32 height = 1;
+ * @return The height.
+ */
+ int getHeight();
+
+ /**
+ * string url = 2;
+ * @return The url.
+ */
+ java.lang.String getUrl();
+ /**
+ * string url = 2;
+ * @return The bytes for url.
+ */
+ com.google.protobuf.ByteString
+ getUrlBytes();
+ }
+ /**
+ *
+ * DarksideTransactionsURL refers to an HTTP source that contains a list
+ * of hex-encoded transactions, one per line, that are to be associated
+ * with the given height (fake-mined into the block at that height)
+ *
+ *
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.DarksideTransactionsURL}
+ */
+ public static final class DarksideTransactionsURL extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:cash.z.wallet.sdk.rpc.DarksideTransactionsURL)
+ DarksideTransactionsURLOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DarksideTransactionsURL.newBuilder() to construct.
+ private DarksideTransactionsURL(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DarksideTransactionsURL() {
+ url_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new DarksideTransactionsURL();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private DarksideTransactionsURL(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ 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 8: {
+
+ height_ = input.readInt32();
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ url_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideTransactionsURL_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideTransactionsURL_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL.class, cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL.Builder.class);
+ }
+
+ public static final int HEIGHT_FIELD_NUMBER = 1;
+ private int height_;
+ /**
+ * int32 height = 1;
+ * @return The height.
+ */
+ @java.lang.Override
+ public int getHeight() {
+ return height_;
+ }
+
+ public static final int URL_FIELD_NUMBER = 2;
+ private volatile java.lang.Object url_;
+ /**
+ * string url = 2;
+ * @return The url.
+ */
+ @java.lang.Override
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ 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();
+ url_ = s;
+ return s;
+ }
+ }
+ /**
+ * string url = 2;
+ * @return The bytes for url.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (height_ != 0) {
+ output.writeInt32(1, height_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (height_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, height_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_);
+ }
+ 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 cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL)) {
+ return super.equals(obj);
+ }
+ cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL other = (cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL) obj;
+
+ if (getHeight()
+ != other.getHeight()) return false;
+ if (!getUrl()
+ .equals(other.getUrl())) 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();
+ hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
+ hash = (53 * hash) + getHeight();
+ hash = (37 * hash) + URL_FIELD_NUMBER;
+ hash = (53 * hash) + getUrl().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL 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 cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL 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 cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL 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(cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL 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;
+ }
+ /**
+ *
+ * DarksideTransactionsURL refers to an HTTP source that contains a list
+ * of hex-encoded transactions, one per line, that are to be associated
+ * with the given height (fake-mined into the block at that height)
+ *
+ *
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.DarksideTransactionsURL}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:cash.z.wallet.sdk.rpc.DarksideTransactionsURL)
+ cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURLOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideTransactionsURL_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideTransactionsURL_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL.class, cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL.Builder.class);
+ }
+
+ // Construct using cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ height_ = 0;
+
+ url_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideTransactionsURL_descriptor;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL getDefaultInstanceForType() {
+ return cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL build() {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL buildPartial() {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL result = new cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL(this);
+ result.height_ = height_;
+ result.url_ = url_;
+ 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 cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL) {
+ return mergeFrom((cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL other) {
+ if (other == cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL.getDefaultInstance()) return this;
+ if (other.getHeight() != 0) {
+ setHeight(other.getHeight());
+ }
+ if (!other.getUrl().isEmpty()) {
+ url_ = other.url_;
+ onChanged();
+ }
+ 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 {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int height_ ;
+ /**
+ * int32 height = 1;
+ * @return The height.
+ */
+ @java.lang.Override
+ public int getHeight() {
+ return height_;
+ }
+ /**
+ * int32 height = 1;
+ * @param value The height to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHeight(int value) {
+
+ height_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 height = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearHeight() {
+
+ height_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object url_ = "";
+ /**
+ * string url = 2;
+ * @return The url.
+ */
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string url = 2;
+ * @return The bytes for url.
+ */
+ public com.google.protobuf.ByteString
+ getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string url = 2;
+ * @param value The url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrl(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ url_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string url = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearUrl() {
+
+ url_ = getDefaultInstance().getUrl();
+ onChanged();
+ return this;
+ }
+ /**
+ * string url = 2;
+ * @param value The bytes for url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ url_ = value;
+ 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:cash.z.wallet.sdk.rpc.DarksideTransactionsURL)
+ }
+
+ // @@protoc_insertion_point(class_scope:cash.z.wallet.sdk.rpc.DarksideTransactionsURL)
+ private static final cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL();
+ }
+
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DarksideTransactionsURL parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DarksideTransactionsURL(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 cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface DarksideHeightOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:cash.z.wallet.sdk.rpc.DarksideHeight)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int32 height = 1;
+ * @return The height.
+ */
+ int getHeight();
+ }
+ /**
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.DarksideHeight}
+ */
+ public static final class DarksideHeight extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:cash.z.wallet.sdk.rpc.DarksideHeight)
+ DarksideHeightOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DarksideHeight.newBuilder() to construct.
+ private DarksideHeight(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DarksideHeight() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new DarksideHeight();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private DarksideHeight(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ 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 8: {
+
+ height_ = input.readInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideHeight_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideHeight_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideHeight.class, cash.z.wallet.sdk.rpc.Darkside.DarksideHeight.Builder.class);
+ }
+
+ public static final int HEIGHT_FIELD_NUMBER = 1;
+ private int height_;
+ /**
+ * int32 height = 1;
+ * @return The height.
+ */
+ @java.lang.Override
+ public int getHeight() {
+ return height_;
+ }
+
+ 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 (height_ != 0) {
+ output.writeInt32(1, height_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (height_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, height_);
+ }
+ 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 cash.z.wallet.sdk.rpc.Darkside.DarksideHeight)) {
+ return super.equals(obj);
+ }
+ cash.z.wallet.sdk.rpc.Darkside.DarksideHeight other = (cash.z.wallet.sdk.rpc.Darkside.DarksideHeight) obj;
+
+ if (getHeight()
+ != other.getHeight()) 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();
+ hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
+ hash = (53 * hash) + getHeight();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideHeight parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideHeight parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideHeight parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideHeight parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideHeight parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideHeight parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideHeight parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideHeight 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 cash.z.wallet.sdk.rpc.Darkside.DarksideHeight parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideHeight 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 cash.z.wallet.sdk.rpc.Darkside.DarksideHeight parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideHeight 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(cash.z.wallet.sdk.rpc.Darkside.DarksideHeight 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;
+ }
+ /**
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.DarksideHeight}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:cash.z.wallet.sdk.rpc.DarksideHeight)
+ cash.z.wallet.sdk.rpc.Darkside.DarksideHeightOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideHeight_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideHeight_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideHeight.class, cash.z.wallet.sdk.rpc.Darkside.DarksideHeight.Builder.class);
+ }
+
+ // Construct using cash.z.wallet.sdk.rpc.Darkside.DarksideHeight.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ height_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideHeight_descriptor;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideHeight getDefaultInstanceForType() {
+ return cash.z.wallet.sdk.rpc.Darkside.DarksideHeight.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideHeight build() {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideHeight result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideHeight buildPartial() {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideHeight result = new cash.z.wallet.sdk.rpc.Darkside.DarksideHeight(this);
+ result.height_ = height_;
+ 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 cash.z.wallet.sdk.rpc.Darkside.DarksideHeight) {
+ return mergeFrom((cash.z.wallet.sdk.rpc.Darkside.DarksideHeight)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(cash.z.wallet.sdk.rpc.Darkside.DarksideHeight other) {
+ if (other == cash.z.wallet.sdk.rpc.Darkside.DarksideHeight.getDefaultInstance()) return this;
+ if (other.getHeight() != 0) {
+ setHeight(other.getHeight());
+ }
+ 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 {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideHeight parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (cash.z.wallet.sdk.rpc.Darkside.DarksideHeight) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int height_ ;
+ /**
+ * int32 height = 1;
+ * @return The height.
+ */
+ @java.lang.Override
+ public int getHeight() {
+ return height_;
+ }
+ /**
+ * int32 height = 1;
+ * @param value The height to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHeight(int value) {
+
+ height_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 height = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearHeight() {
+
+ height_ = 0;
+ 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:cash.z.wallet.sdk.rpc.DarksideHeight)
+ }
+
+ // @@protoc_insertion_point(class_scope:cash.z.wallet.sdk.rpc.DarksideHeight)
+ private static final cash.z.wallet.sdk.rpc.Darkside.DarksideHeight DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new cash.z.wallet.sdk.rpc.Darkside.DarksideHeight();
+ }
+
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideHeight getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DarksideHeight parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DarksideHeight(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 cash.z.wallet.sdk.rpc.Darkside.DarksideHeight getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface DarksideEmptyBlocksOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:cash.z.wallet.sdk.rpc.DarksideEmptyBlocks)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int32 height = 1;
+ * @return The height.
+ */
+ int getHeight();
+
+ /**
+ * int32 nonce = 2;
+ * @return The nonce.
+ */
+ int getNonce();
+
+ /**
+ * int32 count = 3;
+ * @return The count.
+ */
+ int getCount();
+ }
+ /**
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.DarksideEmptyBlocks}
+ */
+ public static final class DarksideEmptyBlocks extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:cash.z.wallet.sdk.rpc.DarksideEmptyBlocks)
+ DarksideEmptyBlocksOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DarksideEmptyBlocks.newBuilder() to construct.
+ private DarksideEmptyBlocks(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DarksideEmptyBlocks() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new DarksideEmptyBlocks();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private DarksideEmptyBlocks(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ 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 8: {
+
+ height_ = input.readInt32();
+ break;
+ }
+ case 16: {
+
+ nonce_ = input.readInt32();
+ break;
+ }
+ case 24: {
+
+ count_ = input.readInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideEmptyBlocks_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideEmptyBlocks_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks.class, cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks.Builder.class);
+ }
+
+ public static final int HEIGHT_FIELD_NUMBER = 1;
+ private int height_;
+ /**
+ * int32 height = 1;
+ * @return The height.
+ */
+ @java.lang.Override
+ public int getHeight() {
+ return height_;
+ }
+
+ public static final int NONCE_FIELD_NUMBER = 2;
+ private int nonce_;
+ /**
+ * int32 nonce = 2;
+ * @return The nonce.
+ */
+ @java.lang.Override
+ public int getNonce() {
+ return nonce_;
+ }
+
+ public static final int COUNT_FIELD_NUMBER = 3;
+ private int count_;
+ /**
+ * int32 count = 3;
+ * @return The count.
+ */
+ @java.lang.Override
+ public int getCount() {
+ return count_;
+ }
+
+ 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 (height_ != 0) {
+ output.writeInt32(1, height_);
+ }
+ if (nonce_ != 0) {
+ output.writeInt32(2, nonce_);
+ }
+ if (count_ != 0) {
+ output.writeInt32(3, count_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (height_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, height_);
+ }
+ if (nonce_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(2, nonce_);
+ }
+ if (count_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(3, count_);
+ }
+ 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 cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks)) {
+ return super.equals(obj);
+ }
+ cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks other = (cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks) obj;
+
+ if (getHeight()
+ != other.getHeight()) return false;
+ if (getNonce()
+ != other.getNonce()) return false;
+ if (getCount()
+ != other.getCount()) 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();
+ hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
+ hash = (53 * hash) + getHeight();
+ hash = (37 * hash) + NONCE_FIELD_NUMBER;
+ hash = (53 * hash) + getNonce();
+ hash = (37 * hash) + COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getCount();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks 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 cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks 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 cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks 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(cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks 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;
+ }
+ /**
+ * Protobuf type {@code cash.z.wallet.sdk.rpc.DarksideEmptyBlocks}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:cash.z.wallet.sdk.rpc.DarksideEmptyBlocks)
+ cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocksOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideEmptyBlocks_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideEmptyBlocks_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks.class, cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks.Builder.class);
+ }
+
+ // Construct using cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ height_ = 0;
+
+ nonce_ = 0;
+
+ count_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return cash.z.wallet.sdk.rpc.Darkside.internal_static_cash_z_wallet_sdk_rpc_DarksideEmptyBlocks_descriptor;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks getDefaultInstanceForType() {
+ return cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks build() {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks buildPartial() {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks result = new cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks(this);
+ result.height_ = height_;
+ result.nonce_ = nonce_;
+ result.count_ = count_;
+ 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 cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks) {
+ return mergeFrom((cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks other) {
+ if (other == cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks.getDefaultInstance()) return this;
+ if (other.getHeight() != 0) {
+ setHeight(other.getHeight());
+ }
+ if (other.getNonce() != 0) {
+ setNonce(other.getNonce());
+ }
+ if (other.getCount() != 0) {
+ setCount(other.getCount());
+ }
+ 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 {
+ cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int height_ ;
+ /**
+ * int32 height = 1;
+ * @return The height.
+ */
+ @java.lang.Override
+ public int getHeight() {
+ return height_;
+ }
+ /**
+ * int32 height = 1;
+ * @param value The height to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHeight(int value) {
+
+ height_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 height = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearHeight() {
+
+ height_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int nonce_ ;
+ /**
+ * int32 nonce = 2;
+ * @return The nonce.
+ */
+ @java.lang.Override
+ public int getNonce() {
+ return nonce_;
+ }
+ /**
+ * int32 nonce = 2;
+ * @param value The nonce to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNonce(int value) {
+
+ nonce_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 nonce = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearNonce() {
+
+ nonce_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int count_ ;
+ /**
+ * int32 count = 3;
+ * @return The count.
+ */
+ @java.lang.Override
+ public int getCount() {
+ return count_;
+ }
+ /**
+ * int32 count = 3;
+ * @param value The count to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCount(int value) {
+
+ count_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 count = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearCount() {
+
+ count_ = 0;
+ 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:cash.z.wallet.sdk.rpc.DarksideEmptyBlocks)
+ }
+
+ // @@protoc_insertion_point(class_scope:cash.z.wallet.sdk.rpc.DarksideEmptyBlocks)
+ private static final cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks();
+ }
+
+ public static cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DarksideEmptyBlocks parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DarksideEmptyBlocks(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 cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_cash_z_wallet_sdk_rpc_DarksideMetaState_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_cash_z_wallet_sdk_rpc_DarksideMetaState_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_cash_z_wallet_sdk_rpc_DarksideBlock_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_cash_z_wallet_sdk_rpc_DarksideBlock_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_cash_z_wallet_sdk_rpc_DarksideBlocksURL_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_cash_z_wallet_sdk_rpc_DarksideBlocksURL_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_cash_z_wallet_sdk_rpc_DarksideTransactionsURL_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_cash_z_wallet_sdk_rpc_DarksideTransactionsURL_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_cash_z_wallet_sdk_rpc_DarksideHeight_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_cash_z_wallet_sdk_rpc_DarksideHeight_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_cash_z_wallet_sdk_rpc_DarksideEmptyBlocks_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_cash_z_wallet_sdk_rpc_DarksideEmptyBlocks_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\016darkside.proto\022\025cash.z.wallet.sdk.rpc\032" +
+ "\rservice.proto\"S\n\021DarksideMetaState\022\031\n\021s" +
+ "aplingActivation\030\001 \001(\005\022\020\n\010branchID\030\002 \001(\t" +
+ "\022\021\n\tchainName\030\003 \001(\t\"\036\n\rDarksideBlock\022\r\n\005" +
+ "block\030\001 \001(\t\" \n\021DarksideBlocksURL\022\013\n\003url\030" +
+ "\001 \001(\t\"6\n\027DarksideTransactionsURL\022\016\n\006heig" +
+ "ht\030\001 \001(\005\022\013\n\003url\030\002 \001(\t\" \n\016DarksideHeight\022" +
+ "\016\n\006height\030\001 \001(\005\"C\n\023DarksideEmptyBlocks\022\016" +
+ "\n\006height\030\001 \001(\005\022\r\n\005nonce\030\002 \001(\005\022\r\n\005count\030\003" +
+ " \001(\0052\332\006\n\020DarksideStreamer\022Q\n\005Reset\022(.cas" +
+ "h.z.wallet.sdk.rpc.DarksideMetaState\032\034.c" +
+ "ash.z.wallet.sdk.rpc.Empty\"\000\022[\n\021StageBlo" +
+ "cksStream\022$.cash.z.wallet.sdk.rpc.Darksi" +
+ "deBlock\032\034.cash.z.wallet.sdk.rpc.Empty\"\000(" +
+ "\001\022W\n\013StageBlocks\022(.cash.z.wallet.sdk.rpc" +
+ ".DarksideBlocksURL\032\034.cash.z.wallet.sdk.r" +
+ "pc.Empty\"\000\022_\n\021StageBlocksCreate\022*.cash.z" +
+ ".wallet.sdk.rpc.DarksideEmptyBlocks\032\034.ca" +
+ "sh.z.wallet.sdk.rpc.Empty\"\000\022b\n\027StageTran" +
+ "sactionsStream\022%.cash.z.wallet.sdk.rpc.R" +
+ "awTransaction\032\034.cash.z.wallet.sdk.rpc.Em" +
+ "pty\"\000(\001\022c\n\021StageTransactions\022..cash.z.wa" +
+ "llet.sdk.rpc.DarksideTransactionsURL\032\034.c" +
+ "ash.z.wallet.sdk.rpc.Empty\"\000\022T\n\013ApplySta" +
+ "ged\022%.cash.z.wallet.sdk.rpc.DarksideHeig" +
+ "ht\032\034.cash.z.wallet.sdk.rpc.Empty\"\000\022b\n\027Ge" +
+ "tIncomingTransactions\022\034.cash.z.wallet.sd" +
+ "k.rpc.Empty\032%.cash.z.wallet.sdk.rpc.RawT" +
+ "ransaction\"\0000\001\022Y\n\031ClearIncomingTransacti" +
+ "ons\022\034.cash.z.wallet.sdk.rpc.Empty\032\034.cash" +
+ ".z.wallet.sdk.rpc.Empty\"\000B\033Z\026lightwallet" +
+ "d/walletrpc\272\002\000b\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ cash.z.wallet.sdk.rpc.Service.getDescriptor(),
+ });
+ internal_static_cash_z_wallet_sdk_rpc_DarksideMetaState_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_cash_z_wallet_sdk_rpc_DarksideMetaState_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_cash_z_wallet_sdk_rpc_DarksideMetaState_descriptor,
+ new java.lang.String[] { "SaplingActivation", "BranchID", "ChainName", });
+ internal_static_cash_z_wallet_sdk_rpc_DarksideBlock_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_cash_z_wallet_sdk_rpc_DarksideBlock_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_cash_z_wallet_sdk_rpc_DarksideBlock_descriptor,
+ new java.lang.String[] { "Block", });
+ internal_static_cash_z_wallet_sdk_rpc_DarksideBlocksURL_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_cash_z_wallet_sdk_rpc_DarksideBlocksURL_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_cash_z_wallet_sdk_rpc_DarksideBlocksURL_descriptor,
+ new java.lang.String[] { "Url", });
+ internal_static_cash_z_wallet_sdk_rpc_DarksideTransactionsURL_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_cash_z_wallet_sdk_rpc_DarksideTransactionsURL_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_cash_z_wallet_sdk_rpc_DarksideTransactionsURL_descriptor,
+ new java.lang.String[] { "Height", "Url", });
+ internal_static_cash_z_wallet_sdk_rpc_DarksideHeight_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_cash_z_wallet_sdk_rpc_DarksideHeight_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_cash_z_wallet_sdk_rpc_DarksideHeight_descriptor,
+ new java.lang.String[] { "Height", });
+ internal_static_cash_z_wallet_sdk_rpc_DarksideEmptyBlocks_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_cash_z_wallet_sdk_rpc_DarksideEmptyBlocks_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_cash_z_wallet_sdk_rpc_DarksideEmptyBlocks_descriptor,
+ new java.lang.String[] { "Height", "Nonce", "Count", });
+ cash.z.wallet.sdk.rpc.Service.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/cash/z/wallet/sdk/rpc/DarksideStreamerGrpc.java b/src/main/java/cash/z/wallet/sdk/rpc/DarksideStreamerGrpc.java
new file mode 100644
index 00000000..5b180bea
--- /dev/null
+++ b/src/main/java/cash/z/wallet/sdk/rpc/DarksideStreamerGrpc.java
@@ -0,0 +1,1086 @@
+package cash.z.wallet.sdk.rpc;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ * Darksidewalletd maintains two staging areas, blocks and transactions. The
+ * Stage*() gRPCs add items to the staging area; ApplyStaged() "applies" everything
+ * in the staging area to the working (operational) state that the mock zcashd
+ * serves; transactions are placed into their corresponding blocks (by height).
+ *
+ */
+@javax.annotation.Generated(
+ value = "by gRPC proto compiler (version 1.45.1)",
+ comments = "Source: darkside.proto")
+@io.grpc.stub.annotations.GrpcGenerated
+public final class DarksideStreamerGrpc {
+
+ private DarksideStreamerGrpc() {}
+
+ public static final String SERVICE_NAME = "cash.z.wallet.sdk.rpc.DarksideStreamer";
+
+ // Static method descriptors that strictly reflect the proto.
+ private static volatile io.grpc.MethodDescriptor getResetMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "Reset",
+ requestType = cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getResetMethod() {
+ io.grpc.MethodDescriptor getResetMethod;
+ if ((getResetMethod = DarksideStreamerGrpc.getResetMethod) == null) {
+ synchronized (DarksideStreamerGrpc.class) {
+ if ((getResetMethod = DarksideStreamerGrpc.getResetMethod) == null) {
+ DarksideStreamerGrpc.getResetMethod = getResetMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Reset"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new DarksideStreamerMethodDescriptorSupplier("Reset"))
+ .build();
+ }
+ }
+ }
+ return getResetMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getStageBlocksStreamMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "StageBlocksStream",
+ requestType = cash.z.wallet.sdk.rpc.Darkside.DarksideBlock.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
+ public static io.grpc.MethodDescriptor getStageBlocksStreamMethod() {
+ io.grpc.MethodDescriptor getStageBlocksStreamMethod;
+ if ((getStageBlocksStreamMethod = DarksideStreamerGrpc.getStageBlocksStreamMethod) == null) {
+ synchronized (DarksideStreamerGrpc.class) {
+ if ((getStageBlocksStreamMethod = DarksideStreamerGrpc.getStageBlocksStreamMethod) == null) {
+ DarksideStreamerGrpc.getStageBlocksStreamMethod = getStageBlocksStreamMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StageBlocksStream"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlock.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new DarksideStreamerMethodDescriptorSupplier("StageBlocksStream"))
+ .build();
+ }
+ }
+ }
+ return getStageBlocksStreamMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getStageBlocksMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "StageBlocks",
+ requestType = cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getStageBlocksMethod() {
+ io.grpc.MethodDescriptor getStageBlocksMethod;
+ if ((getStageBlocksMethod = DarksideStreamerGrpc.getStageBlocksMethod) == null) {
+ synchronized (DarksideStreamerGrpc.class) {
+ if ((getStageBlocksMethod = DarksideStreamerGrpc.getStageBlocksMethod) == null) {
+ DarksideStreamerGrpc.getStageBlocksMethod = getStageBlocksMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StageBlocks"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new DarksideStreamerMethodDescriptorSupplier("StageBlocks"))
+ .build();
+ }
+ }
+ }
+ return getStageBlocksMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getStageBlocksCreateMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "StageBlocksCreate",
+ requestType = cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getStageBlocksCreateMethod() {
+ io.grpc.MethodDescriptor getStageBlocksCreateMethod;
+ if ((getStageBlocksCreateMethod = DarksideStreamerGrpc.getStageBlocksCreateMethod) == null) {
+ synchronized (DarksideStreamerGrpc.class) {
+ if ((getStageBlocksCreateMethod = DarksideStreamerGrpc.getStageBlocksCreateMethod) == null) {
+ DarksideStreamerGrpc.getStageBlocksCreateMethod = getStageBlocksCreateMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StageBlocksCreate"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new DarksideStreamerMethodDescriptorSupplier("StageBlocksCreate"))
+ .build();
+ }
+ }
+ }
+ return getStageBlocksCreateMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getStageTransactionsStreamMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "StageTransactionsStream",
+ requestType = cash.z.wallet.sdk.rpc.Service.RawTransaction.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
+ public static io.grpc.MethodDescriptor getStageTransactionsStreamMethod() {
+ io.grpc.MethodDescriptor getStageTransactionsStreamMethod;
+ if ((getStageTransactionsStreamMethod = DarksideStreamerGrpc.getStageTransactionsStreamMethod) == null) {
+ synchronized (DarksideStreamerGrpc.class) {
+ if ((getStageTransactionsStreamMethod = DarksideStreamerGrpc.getStageTransactionsStreamMethod) == null) {
+ DarksideStreamerGrpc.getStageTransactionsStreamMethod = getStageTransactionsStreamMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StageTransactionsStream"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.RawTransaction.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new DarksideStreamerMethodDescriptorSupplier("StageTransactionsStream"))
+ .build();
+ }
+ }
+ }
+ return getStageTransactionsStreamMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getStageTransactionsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "StageTransactions",
+ requestType = cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getStageTransactionsMethod() {
+ io.grpc.MethodDescriptor getStageTransactionsMethod;
+ if ((getStageTransactionsMethod = DarksideStreamerGrpc.getStageTransactionsMethod) == null) {
+ synchronized (DarksideStreamerGrpc.class) {
+ if ((getStageTransactionsMethod = DarksideStreamerGrpc.getStageTransactionsMethod) == null) {
+ DarksideStreamerGrpc.getStageTransactionsMethod = getStageTransactionsMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StageTransactions"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideTransactionsURL.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new DarksideStreamerMethodDescriptorSupplier("StageTransactions"))
+ .build();
+ }
+ }
+ }
+ return getStageTransactionsMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getApplyStagedMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ApplyStaged",
+ requestType = cash.z.wallet.sdk.rpc.Darkside.DarksideHeight.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getApplyStagedMethod() {
+ io.grpc.MethodDescriptor getApplyStagedMethod;
+ if ((getApplyStagedMethod = DarksideStreamerGrpc.getApplyStagedMethod) == null) {
+ synchronized (DarksideStreamerGrpc.class) {
+ if ((getApplyStagedMethod = DarksideStreamerGrpc.getApplyStagedMethod) == null) {
+ DarksideStreamerGrpc.getApplyStagedMethod = getApplyStagedMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplyStaged"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Darkside.DarksideHeight.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new DarksideStreamerMethodDescriptorSupplier("ApplyStaged"))
+ .build();
+ }
+ }
+ }
+ return getApplyStagedMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetIncomingTransactionsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetIncomingTransactions",
+ requestType = cash.z.wallet.sdk.rpc.Service.Empty.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.RawTransaction.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+ public static io.grpc.MethodDescriptor getGetIncomingTransactionsMethod() {
+ io.grpc.MethodDescriptor getGetIncomingTransactionsMethod;
+ if ((getGetIncomingTransactionsMethod = DarksideStreamerGrpc.getGetIncomingTransactionsMethod) == null) {
+ synchronized (DarksideStreamerGrpc.class) {
+ if ((getGetIncomingTransactionsMethod = DarksideStreamerGrpc.getGetIncomingTransactionsMethod) == null) {
+ DarksideStreamerGrpc.getGetIncomingTransactionsMethod = getGetIncomingTransactionsMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIncomingTransactions"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Empty.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.RawTransaction.getDefaultInstance()))
+ .setSchemaDescriptor(new DarksideStreamerMethodDescriptorSupplier("GetIncomingTransactions"))
+ .build();
+ }
+ }
+ }
+ return getGetIncomingTransactionsMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getClearIncomingTransactionsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ClearIncomingTransactions",
+ requestType = cash.z.wallet.sdk.rpc.Service.Empty.class,
+ responseType = cash.z.wallet.sdk.rpc.Service.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getClearIncomingTransactionsMethod() {
+ io.grpc.MethodDescriptor getClearIncomingTransactionsMethod;
+ if ((getClearIncomingTransactionsMethod = DarksideStreamerGrpc.getClearIncomingTransactionsMethod) == null) {
+ synchronized (DarksideStreamerGrpc.class) {
+ if ((getClearIncomingTransactionsMethod = DarksideStreamerGrpc.getClearIncomingTransactionsMethod) == null) {
+ DarksideStreamerGrpc.getClearIncomingTransactionsMethod = getClearIncomingTransactionsMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ClearIncomingTransactions"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Empty.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ cash.z.wallet.sdk.rpc.Service.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new DarksideStreamerMethodDescriptorSupplier("ClearIncomingTransactions"))
+ .build();
+ }
+ }
+ }
+ return getClearIncomingTransactionsMethod;
+ }
+
+ /**
+ * Creates a new async stub that supports all call types for the service
+ */
+ public static DarksideStreamerStub newStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public DarksideStreamerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new DarksideStreamerStub(channel, callOptions);
+ }
+ };
+ return DarksideStreamerStub.newStub(factory, channel);
+ }
+
+ /**
+ * Creates a new blocking-style stub that supports unary and streaming output calls on the service
+ */
+ public static DarksideStreamerBlockingStub newBlockingStub(
+ io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public DarksideStreamerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new DarksideStreamerBlockingStub(channel, callOptions);
+ }
+ };
+ return DarksideStreamerBlockingStub.newStub(factory, channel);
+ }
+
+ /**
+ * Creates a new ListenableFuture-style stub that supports unary calls on the service
+ */
+ public static DarksideStreamerFutureStub newFutureStub(
+ io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public DarksideStreamerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new DarksideStreamerFutureStub(channel, callOptions);
+ }
+ };
+ return DarksideStreamerFutureStub.newStub(factory, channel);
+ }
+
+ /**
+ *
+ * Darksidewalletd maintains two staging areas, blocks and transactions. The
+ * Stage*() gRPCs add items to the staging area; ApplyStaged() "applies" everything
+ * in the staging area to the working (operational) state that the mock zcashd
+ * serves; transactions are placed into their corresponding blocks (by height).
+ *
+ */
+ public static abstract class DarksideStreamerImplBase implements io.grpc.BindableService {
+
+ /**
+ *
+ * Reset reverts all darksidewalletd state (active block range, latest height,
+ * staged blocks and transactions) and lightwalletd state (cache) to empty,
+ * the same as the initial state. This occurs synchronously and instantaneously;
+ * no reorg happens in lightwalletd. This is good to do before each independent
+ * test so that no state leaks from one test to another.
+ * Also sets (some of) the values returned by GetLightdInfo(). The Sapling
+ * activation height specified here must be where the block range starts.
+ *
+ */
+ public void reset(cash.z.wallet.sdk.rpc.Darkside.DarksideMetaState request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResetMethod(), responseObserver);
+ }
+
+ /**
+ *
+ * StageBlocksStream accepts a list of blocks and saves them into the blocks
+ * staging area until ApplyStaged() is called; there is no immediate effect on
+ * the mock zcashd. Blocks are hex-encoded. Order is important, see ApplyStaged.
+ *
+ */
+ public io.grpc.stub.StreamObserver stageBlocksStream(
+ io.grpc.stub.StreamObserver responseObserver) {
+ return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStageBlocksStreamMethod(), responseObserver);
+ }
+
+ /**
+ *
+ * StageBlocks is the same as StageBlocksStream() except the blocks are fetched
+ * from the given URL. Blocks are one per line, hex-encoded (not JSON).
+ *
+ */
+ public void stageBlocks(cash.z.wallet.sdk.rpc.Darkside.DarksideBlocksURL request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStageBlocksMethod(), responseObserver);
+ }
+
+ /**
+ *
+ * StageBlocksCreate is like the previous two, except it creates 'count'
+ * empty blocks at consecutive heights starting at height 'height'. The
+ * 'nonce' is part of the header, so it contributes to the block hash; this
+ * lets you create identical blocks (same transactions and height), but with
+ * different hashes.
+ *
+ */
+ public void stageBlocksCreate(cash.z.wallet.sdk.rpc.Darkside.DarksideEmptyBlocks request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStageBlocksCreateMethod(), responseObserver);
+ }
+
+ /**
+ *
+ * StageTransactionsStream stores the given transaction-height pairs in the
+ * staging area until ApplyStaged() is called. Note that these transactions
+ * are not returned by the production GetTransaction() gRPC until they
+ * appear in a "mined" block (contained in the active blockchain presented
+ * by the mock zcashd).
+ *
+ */
+ public io.grpc.stub.StreamObserver stageTransactionsStream(
+ io.grpc.stub.StreamObserver