org.hyperledger.fabric.protos.peer.EventsPackage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-sdk-java Show documentation
Show all versions of fabric-sdk-java Show documentation
Java SDK for Hyperledger Fabric. Deprecated as of Fabric v2.5, replaced by org.hyperledger.fabric:fabric-gateway.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: peer/events.proto
package org.hyperledger.fabric.protos.peer;
public final class EventsPackage {
private EventsPackage() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface FilteredBlockOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.FilteredBlock)
com.google.protobuf.MessageOrBuilder {
/**
* string channel_id = 1;
* @return The channelId.
*/
java.lang.String getChannelId();
/**
* string channel_id = 1;
* @return The bytes for channelId.
*/
com.google.protobuf.ByteString
getChannelIdBytes();
/**
*
* The position in the blockchain
*
*
* uint64 number = 2;
* @return The number.
*/
long getNumber();
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
java.util.List
getFilteredTransactionsList();
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction getFilteredTransactions(int index);
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
int getFilteredTransactionsCount();
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
java.util.List extends org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionOrBuilder>
getFilteredTransactionsOrBuilderList();
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionOrBuilder getFilteredTransactionsOrBuilder(
int index);
}
/**
*
* FilteredBlock is a minimal set of information about a block
*
*
* Protobuf type {@code protos.FilteredBlock}
*/
public static final class FilteredBlock extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.FilteredBlock)
FilteredBlockOrBuilder {
private static final long serialVersionUID = 0L;
// Use FilteredBlock.newBuilder() to construct.
private FilteredBlock(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FilteredBlock() {
channelId_ = "";
filteredTransactions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FilteredBlock();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.class, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.Builder.class);
}
public static final int CHANNEL_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object channelId_ = "";
/**
* string channel_id = 1;
* @return The channelId.
*/
@java.lang.Override
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
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();
channelId_ = s;
return s;
}
}
/**
* string channel_id = 1;
* @return The bytes for channelId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NUMBER_FIELD_NUMBER = 2;
private long number_ = 0L;
/**
*
* The position in the blockchain
*
*
* uint64 number = 2;
* @return The number.
*/
@java.lang.Override
public long getNumber() {
return number_;
}
public static final int FILTERED_TRANSACTIONS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List filteredTransactions_;
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
@java.lang.Override
public java.util.List getFilteredTransactionsList() {
return filteredTransactions_;
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
@java.lang.Override
public java.util.List extends org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionOrBuilder>
getFilteredTransactionsOrBuilderList() {
return filteredTransactions_;
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
@java.lang.Override
public int getFilteredTransactionsCount() {
return filteredTransactions_.size();
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction getFilteredTransactions(int index) {
return filteredTransactions_.get(index);
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionOrBuilder getFilteredTransactionsOrBuilder(
int index) {
return filteredTransactions_.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.GeneratedMessageV3.isStringEmpty(channelId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, channelId_);
}
if (number_ != 0L) {
output.writeUInt64(2, number_);
}
for (int i = 0; i < filteredTransactions_.size(); i++) {
output.writeMessage(4, filteredTransactions_.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.GeneratedMessageV3.isStringEmpty(channelId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, channelId_);
}
if (number_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, number_);
}
for (int i = 0; i < filteredTransactions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, filteredTransactions_.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.peer.EventsPackage.FilteredBlock)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock other = (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock) obj;
if (!getChannelId()
.equals(other.getChannelId())) return false;
if (getNumber()
!= other.getNumber()) return false;
if (!getFilteredTransactionsList()
.equals(other.getFilteredTransactionsList())) 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) + CHANNEL_ID_FIELD_NUMBER;
hash = (53 * hash) + getChannelId().hashCode();
hash = (37 * hash) + NUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNumber());
if (getFilteredTransactionsCount() > 0) {
hash = (37 * hash) + FILTERED_TRANSACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getFilteredTransactionsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock 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.peer.EventsPackage.FilteredBlock parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock 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.peer.EventsPackage.FilteredBlock parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock 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.peer.EventsPackage.FilteredBlock parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock 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.peer.EventsPackage.FilteredBlock parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock 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.peer.EventsPackage.FilteredBlock 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;
}
/**
*
* FilteredBlock is a minimal set of information about a block
*
*
* Protobuf type {@code protos.FilteredBlock}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.FilteredBlock)
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlockOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.class, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
channelId_ = "";
number_ = 0L;
if (filteredTransactionsBuilder_ == null) {
filteredTransactions_ = java.util.Collections.emptyList();
} else {
filteredTransactions_ = null;
filteredTransactionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredBlock_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock build() {
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock buildPartial() {
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock result = new org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock result) {
if (filteredTransactionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
filteredTransactions_ = java.util.Collections.unmodifiableList(filteredTransactions_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.filteredTransactions_ = filteredTransactions_;
} else {
result.filteredTransactions_ = filteredTransactionsBuilder_.build();
}
}
private void buildPartial0(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.channelId_ = channelId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.number_ = number_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock) {
return mergeFrom((org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock other) {
if (other == org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.getDefaultInstance()) return this;
if (!other.getChannelId().isEmpty()) {
channelId_ = other.channelId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getNumber() != 0L) {
setNumber(other.getNumber());
}
if (filteredTransactionsBuilder_ == null) {
if (!other.filteredTransactions_.isEmpty()) {
if (filteredTransactions_.isEmpty()) {
filteredTransactions_ = other.filteredTransactions_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFilteredTransactionsIsMutable();
filteredTransactions_.addAll(other.filteredTransactions_);
}
onChanged();
}
} else {
if (!other.filteredTransactions_.isEmpty()) {
if (filteredTransactionsBuilder_.isEmpty()) {
filteredTransactionsBuilder_.dispose();
filteredTransactionsBuilder_ = null;
filteredTransactions_ = other.filteredTransactions_;
bitField0_ = (bitField0_ & ~0x00000004);
filteredTransactionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFilteredTransactionsFieldBuilder() : null;
} else {
filteredTransactionsBuilder_.addAllMessages(other.filteredTransactions_);
}
}
}
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: {
channelId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
number_ = input.readUInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 34: {
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction m =
input.readMessage(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.parser(),
extensionRegistry);
if (filteredTransactionsBuilder_ == null) {
ensureFilteredTransactionsIsMutable();
filteredTransactions_.add(m);
} else {
filteredTransactionsBuilder_.addMessage(m);
}
break;
} // case 34
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 channelId_ = "";
/**
* string channel_id = 1;
* @return The channelId.
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
channelId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string channel_id = 1;
* @return The bytes for channelId.
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string channel_id = 1;
* @param value The channelId to set.
* @return This builder for chaining.
*/
public Builder setChannelId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
channelId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string channel_id = 1;
* @return This builder for chaining.
*/
public Builder clearChannelId() {
channelId_ = getDefaultInstance().getChannelId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string channel_id = 1;
* @param value The bytes for channelId to set.
* @return This builder for chaining.
*/
public Builder setChannelIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
channelId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long number_ ;
/**
*
* The position in the blockchain
*
*
* uint64 number = 2;
* @return The number.
*/
@java.lang.Override
public long getNumber() {
return number_;
}
/**
*
* The position in the blockchain
*
*
* uint64 number = 2;
* @param value The number to set.
* @return This builder for chaining.
*/
public Builder setNumber(long value) {
number_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The position in the blockchain
*
*
* uint64 number = 2;
* @return This builder for chaining.
*/
public Builder clearNumber() {
bitField0_ = (bitField0_ & ~0x00000002);
number_ = 0L;
onChanged();
return this;
}
private java.util.List filteredTransactions_ =
java.util.Collections.emptyList();
private void ensureFilteredTransactionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
filteredTransactions_ = new java.util.ArrayList(filteredTransactions_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.Builder, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionOrBuilder> filteredTransactionsBuilder_;
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public java.util.List getFilteredTransactionsList() {
if (filteredTransactionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(filteredTransactions_);
} else {
return filteredTransactionsBuilder_.getMessageList();
}
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public int getFilteredTransactionsCount() {
if (filteredTransactionsBuilder_ == null) {
return filteredTransactions_.size();
} else {
return filteredTransactionsBuilder_.getCount();
}
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction getFilteredTransactions(int index) {
if (filteredTransactionsBuilder_ == null) {
return filteredTransactions_.get(index);
} else {
return filteredTransactionsBuilder_.getMessage(index);
}
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public Builder setFilteredTransactions(
int index, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction value) {
if (filteredTransactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFilteredTransactionsIsMutable();
filteredTransactions_.set(index, value);
onChanged();
} else {
filteredTransactionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public Builder setFilteredTransactions(
int index, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.Builder builderForValue) {
if (filteredTransactionsBuilder_ == null) {
ensureFilteredTransactionsIsMutable();
filteredTransactions_.set(index, builderForValue.build());
onChanged();
} else {
filteredTransactionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public Builder addFilteredTransactions(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction value) {
if (filteredTransactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFilteredTransactionsIsMutable();
filteredTransactions_.add(value);
onChanged();
} else {
filteredTransactionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public Builder addFilteredTransactions(
int index, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction value) {
if (filteredTransactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFilteredTransactionsIsMutable();
filteredTransactions_.add(index, value);
onChanged();
} else {
filteredTransactionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public Builder addFilteredTransactions(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.Builder builderForValue) {
if (filteredTransactionsBuilder_ == null) {
ensureFilteredTransactionsIsMutable();
filteredTransactions_.add(builderForValue.build());
onChanged();
} else {
filteredTransactionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public Builder addFilteredTransactions(
int index, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.Builder builderForValue) {
if (filteredTransactionsBuilder_ == null) {
ensureFilteredTransactionsIsMutable();
filteredTransactions_.add(index, builderForValue.build());
onChanged();
} else {
filteredTransactionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public Builder addAllFilteredTransactions(
java.lang.Iterable extends org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction> values) {
if (filteredTransactionsBuilder_ == null) {
ensureFilteredTransactionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, filteredTransactions_);
onChanged();
} else {
filteredTransactionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public Builder clearFilteredTransactions() {
if (filteredTransactionsBuilder_ == null) {
filteredTransactions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
filteredTransactionsBuilder_.clear();
}
return this;
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public Builder removeFilteredTransactions(int index) {
if (filteredTransactionsBuilder_ == null) {
ensureFilteredTransactionsIsMutable();
filteredTransactions_.remove(index);
onChanged();
} else {
filteredTransactionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.Builder getFilteredTransactionsBuilder(
int index) {
return getFilteredTransactionsFieldBuilder().getBuilder(index);
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionOrBuilder getFilteredTransactionsOrBuilder(
int index) {
if (filteredTransactionsBuilder_ == null) {
return filteredTransactions_.get(index); } else {
return filteredTransactionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public java.util.List extends org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionOrBuilder>
getFilteredTransactionsOrBuilderList() {
if (filteredTransactionsBuilder_ != null) {
return filteredTransactionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(filteredTransactions_);
}
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.Builder addFilteredTransactionsBuilder() {
return getFilteredTransactionsFieldBuilder().addBuilder(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.getDefaultInstance());
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.Builder addFilteredTransactionsBuilder(
int index) {
return getFilteredTransactionsFieldBuilder().addBuilder(
index, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.getDefaultInstance());
}
/**
* repeated .protos.FilteredTransaction filtered_transactions = 4;
*/
public java.util.List
getFilteredTransactionsBuilderList() {
return getFilteredTransactionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.Builder, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionOrBuilder>
getFilteredTransactionsFieldBuilder() {
if (filteredTransactionsBuilder_ == null) {
filteredTransactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.Builder, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionOrBuilder>(
filteredTransactions_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
filteredTransactions_ = null;
}
return filteredTransactionsBuilder_;
}
@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:protos.FilteredBlock)
}
// @@protoc_insertion_point(class_scope:protos.FilteredBlock)
private static final org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock();
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FilteredBlock 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.peer.EventsPackage.FilteredBlock getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FilteredTransactionOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.FilteredTransaction)
com.google.protobuf.MessageOrBuilder {
/**
* string txid = 1;
* @return The txid.
*/
java.lang.String getTxid();
/**
* string txid = 1;
* @return The bytes for txid.
*/
com.google.protobuf.ByteString
getTxidBytes();
/**
* .common.HeaderType type = 2;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .common.HeaderType type = 2;
* @return The type.
*/
org.hyperledger.fabric.protos.common.Common.HeaderType getType();
/**
* .protos.TxValidationCode tx_validation_code = 3;
* @return The enum numeric value on the wire for txValidationCode.
*/
int getTxValidationCodeValue();
/**
* .protos.TxValidationCode tx_validation_code = 3;
* @return The txValidationCode.
*/
org.hyperledger.fabric.protos.peer.TransactionPackage.TxValidationCode getTxValidationCode();
/**
* .protos.FilteredTransactionActions transaction_actions = 4;
* @return Whether the transactionActions field is set.
*/
boolean hasTransactionActions();
/**
* .protos.FilteredTransactionActions transaction_actions = 4;
* @return The transactionActions.
*/
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions getTransactionActions();
/**
* .protos.FilteredTransactionActions transaction_actions = 4;
*/
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActionsOrBuilder getTransactionActionsOrBuilder();
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.DataCase getDataCase();
}
/**
*
* FilteredTransaction is a minimal set of information about a transaction
* within a block
*
*
* Protobuf type {@code protos.FilteredTransaction}
*/
public static final class FilteredTransaction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.FilteredTransaction)
FilteredTransactionOrBuilder {
private static final long serialVersionUID = 0L;
// Use FilteredTransaction.newBuilder() to construct.
private FilteredTransaction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FilteredTransaction() {
txid_ = "";
type_ = 0;
txValidationCode_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FilteredTransaction();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredTransaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredTransaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.class, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.Builder.class);
}
private int dataCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object data_;
public enum DataCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
TRANSACTION_ACTIONS(4),
DATA_NOT_SET(0);
private final int value;
private DataCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DataCase valueOf(int value) {
return forNumber(value);
}
public static DataCase forNumber(int value) {
switch (value) {
case 4: return TRANSACTION_ACTIONS;
case 0: return DATA_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DataCase
getDataCase() {
return DataCase.forNumber(
dataCase_);
}
public static final int TXID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object txid_ = "";
/**
* string txid = 1;
* @return The txid.
*/
@java.lang.Override
public java.lang.String getTxid() {
java.lang.Object ref = txid_;
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();
txid_ = s;
return s;
}
}
/**
* string txid = 1;
* @return The bytes for txid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTxidBytes() {
java.lang.Object ref = txid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
txid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 2;
private int type_ = 0;
/**
* .common.HeaderType type = 2;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .common.HeaderType type = 2;
* @return The type.
*/
@java.lang.Override public org.hyperledger.fabric.protos.common.Common.HeaderType getType() {
org.hyperledger.fabric.protos.common.Common.HeaderType result = org.hyperledger.fabric.protos.common.Common.HeaderType.forNumber(type_);
return result == null ? org.hyperledger.fabric.protos.common.Common.HeaderType.UNRECOGNIZED : result;
}
public static final int TX_VALIDATION_CODE_FIELD_NUMBER = 3;
private int txValidationCode_ = 0;
/**
* .protos.TxValidationCode tx_validation_code = 3;
* @return The enum numeric value on the wire for txValidationCode.
*/
@java.lang.Override public int getTxValidationCodeValue() {
return txValidationCode_;
}
/**
* .protos.TxValidationCode tx_validation_code = 3;
* @return The txValidationCode.
*/
@java.lang.Override public org.hyperledger.fabric.protos.peer.TransactionPackage.TxValidationCode getTxValidationCode() {
org.hyperledger.fabric.protos.peer.TransactionPackage.TxValidationCode result = org.hyperledger.fabric.protos.peer.TransactionPackage.TxValidationCode.forNumber(txValidationCode_);
return result == null ? org.hyperledger.fabric.protos.peer.TransactionPackage.TxValidationCode.UNRECOGNIZED : result;
}
public static final int TRANSACTION_ACTIONS_FIELD_NUMBER = 4;
/**
* .protos.FilteredTransactionActions transaction_actions = 4;
* @return Whether the transactionActions field is set.
*/
@java.lang.Override
public boolean hasTransactionActions() {
return dataCase_ == 4;
}
/**
* .protos.FilteredTransactionActions transaction_actions = 4;
* @return The transactionActions.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions getTransactionActions() {
if (dataCase_ == 4) {
return (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions) data_;
}
return org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.getDefaultInstance();
}
/**
* .protos.FilteredTransactionActions transaction_actions = 4;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActionsOrBuilder getTransactionActionsOrBuilder() {
if (dataCase_ == 4) {
return (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions) data_;
}
return org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txid_);
}
if (type_ != org.hyperledger.fabric.protos.common.Common.HeaderType.MESSAGE.getNumber()) {
output.writeEnum(2, type_);
}
if (txValidationCode_ != org.hyperledger.fabric.protos.peer.TransactionPackage.TxValidationCode.VALID.getNumber()) {
output.writeEnum(3, txValidationCode_);
}
if (dataCase_ == 4) {
output.writeMessage(4, (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions) data_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txid_);
}
if (type_ != org.hyperledger.fabric.protos.common.Common.HeaderType.MESSAGE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, type_);
}
if (txValidationCode_ != org.hyperledger.fabric.protos.peer.TransactionPackage.TxValidationCode.VALID.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, txValidationCode_);
}
if (dataCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions) data_);
}
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.peer.EventsPackage.FilteredTransaction)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction other = (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction) obj;
if (!getTxid()
.equals(other.getTxid())) return false;
if (type_ != other.type_) return false;
if (txValidationCode_ != other.txValidationCode_) return false;
if (!getDataCase().equals(other.getDataCase())) return false;
switch (dataCase_) {
case 4:
if (!getTransactionActions()
.equals(other.getTransactionActions())) return false;
break;
case 0:
default:
}
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) + TXID_FIELD_NUMBER;
hash = (53 * hash) + getTxid().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + TX_VALIDATION_CODE_FIELD_NUMBER;
hash = (53 * hash) + txValidationCode_;
switch (dataCase_) {
case 4:
hash = (37 * hash) + TRANSACTION_ACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getTransactionActions().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction 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.peer.EventsPackage.FilteredTransaction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction 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.peer.EventsPackage.FilteredTransaction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction 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.peer.EventsPackage.FilteredTransaction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction 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.peer.EventsPackage.FilteredTransaction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction 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.peer.EventsPackage.FilteredTransaction 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;
}
/**
*
* FilteredTransaction is a minimal set of information about a transaction
* within a block
*
*
* Protobuf type {@code protos.FilteredTransaction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.FilteredTransaction)
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredTransaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredTransaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.class, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
txid_ = "";
type_ = 0;
txValidationCode_ = 0;
if (transactionActionsBuilder_ != null) {
transactionActionsBuilder_.clear();
}
dataCase_ = 0;
data_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredTransaction_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction build() {
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction buildPartial() {
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction result = new org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.txid_ = txid_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.txValidationCode_ = txValidationCode_;
}
}
private void buildPartialOneofs(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction result) {
result.dataCase_ = dataCase_;
result.data_ = this.data_;
if (dataCase_ == 4 &&
transactionActionsBuilder_ != null) {
result.data_ = transactionActionsBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction) {
return mergeFrom((org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction other) {
if (other == org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction.getDefaultInstance()) return this;
if (!other.getTxid().isEmpty()) {
txid_ = other.txid_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.txValidationCode_ != 0) {
setTxValidationCodeValue(other.getTxValidationCodeValue());
}
switch (other.getDataCase()) {
case TRANSACTION_ACTIONS: {
mergeTransactionActions(other.getTransactionActions());
break;
}
case DATA_NOT_SET: {
break;
}
}
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: {
txid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
type_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
txValidationCode_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
input.readMessage(
getTransactionActionsFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 4;
break;
} // case 34
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 dataCase_ = 0;
private java.lang.Object data_;
public DataCase
getDataCase() {
return DataCase.forNumber(
dataCase_);
}
public Builder clearData() {
dataCase_ = 0;
data_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object txid_ = "";
/**
* string txid = 1;
* @return The txid.
*/
public java.lang.String getTxid() {
java.lang.Object ref = txid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
txid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string txid = 1;
* @return The bytes for txid.
*/
public com.google.protobuf.ByteString
getTxidBytes() {
java.lang.Object ref = txid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
txid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string txid = 1;
* @param value The txid to set.
* @return This builder for chaining.
*/
public Builder setTxid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
txid_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string txid = 1;
* @return This builder for chaining.
*/
public Builder clearTxid() {
txid_ = getDefaultInstance().getTxid();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string txid = 1;
* @param value The bytes for txid to set.
* @return This builder for chaining.
*/
public Builder setTxidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
txid_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int type_ = 0;
/**
* .common.HeaderType type = 2;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .common.HeaderType type = 2;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .common.HeaderType type = 2;
* @return The type.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.Common.HeaderType getType() {
org.hyperledger.fabric.protos.common.Common.HeaderType result = org.hyperledger.fabric.protos.common.Common.HeaderType.forNumber(type_);
return result == null ? org.hyperledger.fabric.protos.common.Common.HeaderType.UNRECOGNIZED : result;
}
/**
* .common.HeaderType type = 2;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(org.hyperledger.fabric.protos.common.Common.HeaderType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .common.HeaderType type = 2;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
onChanged();
return this;
}
private int txValidationCode_ = 0;
/**
* .protos.TxValidationCode tx_validation_code = 3;
* @return The enum numeric value on the wire for txValidationCode.
*/
@java.lang.Override public int getTxValidationCodeValue() {
return txValidationCode_;
}
/**
* .protos.TxValidationCode tx_validation_code = 3;
* @param value The enum numeric value on the wire for txValidationCode to set.
* @return This builder for chaining.
*/
public Builder setTxValidationCodeValue(int value) {
txValidationCode_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .protos.TxValidationCode tx_validation_code = 3;
* @return The txValidationCode.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.TransactionPackage.TxValidationCode getTxValidationCode() {
org.hyperledger.fabric.protos.peer.TransactionPackage.TxValidationCode result = org.hyperledger.fabric.protos.peer.TransactionPackage.TxValidationCode.forNumber(txValidationCode_);
return result == null ? org.hyperledger.fabric.protos.peer.TransactionPackage.TxValidationCode.UNRECOGNIZED : result;
}
/**
* .protos.TxValidationCode tx_validation_code = 3;
* @param value The txValidationCode to set.
* @return This builder for chaining.
*/
public Builder setTxValidationCode(org.hyperledger.fabric.protos.peer.TransactionPackage.TxValidationCode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
txValidationCode_ = value.getNumber();
onChanged();
return this;
}
/**
* .protos.TxValidationCode tx_validation_code = 3;
* @return This builder for chaining.
*/
public Builder clearTxValidationCode() {
bitField0_ = (bitField0_ & ~0x00000004);
txValidationCode_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.Builder, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActionsOrBuilder> transactionActionsBuilder_;
/**
* .protos.FilteredTransactionActions transaction_actions = 4;
* @return Whether the transactionActions field is set.
*/
@java.lang.Override
public boolean hasTransactionActions() {
return dataCase_ == 4;
}
/**
* .protos.FilteredTransactionActions transaction_actions = 4;
* @return The transactionActions.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions getTransactionActions() {
if (transactionActionsBuilder_ == null) {
if (dataCase_ == 4) {
return (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions) data_;
}
return org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.getDefaultInstance();
} else {
if (dataCase_ == 4) {
return transactionActionsBuilder_.getMessage();
}
return org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.getDefaultInstance();
}
}
/**
* .protos.FilteredTransactionActions transaction_actions = 4;
*/
public Builder setTransactionActions(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions value) {
if (transactionActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
transactionActionsBuilder_.setMessage(value);
}
dataCase_ = 4;
return this;
}
/**
* .protos.FilteredTransactionActions transaction_actions = 4;
*/
public Builder setTransactionActions(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.Builder builderForValue) {
if (transactionActionsBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
transactionActionsBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 4;
return this;
}
/**
* .protos.FilteredTransactionActions transaction_actions = 4;
*/
public Builder mergeTransactionActions(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions value) {
if (transactionActionsBuilder_ == null) {
if (dataCase_ == 4 &&
data_ != org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.getDefaultInstance()) {
data_ = org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.newBuilder((org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 4) {
transactionActionsBuilder_.mergeFrom(value);
} else {
transactionActionsBuilder_.setMessage(value);
}
}
dataCase_ = 4;
return this;
}
/**
* .protos.FilteredTransactionActions transaction_actions = 4;
*/
public Builder clearTransactionActions() {
if (transactionActionsBuilder_ == null) {
if (dataCase_ == 4) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 4) {
dataCase_ = 0;
data_ = null;
}
transactionActionsBuilder_.clear();
}
return this;
}
/**
* .protos.FilteredTransactionActions transaction_actions = 4;
*/
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.Builder getTransactionActionsBuilder() {
return getTransactionActionsFieldBuilder().getBuilder();
}
/**
* .protos.FilteredTransactionActions transaction_actions = 4;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActionsOrBuilder getTransactionActionsOrBuilder() {
if ((dataCase_ == 4) && (transactionActionsBuilder_ != null)) {
return transactionActionsBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 4) {
return (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions) data_;
}
return org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.getDefaultInstance();
}
}
/**
* .protos.FilteredTransactionActions transaction_actions = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.Builder, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActionsOrBuilder>
getTransactionActionsFieldBuilder() {
if (transactionActionsBuilder_ == null) {
if (!(dataCase_ == 4)) {
data_ = org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.getDefaultInstance();
}
transactionActionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.Builder, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActionsOrBuilder>(
(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 4;
onChanged();
return transactionActionsBuilder_;
}
@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:protos.FilteredTransaction)
}
// @@protoc_insertion_point(class_scope:protos.FilteredTransaction)
private static final org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction();
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransaction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FilteredTransaction 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.peer.EventsPackage.FilteredTransaction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FilteredTransactionActionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.FilteredTransactionActions)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
java.util.List
getChaincodeActionsList();
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction getChaincodeActions(int index);
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
int getChaincodeActionsCount();
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
java.util.List extends org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeActionOrBuilder>
getChaincodeActionsOrBuilderList();
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeActionOrBuilder getChaincodeActionsOrBuilder(
int index);
}
/**
*
* FilteredTransactionActions is a wrapper for array of TransactionAction
* message from regular block
*
*
* Protobuf type {@code protos.FilteredTransactionActions}
*/
public static final class FilteredTransactionActions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.FilteredTransactionActions)
FilteredTransactionActionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use FilteredTransactionActions.newBuilder() to construct.
private FilteredTransactionActions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FilteredTransactionActions() {
chaincodeActions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FilteredTransactionActions();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredTransactionActions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredTransactionActions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.class, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.Builder.class);
}
public static final int CHAINCODE_ACTIONS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List chaincodeActions_;
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
@java.lang.Override
public java.util.List getChaincodeActionsList() {
return chaincodeActions_;
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
@java.lang.Override
public java.util.List extends org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeActionOrBuilder>
getChaincodeActionsOrBuilderList() {
return chaincodeActions_;
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
@java.lang.Override
public int getChaincodeActionsCount() {
return chaincodeActions_.size();
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction getChaincodeActions(int index) {
return chaincodeActions_.get(index);
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeActionOrBuilder getChaincodeActionsOrBuilder(
int index) {
return chaincodeActions_.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 {
for (int i = 0; i < chaincodeActions_.size(); i++) {
output.writeMessage(1, chaincodeActions_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < chaincodeActions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, chaincodeActions_.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.peer.EventsPackage.FilteredTransactionActions)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions other = (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions) obj;
if (!getChaincodeActionsList()
.equals(other.getChaincodeActionsList())) 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();
if (getChaincodeActionsCount() > 0) {
hash = (37 * hash) + CHAINCODE_ACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getChaincodeActionsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions 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.peer.EventsPackage.FilteredTransactionActions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions 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.peer.EventsPackage.FilteredTransactionActions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions 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.peer.EventsPackage.FilteredTransactionActions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions 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.peer.EventsPackage.FilteredTransactionActions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions 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.peer.EventsPackage.FilteredTransactionActions 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;
}
/**
*
* FilteredTransactionActions is a wrapper for array of TransactionAction
* message from regular block
*
*
* Protobuf type {@code protos.FilteredTransactionActions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.FilteredTransactionActions)
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredTransactionActions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredTransactionActions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.class, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (chaincodeActionsBuilder_ == null) {
chaincodeActions_ = java.util.Collections.emptyList();
} else {
chaincodeActions_ = null;
chaincodeActionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredTransactionActions_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions build() {
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions buildPartial() {
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions result = new org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions result) {
if (chaincodeActionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
chaincodeActions_ = java.util.Collections.unmodifiableList(chaincodeActions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.chaincodeActions_ = chaincodeActions_;
} else {
result.chaincodeActions_ = chaincodeActionsBuilder_.build();
}
}
private void buildPartial0(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions) {
return mergeFrom((org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions other) {
if (other == org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions.getDefaultInstance()) return this;
if (chaincodeActionsBuilder_ == null) {
if (!other.chaincodeActions_.isEmpty()) {
if (chaincodeActions_.isEmpty()) {
chaincodeActions_ = other.chaincodeActions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureChaincodeActionsIsMutable();
chaincodeActions_.addAll(other.chaincodeActions_);
}
onChanged();
}
} else {
if (!other.chaincodeActions_.isEmpty()) {
if (chaincodeActionsBuilder_.isEmpty()) {
chaincodeActionsBuilder_.dispose();
chaincodeActionsBuilder_ = null;
chaincodeActions_ = other.chaincodeActions_;
bitField0_ = (bitField0_ & ~0x00000001);
chaincodeActionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChaincodeActionsFieldBuilder() : null;
} else {
chaincodeActionsBuilder_.addAllMessages(other.chaincodeActions_);
}
}
}
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: {
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction m =
input.readMessage(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.parser(),
extensionRegistry);
if (chaincodeActionsBuilder_ == null) {
ensureChaincodeActionsIsMutable();
chaincodeActions_.add(m);
} else {
chaincodeActionsBuilder_.addMessage(m);
}
break;
} // case 10
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.util.List chaincodeActions_ =
java.util.Collections.emptyList();
private void ensureChaincodeActionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
chaincodeActions_ = new java.util.ArrayList(chaincodeActions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.Builder, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeActionOrBuilder> chaincodeActionsBuilder_;
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public java.util.List getChaincodeActionsList() {
if (chaincodeActionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(chaincodeActions_);
} else {
return chaincodeActionsBuilder_.getMessageList();
}
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public int getChaincodeActionsCount() {
if (chaincodeActionsBuilder_ == null) {
return chaincodeActions_.size();
} else {
return chaincodeActionsBuilder_.getCount();
}
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction getChaincodeActions(int index) {
if (chaincodeActionsBuilder_ == null) {
return chaincodeActions_.get(index);
} else {
return chaincodeActionsBuilder_.getMessage(index);
}
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public Builder setChaincodeActions(
int index, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction value) {
if (chaincodeActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChaincodeActionsIsMutable();
chaincodeActions_.set(index, value);
onChanged();
} else {
chaincodeActionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public Builder setChaincodeActions(
int index, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.Builder builderForValue) {
if (chaincodeActionsBuilder_ == null) {
ensureChaincodeActionsIsMutable();
chaincodeActions_.set(index, builderForValue.build());
onChanged();
} else {
chaincodeActionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public Builder addChaincodeActions(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction value) {
if (chaincodeActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChaincodeActionsIsMutable();
chaincodeActions_.add(value);
onChanged();
} else {
chaincodeActionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public Builder addChaincodeActions(
int index, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction value) {
if (chaincodeActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChaincodeActionsIsMutable();
chaincodeActions_.add(index, value);
onChanged();
} else {
chaincodeActionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public Builder addChaincodeActions(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.Builder builderForValue) {
if (chaincodeActionsBuilder_ == null) {
ensureChaincodeActionsIsMutable();
chaincodeActions_.add(builderForValue.build());
onChanged();
} else {
chaincodeActionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public Builder addChaincodeActions(
int index, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.Builder builderForValue) {
if (chaincodeActionsBuilder_ == null) {
ensureChaincodeActionsIsMutable();
chaincodeActions_.add(index, builderForValue.build());
onChanged();
} else {
chaincodeActionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public Builder addAllChaincodeActions(
java.lang.Iterable extends org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction> values) {
if (chaincodeActionsBuilder_ == null) {
ensureChaincodeActionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, chaincodeActions_);
onChanged();
} else {
chaincodeActionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public Builder clearChaincodeActions() {
if (chaincodeActionsBuilder_ == null) {
chaincodeActions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
chaincodeActionsBuilder_.clear();
}
return this;
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public Builder removeChaincodeActions(int index) {
if (chaincodeActionsBuilder_ == null) {
ensureChaincodeActionsIsMutable();
chaincodeActions_.remove(index);
onChanged();
} else {
chaincodeActionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.Builder getChaincodeActionsBuilder(
int index) {
return getChaincodeActionsFieldBuilder().getBuilder(index);
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeActionOrBuilder getChaincodeActionsOrBuilder(
int index) {
if (chaincodeActionsBuilder_ == null) {
return chaincodeActions_.get(index); } else {
return chaincodeActionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public java.util.List extends org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeActionOrBuilder>
getChaincodeActionsOrBuilderList() {
if (chaincodeActionsBuilder_ != null) {
return chaincodeActionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(chaincodeActions_);
}
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.Builder addChaincodeActionsBuilder() {
return getChaincodeActionsFieldBuilder().addBuilder(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.getDefaultInstance());
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.Builder addChaincodeActionsBuilder(
int index) {
return getChaincodeActionsFieldBuilder().addBuilder(
index, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.getDefaultInstance());
}
/**
* repeated .protos.FilteredChaincodeAction chaincode_actions = 1;
*/
public java.util.List
getChaincodeActionsBuilderList() {
return getChaincodeActionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.Builder, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeActionOrBuilder>
getChaincodeActionsFieldBuilder() {
if (chaincodeActionsBuilder_ == null) {
chaincodeActionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.Builder, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeActionOrBuilder>(
chaincodeActions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
chaincodeActions_ = null;
}
return chaincodeActionsBuilder_;
}
@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:protos.FilteredTransactionActions)
}
// @@protoc_insertion_point(class_scope:protos.FilteredTransactionActions)
private static final org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions();
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredTransactionActions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FilteredTransactionActions 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.peer.EventsPackage.FilteredTransactionActions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FilteredChaincodeActionOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.FilteredChaincodeAction)
com.google.protobuf.MessageOrBuilder {
/**
* .protos.ChaincodeEvent chaincode_event = 1;
* @return Whether the chaincodeEvent field is set.
*/
boolean hasChaincodeEvent();
/**
* .protos.ChaincodeEvent chaincode_event = 1;
* @return The chaincodeEvent.
*/
org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent getChaincodeEvent();
/**
* .protos.ChaincodeEvent chaincode_event = 1;
*/
org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEventOrBuilder getChaincodeEventOrBuilder();
}
/**
*
* FilteredChaincodeAction is a minimal set of information about an action
* within a transaction
*
*
* Protobuf type {@code protos.FilteredChaincodeAction}
*/
public static final class FilteredChaincodeAction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.FilteredChaincodeAction)
FilteredChaincodeActionOrBuilder {
private static final long serialVersionUID = 0L;
// Use FilteredChaincodeAction.newBuilder() to construct.
private FilteredChaincodeAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FilteredChaincodeAction() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FilteredChaincodeAction();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredChaincodeAction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredChaincodeAction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.class, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.Builder.class);
}
public static final int CHAINCODE_EVENT_FIELD_NUMBER = 1;
private org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent chaincodeEvent_;
/**
* .protos.ChaincodeEvent chaincode_event = 1;
* @return Whether the chaincodeEvent field is set.
*/
@java.lang.Override
public boolean hasChaincodeEvent() {
return chaincodeEvent_ != null;
}
/**
* .protos.ChaincodeEvent chaincode_event = 1;
* @return The chaincodeEvent.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent getChaincodeEvent() {
return chaincodeEvent_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent.getDefaultInstance() : chaincodeEvent_;
}
/**
* .protos.ChaincodeEvent chaincode_event = 1;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEventOrBuilder getChaincodeEventOrBuilder() {
return chaincodeEvent_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent.getDefaultInstance() : chaincodeEvent_;
}
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 (chaincodeEvent_ != null) {
output.writeMessage(1, getChaincodeEvent());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (chaincodeEvent_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getChaincodeEvent());
}
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.peer.EventsPackage.FilteredChaincodeAction)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction other = (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction) obj;
if (hasChaincodeEvent() != other.hasChaincodeEvent()) return false;
if (hasChaincodeEvent()) {
if (!getChaincodeEvent()
.equals(other.getChaincodeEvent())) 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();
if (hasChaincodeEvent()) {
hash = (37 * hash) + CHAINCODE_EVENT_FIELD_NUMBER;
hash = (53 * hash) + getChaincodeEvent().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction 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.peer.EventsPackage.FilteredChaincodeAction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction 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.peer.EventsPackage.FilteredChaincodeAction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction 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.peer.EventsPackage.FilteredChaincodeAction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction 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.peer.EventsPackage.FilteredChaincodeAction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction 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.peer.EventsPackage.FilteredChaincodeAction 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;
}
/**
*
* FilteredChaincodeAction is a minimal set of information about an action
* within a transaction
*
*
* Protobuf type {@code protos.FilteredChaincodeAction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.FilteredChaincodeAction)
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeActionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredChaincodeAction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredChaincodeAction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.class, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
chaincodeEvent_ = null;
if (chaincodeEventBuilder_ != null) {
chaincodeEventBuilder_.dispose();
chaincodeEventBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_FilteredChaincodeAction_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction build() {
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction buildPartial() {
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction result = new org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.chaincodeEvent_ = chaincodeEventBuilder_ == null
? chaincodeEvent_
: chaincodeEventBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction) {
return mergeFrom((org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction other) {
if (other == org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction.getDefaultInstance()) return this;
if (other.hasChaincodeEvent()) {
mergeChaincodeEvent(other.getChaincodeEvent());
}
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: {
input.readMessage(
getChaincodeEventFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
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 org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent chaincodeEvent_;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent, org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEventOrBuilder> chaincodeEventBuilder_;
/**
* .protos.ChaincodeEvent chaincode_event = 1;
* @return Whether the chaincodeEvent field is set.
*/
public boolean hasChaincodeEvent() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .protos.ChaincodeEvent chaincode_event = 1;
* @return The chaincodeEvent.
*/
public org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent getChaincodeEvent() {
if (chaincodeEventBuilder_ == null) {
return chaincodeEvent_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent.getDefaultInstance() : chaincodeEvent_;
} else {
return chaincodeEventBuilder_.getMessage();
}
}
/**
* .protos.ChaincodeEvent chaincode_event = 1;
*/
public Builder setChaincodeEvent(org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent value) {
if (chaincodeEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
chaincodeEvent_ = value;
} else {
chaincodeEventBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .protos.ChaincodeEvent chaincode_event = 1;
*/
public Builder setChaincodeEvent(
org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent.Builder builderForValue) {
if (chaincodeEventBuilder_ == null) {
chaincodeEvent_ = builderForValue.build();
} else {
chaincodeEventBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .protos.ChaincodeEvent chaincode_event = 1;
*/
public Builder mergeChaincodeEvent(org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent value) {
if (chaincodeEventBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
chaincodeEvent_ != null &&
chaincodeEvent_ != org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent.getDefaultInstance()) {
getChaincodeEventBuilder().mergeFrom(value);
} else {
chaincodeEvent_ = value;
}
} else {
chaincodeEventBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .protos.ChaincodeEvent chaincode_event = 1;
*/
public Builder clearChaincodeEvent() {
bitField0_ = (bitField0_ & ~0x00000001);
chaincodeEvent_ = null;
if (chaincodeEventBuilder_ != null) {
chaincodeEventBuilder_.dispose();
chaincodeEventBuilder_ = null;
}
onChanged();
return this;
}
/**
* .protos.ChaincodeEvent chaincode_event = 1;
*/
public org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent.Builder getChaincodeEventBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getChaincodeEventFieldBuilder().getBuilder();
}
/**
* .protos.ChaincodeEvent chaincode_event = 1;
*/
public org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEventOrBuilder getChaincodeEventOrBuilder() {
if (chaincodeEventBuilder_ != null) {
return chaincodeEventBuilder_.getMessageOrBuilder();
} else {
return chaincodeEvent_ == null ?
org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent.getDefaultInstance() : chaincodeEvent_;
}
}
/**
* .protos.ChaincodeEvent chaincode_event = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent, org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEventOrBuilder>
getChaincodeEventFieldBuilder() {
if (chaincodeEventBuilder_ == null) {
chaincodeEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent, org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEventOrBuilder>(
getChaincodeEvent(),
getParentForChildren(),
isClean());
chaincodeEvent_ = null;
}
return chaincodeEventBuilder_;
}
@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:protos.FilteredChaincodeAction)
}
// @@protoc_insertion_point(class_scope:protos.FilteredChaincodeAction)
private static final org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction();
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.FilteredChaincodeAction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FilteredChaincodeAction 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.peer.EventsPackage.FilteredChaincodeAction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BlockAndPrivateDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.BlockAndPrivateData)
com.google.protobuf.MessageOrBuilder {
/**
* .common.Block block = 1;
* @return Whether the block field is set.
*/
boolean hasBlock();
/**
* .common.Block block = 1;
* @return The block.
*/
org.hyperledger.fabric.protos.common.Common.Block getBlock();
/**
* .common.Block block = 1;
*/
org.hyperledger.fabric.protos.common.Common.BlockOrBuilder getBlockOrBuilder();
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
int getPrivateDataMapCount();
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
boolean containsPrivateDataMap(
long key);
/**
* Use {@link #getPrivateDataMapMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getPrivateDataMap();
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
java.util.Map
getPrivateDataMapMap();
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
/* nullable */
org.hyperledger.fabric.protos.ledger.rwset.Rwset.TxPvtReadWriteSet getPrivateDataMapOrDefault(
long key,
/* nullable */
org.hyperledger.fabric.protos.ledger.rwset.Rwset.TxPvtReadWriteSet defaultValue);
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
org.hyperledger.fabric.protos.ledger.rwset.Rwset.TxPvtReadWriteSet getPrivateDataMapOrThrow(
long key);
}
/**
*
* BlockAndPrivateData contains Block and a map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* Protobuf type {@code protos.BlockAndPrivateData}
*/
public static final class BlockAndPrivateData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.BlockAndPrivateData)
BlockAndPrivateDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockAndPrivateData.newBuilder() to construct.
private BlockAndPrivateData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BlockAndPrivateData() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BlockAndPrivateData();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_BlockAndPrivateData_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetPrivateDataMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_BlockAndPrivateData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.class, org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.Builder.class);
}
public static final int BLOCK_FIELD_NUMBER = 1;
private org.hyperledger.fabric.protos.common.Common.Block block_;
/**
* .common.Block block = 1;
* @return Whether the block field is set.
*/
@java.lang.Override
public boolean hasBlock() {
return block_ != null;
}
/**
* .common.Block block = 1;
* @return The block.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.Common.Block getBlock() {
return block_ == null ? org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance() : block_;
}
/**
* .common.Block block = 1;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.Common.BlockOrBuilder getBlockOrBuilder() {
return block_ == null ? org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance() : block_;
}
public static final int PRIVATE_DATA_MAP_FIELD_NUMBER = 2;
private static final class PrivateDataMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Long, org.hyperledger.fabric.protos.ledger.rwset.Rwset.TxPvtReadWriteSet> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_BlockAndPrivateData_PrivateDataMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.UINT64,
0L,
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.hyperledger.fabric.protos.ledger.rwset.Rwset.TxPvtReadWriteSet.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.Long, org.hyperledger.fabric.protos.ledger.rwset.Rwset.TxPvtReadWriteSet> privateDataMap_;
private com.google.protobuf.MapField
internalGetPrivateDataMap() {
if (privateDataMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PrivateDataMapDefaultEntryHolder.defaultEntry);
}
return privateDataMap_;
}
public int getPrivateDataMapCount() {
return internalGetPrivateDataMap().getMap().size();
}
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
@java.lang.Override
public boolean containsPrivateDataMap(
long key) {
return internalGetPrivateDataMap().getMap().containsKey(key);
}
/**
* Use {@link #getPrivateDataMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getPrivateDataMap() {
return getPrivateDataMapMap();
}
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
@java.lang.Override
public java.util.Map getPrivateDataMapMap() {
return internalGetPrivateDataMap().getMap();
}
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
@java.lang.Override
public /* nullable */
org.hyperledger.fabric.protos.ledger.rwset.Rwset.TxPvtReadWriteSet getPrivateDataMapOrDefault(
long key,
/* nullable */
org.hyperledger.fabric.protos.ledger.rwset.Rwset.TxPvtReadWriteSet defaultValue) {
java.util.Map map =
internalGetPrivateDataMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.ledger.rwset.Rwset.TxPvtReadWriteSet getPrivateDataMapOrThrow(
long key) {
java.util.Map map =
internalGetPrivateDataMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 (block_ != null) {
output.writeMessage(1, getBlock());
}
com.google.protobuf.GeneratedMessageV3
.serializeLongMapTo(
output,
internalGetPrivateDataMap(),
PrivateDataMapDefaultEntryHolder.defaultEntry,
2);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (block_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBlock());
}
for (java.util.Map.Entry entry
: internalGetPrivateDataMap().getMap().entrySet()) {
com.google.protobuf.MapEntry
privateDataMap__ = PrivateDataMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, privateDataMap__);
}
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.peer.EventsPackage.BlockAndPrivateData)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData other = (org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData) obj;
if (hasBlock() != other.hasBlock()) return false;
if (hasBlock()) {
if (!getBlock()
.equals(other.getBlock())) return false;
}
if (!internalGetPrivateDataMap().equals(
other.internalGetPrivateDataMap())) 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();
if (hasBlock()) {
hash = (37 * hash) + BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getBlock().hashCode();
}
if (!internalGetPrivateDataMap().getMap().isEmpty()) {
hash = (37 * hash) + PRIVATE_DATA_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetPrivateDataMap().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData 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.peer.EventsPackage.BlockAndPrivateData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData 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.peer.EventsPackage.BlockAndPrivateData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData 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.peer.EventsPackage.BlockAndPrivateData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData 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.peer.EventsPackage.BlockAndPrivateData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData 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.peer.EventsPackage.BlockAndPrivateData 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;
}
/**
*
* BlockAndPrivateData contains Block and a map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* Protobuf type {@code protos.BlockAndPrivateData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.BlockAndPrivateData)
org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_BlockAndPrivateData_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetPrivateDataMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
return internalGetMutablePrivateDataMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_BlockAndPrivateData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.class, org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
block_ = null;
if (blockBuilder_ != null) {
blockBuilder_.dispose();
blockBuilder_ = null;
}
internalGetMutablePrivateDataMap().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_BlockAndPrivateData_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData build() {
org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData buildPartial() {
org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData result = new org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.block_ = blockBuilder_ == null
? block_
: blockBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.privateDataMap_ = internalGetPrivateDataMap();
result.privateDataMap_.makeImmutable();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData) {
return mergeFrom((org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData other) {
if (other == org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.getDefaultInstance()) return this;
if (other.hasBlock()) {
mergeBlock(other.getBlock());
}
internalGetMutablePrivateDataMap().mergeFrom(
other.internalGetPrivateDataMap());
bitField0_ |= 0x00000002;
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: {
input.readMessage(
getBlockFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.protobuf.MapEntry
privateDataMap__ = input.readMessage(
PrivateDataMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutablePrivateDataMap().getMutableMap().put(
privateDataMap__.getKey(), privateDataMap__.getValue());
bitField0_ |= 0x00000002;
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 org.hyperledger.fabric.protos.common.Common.Block block_;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Common.Block, org.hyperledger.fabric.protos.common.Common.Block.Builder, org.hyperledger.fabric.protos.common.Common.BlockOrBuilder> blockBuilder_;
/**
* .common.Block block = 1;
* @return Whether the block field is set.
*/
public boolean hasBlock() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .common.Block block = 1;
* @return The block.
*/
public org.hyperledger.fabric.protos.common.Common.Block getBlock() {
if (blockBuilder_ == null) {
return block_ == null ? org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance() : block_;
} else {
return blockBuilder_.getMessage();
}
}
/**
* .common.Block block = 1;
*/
public Builder setBlock(org.hyperledger.fabric.protos.common.Common.Block value) {
if (blockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
block_ = value;
} else {
blockBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .common.Block block = 1;
*/
public Builder setBlock(
org.hyperledger.fabric.protos.common.Common.Block.Builder builderForValue) {
if (blockBuilder_ == null) {
block_ = builderForValue.build();
} else {
blockBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .common.Block block = 1;
*/
public Builder mergeBlock(org.hyperledger.fabric.protos.common.Common.Block value) {
if (blockBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
block_ != null &&
block_ != org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance()) {
getBlockBuilder().mergeFrom(value);
} else {
block_ = value;
}
} else {
blockBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .common.Block block = 1;
*/
public Builder clearBlock() {
bitField0_ = (bitField0_ & ~0x00000001);
block_ = null;
if (blockBuilder_ != null) {
blockBuilder_.dispose();
blockBuilder_ = null;
}
onChanged();
return this;
}
/**
* .common.Block block = 1;
*/
public org.hyperledger.fabric.protos.common.Common.Block.Builder getBlockBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBlockFieldBuilder().getBuilder();
}
/**
* .common.Block block = 1;
*/
public org.hyperledger.fabric.protos.common.Common.BlockOrBuilder getBlockOrBuilder() {
if (blockBuilder_ != null) {
return blockBuilder_.getMessageOrBuilder();
} else {
return block_ == null ?
org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance() : block_;
}
}
/**
* .common.Block block = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Common.Block, org.hyperledger.fabric.protos.common.Common.Block.Builder, org.hyperledger.fabric.protos.common.Common.BlockOrBuilder>
getBlockFieldBuilder() {
if (blockBuilder_ == null) {
blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Common.Block, org.hyperledger.fabric.protos.common.Common.Block.Builder, org.hyperledger.fabric.protos.common.Common.BlockOrBuilder>(
getBlock(),
getParentForChildren(),
isClean());
block_ = null;
}
return blockBuilder_;
}
private com.google.protobuf.MapField<
java.lang.Long, org.hyperledger.fabric.protos.ledger.rwset.Rwset.TxPvtReadWriteSet> privateDataMap_;
private com.google.protobuf.MapField
internalGetPrivateDataMap() {
if (privateDataMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PrivateDataMapDefaultEntryHolder.defaultEntry);
}
return privateDataMap_;
}
private com.google.protobuf.MapField
internalGetMutablePrivateDataMap() {
if (privateDataMap_ == null) {
privateDataMap_ = com.google.protobuf.MapField.newMapField(
PrivateDataMapDefaultEntryHolder.defaultEntry);
}
if (!privateDataMap_.isMutable()) {
privateDataMap_ = privateDataMap_.copy();
}
bitField0_ |= 0x00000002;
onChanged();
return privateDataMap_;
}
public int getPrivateDataMapCount() {
return internalGetPrivateDataMap().getMap().size();
}
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
@java.lang.Override
public boolean containsPrivateDataMap(
long key) {
return internalGetPrivateDataMap().getMap().containsKey(key);
}
/**
* Use {@link #getPrivateDataMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getPrivateDataMap() {
return getPrivateDataMapMap();
}
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
@java.lang.Override
public java.util.Map getPrivateDataMapMap() {
return internalGetPrivateDataMap().getMap();
}
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
@java.lang.Override
public /* nullable */
org.hyperledger.fabric.protos.ledger.rwset.Rwset.TxPvtReadWriteSet getPrivateDataMapOrDefault(
long key,
/* nullable */
org.hyperledger.fabric.protos.ledger.rwset.Rwset.TxPvtReadWriteSet defaultValue) {
java.util.Map map =
internalGetPrivateDataMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.ledger.rwset.Rwset.TxPvtReadWriteSet getPrivateDataMapOrThrow(
long key) {
java.util.Map map =
internalGetPrivateDataMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearPrivateDataMap() {
bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutablePrivateDataMap().getMutableMap()
.clear();
return this;
}
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
public Builder removePrivateDataMap(
long key) {
internalGetMutablePrivateDataMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutablePrivateDataMap() {
bitField0_ |= 0x00000002;
return internalGetMutablePrivateDataMap().getMutableMap();
}
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
public Builder putPrivateDataMap(
long key,
org.hyperledger.fabric.protos.ledger.rwset.Rwset.TxPvtReadWriteSet value) {
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutablePrivateDataMap().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000002;
return this;
}
/**
*
* map from tx_seq_in_block to rwset.TxPvtReadWriteSet
*
*
* map<uint64, .rwset.TxPvtReadWriteSet> private_data_map = 2;
*/
public Builder putAllPrivateDataMap(
java.util.Map values) {
internalGetMutablePrivateDataMap().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000002;
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protos.BlockAndPrivateData)
}
// @@protoc_insertion_point(class_scope:protos.BlockAndPrivateData)
private static final org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData();
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BlockAndPrivateData 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.peer.EventsPackage.BlockAndPrivateData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeliverResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:protos.DeliverResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .common.Status status = 1;
* @return Whether the status field is set.
*/
boolean hasStatus();
/**
* .common.Status status = 1;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* .common.Status status = 1;
* @return The status.
*/
org.hyperledger.fabric.protos.common.Common.Status getStatus();
/**
* .common.Block block = 2;
* @return Whether the block field is set.
*/
boolean hasBlock();
/**
* .common.Block block = 2;
* @return The block.
*/
org.hyperledger.fabric.protos.common.Common.Block getBlock();
/**
* .common.Block block = 2;
*/
org.hyperledger.fabric.protos.common.Common.BlockOrBuilder getBlockOrBuilder();
/**
* .protos.FilteredBlock filtered_block = 3;
* @return Whether the filteredBlock field is set.
*/
boolean hasFilteredBlock();
/**
* .protos.FilteredBlock filtered_block = 3;
* @return The filteredBlock.
*/
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock getFilteredBlock();
/**
* .protos.FilteredBlock filtered_block = 3;
*/
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlockOrBuilder getFilteredBlockOrBuilder();
/**
* .protos.BlockAndPrivateData block_and_private_data = 4;
* @return Whether the blockAndPrivateData field is set.
*/
boolean hasBlockAndPrivateData();
/**
* .protos.BlockAndPrivateData block_and_private_data = 4;
* @return The blockAndPrivateData.
*/
org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData getBlockAndPrivateData();
/**
* .protos.BlockAndPrivateData block_and_private_data = 4;
*/
org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateDataOrBuilder getBlockAndPrivateDataOrBuilder();
org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse.TypeCase getTypeCase();
}
/**
*
* DeliverResponse
*
*
* Protobuf type {@code protos.DeliverResponse}
*/
public static final class DeliverResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protos.DeliverResponse)
DeliverResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeliverResponse.newBuilder() to construct.
private DeliverResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeliverResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeliverResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_DeliverResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_DeliverResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse.class, org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse.Builder.class);
}
private int typeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object type_;
public enum TypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
STATUS(1),
BLOCK(2),
FILTERED_BLOCK(3),
BLOCK_AND_PRIVATE_DATA(4),
TYPE_NOT_SET(0);
private final int value;
private TypeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TypeCase valueOf(int value) {
return forNumber(value);
}
public static TypeCase forNumber(int value) {
switch (value) {
case 1: return STATUS;
case 2: return BLOCK;
case 3: return FILTERED_BLOCK;
case 4: return BLOCK_AND_PRIVATE_DATA;
case 0: return TYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public static final int STATUS_FIELD_NUMBER = 1;
/**
* .common.Status status = 1;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return typeCase_ == 1;
}
/**
* .common.Status status = 1;
* @return The enum numeric value on the wire for status.
*/
public int getStatusValue() {
if (typeCase_ == 1) {
return (java.lang.Integer) type_;
}
return 0;
}
/**
* .common.Status status = 1;
* @return The status.
*/
public org.hyperledger.fabric.protos.common.Common.Status getStatus() {
if (typeCase_ == 1) {
org.hyperledger.fabric.protos.common.Common.Status result = org.hyperledger.fabric.protos.common.Common.Status.forNumber(
(java.lang.Integer) type_);
return result == null ? org.hyperledger.fabric.protos.common.Common.Status.UNRECOGNIZED : result;
}
return org.hyperledger.fabric.protos.common.Common.Status.UNKNOWN;
}
public static final int BLOCK_FIELD_NUMBER = 2;
/**
* .common.Block block = 2;
* @return Whether the block field is set.
*/
@java.lang.Override
public boolean hasBlock() {
return typeCase_ == 2;
}
/**
* .common.Block block = 2;
* @return The block.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.Common.Block getBlock() {
if (typeCase_ == 2) {
return (org.hyperledger.fabric.protos.common.Common.Block) type_;
}
return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance();
}
/**
* .common.Block block = 2;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.Common.BlockOrBuilder getBlockOrBuilder() {
if (typeCase_ == 2) {
return (org.hyperledger.fabric.protos.common.Common.Block) type_;
}
return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance();
}
public static final int FILTERED_BLOCK_FIELD_NUMBER = 3;
/**
* .protos.FilteredBlock filtered_block = 3;
* @return Whether the filteredBlock field is set.
*/
@java.lang.Override
public boolean hasFilteredBlock() {
return typeCase_ == 3;
}
/**
* .protos.FilteredBlock filtered_block = 3;
* @return The filteredBlock.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock getFilteredBlock() {
if (typeCase_ == 3) {
return (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock) type_;
}
return org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.getDefaultInstance();
}
/**
* .protos.FilteredBlock filtered_block = 3;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlockOrBuilder getFilteredBlockOrBuilder() {
if (typeCase_ == 3) {
return (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock) type_;
}
return org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.getDefaultInstance();
}
public static final int BLOCK_AND_PRIVATE_DATA_FIELD_NUMBER = 4;
/**
* .protos.BlockAndPrivateData block_and_private_data = 4;
* @return Whether the blockAndPrivateData field is set.
*/
@java.lang.Override
public boolean hasBlockAndPrivateData() {
return typeCase_ == 4;
}
/**
* .protos.BlockAndPrivateData block_and_private_data = 4;
* @return The blockAndPrivateData.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData getBlockAndPrivateData() {
if (typeCase_ == 4) {
return (org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData) type_;
}
return org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.getDefaultInstance();
}
/**
* .protos.BlockAndPrivateData block_and_private_data = 4;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateDataOrBuilder getBlockAndPrivateDataOrBuilder() {
if (typeCase_ == 4) {
return (org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData) type_;
}
return org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.getDefaultInstance();
}
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 (typeCase_ == 1) {
output.writeEnum(1, ((java.lang.Integer) type_));
}
if (typeCase_ == 2) {
output.writeMessage(2, (org.hyperledger.fabric.protos.common.Common.Block) type_);
}
if (typeCase_ == 3) {
output.writeMessage(3, (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock) type_);
}
if (typeCase_ == 4) {
output.writeMessage(4, (org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData) type_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (typeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, ((java.lang.Integer) type_));
}
if (typeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (org.hyperledger.fabric.protos.common.Common.Block) type_);
}
if (typeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock) type_);
}
if (typeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData) type_);
}
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.peer.EventsPackage.DeliverResponse)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse other = (org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse) obj;
if (!getTypeCase().equals(other.getTypeCase())) return false;
switch (typeCase_) {
case 1:
if (getStatusValue()
!= other.getStatusValue()) return false;
break;
case 2:
if (!getBlock()
.equals(other.getBlock())) return false;
break;
case 3:
if (!getFilteredBlock()
.equals(other.getFilteredBlock())) return false;
break;
case 4:
if (!getBlockAndPrivateData()
.equals(other.getBlockAndPrivateData())) return false;
break;
case 0:
default:
}
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();
switch (typeCase_) {
case 1:
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatusValue();
break;
case 2:
hash = (37 * hash) + BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getBlock().hashCode();
break;
case 3:
hash = (37 * hash) + FILTERED_BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getFilteredBlock().hashCode();
break;
case 4:
hash = (37 * hash) + BLOCK_AND_PRIVATE_DATA_FIELD_NUMBER;
hash = (53 * hash) + getBlockAndPrivateData().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse 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.peer.EventsPackage.DeliverResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse 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.peer.EventsPackage.DeliverResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse 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.peer.EventsPackage.DeliverResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse 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.peer.EventsPackage.DeliverResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse 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.peer.EventsPackage.DeliverResponse 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;
}
/**
*
* DeliverResponse
*
*
* Protobuf type {@code protos.DeliverResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protos.DeliverResponse)
org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_DeliverResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_DeliverResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse.class, org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (blockBuilder_ != null) {
blockBuilder_.clear();
}
if (filteredBlockBuilder_ != null) {
filteredBlockBuilder_.clear();
}
if (blockAndPrivateDataBuilder_ != null) {
blockAndPrivateDataBuilder_.clear();
}
typeCase_ = 0;
type_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.peer.EventsPackage.internal_static_protos_DeliverResponse_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse build() {
org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse buildPartial() {
org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse result = new org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse result) {
result.typeCase_ = typeCase_;
result.type_ = this.type_;
if (typeCase_ == 2 &&
blockBuilder_ != null) {
result.type_ = blockBuilder_.build();
}
if (typeCase_ == 3 &&
filteredBlockBuilder_ != null) {
result.type_ = filteredBlockBuilder_.build();
}
if (typeCase_ == 4 &&
blockAndPrivateDataBuilder_ != null) {
result.type_ = blockAndPrivateDataBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse) {
return mergeFrom((org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse other) {
if (other == org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse.getDefaultInstance()) return this;
switch (other.getTypeCase()) {
case STATUS: {
setStatusValue(other.getStatusValue());
break;
}
case BLOCK: {
mergeBlock(other.getBlock());
break;
}
case FILTERED_BLOCK: {
mergeFilteredBlock(other.getFilteredBlock());
break;
}
case BLOCK_AND_PRIVATE_DATA: {
mergeBlockAndPrivateData(other.getBlockAndPrivateData());
break;
}
case TYPE_NOT_SET: {
break;
}
}
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: {
int rawValue = input.readEnum();
typeCase_ = 1;
type_ = rawValue;
break;
} // case 8
case 18: {
input.readMessage(
getBlockFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getFilteredBlockFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getBlockAndPrivateDataFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 4;
break;
} // case 34
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 typeCase_ = 0;
private java.lang.Object type_;
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public Builder clearType() {
typeCase_ = 0;
type_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
* .common.Status status = 1;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return typeCase_ == 1;
}
/**
* .common.Status status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override
public int getStatusValue() {
if (typeCase_ == 1) {
return ((java.lang.Integer) type_).intValue();
}
return 0;
}
/**
* .common.Status status = 1;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
typeCase_ = 1;
type_ = value;
onChanged();
return this;
}
/**
* .common.Status status = 1;
* @return The status.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.Common.Status getStatus() {
if (typeCase_ == 1) {
org.hyperledger.fabric.protos.common.Common.Status result = org.hyperledger.fabric.protos.common.Common.Status.forNumber(
(java.lang.Integer) type_);
return result == null ? org.hyperledger.fabric.protos.common.Common.Status.UNRECOGNIZED : result;
}
return org.hyperledger.fabric.protos.common.Common.Status.UNKNOWN;
}
/**
* .common.Status status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(org.hyperledger.fabric.protos.common.Common.Status value) {
if (value == null) {
throw new NullPointerException();
}
typeCase_ = 1;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .common.Status status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
if (typeCase_ == 1) {
typeCase_ = 0;
type_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Common.Block, org.hyperledger.fabric.protos.common.Common.Block.Builder, org.hyperledger.fabric.protos.common.Common.BlockOrBuilder> blockBuilder_;
/**
* .common.Block block = 2;
* @return Whether the block field is set.
*/
@java.lang.Override
public boolean hasBlock() {
return typeCase_ == 2;
}
/**
* .common.Block block = 2;
* @return The block.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.Common.Block getBlock() {
if (blockBuilder_ == null) {
if (typeCase_ == 2) {
return (org.hyperledger.fabric.protos.common.Common.Block) type_;
}
return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance();
} else {
if (typeCase_ == 2) {
return blockBuilder_.getMessage();
}
return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance();
}
}
/**
* .common.Block block = 2;
*/
public Builder setBlock(org.hyperledger.fabric.protos.common.Common.Block value) {
if (blockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
blockBuilder_.setMessage(value);
}
typeCase_ = 2;
return this;
}
/**
* .common.Block block = 2;
*/
public Builder setBlock(
org.hyperledger.fabric.protos.common.Common.Block.Builder builderForValue) {
if (blockBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
blockBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 2;
return this;
}
/**
* .common.Block block = 2;
*/
public Builder mergeBlock(org.hyperledger.fabric.protos.common.Common.Block value) {
if (blockBuilder_ == null) {
if (typeCase_ == 2 &&
type_ != org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance()) {
type_ = org.hyperledger.fabric.protos.common.Common.Block.newBuilder((org.hyperledger.fabric.protos.common.Common.Block) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 2) {
blockBuilder_.mergeFrom(value);
} else {
blockBuilder_.setMessage(value);
}
}
typeCase_ = 2;
return this;
}
/**
* .common.Block block = 2;
*/
public Builder clearBlock() {
if (blockBuilder_ == null) {
if (typeCase_ == 2) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 2) {
typeCase_ = 0;
type_ = null;
}
blockBuilder_.clear();
}
return this;
}
/**
* .common.Block block = 2;
*/
public org.hyperledger.fabric.protos.common.Common.Block.Builder getBlockBuilder() {
return getBlockFieldBuilder().getBuilder();
}
/**
* .common.Block block = 2;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.Common.BlockOrBuilder getBlockOrBuilder() {
if ((typeCase_ == 2) && (blockBuilder_ != null)) {
return blockBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 2) {
return (org.hyperledger.fabric.protos.common.Common.Block) type_;
}
return org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance();
}
}
/**
* .common.Block block = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Common.Block, org.hyperledger.fabric.protos.common.Common.Block.Builder, org.hyperledger.fabric.protos.common.Common.BlockOrBuilder>
getBlockFieldBuilder() {
if (blockBuilder_ == null) {
if (!(typeCase_ == 2)) {
type_ = org.hyperledger.fabric.protos.common.Common.Block.getDefaultInstance();
}
blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Common.Block, org.hyperledger.fabric.protos.common.Common.Block.Builder, org.hyperledger.fabric.protos.common.Common.BlockOrBuilder>(
(org.hyperledger.fabric.protos.common.Common.Block) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 2;
onChanged();
return blockBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.Builder, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlockOrBuilder> filteredBlockBuilder_;
/**
* .protos.FilteredBlock filtered_block = 3;
* @return Whether the filteredBlock field is set.
*/
@java.lang.Override
public boolean hasFilteredBlock() {
return typeCase_ == 3;
}
/**
* .protos.FilteredBlock filtered_block = 3;
* @return The filteredBlock.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock getFilteredBlock() {
if (filteredBlockBuilder_ == null) {
if (typeCase_ == 3) {
return (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock) type_;
}
return org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.getDefaultInstance();
} else {
if (typeCase_ == 3) {
return filteredBlockBuilder_.getMessage();
}
return org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.getDefaultInstance();
}
}
/**
* .protos.FilteredBlock filtered_block = 3;
*/
public Builder setFilteredBlock(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock value) {
if (filteredBlockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
filteredBlockBuilder_.setMessage(value);
}
typeCase_ = 3;
return this;
}
/**
* .protos.FilteredBlock filtered_block = 3;
*/
public Builder setFilteredBlock(
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.Builder builderForValue) {
if (filteredBlockBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
filteredBlockBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 3;
return this;
}
/**
* .protos.FilteredBlock filtered_block = 3;
*/
public Builder mergeFilteredBlock(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock value) {
if (filteredBlockBuilder_ == null) {
if (typeCase_ == 3 &&
type_ != org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.getDefaultInstance()) {
type_ = org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.newBuilder((org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 3) {
filteredBlockBuilder_.mergeFrom(value);
} else {
filteredBlockBuilder_.setMessage(value);
}
}
typeCase_ = 3;
return this;
}
/**
* .protos.FilteredBlock filtered_block = 3;
*/
public Builder clearFilteredBlock() {
if (filteredBlockBuilder_ == null) {
if (typeCase_ == 3) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 3) {
typeCase_ = 0;
type_ = null;
}
filteredBlockBuilder_.clear();
}
return this;
}
/**
* .protos.FilteredBlock filtered_block = 3;
*/
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.Builder getFilteredBlockBuilder() {
return getFilteredBlockFieldBuilder().getBuilder();
}
/**
* .protos.FilteredBlock filtered_block = 3;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlockOrBuilder getFilteredBlockOrBuilder() {
if ((typeCase_ == 3) && (filteredBlockBuilder_ != null)) {
return filteredBlockBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 3) {
return (org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock) type_;
}
return org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.getDefaultInstance();
}
}
/**
* .protos.FilteredBlock filtered_block = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.Builder, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlockOrBuilder>
getFilteredBlockFieldBuilder() {
if (filteredBlockBuilder_ == null) {
if (!(typeCase_ == 3)) {
type_ = org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.getDefaultInstance();
}
filteredBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock.Builder, org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlockOrBuilder>(
(org.hyperledger.fabric.protos.peer.EventsPackage.FilteredBlock) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 3;
onChanged();
return filteredBlockBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData, org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.Builder, org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateDataOrBuilder> blockAndPrivateDataBuilder_;
/**
* .protos.BlockAndPrivateData block_and_private_data = 4;
* @return Whether the blockAndPrivateData field is set.
*/
@java.lang.Override
public boolean hasBlockAndPrivateData() {
return typeCase_ == 4;
}
/**
* .protos.BlockAndPrivateData block_and_private_data = 4;
* @return The blockAndPrivateData.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData getBlockAndPrivateData() {
if (blockAndPrivateDataBuilder_ == null) {
if (typeCase_ == 4) {
return (org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData) type_;
}
return org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.getDefaultInstance();
} else {
if (typeCase_ == 4) {
return blockAndPrivateDataBuilder_.getMessage();
}
return org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.getDefaultInstance();
}
}
/**
* .protos.BlockAndPrivateData block_and_private_data = 4;
*/
public Builder setBlockAndPrivateData(org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData value) {
if (blockAndPrivateDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
blockAndPrivateDataBuilder_.setMessage(value);
}
typeCase_ = 4;
return this;
}
/**
* .protos.BlockAndPrivateData block_and_private_data = 4;
*/
public Builder setBlockAndPrivateData(
org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.Builder builderForValue) {
if (blockAndPrivateDataBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
blockAndPrivateDataBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 4;
return this;
}
/**
* .protos.BlockAndPrivateData block_and_private_data = 4;
*/
public Builder mergeBlockAndPrivateData(org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData value) {
if (blockAndPrivateDataBuilder_ == null) {
if (typeCase_ == 4 &&
type_ != org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.getDefaultInstance()) {
type_ = org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.newBuilder((org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 4) {
blockAndPrivateDataBuilder_.mergeFrom(value);
} else {
blockAndPrivateDataBuilder_.setMessage(value);
}
}
typeCase_ = 4;
return this;
}
/**
* .protos.BlockAndPrivateData block_and_private_data = 4;
*/
public Builder clearBlockAndPrivateData() {
if (blockAndPrivateDataBuilder_ == null) {
if (typeCase_ == 4) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 4) {
typeCase_ = 0;
type_ = null;
}
blockAndPrivateDataBuilder_.clear();
}
return this;
}
/**
* .protos.BlockAndPrivateData block_and_private_data = 4;
*/
public org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.Builder getBlockAndPrivateDataBuilder() {
return getBlockAndPrivateDataFieldBuilder().getBuilder();
}
/**
* .protos.BlockAndPrivateData block_and_private_data = 4;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateDataOrBuilder getBlockAndPrivateDataOrBuilder() {
if ((typeCase_ == 4) && (blockAndPrivateDataBuilder_ != null)) {
return blockAndPrivateDataBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 4) {
return (org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData) type_;
}
return org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.getDefaultInstance();
}
}
/**
* .protos.BlockAndPrivateData block_and_private_data = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData, org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.Builder, org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateDataOrBuilder>
getBlockAndPrivateDataFieldBuilder() {
if (blockAndPrivateDataBuilder_ == null) {
if (!(typeCase_ == 4)) {
type_ = org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.getDefaultInstance();
}
blockAndPrivateDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData, org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData.Builder, org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateDataOrBuilder>(
(org.hyperledger.fabric.protos.peer.EventsPackage.BlockAndPrivateData) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 4;
onChanged();
return blockAndPrivateDataBuilder_;
}
@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:protos.DeliverResponse)
}
// @@protoc_insertion_point(class_scope:protos.DeliverResponse)
private static final org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse();
}
public static org.hyperledger.fabric.protos.peer.EventsPackage.DeliverResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeliverResponse 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.peer.EventsPackage.DeliverResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protos_FilteredBlock_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protos_FilteredBlock_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protos_FilteredTransaction_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protos_FilteredTransaction_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protos_FilteredTransactionActions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protos_FilteredTransactionActions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protos_FilteredChaincodeAction_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protos_FilteredChaincodeAction_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protos_BlockAndPrivateData_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protos_BlockAndPrivateData_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protos_BlockAndPrivateData_PrivateDataMapEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protos_BlockAndPrivateData_PrivateDataMapEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protos_DeliverResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protos_DeliverResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\021peer/events.proto\022\006protos\032\023common/comm" +
"on.proto\032\030ledger/rwset/rwset.proto\032\032peer" +
"/chaincode_event.proto\032\026peer/transaction" +
".proto\"o\n\rFilteredBlock\022\022\n\nchannel_id\030\001 " +
"\001(\t\022\016\n\006number\030\002 \001(\004\022:\n\025filtered_transact" +
"ions\030\004 \003(\0132\033.protos.FilteredTransaction\"" +
"\306\001\n\023FilteredTransaction\022\014\n\004txid\030\001 \001(\t\022 \n" +
"\004type\030\002 \001(\0162\022.common.HeaderType\0224\n\022tx_va" +
"lidation_code\030\003 \001(\0162\030.protos.TxValidatio" +
"nCode\022A\n\023transaction_actions\030\004 \001(\0132\".pro" +
"tos.FilteredTransactionActionsH\000B\006\n\004Data" +
"\"X\n\032FilteredTransactionActions\022:\n\021chainc" +
"ode_actions\030\001 \003(\0132\037.protos.FilteredChain" +
"codeAction\"J\n\027FilteredChaincodeAction\022/\n" +
"\017chaincode_event\030\001 \001(\0132\026.protos.Chaincod" +
"eEvent\"\317\001\n\023BlockAndPrivateData\022\034\n\005block\030" +
"\001 \001(\0132\r.common.Block\022I\n\020private_data_map" +
"\030\002 \003(\0132/.protos.BlockAndPrivateData.Priv" +
"ateDataMapEntry\032O\n\023PrivateDataMapEntry\022\013" +
"\n\003key\030\001 \001(\004\022\'\n\005value\030\002 \001(\0132\030.rwset.TxPvt" +
"ReadWriteSet:\0028\001\"\313\001\n\017DeliverResponse\022 \n\006" +
"status\030\001 \001(\0162\016.common.StatusH\000\022\036\n\005block\030" +
"\002 \001(\0132\r.common.BlockH\000\022/\n\016filtered_block" +
"\030\003 \001(\0132\025.protos.FilteredBlockH\000\022=\n\026block" +
"_and_private_data\030\004 \001(\0132\033.protos.BlockAn" +
"dPrivateDataH\000B\006\n\004Type2\324\001\n\007Deliver\022:\n\007De" +
"liver\022\020.common.Envelope\032\027.protos.Deliver" +
"Response\"\000(\0010\001\022B\n\017DeliverFiltered\022\020.comm" +
"on.Envelope\032\027.protos.DeliverResponse\"\000(\001" +
"0\001\022I\n\026DeliverWithPrivateData\022\020.common.En" +
"velope\032\027.protos.DeliverResponse\"\000(\0010\001Ba\n" +
"\"org.hyperledger.fabric.protos.peerB\rEve" +
"ntsPackageZ,github.com/hyperledger/fabri" +
"c-protos-go/peerb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.hyperledger.fabric.protos.common.Common.getDescriptor(),
org.hyperledger.fabric.protos.ledger.rwset.Rwset.getDescriptor(),
org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.getDescriptor(),
org.hyperledger.fabric.protos.peer.TransactionPackage.getDescriptor(),
});
internal_static_protos_FilteredBlock_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_protos_FilteredBlock_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protos_FilteredBlock_descriptor,
new java.lang.String[] { "ChannelId", "Number", "FilteredTransactions", });
internal_static_protos_FilteredTransaction_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_protos_FilteredTransaction_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protos_FilteredTransaction_descriptor,
new java.lang.String[] { "Txid", "Type", "TxValidationCode", "TransactionActions", "Data", });
internal_static_protos_FilteredTransactionActions_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_protos_FilteredTransactionActions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protos_FilteredTransactionActions_descriptor,
new java.lang.String[] { "ChaincodeActions", });
internal_static_protos_FilteredChaincodeAction_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_protos_FilteredChaincodeAction_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protos_FilteredChaincodeAction_descriptor,
new java.lang.String[] { "ChaincodeEvent", });
internal_static_protos_BlockAndPrivateData_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_protos_BlockAndPrivateData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protos_BlockAndPrivateData_descriptor,
new java.lang.String[] { "Block", "PrivateDataMap", });
internal_static_protos_BlockAndPrivateData_PrivateDataMapEntry_descriptor =
internal_static_protos_BlockAndPrivateData_descriptor.getNestedTypes().get(0);
internal_static_protos_BlockAndPrivateData_PrivateDataMapEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protos_BlockAndPrivateData_PrivateDataMapEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_protos_DeliverResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_protos_DeliverResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protos_DeliverResponse_descriptor,
new java.lang.String[] { "Status", "Block", "FilteredBlock", "BlockAndPrivateData", "Type", });
org.hyperledger.fabric.protos.common.Common.getDescriptor();
org.hyperledger.fabric.protos.ledger.rwset.Rwset.getDescriptor();
org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.getDescriptor();
org.hyperledger.fabric.protos.peer.TransactionPackage.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}