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

org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet 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;

/**
 * 
 * NsReadWriteSet encapsulates the read-write set for a chaincode
 * 
* * Protobuf type {@code rwset.NsReadWriteSet} */ public final class NsReadWriteSet extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:rwset.NsReadWriteSet) NsReadWriteSetOrBuilder { 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= */ "", NsReadWriteSet.class.getName()); } // Use NsReadWriteSet.newBuilder() to construct. private NsReadWriteSet(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private NsReadWriteSet() { namespace_ = ""; rwset_ = com.google.protobuf.ByteString.EMPTY; collectionHashedRwset_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_NsReadWriteSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_NsReadWriteSet_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.class, org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.Builder.class); } public static final int NAMESPACE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; /** * string namespace = 1 [json_name = "namespace"]; * @return The namespace. */ @java.lang.Override public java.lang.String getNamespace() { java.lang.Object ref = namespace_; 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(); namespace_ = s; return s; } } /** * string namespace = 1 [json_name = "namespace"]; * @return The bytes for namespace. */ @java.lang.Override public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RWSET_FIELD_NUMBER = 2; private com.google.protobuf.ByteString rwset_ = com.google.protobuf.ByteString.EMPTY; /** *
   * Data model specific serialized proto message (e.g., kvrwset.KVRWSet for KV and Document data models)
   * 
* * bytes rwset = 2 [json_name = "rwset"]; * @return The rwset. */ @java.lang.Override public com.google.protobuf.ByteString getRwset() { return rwset_; } public static final int COLLECTION_HASHED_RWSET_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List collectionHashedRwset_; /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ @java.lang.Override public java.util.List getCollectionHashedRwsetList() { return collectionHashedRwset_; } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ @java.lang.Override public java.util.List getCollectionHashedRwsetOrBuilderList() { return collectionHashedRwset_; } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ @java.lang.Override public int getCollectionHashedRwsetCount() { return collectionHashedRwset_.size(); } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet getCollectionHashedRwset(int index) { return collectionHashedRwset_.get(index); } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSetOrBuilder getCollectionHashedRwsetOrBuilder( int index) { return collectionHashedRwset_.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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, namespace_); } if (!rwset_.isEmpty()) { output.writeBytes(2, rwset_); } for (int i = 0; i < collectionHashedRwset_.size(); i++) { output.writeMessage(3, collectionHashedRwset_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(namespace_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, namespace_); } if (!rwset_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, rwset_); } for (int i = 0; i < collectionHashedRwset_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, collectionHashedRwset_.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.NsReadWriteSet)) { return super.equals(obj); } org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet other = (org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet) obj; if (!getNamespace() .equals(other.getNamespace())) return false; if (!getRwset() .equals(other.getRwset())) return false; if (!getCollectionHashedRwsetList() .equals(other.getCollectionHashedRwsetList())) 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) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (37 * hash) + RWSET_FIELD_NUMBER; hash = (53 * hash) + getRwset().hashCode(); if (getCollectionHashedRwsetCount() > 0) { hash = (37 * hash) + COLLECTION_HASHED_RWSET_FIELD_NUMBER; hash = (53 * hash) + getCollectionHashedRwsetList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet 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.NsReadWriteSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet 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.NsReadWriteSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet 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.NsReadWriteSet 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.NsReadWriteSet 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.NsReadWriteSet 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.NsReadWriteSet 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.NsReadWriteSet 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.NsReadWriteSet 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.NsReadWriteSet 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; } /** *
   * NsReadWriteSet encapsulates the read-write set for a chaincode
   * 
* * Protobuf type {@code rwset.NsReadWriteSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:rwset.NsReadWriteSet) org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_NsReadWriteSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_NsReadWriteSet_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.class, org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.Builder.class); } // Construct using org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; namespace_ = ""; rwset_ = com.google.protobuf.ByteString.EMPTY; if (collectionHashedRwsetBuilder_ == null) { collectionHashedRwset_ = java.util.Collections.emptyList(); } else { collectionHashedRwset_ = null; collectionHashedRwsetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_NsReadWriteSet_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet getDefaultInstanceForType() { return org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet build() { org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet buildPartial() { org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet result = new org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet result) { if (collectionHashedRwsetBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { collectionHashedRwset_ = java.util.Collections.unmodifiableList(collectionHashedRwset_); bitField0_ = (bitField0_ & ~0x00000004); } result.collectionHashedRwset_ = collectionHashedRwset_; } else { result.collectionHashedRwset_ = collectionHashedRwsetBuilder_.build(); } } private void buildPartial0(org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.namespace_ = namespace_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.rwset_ = rwset_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet) { return mergeFrom((org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet other) { if (other == org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet.getDefaultInstance()) return this; if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; bitField0_ |= 0x00000001; onChanged(); } if (other.getRwset() != com.google.protobuf.ByteString.EMPTY) { setRwset(other.getRwset()); } if (collectionHashedRwsetBuilder_ == null) { if (!other.collectionHashedRwset_.isEmpty()) { if (collectionHashedRwset_.isEmpty()) { collectionHashedRwset_ = other.collectionHashedRwset_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCollectionHashedRwsetIsMutable(); collectionHashedRwset_.addAll(other.collectionHashedRwset_); } onChanged(); } } else { if (!other.collectionHashedRwset_.isEmpty()) { if (collectionHashedRwsetBuilder_.isEmpty()) { collectionHashedRwsetBuilder_.dispose(); collectionHashedRwsetBuilder_ = null; collectionHashedRwset_ = other.collectionHashedRwset_; bitField0_ = (bitField0_ & ~0x00000004); collectionHashedRwsetBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getCollectionHashedRwsetFieldBuilder() : null; } else { collectionHashedRwsetBuilder_.addAllMessages(other.collectionHashedRwset_); } } } 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 10: { namespace_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { rwset_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet m = input.readMessage( org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet.parser(), extensionRegistry); if (collectionHashedRwsetBuilder_ == null) { ensureCollectionHashedRwsetIsMutable(); collectionHashedRwset_.add(m); } else { collectionHashedRwsetBuilder_.addMessage(m); } break; } // case 26 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 java.lang.Object namespace_ = ""; /** * string namespace = 1 [json_name = "namespace"]; * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** * string namespace = 1 [json_name = "namespace"]; * @return The bytes for namespace. */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string namespace = 1 [json_name = "namespace"]; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string namespace = 1 [json_name = "namespace"]; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string namespace = 1 [json_name = "namespace"]; * @param value The bytes for namespace to set. * @return This builder for chaining. */ public Builder setNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namespace_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.ByteString rwset_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Data model specific serialized proto message (e.g., kvrwset.KVRWSet for KV and Document data models)
     * 
* * bytes rwset = 2 [json_name = "rwset"]; * @return The rwset. */ @java.lang.Override public com.google.protobuf.ByteString getRwset() { return rwset_; } /** *
     * Data model specific serialized proto message (e.g., kvrwset.KVRWSet for KV and Document data models)
     * 
* * bytes rwset = 2 [json_name = "rwset"]; * @param value The rwset to set. * @return This builder for chaining. */ public Builder setRwset(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } rwset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Data model specific serialized proto message (e.g., kvrwset.KVRWSet for KV and Document data models)
     * 
* * bytes rwset = 2 [json_name = "rwset"]; * @return This builder for chaining. */ public Builder clearRwset() { bitField0_ = (bitField0_ & ~0x00000002); rwset_ = getDefaultInstance().getRwset(); onChanged(); return this; } private java.util.List collectionHashedRwset_ = java.util.Collections.emptyList(); private void ensureCollectionHashedRwsetIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { collectionHashedRwset_ = new java.util.ArrayList(collectionHashedRwset_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet, org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet.Builder, org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSetOrBuilder> collectionHashedRwsetBuilder_; /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public java.util.List getCollectionHashedRwsetList() { if (collectionHashedRwsetBuilder_ == null) { return java.util.Collections.unmodifiableList(collectionHashedRwset_); } else { return collectionHashedRwsetBuilder_.getMessageList(); } } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public int getCollectionHashedRwsetCount() { if (collectionHashedRwsetBuilder_ == null) { return collectionHashedRwset_.size(); } else { return collectionHashedRwsetBuilder_.getCount(); } } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet getCollectionHashedRwset(int index) { if (collectionHashedRwsetBuilder_ == null) { return collectionHashedRwset_.get(index); } else { return collectionHashedRwsetBuilder_.getMessage(index); } } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public Builder setCollectionHashedRwset( int index, org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet value) { if (collectionHashedRwsetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCollectionHashedRwsetIsMutable(); collectionHashedRwset_.set(index, value); onChanged(); } else { collectionHashedRwsetBuilder_.setMessage(index, value); } return this; } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public Builder setCollectionHashedRwset( int index, org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet.Builder builderForValue) { if (collectionHashedRwsetBuilder_ == null) { ensureCollectionHashedRwsetIsMutable(); collectionHashedRwset_.set(index, builderForValue.build()); onChanged(); } else { collectionHashedRwsetBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public Builder addCollectionHashedRwset(org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet value) { if (collectionHashedRwsetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCollectionHashedRwsetIsMutable(); collectionHashedRwset_.add(value); onChanged(); } else { collectionHashedRwsetBuilder_.addMessage(value); } return this; } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public Builder addCollectionHashedRwset( int index, org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet value) { if (collectionHashedRwsetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCollectionHashedRwsetIsMutable(); collectionHashedRwset_.add(index, value); onChanged(); } else { collectionHashedRwsetBuilder_.addMessage(index, value); } return this; } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public Builder addCollectionHashedRwset( org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet.Builder builderForValue) { if (collectionHashedRwsetBuilder_ == null) { ensureCollectionHashedRwsetIsMutable(); collectionHashedRwset_.add(builderForValue.build()); onChanged(); } else { collectionHashedRwsetBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public Builder addCollectionHashedRwset( int index, org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet.Builder builderForValue) { if (collectionHashedRwsetBuilder_ == null) { ensureCollectionHashedRwsetIsMutable(); collectionHashedRwset_.add(index, builderForValue.build()); onChanged(); } else { collectionHashedRwsetBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public Builder addAllCollectionHashedRwset( java.lang.Iterable values) { if (collectionHashedRwsetBuilder_ == null) { ensureCollectionHashedRwsetIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, collectionHashedRwset_); onChanged(); } else { collectionHashedRwsetBuilder_.addAllMessages(values); } return this; } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public Builder clearCollectionHashedRwset() { if (collectionHashedRwsetBuilder_ == null) { collectionHashedRwset_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { collectionHashedRwsetBuilder_.clear(); } return this; } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public Builder removeCollectionHashedRwset(int index) { if (collectionHashedRwsetBuilder_ == null) { ensureCollectionHashedRwsetIsMutable(); collectionHashedRwset_.remove(index); onChanged(); } else { collectionHashedRwsetBuilder_.remove(index); } return this; } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet.Builder getCollectionHashedRwsetBuilder( int index) { return getCollectionHashedRwsetFieldBuilder().getBuilder(index); } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSetOrBuilder getCollectionHashedRwsetOrBuilder( int index) { if (collectionHashedRwsetBuilder_ == null) { return collectionHashedRwset_.get(index); } else { return collectionHashedRwsetBuilder_.getMessageOrBuilder(index); } } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public java.util.List getCollectionHashedRwsetOrBuilderList() { if (collectionHashedRwsetBuilder_ != null) { return collectionHashedRwsetBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(collectionHashedRwset_); } } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet.Builder addCollectionHashedRwsetBuilder() { return getCollectionHashedRwsetFieldBuilder().addBuilder( org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet.getDefaultInstance()); } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet.Builder addCollectionHashedRwsetBuilder( int index) { return getCollectionHashedRwsetFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet.getDefaultInstance()); } /** * repeated .rwset.CollectionHashedReadWriteSet collection_hashed_rwset = 3 [json_name = "collectionHashedRwset"]; */ public java.util.List getCollectionHashedRwsetBuilderList() { return getCollectionHashedRwsetFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet, org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet.Builder, org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSetOrBuilder> getCollectionHashedRwsetFieldBuilder() { if (collectionHashedRwsetBuilder_ == null) { collectionHashedRwsetBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet, org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSet.Builder, org.hyperledger.fabric.protos.ledger.rwset.CollectionHashedReadWriteSetOrBuilder>( collectionHashedRwset_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); collectionHashedRwset_ = null; } return collectionHashedRwsetBuilder_; } // @@protoc_insertion_point(builder_scope:rwset.NsReadWriteSet) } // @@protoc_insertion_point(class_scope:rwset.NsReadWriteSet) private static final org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet(); } public static org.hyperledger.fabric.protos.ledger.rwset.NsReadWriteSet getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NsReadWriteSet 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.NsReadWriteSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy