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

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

There is a newer version: 0.3.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ledger/rwset/rwset.proto

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

/**
 * 
 * TxReadWriteSet encapsulates a read-write set for a transaction
 * DataModel specifies the enum value of the data model
 * ns_rwset field specifies a list of chaincode specific read-write set (one for each chaincode)
 * 
* * Protobuf type {@code rwset.TxReadWriteSet} */ public final class TxReadWriteSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:rwset.TxReadWriteSet) TxReadWriteSetOrBuilder { private static final long serialVersionUID = 0L; // Use TxReadWriteSet.newBuilder() to construct. private TxReadWriteSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TxReadWriteSet() { dataModel_ = 0; nsRwset_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TxReadWriteSet(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TxReadWriteSet( 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: { int rawValue = input.readEnum(); dataModel_ = rawValue; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { nsRwset_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } nsRwset_.add( input.readMessage(org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { nsRwset_ = java.util.Collections.unmodifiableList(nsRwset_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_TxReadWriteSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_TxReadWriteSet_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.class, org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.Builder.class); } /** * Protobuf enum {@code rwset.TxReadWriteSet.DataModel} */ public enum DataModel implements com.google.protobuf.ProtocolMessageEnum { /** * KV = 0; */ KV(0), UNRECOGNIZED(-1), ; /** * KV = 0; */ public static final int KV_VALUE = 0; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DataModel valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static DataModel forNumber(int value) { switch (value) { case 0: return KV; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< DataModel> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DataModel findValueByNumber(int number) { return DataModel.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.getDescriptor().getEnumTypes().get(0); } private static final DataModel[] VALUES = values(); public static DataModel valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private DataModel(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:rwset.TxReadWriteSet.DataModel) } public static final int DATA_MODEL_FIELD_NUMBER = 1; private int dataModel_; /** * .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() { @SuppressWarnings("deprecation") org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel result = org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel.valueOf(dataModel_); return result == null ? org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel.UNRECOGNIZED : result; } public static final int NS_RWSET_FIELD_NUMBER = 2; private java.util.List nsRwset_; /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ @java.lang.Override public java.util.List getNsRwsetList() { return nsRwset_; } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ @java.lang.Override public java.util.List getNsRwsetOrBuilderList() { return nsRwset_; } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ @java.lang.Override public int getNsRwsetCount() { return nsRwset_.size(); } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet getNsRwset(int index) { return nsRwset_.get(index); } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSetOrBuilder getNsRwsetOrBuilder( int index) { return nsRwset_.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 < nsRwset_.size(); i++) { output.writeMessage(2, nsRwset_.get(i)); } unknownFields.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 < nsRwset_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, nsRwset_.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 org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet)) { return super.equals(obj); } org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet other = (org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet) obj; if (dataModel_ != other.dataModel_) return false; if (!getNsRwsetList() .equals(other.getNsRwsetList())) 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) + DATA_MODEL_FIELD_NUMBER; hash = (53 * hash) + dataModel_; if (getNsRwsetCount() > 0) { hash = (37 * hash) + NS_RWSET_FIELD_NUMBER; hash = (53 * hash) + getNsRwsetList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet 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.TxReadWriteSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet 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.TxReadWriteSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet 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.TxReadWriteSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet 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 org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet 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 org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet 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(org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet 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; } /** *
   * TxReadWriteSet encapsulates a read-write set for a transaction
   * DataModel specifies the enum value of the data model
   * ns_rwset field specifies a list of chaincode specific read-write set (one for each chaincode)
   * 
* * Protobuf type {@code rwset.TxReadWriteSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:rwset.TxReadWriteSet) org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_TxReadWriteSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_TxReadWriteSet_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.class, org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.Builder.class); } // Construct using org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNsRwsetFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); dataModel_ = 0; if (nsRwsetBuilder_ == null) { nsRwset_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { nsRwsetBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_TxReadWriteSet_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet getDefaultInstanceForType() { return org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet build() { org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet buildPartial() { org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet result = new org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet(this); int from_bitField0_ = bitField0_; result.dataModel_ = dataModel_; if (nsRwsetBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { nsRwset_ = java.util.Collections.unmodifiableList(nsRwset_); bitField0_ = (bitField0_ & ~0x00000001); } result.nsRwset_ = nsRwset_; } else { result.nsRwset_ = nsRwsetBuilder_.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 org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet) { return mergeFrom((org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet other) { if (other == org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.getDefaultInstance()) return this; if (other.dataModel_ != 0) { setDataModelValue(other.getDataModelValue()); } if (nsRwsetBuilder_ == null) { if (!other.nsRwset_.isEmpty()) { if (nsRwset_.isEmpty()) { nsRwset_ = other.nsRwset_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNsRwsetIsMutable(); nsRwset_.addAll(other.nsRwset_); } onChanged(); } } else { if (!other.nsRwset_.isEmpty()) { if (nsRwsetBuilder_.isEmpty()) { nsRwsetBuilder_.dispose(); nsRwsetBuilder_ = null; nsRwset_ = other.nsRwset_; bitField0_ = (bitField0_ & ~0x00000001); nsRwsetBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNsRwsetFieldBuilder() : null; } else { nsRwsetBuilder_.addAllMessages(other.nsRwset_); } } } 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 { org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; 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() { @SuppressWarnings("deprecation") org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel result = org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet.DataModel.valueOf(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(); } dataModel_ = value.getNumber(); onChanged(); return this; } /** * .rwset.TxReadWriteSet.DataModel data_model = 1 [json_name = "dataModel"]; * @return This builder for chaining. */ public Builder clearDataModel() { dataModel_ = 0; onChanged(); return this; } private java.util.List nsRwset_ = java.util.Collections.emptyList(); private void ensureNsRwsetIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nsRwset_ = new java.util.ArrayList(nsRwset_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet, org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.Builder, org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSetOrBuilder> nsRwsetBuilder_; /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public java.util.List getNsRwsetList() { if (nsRwsetBuilder_ == null) { return java.util.Collections.unmodifiableList(nsRwset_); } else { return nsRwsetBuilder_.getMessageList(); } } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public int getNsRwsetCount() { if (nsRwsetBuilder_ == null) { return nsRwset_.size(); } else { return nsRwsetBuilder_.getCount(); } } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet getNsRwset(int index) { if (nsRwsetBuilder_ == null) { return nsRwset_.get(index); } else { return nsRwsetBuilder_.getMessage(index); } } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public Builder setNsRwset( int index, org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet value) { if (nsRwsetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNsRwsetIsMutable(); nsRwset_.set(index, value); onChanged(); } else { nsRwsetBuilder_.setMessage(index, value); } return this; } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public Builder setNsRwset( int index, org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.Builder builderForValue) { if (nsRwsetBuilder_ == null) { ensureNsRwsetIsMutable(); nsRwset_.set(index, builderForValue.build()); onChanged(); } else { nsRwsetBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public Builder addNsRwset(org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet value) { if (nsRwsetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNsRwsetIsMutable(); nsRwset_.add(value); onChanged(); } else { nsRwsetBuilder_.addMessage(value); } return this; } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public Builder addNsRwset( int index, org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet value) { if (nsRwsetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNsRwsetIsMutable(); nsRwset_.add(index, value); onChanged(); } else { nsRwsetBuilder_.addMessage(index, value); } return this; } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public Builder addNsRwset( org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.Builder builderForValue) { if (nsRwsetBuilder_ == null) { ensureNsRwsetIsMutable(); nsRwset_.add(builderForValue.build()); onChanged(); } else { nsRwsetBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public Builder addNsRwset( int index, org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.Builder builderForValue) { if (nsRwsetBuilder_ == null) { ensureNsRwsetIsMutable(); nsRwset_.add(index, builderForValue.build()); onChanged(); } else { nsRwsetBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public Builder addAllNsRwset( java.lang.Iterable values) { if (nsRwsetBuilder_ == null) { ensureNsRwsetIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nsRwset_); onChanged(); } else { nsRwsetBuilder_.addAllMessages(values); } return this; } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public Builder clearNsRwset() { if (nsRwsetBuilder_ == null) { nsRwset_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { nsRwsetBuilder_.clear(); } return this; } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public Builder removeNsRwset(int index) { if (nsRwsetBuilder_ == null) { ensureNsRwsetIsMutable(); nsRwset_.remove(index); onChanged(); } else { nsRwsetBuilder_.remove(index); } return this; } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.Builder getNsRwsetBuilder( int index) { return getNsRwsetFieldBuilder().getBuilder(index); } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSetOrBuilder getNsRwsetOrBuilder( int index) { if (nsRwsetBuilder_ == null) { return nsRwset_.get(index); } else { return nsRwsetBuilder_.getMessageOrBuilder(index); } } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public java.util.List getNsRwsetOrBuilderList() { if (nsRwsetBuilder_ != null) { return nsRwsetBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nsRwset_); } } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.Builder addNsRwsetBuilder() { return getNsRwsetFieldBuilder().addBuilder( org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.getDefaultInstance()); } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.Builder addNsRwsetBuilder( int index) { return getNsRwsetFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.getDefaultInstance()); } /** * repeated .rwset.NsReadWriteSet ns_rwset = 2 [json_name = "nsRwset"]; */ public java.util.List getNsRwsetBuilderList() { return getNsRwsetFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet, org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.Builder, org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSetOrBuilder> getNsRwsetFieldBuilder() { if (nsRwsetBuilder_ == null) { nsRwsetBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet, org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.Builder, org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSetOrBuilder>( nsRwset_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nsRwset_ = null; } return nsRwsetBuilder_; } @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:rwset.TxReadWriteSet) } // @@protoc_insertion_point(class_scope:rwset.TxReadWriteSet) private static final org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet(); } public static org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TxReadWriteSet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TxReadWriteSet(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 org.hyperledger.fabric.protos.ledger.rwset.TxReadWriteSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy