All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: ledger/rwset/rwset.proto
// Protobuf Java Version: 4.28.2

package org.hyperledger.fabric.protos.ledger.rwset;

/**
 * 
 * TxPvtReadWriteSet encapsulate the private read-write set for a transaction
 * 
* * Protobuf type {@code rwset.TxPvtReadWriteSet} */ public final class TxPvtReadWriteSet extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:rwset.TxPvtReadWriteSet) TxPvtReadWriteSetOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 2, /* suffix= */ "", TxPvtReadWriteSet.class.getName()); } // Use TxPvtReadWriteSet.newBuilder() to construct. private TxPvtReadWriteSet(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TxPvtReadWriteSet() { dataModel_ = 0; nsPvtRwset_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_TxPvtReadWriteSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_TxPvtReadWriteSet_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet.class, org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet.Builder.class); } public static final int DATA_MODEL_FIELD_NUMBER = 1; private int dataModel_ = 0; /** * .rwset.TxReadWriteSet.DataModel data_model = 1 [json_name = "dataModel"]; * @return The enum numeric value on the wire for dataModel. */ @java.lang.Override public int getDataModelValue() { return dataModel_; } /** * .rwset.TxReadWriteSet.DataModel data_model = 1 [json_name = "dataModel"]; * @return The dataModel. */ @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel getDataModel() { org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel result = org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel.forNumber(dataModel_); return result == null ? org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel.UNRECOGNIZED : result; } public static final int NS_PVT_RWSET_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List nsPvtRwset_; /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ @java.lang.Override public java.util.List getNsPvtRwsetList() { return nsPvtRwset_; } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ @java.lang.Override public java.util.List getNsPvtRwsetOrBuilderList() { return nsPvtRwset_; } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ @java.lang.Override public int getNsPvtRwsetCount() { return nsPvtRwset_.size(); } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet getNsPvtRwset(int index) { return nsPvtRwset_.get(index); } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSetOrBuilder getNsPvtRwsetOrBuilder( int index) { return nsPvtRwset_.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 (dataModel_ != org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel.KV.getNumber()) { output.writeEnum(1, dataModel_); } for (int i = 0; i < nsPvtRwset_.size(); i++) { output.writeMessage(2, nsPvtRwset_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (dataModel_ != org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel.KV.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, dataModel_); } for (int i = 0; i < nsPvtRwset_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, nsPvtRwset_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet)) { return super.equals(obj); } org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet other = (org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet) obj; if (dataModel_ != other.dataModel_) return false; if (!getNsPvtRwsetList() .equals(other.getNsPvtRwsetList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DATA_MODEL_FIELD_NUMBER; hash = (53 * hash) + dataModel_; if (getNsPvtRwsetCount() > 0) { hash = (37 * hash) + NS_PVT_RWSET_FIELD_NUMBER; hash = (53 * hash) + getNsPvtRwsetList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet 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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * TxPvtReadWriteSet encapsulate the private read-write set for a transaction
   * 
* * Protobuf type {@code rwset.TxPvtReadWriteSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:rwset.TxPvtReadWriteSet) org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_TxPvtReadWriteSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_TxPvtReadWriteSet_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet.class, org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet.Builder.class); } // Construct using org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; dataModel_ = 0; if (nsPvtRwsetBuilder_ == null) { nsPvtRwset_ = java.util.Collections.emptyList(); } else { nsPvtRwset_ = null; nsPvtRwsetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_TxPvtReadWriteSet_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet getDefaultInstanceForType() { return org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet build() { org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet buildPartial() { org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet result = new org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet result) { if (nsPvtRwsetBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { nsPvtRwset_ = java.util.Collections.unmodifiableList(nsPvtRwset_); bitField0_ = (bitField0_ & ~0x00000002); } result.nsPvtRwset_ = nsPvtRwset_; } else { result.nsPvtRwset_ = nsPvtRwsetBuilder_.build(); } } private void buildPartial0(org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.dataModel_ = dataModel_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet) { return mergeFrom((org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet other) { if (other == org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet.getDefaultInstance()) return this; if (other.dataModel_ != 0) { setDataModelValue(other.getDataModelValue()); } if (nsPvtRwsetBuilder_ == null) { if (!other.nsPvtRwset_.isEmpty()) { if (nsPvtRwset_.isEmpty()) { nsPvtRwset_ = other.nsPvtRwset_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureNsPvtRwsetIsMutable(); nsPvtRwset_.addAll(other.nsPvtRwset_); } onChanged(); } } else { if (!other.nsPvtRwset_.isEmpty()) { if (nsPvtRwsetBuilder_.isEmpty()) { nsPvtRwsetBuilder_.dispose(); nsPvtRwsetBuilder_ = null; nsPvtRwset_ = other.nsPvtRwset_; bitField0_ = (bitField0_ & ~0x00000002); nsPvtRwsetBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getNsPvtRwsetFieldBuilder() : null; } else { nsPvtRwsetBuilder_.addAllMessages(other.nsPvtRwset_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { dataModel_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet m = input.readMessage( org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.parser(), extensionRegistry); if (nsPvtRwsetBuilder_ == null) { ensureNsPvtRwsetIsMutable(); nsPvtRwset_.add(m); } else { nsPvtRwsetBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int dataModel_ = 0; /** * .rwset.TxReadWriteSet.DataModel data_model = 1 [json_name = "dataModel"]; * @return The enum numeric value on the wire for dataModel. */ @java.lang.Override public int getDataModelValue() { return dataModel_; } /** * .rwset.TxReadWriteSet.DataModel data_model = 1 [json_name = "dataModel"]; * @param value The enum numeric value on the wire for dataModel to set. * @return This builder for chaining. */ public Builder setDataModelValue(int value) { dataModel_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .rwset.TxReadWriteSet.DataModel data_model = 1 [json_name = "dataModel"]; * @return The dataModel. */ @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel getDataModel() { org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel result = org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel.forNumber(dataModel_); return result == null ? org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel.UNRECOGNIZED : result; } /** * .rwset.TxReadWriteSet.DataModel data_model = 1 [json_name = "dataModel"]; * @param value The dataModel to set. * @return This builder for chaining. */ public Builder setDataModel(org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; dataModel_ = value.getNumber(); onChanged(); return this; } /** * .rwset.TxReadWriteSet.DataModel data_model = 1 [json_name = "dataModel"]; * @return This builder for chaining. */ public Builder clearDataModel() { bitField0_ = (bitField0_ & ~0x00000001); dataModel_ = 0; onChanged(); return this; } private java.util.List nsPvtRwset_ = java.util.Collections.emptyList(); private void ensureNsPvtRwsetIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { nsPvtRwset_ = new java.util.ArrayList(nsPvtRwset_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet, org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.Builder, org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSetOrBuilder> nsPvtRwsetBuilder_; /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public java.util.List getNsPvtRwsetList() { if (nsPvtRwsetBuilder_ == null) { return java.util.Collections.unmodifiableList(nsPvtRwset_); } else { return nsPvtRwsetBuilder_.getMessageList(); } } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public int getNsPvtRwsetCount() { if (nsPvtRwsetBuilder_ == null) { return nsPvtRwset_.size(); } else { return nsPvtRwsetBuilder_.getCount(); } } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet getNsPvtRwset(int index) { if (nsPvtRwsetBuilder_ == null) { return nsPvtRwset_.get(index); } else { return nsPvtRwsetBuilder_.getMessage(index); } } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public Builder setNsPvtRwset( int index, org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet value) { if (nsPvtRwsetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNsPvtRwsetIsMutable(); nsPvtRwset_.set(index, value); onChanged(); } else { nsPvtRwsetBuilder_.setMessage(index, value); } return this; } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public Builder setNsPvtRwset( int index, org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.Builder builderForValue) { if (nsPvtRwsetBuilder_ == null) { ensureNsPvtRwsetIsMutable(); nsPvtRwset_.set(index, builderForValue.build()); onChanged(); } else { nsPvtRwsetBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public Builder addNsPvtRwset(org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet value) { if (nsPvtRwsetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNsPvtRwsetIsMutable(); nsPvtRwset_.add(value); onChanged(); } else { nsPvtRwsetBuilder_.addMessage(value); } return this; } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public Builder addNsPvtRwset( int index, org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet value) { if (nsPvtRwsetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNsPvtRwsetIsMutable(); nsPvtRwset_.add(index, value); onChanged(); } else { nsPvtRwsetBuilder_.addMessage(index, value); } return this; } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public Builder addNsPvtRwset( org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.Builder builderForValue) { if (nsPvtRwsetBuilder_ == null) { ensureNsPvtRwsetIsMutable(); nsPvtRwset_.add(builderForValue.build()); onChanged(); } else { nsPvtRwsetBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public Builder addNsPvtRwset( int index, org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.Builder builderForValue) { if (nsPvtRwsetBuilder_ == null) { ensureNsPvtRwsetIsMutable(); nsPvtRwset_.add(index, builderForValue.build()); onChanged(); } else { nsPvtRwsetBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public Builder addAllNsPvtRwset( java.lang.Iterable values) { if (nsPvtRwsetBuilder_ == null) { ensureNsPvtRwsetIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nsPvtRwset_); onChanged(); } else { nsPvtRwsetBuilder_.addAllMessages(values); } return this; } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public Builder clearNsPvtRwset() { if (nsPvtRwsetBuilder_ == null) { nsPvtRwset_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { nsPvtRwsetBuilder_.clear(); } return this; } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public Builder removeNsPvtRwset(int index) { if (nsPvtRwsetBuilder_ == null) { ensureNsPvtRwsetIsMutable(); nsPvtRwset_.remove(index); onChanged(); } else { nsPvtRwsetBuilder_.remove(index); } return this; } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.Builder getNsPvtRwsetBuilder( int index) { return getNsPvtRwsetFieldBuilder().getBuilder(index); } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSetOrBuilder getNsPvtRwsetOrBuilder( int index) { if (nsPvtRwsetBuilder_ == null) { return nsPvtRwset_.get(index); } else { return nsPvtRwsetBuilder_.getMessageOrBuilder(index); } } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public java.util.List getNsPvtRwsetOrBuilderList() { if (nsPvtRwsetBuilder_ != null) { return nsPvtRwsetBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nsPvtRwset_); } } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.Builder addNsPvtRwsetBuilder() { return getNsPvtRwsetFieldBuilder().addBuilder( org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.getDefaultInstance()); } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.Builder addNsPvtRwsetBuilder( int index) { return getNsPvtRwsetFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.getDefaultInstance()); } /** * repeated .rwset.NsPvtReadWriteSet ns_pvt_rwset = 2 [json_name = "nsPvtRwset"]; */ public java.util.List getNsPvtRwsetBuilderList() { return getNsPvtRwsetFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet, org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.Builder, org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSetOrBuilder> getNsPvtRwsetFieldBuilder() { if (nsPvtRwsetBuilder_ == null) { nsPvtRwsetBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet, org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.Builder, org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSetOrBuilder>( nsPvtRwset_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); nsPvtRwset_ = null; } return nsPvtRwsetBuilder_; } // @@protoc_insertion_point(builder_scope:rwset.TxPvtReadWriteSet) } // @@protoc_insertion_point(class_scope:rwset.TxPvtReadWriteSet) private static final org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet(); } public static org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TxPvtReadWriteSet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.TxPvtReadWriteSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy