org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet 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;
/**
*
* NsPvtReadWriteSet encapsulates the private read-write set for a chaincode
*
*
* Protobuf type {@code rwset.NsPvtReadWriteSet}
*/
public final class NsPvtReadWriteSet extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:rwset.NsPvtReadWriteSet)
NsPvtReadWriteSetOrBuilder {
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= */ "",
NsPvtReadWriteSet.class.getName());
}
// Use NsPvtReadWriteSet.newBuilder() to construct.
private NsPvtReadWriteSet(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private NsPvtReadWriteSet() {
namespace_ = "";
collectionPvtRwset_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_NsPvtReadWriteSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_NsPvtReadWriteSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.class, org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.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 COLLECTION_PVT_RWSET_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List collectionPvtRwset_;
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
@java.lang.Override
public java.util.List getCollectionPvtRwsetList() {
return collectionPvtRwset_;
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
@java.lang.Override
public java.util.List extends org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSetOrBuilder>
getCollectionPvtRwsetOrBuilderList() {
return collectionPvtRwset_;
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
@java.lang.Override
public int getCollectionPvtRwsetCount() {
return collectionPvtRwset_.size();
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet getCollectionPvtRwset(int index) {
return collectionPvtRwset_.get(index);
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSetOrBuilder getCollectionPvtRwsetOrBuilder(
int index) {
return collectionPvtRwset_.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_);
}
for (int i = 0; i < collectionPvtRwset_.size(); i++) {
output.writeMessage(2, collectionPvtRwset_.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_);
}
for (int i = 0; i < collectionPvtRwset_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, collectionPvtRwset_.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.NsPvtReadWriteSet)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet other = (org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet) obj;
if (!getNamespace()
.equals(other.getNamespace())) return false;
if (!getCollectionPvtRwsetList()
.equals(other.getCollectionPvtRwsetList())) 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();
if (getCollectionPvtRwsetCount() > 0) {
hash = (37 * hash) + COLLECTION_PVT_RWSET_FIELD_NUMBER;
hash = (53 * hash) + getCollectionPvtRwsetList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet 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.NsPvtReadWriteSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet 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.NsPvtReadWriteSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet 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.NsPvtReadWriteSet 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.NsPvtReadWriteSet 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.NsPvtReadWriteSet 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.NsPvtReadWriteSet 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.NsPvtReadWriteSet 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.NsPvtReadWriteSet 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.NsPvtReadWriteSet 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;
}
/**
*
* NsPvtReadWriteSet encapsulates the private read-write set for a chaincode
*
*
* Protobuf type {@code rwset.NsPvtReadWriteSet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:rwset.NsPvtReadWriteSet)
org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_NsPvtReadWriteSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.ledger.rwset.RWSetProto.internal_static_rwset_NsPvtReadWriteSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.class, org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
namespace_ = "";
if (collectionPvtRwsetBuilder_ == null) {
collectionPvtRwset_ = java.util.Collections.emptyList();
} else {
collectionPvtRwset_ = null;
collectionPvtRwsetBuilder_.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_NsPvtReadWriteSet_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet build() {
org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet buildPartial() {
org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet result = new org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet result) {
if (collectionPvtRwsetBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
collectionPvtRwset_ = java.util.Collections.unmodifiableList(collectionPvtRwset_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.collectionPvtRwset_ = collectionPvtRwset_;
} else {
result.collectionPvtRwset_ = collectionPvtRwsetBuilder_.build();
}
}
private void buildPartial0(org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.namespace_ = namespace_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet) {
return mergeFrom((org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet other) {
if (other == org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet.getDefaultInstance()) return this;
if (!other.getNamespace().isEmpty()) {
namespace_ = other.namespace_;
bitField0_ |= 0x00000001;
onChanged();
}
if (collectionPvtRwsetBuilder_ == null) {
if (!other.collectionPvtRwset_.isEmpty()) {
if (collectionPvtRwset_.isEmpty()) {
collectionPvtRwset_ = other.collectionPvtRwset_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCollectionPvtRwsetIsMutable();
collectionPvtRwset_.addAll(other.collectionPvtRwset_);
}
onChanged();
}
} else {
if (!other.collectionPvtRwset_.isEmpty()) {
if (collectionPvtRwsetBuilder_.isEmpty()) {
collectionPvtRwsetBuilder_.dispose();
collectionPvtRwsetBuilder_ = null;
collectionPvtRwset_ = other.collectionPvtRwset_;
bitField0_ = (bitField0_ & ~0x00000002);
collectionPvtRwsetBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCollectionPvtRwsetFieldBuilder() : null;
} else {
collectionPvtRwsetBuilder_.addAllMessages(other.collectionPvtRwset_);
}
}
}
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: {
org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet m =
input.readMessage(
org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet.parser(),
extensionRegistry);
if (collectionPvtRwsetBuilder_ == null) {
ensureCollectionPvtRwsetIsMutable();
collectionPvtRwset_.add(m);
} else {
collectionPvtRwsetBuilder_.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 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 java.util.List collectionPvtRwset_ =
java.util.Collections.emptyList();
private void ensureCollectionPvtRwsetIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
collectionPvtRwset_ = new java.util.ArrayList(collectionPvtRwset_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet, org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet.Builder, org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSetOrBuilder> collectionPvtRwsetBuilder_;
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public java.util.List getCollectionPvtRwsetList() {
if (collectionPvtRwsetBuilder_ == null) {
return java.util.Collections.unmodifiableList(collectionPvtRwset_);
} else {
return collectionPvtRwsetBuilder_.getMessageList();
}
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public int getCollectionPvtRwsetCount() {
if (collectionPvtRwsetBuilder_ == null) {
return collectionPvtRwset_.size();
} else {
return collectionPvtRwsetBuilder_.getCount();
}
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet getCollectionPvtRwset(int index) {
if (collectionPvtRwsetBuilder_ == null) {
return collectionPvtRwset_.get(index);
} else {
return collectionPvtRwsetBuilder_.getMessage(index);
}
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public Builder setCollectionPvtRwset(
int index, org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet value) {
if (collectionPvtRwsetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCollectionPvtRwsetIsMutable();
collectionPvtRwset_.set(index, value);
onChanged();
} else {
collectionPvtRwsetBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public Builder setCollectionPvtRwset(
int index, org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet.Builder builderForValue) {
if (collectionPvtRwsetBuilder_ == null) {
ensureCollectionPvtRwsetIsMutable();
collectionPvtRwset_.set(index, builderForValue.build());
onChanged();
} else {
collectionPvtRwsetBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public Builder addCollectionPvtRwset(org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet value) {
if (collectionPvtRwsetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCollectionPvtRwsetIsMutable();
collectionPvtRwset_.add(value);
onChanged();
} else {
collectionPvtRwsetBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public Builder addCollectionPvtRwset(
int index, org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet value) {
if (collectionPvtRwsetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCollectionPvtRwsetIsMutable();
collectionPvtRwset_.add(index, value);
onChanged();
} else {
collectionPvtRwsetBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public Builder addCollectionPvtRwset(
org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet.Builder builderForValue) {
if (collectionPvtRwsetBuilder_ == null) {
ensureCollectionPvtRwsetIsMutable();
collectionPvtRwset_.add(builderForValue.build());
onChanged();
} else {
collectionPvtRwsetBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public Builder addCollectionPvtRwset(
int index, org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet.Builder builderForValue) {
if (collectionPvtRwsetBuilder_ == null) {
ensureCollectionPvtRwsetIsMutable();
collectionPvtRwset_.add(index, builderForValue.build());
onChanged();
} else {
collectionPvtRwsetBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public Builder addAllCollectionPvtRwset(
java.lang.Iterable extends org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet> values) {
if (collectionPvtRwsetBuilder_ == null) {
ensureCollectionPvtRwsetIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, collectionPvtRwset_);
onChanged();
} else {
collectionPvtRwsetBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public Builder clearCollectionPvtRwset() {
if (collectionPvtRwsetBuilder_ == null) {
collectionPvtRwset_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
collectionPvtRwsetBuilder_.clear();
}
return this;
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public Builder removeCollectionPvtRwset(int index) {
if (collectionPvtRwsetBuilder_ == null) {
ensureCollectionPvtRwsetIsMutable();
collectionPvtRwset_.remove(index);
onChanged();
} else {
collectionPvtRwsetBuilder_.remove(index);
}
return this;
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet.Builder getCollectionPvtRwsetBuilder(
int index) {
return getCollectionPvtRwsetFieldBuilder().getBuilder(index);
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSetOrBuilder getCollectionPvtRwsetOrBuilder(
int index) {
if (collectionPvtRwsetBuilder_ == null) {
return collectionPvtRwset_.get(index); } else {
return collectionPvtRwsetBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public java.util.List extends org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSetOrBuilder>
getCollectionPvtRwsetOrBuilderList() {
if (collectionPvtRwsetBuilder_ != null) {
return collectionPvtRwsetBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(collectionPvtRwset_);
}
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet.Builder addCollectionPvtRwsetBuilder() {
return getCollectionPvtRwsetFieldBuilder().addBuilder(
org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet.getDefaultInstance());
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet.Builder addCollectionPvtRwsetBuilder(
int index) {
return getCollectionPvtRwsetFieldBuilder().addBuilder(
index, org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet.getDefaultInstance());
}
/**
* repeated .rwset.CollectionPvtReadWriteSet collection_pvt_rwset = 2 [json_name = "collectionPvtRwset"];
*/
public java.util.List
getCollectionPvtRwsetBuilderList() {
return getCollectionPvtRwsetFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet, org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet.Builder, org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSetOrBuilder>
getCollectionPvtRwsetFieldBuilder() {
if (collectionPvtRwsetBuilder_ == null) {
collectionPvtRwsetBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet, org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSet.Builder, org.hyperledger.fabric.protos.ledger.rwset.CollectionPvtReadWriteSetOrBuilder>(
collectionPvtRwset_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
collectionPvtRwset_ = null;
}
return collectionPvtRwsetBuilder_;
}
// @@protoc_insertion_point(builder_scope:rwset.NsPvtReadWriteSet)
}
// @@protoc_insertion_point(class_scope:rwset.NsPvtReadWriteSet)
private static final org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet();
}
public static org.hyperledger.fabric.protos.ledger.rwset.NsPvtReadWriteSet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NsPvtReadWriteSet 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.NsPvtReadWriteSet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy